@gobodo/gobodo-api 0.1.5 → 0.1.7
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 +16 -22
- package/dist/ApiClient.js +76 -139
- package/dist/api/ActionTypesApi.js +27 -27
- package/dist/api/AdCampaignsApi.js +84 -90
- package/dist/api/AdManagementApi.js +119 -129
- package/dist/api/AdminDataManagementApi.js +31 -31
- package/dist/api/AdsApi.js +67 -69
- package/dist/api/AttachmentsApi.js +70 -72
- package/dist/api/AuthenticationApi.js +45 -43
- package/dist/api/CategoriesApi.js +67 -72
- package/dist/api/CommentsApi.js +69 -76
- package/dist/api/ContentManagementApi.js +191 -225
- package/dist/api/ConversationsApi.js +67 -74
- package/dist/api/DataSheetImportsApi.js +151 -169
- package/dist/api/DefaultApi.js +106 -116
- package/dist/api/DocumentsApi.js +105 -121
- package/dist/api/EntryPartsApi.js +118 -137
- package/dist/api/FacebookApi.js +23 -21
- package/dist/api/FieldsApi.js +43 -47
- package/dist/api/FilesApi.js +35 -31
- package/dist/api/FormsApi.js +142 -165
- package/dist/api/FunctionsApi.js +32 -32
- package/dist/api/GeocodeApi.js +55 -62
- package/dist/api/GoogleApi.js +23 -21
- package/dist/api/GraphActionsApi.js +94 -106
- package/dist/api/GraphObjectTypesApi.js +86 -90
- package/dist/api/GraphObjectsApi.js +508 -612
- package/dist/api/GraphRelationshipTypesApi.js +158 -178
- package/dist/api/GraphRelationshipsApi.js +258 -297
- package/dist/api/GraphSchemasApi.js +75 -82
- package/dist/api/GraphTraversalApi.js +55 -64
- package/dist/api/GraphsApi.js +98 -114
- package/dist/api/GroupsApi.js +95 -108
- package/dist/api/IAMApi.js +52 -52
- package/dist/api/ImagesApi.js +85 -87
- package/dist/api/InvitesApi.js +49 -53
- package/dist/api/LikesApi.js +102 -114
- package/dist/api/LinkedINApi.js +23 -21
- package/dist/api/LiveMeetingsApi.js +37 -39
- package/dist/api/MeetingEventsApi.js +53 -58
- package/dist/api/PagesApi.js +82 -94
- package/dist/api/PostsApi.js +49 -52
- package/dist/api/PrivateMessagesApi.js +113 -129
- package/dist/api/PublicationsApi.js +25 -23
- package/dist/api/ScreensApi.js +39 -41
- package/dist/api/SocialIntegrationApi.js +35 -33
- package/dist/api/StripeAccountsApi.js +77 -91
- package/dist/api/TagsApi.js +27 -27
- package/dist/api/TemplatesApi.js +39 -41
- package/dist/api/ThemeMappingsApi.js +38 -40
- package/dist/api/TransactionsApi.js +26 -26
- package/dist/api/TwitterApi.js +23 -21
- package/dist/api/UserTagsApi.js +85 -97
- package/dist/api/UsersApi.js +75 -87
- package/dist/api/UtilsApi.js +22 -20
- package/dist/api/VideosApi.js +101 -115
- package/dist/index.js +350 -512
- package/dist/model/APIClient.js +61 -41
- package/dist/model/Article.js +109 -88
- package/dist/model/Authorization.js +45 -24
- package/dist/model/Comment.js +73 -61
- package/dist/model/Coordinates.js +32 -22
- package/dist/model/CreateAccountResponse.js +46 -25
- package/dist/model/CreateCustomerResponse.js +46 -25
- package/dist/model/CreateStripeAccountInput.js +47 -29
- package/dist/model/CreateStripeCustomerInput.js +41 -24
- package/dist/model/DataObject.js +32 -22
- package/dist/model/DataSheetImport.js +145 -108
- package/dist/model/DataSheetImportPrivacySettings.js +33 -24
- package/dist/model/DataSheetImportSummary.js +62 -28
- package/dist/model/Document.js +135 -93
- package/dist/model/DocumentPart.js +116 -71
- package/dist/model/DocumentPartType.js +72 -45
- package/dist/model/DocumentType.js +76 -53
- package/dist/model/FieldMapping.js +41 -30
- package/dist/model/Fields.js +96 -111
- package/dist/model/File.js +52 -38
- package/dist/model/FileAttachmentUploadObject.js +66 -61
- package/dist/model/Filter.js +40 -22
- package/dist/model/FilterManager.js +56 -23
- package/dist/model/Form.js +107 -42
- package/dist/model/FormSection.js +86 -33
- package/dist/model/FormSubmission.js +50 -32
- package/dist/model/Geocode.js +44 -28
- package/dist/model/GeocodePayload.js +42 -24
- package/dist/model/GeolocationInput.js +62 -30
- package/dist/model/Graph.js +77 -68
- package/dist/model/GraphAction.js +48 -39
- package/dist/model/GraphDatabaseService.js +43 -38
- package/dist/model/GraphGeocode.js +57 -35
- package/dist/model/GraphIteratorEntryPart.js +58 -24
- package/dist/model/GraphIteratorEntryPartStackTraceInner.js +166 -0
- package/dist/model/GraphObject.js +75 -51
- package/dist/model/GraphObjectPayload.js +80 -39
- package/dist/model/GraphObjectSchema.js +87 -58
- package/dist/model/GraphObjectType.js +92 -67
- package/dist/model/GraphObjectTypeSchema.js +111 -67
- package/dist/model/GraphOwner.js +37 -24
- package/dist/model/GraphRelation.js +49 -39
- package/dist/model/GraphRelationObjectObject.js +49 -39
- package/dist/model/GraphRelationship.js +49 -40
- package/dist/model/GraphRelationshipPayload.js +38 -26
- package/dist/model/GraphRelationshipType.js +99 -71
- package/dist/model/GraphSchema.js +101 -80
- package/dist/model/GraphTraversalInput.js +99 -60
- package/dist/model/Image.js +70 -52
- package/dist/model/ImageUploadObject.js +95 -77
- package/dist/model/InputPart.js +48 -32
- package/dist/model/InputPartMediaType.js +43 -28
- package/dist/model/Link.js +74 -46
- package/dist/model/LiveStreamInfo.js +45 -24
- package/dist/model/MeetingEvent.js +103 -70
- package/dist/model/MeetingEventTimezone.js +42 -26
- package/dist/model/MeetingInfo.js +48 -29
- package/dist/model/Member.js +99 -59
- package/dist/model/MemberGroupCategory.js +44 -30
- package/dist/model/MemberList.js +35 -39
- package/dist/model/MessageGroup.js +38 -25
- package/dist/model/MultipartBody.js +36 -22
- package/dist/model/Objecttype.js +105 -64
- package/dist/model/Page.js +55 -42
- package/dist/model/PageSchema.js +71 -57
- package/dist/model/Pageable.js +41 -31
- package/dist/model/Path.js +36 -21
- package/dist/model/PaymentIntentInput.js +38 -26
- package/dist/model/PaymentIntentResponse.js +40 -22
- package/dist/model/PaymentMethod.js +52 -30
- package/dist/model/Post.js +60 -47
- package/dist/model/PrivateMessage.js +73 -57
- package/dist/model/PrivateMessageConversation.js +92 -55
- package/dist/model/PrivateMessageConversationSchema.js +75 -28
- package/dist/model/Profile.js +44 -28
- package/dist/model/Profiletype.js +63 -28
- package/dist/model/PropertyContainer.js +38 -25
- package/dist/model/PurgeDataDefaultResponseValue.js +133 -0
- package/dist/model/RelationshipMapping.js +71 -35
- package/dist/model/ScreenSchema.js +221 -79
- package/dist/model/SimulcastInfo.js +45 -24
- package/dist/model/SkinField.js +96 -111
- package/dist/model/SocialGroup.js +91 -69
- package/dist/model/SocialGroupType.js +66 -42
- package/dist/model/Sort.js +33 -24
- package/dist/model/StatusUpdate.js +53 -42
- package/dist/model/StreetAddress.js +55 -28
- package/dist/model/StripeAccount.js +43 -28
- package/dist/model/StripeCustomerAccount.js +43 -28
- package/dist/model/Template.js +49 -32
- package/dist/model/TemplateSchema.js +50 -35
- package/dist/model/ThemeMapping.js +50 -32
- package/dist/model/ThemeMappingPayload.js +45 -31
- package/dist/model/Transaction.js +40 -22
- package/dist/model/User.js +99 -59
- package/dist/model/UserDataPayload.js +99 -59
- package/dist/model/UserDomain.js +46 -26
- package/dist/model/UserInvite.js +66 -43
- package/dist/model/UserInviteInput.js +52 -30
- package/dist/model/UserSchema.js +99 -59
- package/dist/model/UserTag.js +51 -32
- package/dist/model/Video.js +90 -71
- package/dist/model/VideoLiveUrl.js +40 -22
- package/dist/model/VideoSchema.js +102 -78
- package/dist/model/VideoUploadObject.js +131 -85
- package/dist/model/ZeusPortalCategory.js +72 -45
- package/package.json +2 -2
- package/dist/model/Account.js +0 -315
- package/dist/model/AchCreditTransfer.js +0 -122
- package/dist/model/AchDebit.js +0 -140
- package/dist/model/AcssDebit.js +0 -106
- package/dist/model/AddInvoiceItem.js +0 -126
- package/dist/model/Address.js +0 -140
- package/dist/model/Affirm.js +0 -104
- package/dist/model/AfterpayClearpay.js +0 -113
- package/dist/model/Alipay.js +0 -95
- package/dist/model/AlternateStatementDescriptors.js +0 -104
- package/dist/model/Alternative.js +0 -104
- package/dist/model/AmexExpressCheckout.js +0 -86
- package/dist/model/AmountDetails.js +0 -97
- package/dist/model/ApplePay.js +0 -86
- package/dist/model/Application.js +0 -122
- package/dist/model/ApplicationFee.js +0 -267
- package/dist/model/AppliesTo.js +0 -95
- package/dist/model/AuBecsDebit.js +0 -95
- package/dist/model/AutomaticPaymentMethodsPaymentIntent.js +0 -95
- package/dist/model/AutomaticTax.js +0 -95
- package/dist/model/BacsDebit.js +0 -95
- package/dist/model/BacsDebitPayments.js +0 -95
- package/dist/model/BalanceSettings.js +0 -95
- package/dist/model/BalanceTransaction.js +0 -234
- package/dist/model/BalanceTransactionSource.js +0 -84
- package/dist/model/Bancontact.js +0 -180
- package/dist/model/BankTransfer.js +0 -106
- package/dist/model/BillingDetails.js +0 -124
- package/dist/model/BillingThresholds.js +0 -95
- package/dist/model/Blik.js +0 -86
- package/dist/model/BlikMandateOptions.js +0 -115
- package/dist/model/BlikMandateOptionsOffSessionDetails.js +0 -122
- package/dist/model/Boleto.js +0 -95
- package/dist/model/Breakdown.js +0 -108
- package/dist/model/BusinessProfile.js +0 -160
- package/dist/model/Capabilities.js +0 -383
- package/dist/model/Card.js +0 -247
- package/dist/model/CardPresent.js +0 -268
- package/dist/model/CashBalance.js +0 -135
- package/dist/model/Charge.js +0 -706
- package/dist/model/ChargeCollection.js +0 -146
- package/dist/model/Checks.js +0 -113
- package/dist/model/Company.js +0 -238
- package/dist/model/Computed.js +0 -108
- package/dist/model/Controller.js +0 -104
- package/dist/model/Coupon.js +0 -256
- package/dist/model/CreateAccountResponseFailureException.js +0 -117
- package/dist/model/CreateAccountResponseFailureExceptionCause.js +0 -106
- package/dist/model/CreateAccountResponseFailureExceptionCauseStackTrace.js +0 -138
- package/dist/model/CreateAccountResponseFailureExceptionCauseSuppressed.js +0 -95
- package/dist/model/CreditedItems.js +0 -104
- package/dist/model/CurrencyOption.js +0 -135
- package/dist/model/CurrentPhase.js +0 -104
- package/dist/model/CustomField.js +0 -104
- package/dist/model/CustomUnitAmount.js +0 -113
- package/dist/model/Customer.js +0 -400
- package/dist/model/CustomerAcceptance.js +0 -126
- package/dist/model/CustomerBalance.js +0 -86
- package/dist/model/CustomerNotification.js +0 -104
- package/dist/model/CustomerTaxId.js +0 -104
- package/dist/model/DateOfBirth.js +0 -113
- package/dist/model/DeclineChargeOn.js +0 -104
- package/dist/model/DefaultSettings.js +0 -177
- package/dist/model/Discount.js +0 -104
- package/dist/model/DiscountAmount.js +0 -115
- package/dist/model/Dispute.js +0 -260
- package/dist/model/EmailSent.js +0 -104
- package/dist/model/Eps.js +0 -104
- package/dist/model/Errors.js +0 -113
- package/dist/model/EuBankTransfer.js +0 -95
- package/dist/model/Evidence.js +0 -410
- package/dist/model/EvidenceDetails.js +0 -122
- package/dist/model/ExternalAccount.js +0 -84
- package/dist/model/ExternalAccountCollection.js +0 -146
- package/dist/model/Familymart.js +0 -104
- package/dist/model/Fee.js +0 -131
- package/dist/model/FeeRefund.js +0 -182
- package/dist/model/FeeRefundCollection.js +0 -146
- package/dist/model/FileAttachmentUpload.js +0 -88
- package/dist/model/FileLink.js +0 -178
- package/dist/model/FileLinkCollection.js +0 -146
- package/dist/model/FinancialAddress.js +0 -148
- package/dist/model/FinancialConnections.js +0 -95
- package/dist/model/Fpx.js +0 -113
- package/dist/model/FraudDetails.js +0 -104
- package/dist/model/FromQuote.js +0 -115
- package/dist/model/FutureRequirements.js +0 -144
- package/dist/model/GeneratedFrom.js +0 -126
- package/dist/model/Giropay.js +0 -122
- package/dist/model/GooglePay.js +0 -86
- package/dist/model/Grabpay.js +0 -95
- package/dist/model/GraphIteratorEntryPartStackTrace.js +0 -138
- package/dist/model/GraphObjectDescriptorSchema.js +0 -179
- package/dist/model/Iban.js +0 -122
- package/dist/model/Ideal.js +0 -162
- package/dist/model/ImageUpload.js +0 -88
- package/dist/model/InlineObject.js +0 -124
- package/dist/model/InlineObject1.js +0 -124
- package/dist/model/InlineObject2.js +0 -124
- package/dist/model/InlineObject3.js +0 -124
- package/dist/model/InlineObject4.js +0 -124
- package/dist/model/InlineObject5.js +0 -124
- package/dist/model/InlineResponseDefault.js +0 -124
- package/dist/model/Installments.js +0 -97
- package/dist/model/InteracPresent.js +0 -241
- package/dist/model/Invoice.js +0 -925
- package/dist/model/InvoiceLineItem.js +0 -329
- package/dist/model/InvoiceLineItemCollection.js +0 -146
- package/dist/model/InvoiceLineItemPeriod.js +0 -104
- package/dist/model/InvoiceSettings.js +0 -95
- package/dist/model/JapanAddress.js +0 -149
- package/dist/model/JsonArray.js +0 -252
- package/dist/model/JsonNull.js +0 -252
- package/dist/model/JsonObject.js +0 -252
- package/dist/model/JsonPrimitive.js +0 -288
- package/dist/model/Klarna.js +0 -104
- package/dist/model/Konbini.js +0 -97
- package/dist/model/Lawson.js +0 -104
- package/dist/model/Level3.js +0 -142
- package/dist/model/LineItem.js +0 -220
- package/dist/model/LineItemCollection.js +0 -146
- package/dist/model/Location.js +0 -113
- package/dist/model/Mandate.js +0 -195
- package/dist/model/MandateOptions.js +0 -95
- package/dist/model/Masterpass.js +0 -124
- package/dist/model/Ministop.js +0 -104
- package/dist/model/MultiUse.js +0 -86
- package/dist/model/Multibanco.js +0 -104
- package/dist/model/MultipartFormDataInput.js +0 -108
- package/dist/model/Networks.js +0 -104
- package/dist/model/NextAction.js +0 -249
- package/dist/model/NextActionAlipayHandleRedirect.js +0 -122
- package/dist/model/NextActionCardAwaitNotification.js +0 -104
- package/dist/model/NextActionDisplayBankTransferInstructions.js +0 -142
- package/dist/model/NextActionDisplayBoletoDetails.js +0 -122
- package/dist/model/NextActionDisplayDetails.js +0 -106
- package/dist/model/NextActionKonbiniDisplayDetails.js +0 -115
- package/dist/model/NextActionOxxoDisplayDetails.js +0 -113
- package/dist/model/NextActionRedirectToUrl.js +0 -104
- package/dist/model/Offline.js +0 -86
- package/dist/model/Online.js +0 -104
- package/dist/model/Outcome.js +0 -160
- package/dist/model/OwnershipDeclaration.js +0 -113
- package/dist/model/Oxxo.js +0 -95
- package/dist/model/P24.js +0 -113
- package/dist/model/PackageDimensions.js +0 -122
- package/dist/model/PauseCollection.js +0 -104
- package/dist/model/PaymentIntent.js +0 -534
- package/dist/model/PaymentMethodDetails.js +0 -480
- package/dist/model/PaymentMethodOptions.js +0 -152
- package/dist/model/PaymentSettings.js +0 -115
- package/dist/model/PaymentSource.js +0 -84
- package/dist/model/PaymentSourceCollection.js +0 -146
- package/dist/model/Paynow.js +0 -95
- package/dist/model/PaynowDisplayQrCode.js +0 -113
- package/dist/model/PayoutSchedule.js +0 -122
- package/dist/model/PendingInvoiceItemInterval.js +0 -104
- package/dist/model/PendingUpdate.js +0 -133
- package/dist/model/Person.js +0 -381
- package/dist/model/Phase.js +0 -286
- package/dist/model/PhaseItem.js +0 -157
- package/dist/model/Plan.js +0 -292
- package/dist/model/Price.js +0 -309
- package/dist/model/Processing.js +0 -106
- package/dist/model/Product.js +0 -310
- package/dist/model/PromotionCode.js +0 -220
- package/dist/model/Promptpay.js +0 -95
- package/dist/model/PromptpayDisplayQrCode.js +0 -122
- package/dist/model/ProrationDetails.js +0 -97
- package/dist/model/Quote.js +0 -520
- package/dist/model/RadarOptions.js +0 -95
- package/dist/model/Receipt.js +0 -167
- package/dist/model/Recurring.js +0 -133
- package/dist/model/Refund.js +0 -332
- package/dist/model/RefundCollection.js +0 -146
- package/dist/model/Relationship.js +0 -140
- package/dist/model/RenderingOptions.js +0 -95
- package/dist/model/RequestOptions.js +0 -167
- package/dist/model/RequestOptionsProxyCredential.js +0 -84
- package/dist/model/Requirements.js +0 -162
- package/dist/model/Restrictions.js +0 -126
- package/dist/model/Review.js +0 -238
- package/dist/model/Rule.js +0 -113
- package/dist/model/SamsungPay.js +0 -86
- package/dist/model/Seicomart.js +0 -104
- package/dist/model/SepaCreditTransfer.js +0 -113
- package/dist/model/SepaDebit.js +0 -142
- package/dist/model/SepaDebitMandateOptions.js +0 -86
- package/dist/model/SepaDebitPayments.js +0 -95
- package/dist/model/Session.js +0 -122
- package/dist/model/Settings.js +0 -185
- package/dist/model/SettingsBranding.js +0 -140
- package/dist/model/SettingsCardIssuing.js +0 -97
- package/dist/model/SettingsCardPayments.js +0 -124
- package/dist/model/SettingsDashboard.js +0 -104
- package/dist/model/SettingsPayments.js +0 -131
- package/dist/model/SettingsPayouts.js +0 -115
- package/dist/model/SettingsTreasury.js +0 -97
- package/dist/model/SetupAttempt.js +0 -280
- package/dist/model/SetupIntent.js +0 -376
- package/dist/model/ShippingDetails.js +0 -133
- package/dist/model/SingleUse.js +0 -104
- package/dist/model/Sofort.js +0 -189
- package/dist/model/SortCode.js +0 -113
- package/dist/model/Spei.js +0 -113
- package/dist/model/StatusTransitions.js +0 -113
- package/dist/model/Store.js +0 -95
- package/dist/model/Stores.js +0 -130
- package/dist/model/StripeError.js +0 -202
- package/dist/model/Subscription.js +0 -556
- package/dist/model/SubscriptionCollection.js +0 -146
- package/dist/model/SubscriptionData.js +0 -104
- package/dist/model/SubscriptionItem.js +0 -195
- package/dist/model/SubscriptionItemCollection.js +0 -146
- package/dist/model/SubscriptionSchedule.js +0 -300
- package/dist/model/Tax.js +0 -115
- package/dist/model/TaxAmount.js +0 -124
- package/dist/model/TaxCode.js +0 -122
- package/dist/model/TaxId.js +0 -189
- package/dist/model/TaxIdCollection.js +0 -146
- package/dist/model/TaxRate.js +0 -214
- package/dist/model/TestClock.js +0 -167
- package/dist/model/ThreeDSecure.js +0 -122
- package/dist/model/ThreeDSecureUsage.js +0 -95
- package/dist/model/ThresholdItemReason.js +0 -104
- package/dist/model/ThresholdReason.js +0 -106
- package/dist/model/Tier.js +0 -131
- package/dist/model/Tip.js +0 -95
- package/dist/model/TosAcceptance.js +0 -122
- package/dist/model/TotalDetails.js +0 -124
- package/dist/model/Transfer.js +0 -285
- package/dist/model/TransferData.js +0 -124
- package/dist/model/TransferReversal.js +0 -220
- package/dist/model/TransferReversalCollection.js +0 -146
- package/dist/model/TransformQuantity.js +0 -104
- package/dist/model/TransformUsage.js +0 -104
- package/dist/model/TraversalQuery.js +0 -209
- package/dist/model/TraversalQueryStartobjecttypes.js +0 -179
- package/dist/model/USBankAccount.js +0 -140
- package/dist/model/Upfront.js +0 -126
- package/dist/model/Verification.js +0 -113
- package/dist/model/VerificationDocument.js +0 -140
- package/dist/model/VerifyWithMicrodeposits.js +0 -113
- package/dist/model/VideoUpload.js +0 -88
- package/dist/model/VisaCheckout.js +0 -124
- package/dist/model/Wallet.js +0 -170
- package/dist/model/Wechat.js +0 -86
- package/dist/model/WechatPay.js +0 -104
- package/dist/model/WechatPayDisplayQrCode.js +0 -122
- package/dist/model/WechatPayRedirectToAndroidApp.js +0 -158
- package/dist/model/WechatPayRedirectToIosApp.js +0 -95
- package/dist/model/Zengin.js +0 -149
|
@@ -4,29 +4,33 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Image = _interopRequireDefault(require("./Image"));
|
|
11
|
-
|
|
12
9
|
var _MemberGroupCategory = _interopRequireDefault(require("./MemberGroupCategory"));
|
|
13
|
-
|
|
14
10
|
var _SocialGroupType = _interopRequireDefault(require("./SocialGroupType"));
|
|
15
|
-
|
|
16
11
|
var _User = _interopRequireDefault(require("./User"));
|
|
17
|
-
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
-
|
|
13
|
+
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); }
|
|
20
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
19
|
+
* Gobodo API
|
|
20
|
+
* REST Interface for Gobodo API
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 0.1.7
|
|
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
|
+
*/
|
|
26
30
|
/**
|
|
27
31
|
* The SocialGroup model module.
|
|
28
32
|
* @module model/SocialGroup
|
|
29
|
-
* @version 0.1.
|
|
33
|
+
* @version 0.1.7
|
|
30
34
|
*/
|
|
31
35
|
var SocialGroup = /*#__PURE__*/function () {
|
|
32
36
|
/**
|
|
@@ -35,19 +39,18 @@ var SocialGroup = /*#__PURE__*/function () {
|
|
|
35
39
|
*/
|
|
36
40
|
function SocialGroup() {
|
|
37
41
|
_classCallCheck(this, SocialGroup);
|
|
38
|
-
|
|
39
42
|
SocialGroup.initialize(this);
|
|
40
43
|
}
|
|
44
|
+
|
|
41
45
|
/**
|
|
42
46
|
* Initializes the fields of this object.
|
|
43
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
48
|
* Only for internal use.
|
|
45
49
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
50
|
_createClass(SocialGroup, null, [{
|
|
49
51
|
key: "initialize",
|
|
50
52
|
value: function initialize(obj) {}
|
|
53
|
+
|
|
51
54
|
/**
|
|
52
55
|
* Constructs a <code>SocialGroup</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
56
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -55,219 +58,238 @@ var SocialGroup = /*#__PURE__*/function () {
|
|
|
55
58
|
* @param {module:model/SocialGroup} obj Optional instance to populate.
|
|
56
59
|
* @return {module:model/SocialGroup} The populated <code>SocialGroup</code> instance.
|
|
57
60
|
*/
|
|
58
|
-
|
|
59
61
|
}, {
|
|
60
62
|
key: "constructFromObject",
|
|
61
63
|
value: function constructFromObject(data, obj) {
|
|
62
64
|
if (data) {
|
|
63
65
|
obj = obj || new SocialGroup();
|
|
64
|
-
|
|
65
66
|
if (data.hasOwnProperty('creator')) {
|
|
66
67
|
obj['creator'] = _User["default"].constructFromObject(data['creator']);
|
|
67
68
|
}
|
|
68
|
-
|
|
69
69
|
if (data.hasOwnProperty('mainPhoto')) {
|
|
70
70
|
obj['mainPhoto'] = _Image["default"].constructFromObject(data['mainPhoto']);
|
|
71
71
|
}
|
|
72
|
-
|
|
73
72
|
if (data.hasOwnProperty('groupType')) {
|
|
74
73
|
obj['groupType'] = _SocialGroupType["default"].constructFromObject(data['groupType']);
|
|
75
74
|
}
|
|
76
|
-
|
|
77
75
|
if (data.hasOwnProperty('joinStatus')) {
|
|
78
76
|
obj['joinStatus'] = _ApiClient["default"].convertToType(data['joinStatus'], 'String');
|
|
79
77
|
}
|
|
80
|
-
|
|
81
78
|
if (data.hasOwnProperty('name')) {
|
|
82
79
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
83
80
|
}
|
|
84
|
-
|
|
85
81
|
if (data.hasOwnProperty('description')) {
|
|
86
82
|
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
87
83
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
obj['category'] = _MemberGroupCategory["default"].constructFromObject(data['category']);
|
|
84
|
+
if (data.hasOwnProperty('creationDate')) {
|
|
85
|
+
obj['creationDate'] = _ApiClient["default"].convertToType(data['creationDate'], 'Date');
|
|
91
86
|
}
|
|
92
|
-
|
|
93
87
|
if (data.hasOwnProperty('modDate')) {
|
|
94
88
|
obj['modDate'] = _ApiClient["default"].convertToType(data['modDate'], 'Date');
|
|
95
89
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
obj['creationDate'] = _ApiClient["default"].convertToType(data['creationDate'], 'Date');
|
|
90
|
+
if (data.hasOwnProperty('category')) {
|
|
91
|
+
obj['category'] = _MemberGroupCategory["default"].constructFromObject(data['category']);
|
|
99
92
|
}
|
|
100
|
-
|
|
101
93
|
if (data.hasOwnProperty('alias')) {
|
|
102
94
|
obj['alias'] = _ApiClient["default"].convertToType(data['alias'], 'String');
|
|
103
95
|
}
|
|
104
|
-
|
|
105
96
|
if (data.hasOwnProperty('visibility')) {
|
|
106
97
|
obj['visibility'] = _ApiClient["default"].convertToType(data['visibility'], 'Number');
|
|
107
98
|
}
|
|
108
|
-
|
|
109
99
|
if (data.hasOwnProperty('memberCount')) {
|
|
110
100
|
obj['memberCount'] = _ApiClient["default"].convertToType(data['memberCount'], 'Number');
|
|
111
101
|
}
|
|
112
|
-
|
|
113
102
|
if (data.hasOwnProperty('memberCountRecursive')) {
|
|
114
103
|
obj['memberCountRecursive'] = _ApiClient["default"].convertToType(data['memberCountRecursive'], 'Number');
|
|
115
104
|
}
|
|
116
|
-
|
|
117
105
|
if (data.hasOwnProperty('adminCount')) {
|
|
118
106
|
obj['adminCount'] = _ApiClient["default"].convertToType(data['adminCount'], 'Number');
|
|
119
107
|
}
|
|
120
|
-
|
|
121
108
|
if (data.hasOwnProperty('membersRecursive')) {
|
|
122
109
|
obj['membersRecursive'] = _ApiClient["default"].convertToType(data['membersRecursive'], [_User["default"]]);
|
|
123
110
|
}
|
|
124
|
-
|
|
125
111
|
if (data.hasOwnProperty('groupsRecursive')) {
|
|
126
112
|
obj['groupsRecursive'] = _ApiClient["default"].convertToType(data['groupsRecursive'], Object);
|
|
127
113
|
}
|
|
128
|
-
|
|
129
114
|
if (data.hasOwnProperty('data')) {
|
|
130
115
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
131
116
|
}
|
|
132
|
-
|
|
133
117
|
if (data.hasOwnProperty('id')) {
|
|
134
118
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
135
119
|
}
|
|
136
120
|
}
|
|
137
|
-
|
|
138
121
|
return obj;
|
|
139
122
|
}
|
|
140
|
-
}]);
|
|
141
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Validates the JSON data with respect to <code>SocialGroup</code>.
|
|
126
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
127
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SocialGroup</code>.
|
|
128
|
+
*/
|
|
129
|
+
}, {
|
|
130
|
+
key: "validateJSON",
|
|
131
|
+
value: function validateJSON(data) {
|
|
132
|
+
// validate the optional field `creator`
|
|
133
|
+
if (data['creator']) {
|
|
134
|
+
// data not null
|
|
135
|
+
_User["default"].validateJSON(data['creator']);
|
|
136
|
+
}
|
|
137
|
+
// validate the optional field `mainPhoto`
|
|
138
|
+
if (data['mainPhoto']) {
|
|
139
|
+
// data not null
|
|
140
|
+
_Image["default"].validateJSON(data['mainPhoto']);
|
|
141
|
+
}
|
|
142
|
+
// validate the optional field `groupType`
|
|
143
|
+
if (data['groupType']) {
|
|
144
|
+
// data not null
|
|
145
|
+
_SocialGroupType["default"].validateJSON(data['groupType']);
|
|
146
|
+
}
|
|
147
|
+
// ensure the json data is a string
|
|
148
|
+
if (data['joinStatus'] && !(typeof data['joinStatus'] === 'string' || data['joinStatus'] instanceof String)) {
|
|
149
|
+
throw new Error("Expected the field `joinStatus` to be a primitive type in the JSON string but got " + data['joinStatus']);
|
|
150
|
+
}
|
|
151
|
+
// ensure the json data is a string
|
|
152
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
153
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
154
|
+
}
|
|
155
|
+
// ensure the json data is a string
|
|
156
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
157
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
158
|
+
}
|
|
159
|
+
// validate the optional field `category`
|
|
160
|
+
if (data['category']) {
|
|
161
|
+
// data not null
|
|
162
|
+
_MemberGroupCategory["default"].validateJSON(data['category']);
|
|
163
|
+
}
|
|
164
|
+
// ensure the json data is a string
|
|
165
|
+
if (data['alias'] && !(typeof data['alias'] === 'string' || data['alias'] instanceof String)) {
|
|
166
|
+
throw new Error("Expected the field `alias` to be a primitive type in the JSON string but got " + data['alias']);
|
|
167
|
+
}
|
|
168
|
+
return true;
|
|
169
|
+
}
|
|
170
|
+
}]);
|
|
142
171
|
return SocialGroup;
|
|
143
172
|
}();
|
|
144
173
|
/**
|
|
145
174
|
* @member {module:model/User} creator
|
|
146
175
|
*/
|
|
147
|
-
|
|
148
|
-
|
|
149
176
|
SocialGroup.prototype['creator'] = undefined;
|
|
177
|
+
|
|
150
178
|
/**
|
|
151
179
|
* @member {module:model/Image} mainPhoto
|
|
152
180
|
*/
|
|
153
|
-
|
|
154
181
|
SocialGroup.prototype['mainPhoto'] = undefined;
|
|
182
|
+
|
|
155
183
|
/**
|
|
156
184
|
* @member {module:model/SocialGroupType} groupType
|
|
157
185
|
*/
|
|
158
|
-
|
|
159
186
|
SocialGroup.prototype['groupType'] = undefined;
|
|
187
|
+
|
|
160
188
|
/**
|
|
161
189
|
* @member {module:model/SocialGroup.JoinStatusEnum} joinStatus
|
|
162
190
|
*/
|
|
163
|
-
|
|
164
191
|
SocialGroup.prototype['joinStatus'] = undefined;
|
|
192
|
+
|
|
165
193
|
/**
|
|
166
194
|
* @member {String} name
|
|
167
195
|
*/
|
|
168
|
-
|
|
169
196
|
SocialGroup.prototype['name'] = undefined;
|
|
197
|
+
|
|
170
198
|
/**
|
|
171
199
|
* @member {String} description
|
|
172
200
|
*/
|
|
173
|
-
|
|
174
201
|
SocialGroup.prototype['description'] = undefined;
|
|
202
|
+
|
|
175
203
|
/**
|
|
176
|
-
* @member {
|
|
204
|
+
* @member {Date} creationDate
|
|
177
205
|
*/
|
|
206
|
+
SocialGroup.prototype['creationDate'] = undefined;
|
|
178
207
|
|
|
179
|
-
SocialGroup.prototype['category'] = undefined;
|
|
180
208
|
/**
|
|
181
209
|
* @member {Date} modDate
|
|
182
210
|
*/
|
|
183
|
-
|
|
184
211
|
SocialGroup.prototype['modDate'] = undefined;
|
|
212
|
+
|
|
185
213
|
/**
|
|
186
|
-
* @member {
|
|
214
|
+
* @member {module:model/MemberGroupCategory} category
|
|
187
215
|
*/
|
|
216
|
+
SocialGroup.prototype['category'] = undefined;
|
|
188
217
|
|
|
189
|
-
SocialGroup.prototype['creationDate'] = undefined;
|
|
190
218
|
/**
|
|
191
219
|
* @member {String} alias
|
|
192
220
|
*/
|
|
193
|
-
|
|
194
221
|
SocialGroup.prototype['alias'] = undefined;
|
|
222
|
+
|
|
195
223
|
/**
|
|
196
224
|
* @member {Number} visibility
|
|
197
225
|
*/
|
|
198
|
-
|
|
199
226
|
SocialGroup.prototype['visibility'] = undefined;
|
|
227
|
+
|
|
200
228
|
/**
|
|
201
229
|
* @member {Number} memberCount
|
|
202
230
|
*/
|
|
203
|
-
|
|
204
231
|
SocialGroup.prototype['memberCount'] = undefined;
|
|
232
|
+
|
|
205
233
|
/**
|
|
206
234
|
* @member {Number} memberCountRecursive
|
|
207
235
|
*/
|
|
208
|
-
|
|
209
236
|
SocialGroup.prototype['memberCountRecursive'] = undefined;
|
|
237
|
+
|
|
210
238
|
/**
|
|
211
239
|
* @member {Number} adminCount
|
|
212
240
|
*/
|
|
213
|
-
|
|
214
241
|
SocialGroup.prototype['adminCount'] = undefined;
|
|
242
|
+
|
|
215
243
|
/**
|
|
216
244
|
* @member {Array.<module:model/User>} membersRecursive
|
|
217
245
|
*/
|
|
218
|
-
|
|
219
246
|
SocialGroup.prototype['membersRecursive'] = undefined;
|
|
247
|
+
|
|
220
248
|
/**
|
|
221
249
|
* @member {Object} groupsRecursive
|
|
222
250
|
*/
|
|
223
|
-
|
|
224
251
|
SocialGroup.prototype['groupsRecursive'] = undefined;
|
|
252
|
+
|
|
225
253
|
/**
|
|
226
254
|
* @member {Object} data
|
|
227
255
|
*/
|
|
228
|
-
|
|
229
256
|
SocialGroup.prototype['data'] = undefined;
|
|
257
|
+
|
|
230
258
|
/**
|
|
231
259
|
* @member {Number} id
|
|
232
260
|
*/
|
|
233
|
-
|
|
234
261
|
SocialGroup.prototype['id'] = undefined;
|
|
262
|
+
|
|
235
263
|
/**
|
|
236
264
|
* Allowed values for the <code>joinStatus</code> property.
|
|
237
265
|
* @enum {String}
|
|
238
266
|
* @readonly
|
|
239
267
|
*/
|
|
240
|
-
|
|
241
268
|
SocialGroup['JoinStatusEnum'] = {
|
|
242
269
|
/**
|
|
243
270
|
* value: "MEMBER"
|
|
244
271
|
* @const
|
|
245
272
|
*/
|
|
246
273
|
"MEMBER": "MEMBER",
|
|
247
|
-
|
|
248
274
|
/**
|
|
249
275
|
* value: "REQUESTED"
|
|
250
276
|
* @const
|
|
251
277
|
*/
|
|
252
278
|
"REQUESTED": "REQUESTED",
|
|
253
|
-
|
|
254
279
|
/**
|
|
255
280
|
* value: "INVITED"
|
|
256
281
|
* @const
|
|
257
282
|
*/
|
|
258
283
|
"INVITED": "INVITED",
|
|
259
|
-
|
|
260
284
|
/**
|
|
261
285
|
* value: "NOT_MEMBER"
|
|
262
286
|
* @const
|
|
263
287
|
*/
|
|
264
288
|
"NOT_MEMBER": "NOT_MEMBER",
|
|
265
|
-
|
|
266
289
|
/**
|
|
267
290
|
* value: "DENIED"
|
|
268
291
|
* @const
|
|
269
292
|
*/
|
|
270
293
|
"DENIED": "DENIED"
|
|
271
294
|
};
|
|
272
|
-
var _default = SocialGroup;
|
|
273
|
-
exports["default"] = _default;
|
|
295
|
+
var _default = exports["default"] = SocialGroup;
|
|
@@ -4,23 +4,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
-
|
|
10
8
|
var _Template = _interopRequireDefault(require("./Template"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
-
|
|
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); }
|
|
14
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
12
|
+
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); } }
|
|
13
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /**
|
|
16
|
+
* Gobodo API
|
|
17
|
+
* REST Interface for Gobodo API
|
|
18
|
+
*
|
|
19
|
+
* The version of the OpenAPI document: 0.1.7
|
|
20
|
+
* Contact: info@gobodo.io
|
|
21
|
+
*
|
|
22
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
+
* https://openapi-generator.tech
|
|
24
|
+
* Do not edit the class manually.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
20
27
|
/**
|
|
21
28
|
* The SocialGroupType model module.
|
|
22
29
|
* @module model/SocialGroupType
|
|
23
|
-
* @version 0.1.
|
|
30
|
+
* @version 0.1.7
|
|
24
31
|
*/
|
|
25
32
|
var SocialGroupType = /*#__PURE__*/function () {
|
|
26
33
|
/**
|
|
@@ -29,19 +36,18 @@ var SocialGroupType = /*#__PURE__*/function () {
|
|
|
29
36
|
*/
|
|
30
37
|
function SocialGroupType() {
|
|
31
38
|
_classCallCheck(this, SocialGroupType);
|
|
32
|
-
|
|
33
39
|
SocialGroupType.initialize(this);
|
|
34
40
|
}
|
|
41
|
+
|
|
35
42
|
/**
|
|
36
43
|
* Initializes the fields of this object.
|
|
37
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
45
|
* Only for internal use.
|
|
39
46
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
47
|
_createClass(SocialGroupType, null, [{
|
|
43
48
|
key: "initialize",
|
|
44
49
|
value: function initialize(obj) {}
|
|
50
|
+
|
|
45
51
|
/**
|
|
46
52
|
* Constructs a <code>SocialGroupType</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,101 +55,119 @@ var SocialGroupType = /*#__PURE__*/function () {
|
|
|
49
55
|
* @param {module:model/SocialGroupType} obj Optional instance to populate.
|
|
50
56
|
* @return {module:model/SocialGroupType} The populated <code>SocialGroupType</code> instance.
|
|
51
57
|
*/
|
|
52
|
-
|
|
53
58
|
}, {
|
|
54
59
|
key: "constructFromObject",
|
|
55
60
|
value: function constructFromObject(data, obj) {
|
|
56
61
|
if (data) {
|
|
57
62
|
obj = obj || new SocialGroupType();
|
|
58
|
-
|
|
59
63
|
if (data.hasOwnProperty('name')) {
|
|
60
64
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
61
65
|
}
|
|
62
|
-
|
|
63
66
|
if (data.hasOwnProperty('parent')) {
|
|
64
67
|
obj['parent'] = SocialGroupType.constructFromObject(data['parent']);
|
|
65
68
|
}
|
|
66
|
-
|
|
67
|
-
if (data.hasOwnProperty('singleDescription')) {
|
|
68
|
-
obj['singleDescription'] = _ApiClient["default"].convertToType(data['singleDescription'], 'String');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
69
|
if (data.hasOwnProperty('childTypes')) {
|
|
72
70
|
obj['childTypes'] = _ApiClient["default"].convertToType(data['childTypes'], Object);
|
|
73
71
|
}
|
|
74
|
-
|
|
72
|
+
if (data.hasOwnProperty('singleDescription')) {
|
|
73
|
+
obj['singleDescription'] = _ApiClient["default"].convertToType(data['singleDescription'], 'String');
|
|
74
|
+
}
|
|
75
75
|
if (data.hasOwnProperty('description')) {
|
|
76
76
|
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
77
77
|
}
|
|
78
|
-
|
|
79
78
|
if (data.hasOwnProperty('skinFields')) {
|
|
80
79
|
obj['skinFields'] = _ApiClient["default"].convertToType(data['skinFields'], Object);
|
|
81
80
|
}
|
|
82
|
-
|
|
83
81
|
if (data.hasOwnProperty('template')) {
|
|
84
82
|
obj['template'] = _Template["default"].constructFromObject(data['template']);
|
|
85
83
|
}
|
|
86
|
-
|
|
87
84
|
if (data.hasOwnProperty('data')) {
|
|
88
85
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
89
86
|
}
|
|
90
|
-
|
|
91
87
|
if (data.hasOwnProperty('id')) {
|
|
92
88
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
93
89
|
}
|
|
94
90
|
}
|
|
95
|
-
|
|
96
91
|
return obj;
|
|
97
92
|
}
|
|
98
|
-
}]);
|
|
99
93
|
|
|
94
|
+
/**
|
|
95
|
+
* Validates the JSON data with respect to <code>SocialGroupType</code>.
|
|
96
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
97
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SocialGroupType</code>.
|
|
98
|
+
*/
|
|
99
|
+
}, {
|
|
100
|
+
key: "validateJSON",
|
|
101
|
+
value: function validateJSON(data) {
|
|
102
|
+
// ensure the json data is a string
|
|
103
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
104
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
105
|
+
}
|
|
106
|
+
// validate the optional field `parent`
|
|
107
|
+
if (data['parent']) {
|
|
108
|
+
// data not null
|
|
109
|
+
SocialGroupType.validateJSON(data['parent']);
|
|
110
|
+
}
|
|
111
|
+
// ensure the json data is a string
|
|
112
|
+
if (data['singleDescription'] && !(typeof data['singleDescription'] === 'string' || data['singleDescription'] instanceof String)) {
|
|
113
|
+
throw new Error("Expected the field `singleDescription` to be a primitive type in the JSON string but got " + data['singleDescription']);
|
|
114
|
+
}
|
|
115
|
+
// ensure the json data is a string
|
|
116
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
118
|
+
}
|
|
119
|
+
// validate the optional field `template`
|
|
120
|
+
if (data['template']) {
|
|
121
|
+
// data not null
|
|
122
|
+
_Template["default"].validateJSON(data['template']);
|
|
123
|
+
}
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}]);
|
|
100
127
|
return SocialGroupType;
|
|
101
128
|
}();
|
|
102
129
|
/**
|
|
103
130
|
* @member {String} name
|
|
104
131
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
132
|
SocialGroupType.prototype['name'] = undefined;
|
|
133
|
+
|
|
108
134
|
/**
|
|
109
135
|
* @member {module:model/SocialGroupType} parent
|
|
110
136
|
*/
|
|
111
|
-
|
|
112
137
|
SocialGroupType.prototype['parent'] = undefined;
|
|
138
|
+
|
|
113
139
|
/**
|
|
114
|
-
* @member {
|
|
140
|
+
* @member {Object} childTypes
|
|
115
141
|
*/
|
|
142
|
+
SocialGroupType.prototype['childTypes'] = undefined;
|
|
116
143
|
|
|
117
|
-
SocialGroupType.prototype['singleDescription'] = undefined;
|
|
118
144
|
/**
|
|
119
|
-
* @member {
|
|
145
|
+
* @member {String} singleDescription
|
|
120
146
|
*/
|
|
147
|
+
SocialGroupType.prototype['singleDescription'] = undefined;
|
|
121
148
|
|
|
122
|
-
SocialGroupType.prototype['childTypes'] = undefined;
|
|
123
149
|
/**
|
|
124
150
|
* @member {String} description
|
|
125
151
|
*/
|
|
126
|
-
|
|
127
152
|
SocialGroupType.prototype['description'] = undefined;
|
|
153
|
+
|
|
128
154
|
/**
|
|
129
155
|
* @member {Object} skinFields
|
|
130
156
|
*/
|
|
131
|
-
|
|
132
157
|
SocialGroupType.prototype['skinFields'] = undefined;
|
|
158
|
+
|
|
133
159
|
/**
|
|
134
160
|
* @member {module:model/Template} template
|
|
135
161
|
*/
|
|
136
|
-
|
|
137
162
|
SocialGroupType.prototype['template'] = undefined;
|
|
163
|
+
|
|
138
164
|
/**
|
|
139
165
|
* @member {Object} data
|
|
140
166
|
*/
|
|
141
|
-
|
|
142
167
|
SocialGroupType.prototype['data'] = undefined;
|
|
168
|
+
|
|
143
169
|
/**
|
|
144
170
|
* @member {Number} id
|
|
145
171
|
*/
|
|
146
|
-
|
|
147
172
|
SocialGroupType.prototype['id'] = undefined;
|
|
148
|
-
var _default = SocialGroupType;
|
|
149
|
-
exports["default"] = _default;
|
|
173
|
+
var _default = exports["default"] = SocialGroupType;
|