@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,191 @@
|
|
|
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 UserDomain model module.
|
|
28
|
+
* @module model/UserDomain
|
|
29
|
+
* @version 0.1.34
|
|
30
|
+
*/
|
|
31
|
+
var UserDomain = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>UserDomain</code>.
|
|
34
|
+
* @alias module:model/UserDomain
|
|
35
|
+
*/
|
|
36
|
+
function UserDomain() {
|
|
37
|
+
_classCallCheck(this, UserDomain);
|
|
38
|
+
UserDomain.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(UserDomain, [{
|
|
47
|
+
key: "getName",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* @return {String}
|
|
51
|
+
*/
|
|
52
|
+
function getName() {
|
|
53
|
+
return this.name;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {String} name
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "setName",
|
|
61
|
+
value: function setName(name) {
|
|
62
|
+
this['name'] = name;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {Number}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "getId",
|
|
69
|
+
value: function getId() {
|
|
70
|
+
return this.id;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {Number} id
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "setId",
|
|
78
|
+
value: function setId(id) {
|
|
79
|
+
this['id'] = id;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @return {String}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "getPrefix",
|
|
86
|
+
value: function getPrefix() {
|
|
87
|
+
return this.prefix;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {String} prefix
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "setPrefix",
|
|
95
|
+
value: function setPrefix(prefix) {
|
|
96
|
+
this['prefix'] = prefix;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @return {String}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getDescription",
|
|
103
|
+
value: function getDescription() {
|
|
104
|
+
return this.description;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @param {String} description
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setDescription",
|
|
112
|
+
value: function setDescription(description) {
|
|
113
|
+
this['description'] = description;
|
|
114
|
+
}
|
|
115
|
+
}], [{
|
|
116
|
+
key: "initialize",
|
|
117
|
+
value: function initialize(obj) {}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Constructs a <code>UserDomain</code> from a plain JavaScript object, optionally creating a new instance.
|
|
121
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
122
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
123
|
+
* @param {module:model/UserDomain} obj Optional instance to populate.
|
|
124
|
+
* @return {module:model/UserDomain} The populated <code>UserDomain</code> instance.
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "constructFromObject",
|
|
128
|
+
value: function constructFromObject(data, obj) {
|
|
129
|
+
if (data) {
|
|
130
|
+
obj = obj || new UserDomain();
|
|
131
|
+
if (data.hasOwnProperty('name')) {
|
|
132
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
133
|
+
}
|
|
134
|
+
if (data.hasOwnProperty('id')) {
|
|
135
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
136
|
+
}
|
|
137
|
+
if (data.hasOwnProperty('prefix')) {
|
|
138
|
+
obj['prefix'] = _ApiClient["default"].convertToType(data['prefix'], 'String');
|
|
139
|
+
}
|
|
140
|
+
if (data.hasOwnProperty('description')) {
|
|
141
|
+
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return obj;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Validates the JSON data with respect to <code>UserDomain</code>.
|
|
149
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
150
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserDomain</code>.
|
|
151
|
+
*/
|
|
152
|
+
}, {
|
|
153
|
+
key: "validateJSON",
|
|
154
|
+
value: function validateJSON(data) {
|
|
155
|
+
// ensure the json data is a string
|
|
156
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
157
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
158
|
+
}
|
|
159
|
+
// ensure the json data is a string
|
|
160
|
+
if (data['prefix'] && !(typeof data['prefix'] === 'string' || data['prefix'] instanceof String)) {
|
|
161
|
+
throw new Error("Expected the field `prefix` to be a primitive type in the JSON string but got " + data['prefix']);
|
|
162
|
+
}
|
|
163
|
+
// ensure the json data is a string
|
|
164
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
165
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
166
|
+
}
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
}]);
|
|
170
|
+
return UserDomain;
|
|
171
|
+
}();
|
|
172
|
+
/**
|
|
173
|
+
* @member {String} name
|
|
174
|
+
*/
|
|
175
|
+
UserDomain.prototype['name'] = undefined;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @member {Number} id
|
|
179
|
+
*/
|
|
180
|
+
UserDomain.prototype['id'] = undefined;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @member {String} prefix
|
|
184
|
+
*/
|
|
185
|
+
UserDomain.prototype['prefix'] = undefined;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @member {String} description
|
|
189
|
+
*/
|
|
190
|
+
UserDomain.prototype['description'] = undefined;
|
|
191
|
+
var _default = exports["default"] = UserDomain;
|
|
@@ -0,0 +1,404 @@
|
|
|
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 UserInvite model module.
|
|
28
|
+
* @module model/UserInvite
|
|
29
|
+
* @version 0.1.34
|
|
30
|
+
*/
|
|
31
|
+
var UserInvite = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>UserInvite</code>.
|
|
34
|
+
* @alias module:model/UserInvite
|
|
35
|
+
*/
|
|
36
|
+
function UserInvite() {
|
|
37
|
+
_classCallCheck(this, UserInvite);
|
|
38
|
+
UserInvite.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(UserInvite, [{
|
|
47
|
+
key: "getText",
|
|
48
|
+
value:
|
|
49
|
+
/**
|
|
50
|
+
* @return {String}
|
|
51
|
+
*/
|
|
52
|
+
function getText() {
|
|
53
|
+
return this.text;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @param {String} text
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "setText",
|
|
61
|
+
value: function setText(text) {
|
|
62
|
+
this['text'] = text;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {Date}
|
|
66
|
+
*/
|
|
67
|
+
}, {
|
|
68
|
+
key: "getDate",
|
|
69
|
+
value: function getDate() {
|
|
70
|
+
return this.date;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @param {Date} date
|
|
75
|
+
*/
|
|
76
|
+
}, {
|
|
77
|
+
key: "setDate",
|
|
78
|
+
value: function setDate(date) {
|
|
79
|
+
this['date'] = date;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* @return {String}
|
|
83
|
+
*/
|
|
84
|
+
}, {
|
|
85
|
+
key: "getUrl",
|
|
86
|
+
value: function getUrl() {
|
|
87
|
+
return this.url;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @param {String} url
|
|
92
|
+
*/
|
|
93
|
+
}, {
|
|
94
|
+
key: "setUrl",
|
|
95
|
+
value: function setUrl(url) {
|
|
96
|
+
this['url'] = url;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @return {module:model/UserInvite.InviteTypeEnum}
|
|
100
|
+
*/
|
|
101
|
+
}, {
|
|
102
|
+
key: "getInviteType",
|
|
103
|
+
value: function getInviteType() {
|
|
104
|
+
return this.inviteType;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @param {module:model/UserInvite.InviteTypeEnum} inviteType
|
|
109
|
+
*/
|
|
110
|
+
}, {
|
|
111
|
+
key: "setInviteType",
|
|
112
|
+
value: function setInviteType(inviteType) {
|
|
113
|
+
this['inviteType'] = inviteType;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* @return {String}
|
|
117
|
+
*/
|
|
118
|
+
}, {
|
|
119
|
+
key: "getInviteCode",
|
|
120
|
+
value: function getInviteCode() {
|
|
121
|
+
return this.inviteCode;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @param {String} inviteCode
|
|
126
|
+
*/
|
|
127
|
+
}, {
|
|
128
|
+
key: "setInviteCode",
|
|
129
|
+
value: function setInviteCode(inviteCode) {
|
|
130
|
+
this['inviteCode'] = inviteCode;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @return {Array.<Number>}
|
|
134
|
+
*/
|
|
135
|
+
}, {
|
|
136
|
+
key: "getInvitedUsers",
|
|
137
|
+
value: function getInvitedUsers() {
|
|
138
|
+
return this.invitedUsers;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @param {Array.<Number>} invitedUsers
|
|
143
|
+
*/
|
|
144
|
+
}, {
|
|
145
|
+
key: "setInvitedUsers",
|
|
146
|
+
value: function setInvitedUsers(invitedUsers) {
|
|
147
|
+
this['invitedUsers'] = invitedUsers;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @return {Array.<String>}
|
|
151
|
+
*/
|
|
152
|
+
}, {
|
|
153
|
+
key: "getInvitedEmails",
|
|
154
|
+
value: function getInvitedEmails() {
|
|
155
|
+
return this.invitedEmails;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @param {Array.<String>} invitedEmails
|
|
160
|
+
*/
|
|
161
|
+
}, {
|
|
162
|
+
key: "setInvitedEmails",
|
|
163
|
+
value: function setInvitedEmails(invitedEmails) {
|
|
164
|
+
this['invitedEmails'] = invitedEmails;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* @return {Number}
|
|
168
|
+
*/
|
|
169
|
+
}, {
|
|
170
|
+
key: "getObjectid",
|
|
171
|
+
value: function getObjectid() {
|
|
172
|
+
return this.objectid;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* @param {Number} objectid
|
|
177
|
+
*/
|
|
178
|
+
}, {
|
|
179
|
+
key: "setObjectid",
|
|
180
|
+
value: function setObjectid(objectid) {
|
|
181
|
+
this['objectid'] = objectid;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Returns The id of the user that created the invitation
|
|
185
|
+
* @return {Number}
|
|
186
|
+
*/
|
|
187
|
+
}, {
|
|
188
|
+
key: "getInvitingUserId",
|
|
189
|
+
value: function getInvitingUserId() {
|
|
190
|
+
return this.invitingUserId;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Sets The id of the user that created the invitation
|
|
195
|
+
* @param {Number} invitingUserId The id of the user that created the invitation
|
|
196
|
+
*/
|
|
197
|
+
}, {
|
|
198
|
+
key: "setInvitingUserId",
|
|
199
|
+
value: function setInvitingUserId(invitingUserId) {
|
|
200
|
+
this['invitingUserId'] = invitingUserId;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @return {Object}
|
|
204
|
+
*/
|
|
205
|
+
}, {
|
|
206
|
+
key: "getData",
|
|
207
|
+
value: function getData() {
|
|
208
|
+
return this.data;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param {Object} data
|
|
213
|
+
*/
|
|
214
|
+
}, {
|
|
215
|
+
key: "setData",
|
|
216
|
+
value: function setData(data) {
|
|
217
|
+
this['data'] = data;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* @return {Number}
|
|
221
|
+
*/
|
|
222
|
+
}, {
|
|
223
|
+
key: "getId",
|
|
224
|
+
value: function getId() {
|
|
225
|
+
return this.id;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @param {Number} id
|
|
230
|
+
*/
|
|
231
|
+
}, {
|
|
232
|
+
key: "setId",
|
|
233
|
+
value: function setId(id) {
|
|
234
|
+
this['id'] = id;
|
|
235
|
+
}
|
|
236
|
+
}], [{
|
|
237
|
+
key: "initialize",
|
|
238
|
+
value: function initialize(obj) {}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Constructs a <code>UserInvite</code> from a plain JavaScript object, optionally creating a new instance.
|
|
242
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
243
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
244
|
+
* @param {module:model/UserInvite} obj Optional instance to populate.
|
|
245
|
+
* @return {module:model/UserInvite} The populated <code>UserInvite</code> instance.
|
|
246
|
+
*/
|
|
247
|
+
}, {
|
|
248
|
+
key: "constructFromObject",
|
|
249
|
+
value: function constructFromObject(data, obj) {
|
|
250
|
+
if (data) {
|
|
251
|
+
obj = obj || new UserInvite();
|
|
252
|
+
if (data.hasOwnProperty('text')) {
|
|
253
|
+
obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
|
|
254
|
+
}
|
|
255
|
+
if (data.hasOwnProperty('date')) {
|
|
256
|
+
obj['date'] = _ApiClient["default"].convertToType(data['date'], 'Date');
|
|
257
|
+
}
|
|
258
|
+
if (data.hasOwnProperty('url')) {
|
|
259
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
260
|
+
}
|
|
261
|
+
if (data.hasOwnProperty('inviteType')) {
|
|
262
|
+
obj['inviteType'] = _ApiClient["default"].convertToType(data['inviteType'], 'String');
|
|
263
|
+
}
|
|
264
|
+
if (data.hasOwnProperty('inviteCode')) {
|
|
265
|
+
obj['inviteCode'] = _ApiClient["default"].convertToType(data['inviteCode'], 'String');
|
|
266
|
+
}
|
|
267
|
+
if (data.hasOwnProperty('invitedUsers')) {
|
|
268
|
+
obj['invitedUsers'] = _ApiClient["default"].convertToType(data['invitedUsers'], ['Number']);
|
|
269
|
+
}
|
|
270
|
+
if (data.hasOwnProperty('invitedEmails')) {
|
|
271
|
+
obj['invitedEmails'] = _ApiClient["default"].convertToType(data['invitedEmails'], ['String']);
|
|
272
|
+
}
|
|
273
|
+
if (data.hasOwnProperty('objectid')) {
|
|
274
|
+
obj['objectid'] = _ApiClient["default"].convertToType(data['objectid'], 'Number');
|
|
275
|
+
}
|
|
276
|
+
if (data.hasOwnProperty('invitingUserId')) {
|
|
277
|
+
obj['invitingUserId'] = _ApiClient["default"].convertToType(data['invitingUserId'], 'Number');
|
|
278
|
+
}
|
|
279
|
+
if (data.hasOwnProperty('data')) {
|
|
280
|
+
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
281
|
+
}
|
|
282
|
+
if (data.hasOwnProperty('id')) {
|
|
283
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return obj;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Validates the JSON data with respect to <code>UserInvite</code>.
|
|
291
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
292
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UserInvite</code>.
|
|
293
|
+
*/
|
|
294
|
+
}, {
|
|
295
|
+
key: "validateJSON",
|
|
296
|
+
value: function validateJSON(data) {
|
|
297
|
+
// ensure the json data is a string
|
|
298
|
+
if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
|
|
299
|
+
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
|
|
300
|
+
}
|
|
301
|
+
// ensure the json data is a string
|
|
302
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
303
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
304
|
+
}
|
|
305
|
+
// ensure the json data is a string
|
|
306
|
+
if (data['inviteType'] && !(typeof data['inviteType'] === 'string' || data['inviteType'] instanceof String)) {
|
|
307
|
+
throw new Error("Expected the field `inviteType` to be a primitive type in the JSON string but got " + data['inviteType']);
|
|
308
|
+
}
|
|
309
|
+
// ensure the json data is a string
|
|
310
|
+
if (data['inviteCode'] && !(typeof data['inviteCode'] === 'string' || data['inviteCode'] instanceof String)) {
|
|
311
|
+
throw new Error("Expected the field `inviteCode` to be a primitive type in the JSON string but got " + data['inviteCode']);
|
|
312
|
+
}
|
|
313
|
+
// ensure the json data is an array
|
|
314
|
+
if (!Array.isArray(data['invitedUsers'])) {
|
|
315
|
+
throw new Error("Expected the field `invitedUsers` to be an array in the JSON data but got " + data['invitedUsers']);
|
|
316
|
+
}
|
|
317
|
+
// ensure the json data is an array
|
|
318
|
+
if (!Array.isArray(data['invitedEmails'])) {
|
|
319
|
+
throw new Error("Expected the field `invitedEmails` to be an array in the JSON data but got " + data['invitedEmails']);
|
|
320
|
+
}
|
|
321
|
+
return true;
|
|
322
|
+
}
|
|
323
|
+
}]);
|
|
324
|
+
return UserInvite;
|
|
325
|
+
}();
|
|
326
|
+
/**
|
|
327
|
+
* @member {String} text
|
|
328
|
+
*/
|
|
329
|
+
UserInvite.prototype['text'] = undefined;
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @member {Date} date
|
|
333
|
+
*/
|
|
334
|
+
UserInvite.prototype['date'] = undefined;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @member {String} url
|
|
338
|
+
*/
|
|
339
|
+
UserInvite.prototype['url'] = undefined;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* @member {module:model/UserInvite.InviteTypeEnum} inviteType
|
|
343
|
+
*/
|
|
344
|
+
UserInvite.prototype['inviteType'] = undefined;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* @member {String} inviteCode
|
|
348
|
+
*/
|
|
349
|
+
UserInvite.prototype['inviteCode'] = undefined;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* @member {Array.<Number>} invitedUsers
|
|
353
|
+
*/
|
|
354
|
+
UserInvite.prototype['invitedUsers'] = undefined;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* @member {Array.<String>} invitedEmails
|
|
358
|
+
*/
|
|
359
|
+
UserInvite.prototype['invitedEmails'] = undefined;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* @member {Number} objectid
|
|
363
|
+
*/
|
|
364
|
+
UserInvite.prototype['objectid'] = undefined;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* The id of the user that created the invitation
|
|
368
|
+
* @member {Number} invitingUserId
|
|
369
|
+
*/
|
|
370
|
+
UserInvite.prototype['invitingUserId'] = undefined;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* @member {Object} data
|
|
374
|
+
*/
|
|
375
|
+
UserInvite.prototype['data'] = undefined;
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @member {Number} id
|
|
379
|
+
*/
|
|
380
|
+
UserInvite.prototype['id'] = undefined;
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Allowed values for the <code>inviteType</code> property.
|
|
384
|
+
* @enum {String}
|
|
385
|
+
* @readonly
|
|
386
|
+
*/
|
|
387
|
+
UserInvite['InviteTypeEnum'] = {
|
|
388
|
+
/**
|
|
389
|
+
* value: "USER"
|
|
390
|
+
* @const
|
|
391
|
+
*/
|
|
392
|
+
"USER": "USER",
|
|
393
|
+
/**
|
|
394
|
+
* value: "EMAIL"
|
|
395
|
+
* @const
|
|
396
|
+
*/
|
|
397
|
+
"EMAIL": "EMAIL",
|
|
398
|
+
/**
|
|
399
|
+
* value: "CODE"
|
|
400
|
+
* @const
|
|
401
|
+
*/
|
|
402
|
+
"CODE": "CODE"
|
|
403
|
+
};
|
|
404
|
+
var _default = exports["default"] = UserInvite;
|