@gobodo/gobodo-api 0.1.5 → 0.1.6
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 +157 -177
- package/dist/api/GraphRelationshipsApi.js +257 -296
- 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 +70 -50
- package/dist/model/Article.js +110 -89
- package/dist/model/Authorization.js +45 -24
- package/dist/model/Comment.js +68 -56
- 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 +141 -104
- package/dist/model/DataSheetImportPrivacySettings.js +33 -24
- package/dist/model/DataSheetImportSummary.js +62 -28
- package/dist/model/Document.js +136 -94
- package/dist/model/DocumentPart.js +126 -81
- package/dist/model/DocumentPartType.js +72 -45
- package/dist/model/DocumentType.js +84 -61
- package/dist/model/FieldMapping.js +41 -30
- package/dist/model/Fields.js +89 -104
- package/dist/model/File.js +61 -47
- package/dist/model/FileAttachmentUploadObject.js +63 -58
- package/dist/model/Filter.js +40 -22
- package/dist/model/FilterManager.js +56 -23
- package/dist/model/Form.js +112 -47
- 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 +84 -76
- package/dist/model/GraphAction.js +47 -39
- package/dist/model/GraphDatabaseService.js +43 -38
- package/dist/model/GraphGeocode.js +56 -35
- package/dist/model/GraphIteratorEntryPart.js +58 -24
- package/dist/model/GraphIteratorEntryPartStackTraceInner.js +166 -0
- package/dist/model/GraphObject.js +78 -55
- package/dist/model/GraphObjectPayload.js +80 -39
- package/dist/model/GraphObjectSchema.js +97 -69
- package/dist/model/GraphObjectType.js +97 -73
- package/dist/model/GraphObjectTypeSchema.js +116 -73
- package/dist/model/GraphOwner.js +37 -24
- package/dist/model/GraphRelation.js +48 -39
- package/dist/model/GraphRelationObjectObject.js +48 -39
- package/dist/model/GraphRelationship.js +48 -40
- package/dist/model/GraphRelationshipPayload.js +38 -26
- package/dist/model/GraphRelationshipType.js +100 -73
- package/dist/model/GraphSchema.js +106 -86
- package/dist/model/GraphTraversalInput.js +99 -60
- package/dist/model/Image.js +81 -63
- package/dist/model/ImageUploadObject.js +91 -73
- package/dist/model/InputPart.js +52 -36
- package/dist/model/InputPartMediaType.js +43 -28
- package/dist/model/Link.js +73 -45
- package/dist/model/LiveStreamInfo.js +45 -24
- package/dist/model/MeetingEvent.js +109 -76
- package/dist/model/MeetingEventTimezone.js +42 -26
- package/dist/model/MeetingInfo.js +48 -29
- package/dist/model/Member.js +104 -64
- 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 +110 -70
- package/dist/model/Page.js +60 -47
- package/dist/model/PageSchema.js +80 -66
- 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 +78 -62
- package/dist/model/PrivateMessageConversation.js +118 -81
- 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 +44 -31
- package/dist/model/PurgeDataDefaultResponseValue.js +133 -0
- package/dist/model/RelationshipMapping.js +71 -35
- package/dist/model/ScreenSchema.js +230 -89
- package/dist/model/SimulcastInfo.js +45 -24
- package/dist/model/SkinField.js +89 -104
- package/dist/model/SocialGroup.js +91 -69
- package/dist/model/SocialGroupType.js +61 -37
- 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 +104 -64
- package/dist/model/UserDataPayload.js +104 -64
- 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 +104 -64
- package/dist/model/UserTag.js +51 -32
- package/dist/model/Video.js +107 -88
- package/dist/model/VideoLiveUrl.js +46 -28
- package/dist/model/VideoSchema.js +125 -101
- package/dist/model/VideoUploadObject.js +129 -83
- package/dist/model/ZeusPortalCategory.js +72 -45
- package/package.json +3 -3
- 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,27 +4,35 @@ 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 _DocumentPartType = _interopRequireDefault(require("./DocumentPartType"));
|
|
11
|
-
|
|
12
9
|
var _Image = _interopRequireDefault(require("./Image"));
|
|
13
|
-
|
|
14
10
|
var _Member = _interopRequireDefault(require("./Member"));
|
|
15
|
-
|
|
16
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
-
|
|
12
|
+
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); }
|
|
13
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
14
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
15
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
18
16
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
function
|
|
23
|
-
|
|
17
|
+
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); } }
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
+
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); } /**
|
|
21
|
+
* Gobodo API
|
|
22
|
+
* REST Interface for Gobodo API
|
|
23
|
+
*
|
|
24
|
+
* The version of the OpenAPI document: 0.1.6
|
|
25
|
+
* Contact: info@gobodo.io
|
|
26
|
+
*
|
|
27
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
28
|
+
* https://openapi-generator.tech
|
|
29
|
+
* Do not edit the class manually.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
24
32
|
/**
|
|
25
33
|
* The DocumentPart model module.
|
|
26
34
|
* @module model/DocumentPart
|
|
27
|
-
* @version 0.1.
|
|
35
|
+
* @version 0.1.6
|
|
28
36
|
*/
|
|
29
37
|
var DocumentPart = /*#__PURE__*/function () {
|
|
30
38
|
/**
|
|
@@ -33,19 +41,18 @@ var DocumentPart = /*#__PURE__*/function () {
|
|
|
33
41
|
*/
|
|
34
42
|
function DocumentPart() {
|
|
35
43
|
_classCallCheck(this, DocumentPart);
|
|
36
|
-
|
|
37
44
|
DocumentPart.initialize(this);
|
|
38
45
|
}
|
|
46
|
+
|
|
39
47
|
/**
|
|
40
48
|
* Initializes the fields of this object.
|
|
41
49
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
50
|
* Only for internal use.
|
|
43
51
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
52
|
_createClass(DocumentPart, null, [{
|
|
47
53
|
key: "initialize",
|
|
48
54
|
value: function initialize(obj) {}
|
|
55
|
+
|
|
49
56
|
/**
|
|
50
57
|
* Constructs a <code>DocumentPart</code> from a plain JavaScript object, optionally creating a new instance.
|
|
51
58
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -53,191 +60,229 @@ var DocumentPart = /*#__PURE__*/function () {
|
|
|
53
60
|
* @param {module:model/DocumentPart} obj Optional instance to populate.
|
|
54
61
|
* @return {module:model/DocumentPart} The populated <code>DocumentPart</code> instance.
|
|
55
62
|
*/
|
|
56
|
-
|
|
57
63
|
}, {
|
|
58
64
|
key: "constructFromObject",
|
|
59
65
|
value: function constructFromObject(data, obj) {
|
|
60
66
|
if (data) {
|
|
61
67
|
obj = obj || new DocumentPart();
|
|
62
|
-
|
|
63
68
|
if (data.hasOwnProperty('documentparts')) {
|
|
64
69
|
obj['documentparts'] = _ApiClient["default"].convertToType(data['documentparts'], [DocumentPart]);
|
|
65
70
|
}
|
|
66
|
-
|
|
67
71
|
if (data.hasOwnProperty('creatorpageid')) {
|
|
68
72
|
obj['creatorpageid'] = _ApiClient["default"].convertToType(data['creatorpageid'], 'Number');
|
|
69
73
|
}
|
|
70
|
-
|
|
71
74
|
if (data.hasOwnProperty('documentparttypeid')) {
|
|
72
75
|
obj['documentparttypeid'] = _ApiClient["default"].convertToType(data['documentparttypeid'], 'Number');
|
|
73
76
|
}
|
|
74
|
-
|
|
75
77
|
if (data.hasOwnProperty('parentid')) {
|
|
76
78
|
obj['parentid'] = _ApiClient["default"].convertToType(data['parentid'], 'Number');
|
|
77
79
|
}
|
|
78
|
-
|
|
79
80
|
if (data.hasOwnProperty('body')) {
|
|
80
81
|
obj['body'] = _ApiClient["default"].convertToType(data['body'], 'String');
|
|
81
82
|
}
|
|
82
|
-
|
|
83
83
|
if (data.hasOwnProperty('creationdate')) {
|
|
84
84
|
obj['creationdate'] = _ApiClient["default"].convertToType(data['creationdate'], 'Date');
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
if (data.hasOwnProperty('childentryparts')) {
|
|
92
|
-
obj['childentryparts'] = _ApiClient["default"].convertToType(data['childentryparts'], Object);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (data.hasOwnProperty('documentparttype')) {
|
|
96
|
-
obj['documentparttype'] = _DocumentPartType["default"].constructFromObject(data['documentparttype']);
|
|
86
|
+
if (data.hasOwnProperty('modificationdate')) {
|
|
87
|
+
obj['modificationdate'] = _ApiClient["default"].convertToType(data['modificationdate'], 'Date');
|
|
97
88
|
}
|
|
98
|
-
|
|
99
89
|
if (data.hasOwnProperty('creator')) {
|
|
100
90
|
obj['creator'] = _ApiClient["default"].convertToType(data['creator'], 'String');
|
|
101
91
|
}
|
|
102
|
-
|
|
103
92
|
if (data.hasOwnProperty('articleid')) {
|
|
104
93
|
obj['articleid'] = _ApiClient["default"].convertToType(data['articleid'], 'Number');
|
|
105
94
|
}
|
|
106
|
-
|
|
107
95
|
if (data.hasOwnProperty('title')) {
|
|
108
96
|
obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
|
|
109
97
|
}
|
|
110
|
-
|
|
111
98
|
if (data.hasOwnProperty('childentrypartcount')) {
|
|
112
99
|
obj['childentrypartcount'] = _ApiClient["default"].convertToType(data['childentrypartcount'], 'Number');
|
|
113
100
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
obj['modificationdate'] = _ApiClient["default"].convertToType(data['modificationdate'], 'Date');
|
|
101
|
+
if (data.hasOwnProperty('status')) {
|
|
102
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
|
|
117
103
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
104
|
+
if (data.hasOwnProperty('childentryparts')) {
|
|
105
|
+
obj['childentryparts'] = _ApiClient["default"].convertToType(data['childentryparts'], Object);
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('documentparttype')) {
|
|
108
|
+
obj['documentparttype'] = _DocumentPartType["default"].constructFromObject(data['documentparttype']);
|
|
121
109
|
}
|
|
122
|
-
|
|
123
110
|
if (data.hasOwnProperty('modifier')) {
|
|
124
111
|
obj['modifier'] = _Member["default"].constructFromObject(data['modifier']);
|
|
125
112
|
}
|
|
126
|
-
|
|
113
|
+
if (data.hasOwnProperty('mainPhoto')) {
|
|
114
|
+
obj['mainPhoto'] = _Image["default"].constructFromObject(data['mainPhoto']);
|
|
115
|
+
}
|
|
127
116
|
if (data.hasOwnProperty('unfilteredText')) {
|
|
128
117
|
obj['unfilteredText'] = _ApiClient["default"].convertToType(data['unfilteredText'], 'String');
|
|
129
118
|
}
|
|
130
|
-
|
|
131
119
|
if (data.hasOwnProperty('data')) {
|
|
132
120
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
133
121
|
}
|
|
134
|
-
|
|
135
122
|
if (data.hasOwnProperty('id')) {
|
|
136
123
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
137
124
|
}
|
|
138
125
|
}
|
|
139
|
-
|
|
140
126
|
return obj;
|
|
141
127
|
}
|
|
142
|
-
}]);
|
|
143
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Validates the JSON data with respect to <code>DocumentPart</code>.
|
|
131
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
132
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DocumentPart</code>.
|
|
133
|
+
*/
|
|
134
|
+
}, {
|
|
135
|
+
key: "validateJSON",
|
|
136
|
+
value: function validateJSON(data) {
|
|
137
|
+
if (data['documentparts']) {
|
|
138
|
+
// data not null
|
|
139
|
+
// ensure the json data is an array
|
|
140
|
+
if (!Array.isArray(data['documentparts'])) {
|
|
141
|
+
throw new Error("Expected the field `documentparts` to be an array in the JSON data but got " + data['documentparts']);
|
|
142
|
+
}
|
|
143
|
+
// validate the optional field `documentparts` (array)
|
|
144
|
+
var _iterator = _createForOfIteratorHelper(data['documentparts']),
|
|
145
|
+
_step;
|
|
146
|
+
try {
|
|
147
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
148
|
+
var item = _step.value;
|
|
149
|
+
DocumentPart.validateJSON(item);
|
|
150
|
+
}
|
|
151
|
+
} catch (err) {
|
|
152
|
+
_iterator.e(err);
|
|
153
|
+
} finally {
|
|
154
|
+
_iterator.f();
|
|
155
|
+
}
|
|
156
|
+
;
|
|
157
|
+
}
|
|
158
|
+
// ensure the json data is a string
|
|
159
|
+
if (data['body'] && !(typeof data['body'] === 'string' || data['body'] instanceof String)) {
|
|
160
|
+
throw new Error("Expected the field `body` to be a primitive type in the JSON string but got " + data['body']);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is a string
|
|
163
|
+
if (data['creator'] && !(typeof data['creator'] === 'string' || data['creator'] instanceof String)) {
|
|
164
|
+
throw new Error("Expected the field `creator` to be a primitive type in the JSON string but got " + data['creator']);
|
|
165
|
+
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
|
|
169
|
+
}
|
|
170
|
+
// validate the optional field `documentparttype`
|
|
171
|
+
if (data['documentparttype']) {
|
|
172
|
+
// data not null
|
|
173
|
+
_DocumentPartType["default"].validateJSON(data['documentparttype']);
|
|
174
|
+
}
|
|
175
|
+
// validate the optional field `modifier`
|
|
176
|
+
if (data['modifier']) {
|
|
177
|
+
// data not null
|
|
178
|
+
_Member["default"].validateJSON(data['modifier']);
|
|
179
|
+
}
|
|
180
|
+
// validate the optional field `mainPhoto`
|
|
181
|
+
if (data['mainPhoto']) {
|
|
182
|
+
// data not null
|
|
183
|
+
_Image["default"].validateJSON(data['mainPhoto']);
|
|
184
|
+
}
|
|
185
|
+
// ensure the json data is a string
|
|
186
|
+
if (data['unfilteredText'] && !(typeof data['unfilteredText'] === 'string' || data['unfilteredText'] instanceof String)) {
|
|
187
|
+
throw new Error("Expected the field `unfilteredText` to be a primitive type in the JSON string but got " + data['unfilteredText']);
|
|
188
|
+
}
|
|
189
|
+
return true;
|
|
190
|
+
}
|
|
191
|
+
}]);
|
|
144
192
|
return DocumentPart;
|
|
145
193
|
}();
|
|
146
194
|
/**
|
|
147
195
|
* @member {Array.<module:model/DocumentPart>} documentparts
|
|
148
196
|
*/
|
|
149
|
-
|
|
150
|
-
|
|
151
197
|
DocumentPart.prototype['documentparts'] = undefined;
|
|
198
|
+
|
|
152
199
|
/**
|
|
153
200
|
* @member {Number} creatorpageid
|
|
154
201
|
*/
|
|
155
|
-
|
|
156
202
|
DocumentPart.prototype['creatorpageid'] = undefined;
|
|
203
|
+
|
|
157
204
|
/**
|
|
158
205
|
* @member {Number} documentparttypeid
|
|
159
206
|
*/
|
|
160
|
-
|
|
161
207
|
DocumentPart.prototype['documentparttypeid'] = undefined;
|
|
208
|
+
|
|
162
209
|
/**
|
|
163
210
|
* @member {Number} parentid
|
|
164
211
|
*/
|
|
165
|
-
|
|
166
212
|
DocumentPart.prototype['parentid'] = undefined;
|
|
213
|
+
|
|
167
214
|
/**
|
|
168
215
|
* @member {String} body
|
|
169
216
|
*/
|
|
170
|
-
|
|
171
217
|
DocumentPart.prototype['body'] = undefined;
|
|
218
|
+
|
|
172
219
|
/**
|
|
173
220
|
* @member {Date} creationdate
|
|
174
221
|
*/
|
|
175
|
-
|
|
176
222
|
DocumentPart.prototype['creationdate'] = undefined;
|
|
177
|
-
/**
|
|
178
|
-
* @member {Number} status
|
|
179
|
-
*/
|
|
180
223
|
|
|
181
|
-
DocumentPart.prototype['status'] = undefined;
|
|
182
224
|
/**
|
|
183
|
-
* @member {
|
|
184
|
-
*/
|
|
185
|
-
|
|
186
|
-
DocumentPart.prototype['childentryparts'] = undefined;
|
|
187
|
-
/**
|
|
188
|
-
* @member {module:model/DocumentPartType} documentparttype
|
|
225
|
+
* @member {Date} modificationdate
|
|
189
226
|
*/
|
|
227
|
+
DocumentPart.prototype['modificationdate'] = undefined;
|
|
190
228
|
|
|
191
|
-
DocumentPart.prototype['documentparttype'] = undefined;
|
|
192
229
|
/**
|
|
193
230
|
* @member {String} creator
|
|
194
231
|
*/
|
|
195
|
-
|
|
196
232
|
DocumentPart.prototype['creator'] = undefined;
|
|
233
|
+
|
|
197
234
|
/**
|
|
198
235
|
* @member {Number} articleid
|
|
199
236
|
*/
|
|
200
|
-
|
|
201
237
|
DocumentPart.prototype['articleid'] = undefined;
|
|
238
|
+
|
|
202
239
|
/**
|
|
203
240
|
* @member {String} title
|
|
204
241
|
*/
|
|
205
|
-
|
|
206
242
|
DocumentPart.prototype['title'] = undefined;
|
|
243
|
+
|
|
207
244
|
/**
|
|
208
245
|
* @member {Number} childentrypartcount
|
|
209
246
|
*/
|
|
210
|
-
|
|
211
247
|
DocumentPart.prototype['childentrypartcount'] = undefined;
|
|
248
|
+
|
|
212
249
|
/**
|
|
213
|
-
* @member {
|
|
250
|
+
* @member {Number} status
|
|
214
251
|
*/
|
|
252
|
+
DocumentPart.prototype['status'] = undefined;
|
|
215
253
|
|
|
216
|
-
DocumentPart.prototype['modificationdate'] = undefined;
|
|
217
254
|
/**
|
|
218
|
-
* @member {
|
|
255
|
+
* @member {Object} childentryparts
|
|
219
256
|
*/
|
|
257
|
+
DocumentPart.prototype['childentryparts'] = undefined;
|
|
220
258
|
|
|
221
|
-
DocumentPart.prototype['mainPhoto'] = undefined;
|
|
222
259
|
/**
|
|
223
|
-
* @member {module:model/
|
|
260
|
+
* @member {module:model/DocumentPartType} documentparttype
|
|
224
261
|
*/
|
|
262
|
+
DocumentPart.prototype['documentparttype'] = undefined;
|
|
225
263
|
|
|
264
|
+
/**
|
|
265
|
+
* @member {module:model/Member} modifier
|
|
266
|
+
*/
|
|
226
267
|
DocumentPart.prototype['modifier'] = undefined;
|
|
268
|
+
|
|
227
269
|
/**
|
|
228
|
-
* @member {
|
|
270
|
+
* @member {module:model/Image} mainPhoto
|
|
229
271
|
*/
|
|
272
|
+
DocumentPart.prototype['mainPhoto'] = undefined;
|
|
230
273
|
|
|
274
|
+
/**
|
|
275
|
+
* @member {String} unfilteredText
|
|
276
|
+
*/
|
|
231
277
|
DocumentPart.prototype['unfilteredText'] = undefined;
|
|
278
|
+
|
|
232
279
|
/**
|
|
233
280
|
* @member {Object} data
|
|
234
281
|
*/
|
|
235
|
-
|
|
236
282
|
DocumentPart.prototype['data'] = undefined;
|
|
283
|
+
|
|
237
284
|
/**
|
|
238
285
|
* @member {Number} id
|
|
239
286
|
*/
|
|
240
|
-
|
|
241
287
|
DocumentPart.prototype['id'] = undefined;
|
|
242
|
-
var _default = DocumentPart;
|
|
243
|
-
exports["default"] = _default;
|
|
288
|
+
var _default = exports["default"] = DocumentPart;
|
|
@@ -4,25 +4,31 @@ 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 _GraphObjectType = _interopRequireDefault(require("./GraphObjectType"));
|
|
11
|
-
|
|
12
9
|
var _Template = _interopRequireDefault(require("./Template"));
|
|
13
|
-
|
|
14
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
-
|
|
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); }
|
|
16
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
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(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); } /**
|
|
17
|
+
* Gobodo API
|
|
18
|
+
* REST Interface for Gobodo API
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 0.1.6
|
|
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
|
+
*/
|
|
22
28
|
/**
|
|
23
29
|
* The DocumentPartType model module.
|
|
24
30
|
* @module model/DocumentPartType
|
|
25
|
-
* @version 0.1.
|
|
31
|
+
* @version 0.1.6
|
|
26
32
|
*/
|
|
27
33
|
var DocumentPartType = /*#__PURE__*/function () {
|
|
28
34
|
/**
|
|
@@ -31,19 +37,18 @@ var DocumentPartType = /*#__PURE__*/function () {
|
|
|
31
37
|
*/
|
|
32
38
|
function DocumentPartType() {
|
|
33
39
|
_classCallCheck(this, DocumentPartType);
|
|
34
|
-
|
|
35
40
|
DocumentPartType.initialize(this);
|
|
36
41
|
}
|
|
42
|
+
|
|
37
43
|
/**
|
|
38
44
|
* Initializes the fields of this object.
|
|
39
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
46
|
* Only for internal use.
|
|
41
47
|
*/
|
|
42
|
-
|
|
43
|
-
|
|
44
48
|
_createClass(DocumentPartType, null, [{
|
|
45
49
|
key: "initialize",
|
|
46
50
|
value: function initialize(obj) {}
|
|
51
|
+
|
|
47
52
|
/**
|
|
48
53
|
* Constructs a <code>DocumentPartType</code> from a plain JavaScript object, optionally creating a new instance.
|
|
49
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -51,110 +56,132 @@ var DocumentPartType = /*#__PURE__*/function () {
|
|
|
51
56
|
* @param {module:model/DocumentPartType} obj Optional instance to populate.
|
|
52
57
|
* @return {module:model/DocumentPartType} The populated <code>DocumentPartType</code> instance.
|
|
53
58
|
*/
|
|
54
|
-
|
|
55
59
|
}, {
|
|
56
60
|
key: "constructFromObject",
|
|
57
61
|
value: function constructFromObject(data, obj) {
|
|
58
62
|
if (data) {
|
|
59
63
|
obj = obj || new DocumentPartType();
|
|
60
|
-
|
|
61
64
|
if (data.hasOwnProperty('name')) {
|
|
62
65
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
63
66
|
}
|
|
64
|
-
|
|
65
67
|
if (data.hasOwnProperty('parent')) {
|
|
66
68
|
obj['parent'] = DocumentPartType.constructFromObject(data['parent']);
|
|
67
69
|
}
|
|
68
|
-
|
|
69
70
|
if (data.hasOwnProperty('singleDescription')) {
|
|
70
71
|
obj['singleDescription'] = _ApiClient["default"].convertToType(data['singleDescription'], 'String');
|
|
71
72
|
}
|
|
72
|
-
|
|
73
|
-
if (data.hasOwnProperty('childTypes')) {
|
|
74
|
-
obj['childTypes'] = _ApiClient["default"].convertToType(data['childTypes'], Object);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
73
|
if (data.hasOwnProperty('entryTypes')) {
|
|
78
74
|
obj['entryTypes'] = _ApiClient["default"].convertToType(data['entryTypes'], Object);
|
|
79
75
|
}
|
|
80
|
-
|
|
76
|
+
if (data.hasOwnProperty('childTypes')) {
|
|
77
|
+
obj['childTypes'] = _ApiClient["default"].convertToType(data['childTypes'], Object);
|
|
78
|
+
}
|
|
81
79
|
if (data.hasOwnProperty('description')) {
|
|
82
80
|
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
83
81
|
}
|
|
84
|
-
|
|
85
82
|
if (data.hasOwnProperty('template')) {
|
|
86
83
|
obj['template'] = _Template["default"].constructFromObject(data['template']);
|
|
87
84
|
}
|
|
88
|
-
|
|
89
85
|
if (data.hasOwnProperty('graphObjectType')) {
|
|
90
86
|
obj['graphObjectType'] = _GraphObjectType["default"].constructFromObject(data['graphObjectType']);
|
|
91
87
|
}
|
|
92
|
-
|
|
93
88
|
if (data.hasOwnProperty('data')) {
|
|
94
89
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
95
90
|
}
|
|
96
|
-
|
|
97
91
|
if (data.hasOwnProperty('id')) {
|
|
98
92
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
99
93
|
}
|
|
100
94
|
}
|
|
101
|
-
|
|
102
95
|
return obj;
|
|
103
96
|
}
|
|
104
|
-
}]);
|
|
105
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Validates the JSON data with respect to <code>DocumentPartType</code>.
|
|
100
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
101
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>DocumentPartType</code>.
|
|
102
|
+
*/
|
|
103
|
+
}, {
|
|
104
|
+
key: "validateJSON",
|
|
105
|
+
value: function validateJSON(data) {
|
|
106
|
+
// ensure the json data is a string
|
|
107
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
109
|
+
}
|
|
110
|
+
// validate the optional field `parent`
|
|
111
|
+
if (data['parent']) {
|
|
112
|
+
// data not null
|
|
113
|
+
DocumentPartType.validateJSON(data['parent']);
|
|
114
|
+
}
|
|
115
|
+
// ensure the json data is a string
|
|
116
|
+
if (data['singleDescription'] && !(typeof data['singleDescription'] === 'string' || data['singleDescription'] instanceof String)) {
|
|
117
|
+
throw new Error("Expected the field `singleDescription` to be a primitive type in the JSON string but got " + data['singleDescription']);
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
122
|
+
}
|
|
123
|
+
// validate the optional field `template`
|
|
124
|
+
if (data['template']) {
|
|
125
|
+
// data not null
|
|
126
|
+
_Template["default"].validateJSON(data['template']);
|
|
127
|
+
}
|
|
128
|
+
// validate the optional field `graphObjectType`
|
|
129
|
+
if (data['graphObjectType']) {
|
|
130
|
+
// data not null
|
|
131
|
+
_GraphObjectType["default"].validateJSON(data['graphObjectType']);
|
|
132
|
+
}
|
|
133
|
+
return true;
|
|
134
|
+
}
|
|
135
|
+
}]);
|
|
106
136
|
return DocumentPartType;
|
|
107
137
|
}();
|
|
108
138
|
/**
|
|
109
139
|
* @member {String} name
|
|
110
140
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
141
|
DocumentPartType.prototype['name'] = undefined;
|
|
142
|
+
|
|
114
143
|
/**
|
|
115
144
|
* @member {module:model/DocumentPartType} parent
|
|
116
145
|
*/
|
|
117
|
-
|
|
118
146
|
DocumentPartType.prototype['parent'] = undefined;
|
|
147
|
+
|
|
119
148
|
/**
|
|
120
149
|
* @member {String} singleDescription
|
|
121
150
|
*/
|
|
122
|
-
|
|
123
151
|
DocumentPartType.prototype['singleDescription'] = undefined;
|
|
152
|
+
|
|
124
153
|
/**
|
|
125
|
-
* @member {Object}
|
|
154
|
+
* @member {Object} entryTypes
|
|
126
155
|
*/
|
|
156
|
+
DocumentPartType.prototype['entryTypes'] = undefined;
|
|
127
157
|
|
|
128
|
-
DocumentPartType.prototype['childTypes'] = undefined;
|
|
129
158
|
/**
|
|
130
|
-
* @member {Object}
|
|
159
|
+
* @member {Object} childTypes
|
|
131
160
|
*/
|
|
161
|
+
DocumentPartType.prototype['childTypes'] = undefined;
|
|
132
162
|
|
|
133
|
-
DocumentPartType.prototype['entryTypes'] = undefined;
|
|
134
163
|
/**
|
|
135
164
|
* @member {String} description
|
|
136
165
|
*/
|
|
137
|
-
|
|
138
166
|
DocumentPartType.prototype['description'] = undefined;
|
|
167
|
+
|
|
139
168
|
/**
|
|
140
169
|
* @member {module:model/Template} template
|
|
141
170
|
*/
|
|
142
|
-
|
|
143
171
|
DocumentPartType.prototype['template'] = undefined;
|
|
172
|
+
|
|
144
173
|
/**
|
|
145
174
|
* @member {module:model/GraphObjectType} graphObjectType
|
|
146
175
|
*/
|
|
147
|
-
|
|
148
176
|
DocumentPartType.prototype['graphObjectType'] = undefined;
|
|
177
|
+
|
|
149
178
|
/**
|
|
150
179
|
* @member {Object} data
|
|
151
180
|
*/
|
|
152
|
-
|
|
153
181
|
DocumentPartType.prototype['data'] = undefined;
|
|
182
|
+
|
|
154
183
|
/**
|
|
155
184
|
* @member {Number} id
|
|
156
185
|
*/
|
|
157
|
-
|
|
158
186
|
DocumentPartType.prototype['id'] = undefined;
|
|
159
|
-
var _default = DocumentPartType;
|
|
160
|
-
exports["default"] = _default;
|
|
187
|
+
var _default = exports["default"] = DocumentPartType;
|