@gobodo/gobodo-api 0.1.4 → 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 +25 -29
- 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 +590 -606
- 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 +100 -116
- 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 +43 -45
- 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 +28 -28
- 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 +67 -47
- package/dist/model/Article.js +110 -89
- 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 +122 -85
- 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 +129 -84
- package/dist/model/DocumentPartType.js +67 -40
- package/dist/model/DocumentType.js +77 -54
- package/dist/model/FieldMapping.js +41 -30
- package/dist/model/Fields.js +93 -108
- package/dist/model/File.js +58 -44
- 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 +77 -69
- 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 +86 -36
- package/dist/model/GraphObjectSchema.js +90 -62
- package/dist/model/GraphObjectType.js +91 -67
- package/dist/model/GraphObjectTypeSchema.js +110 -67
- 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 +89 -69
- package/dist/model/GraphTraversalInput.js +99 -60
- package/dist/model/Image.js +79 -61
- 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 +63 -35
- 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 +108 -68
- package/dist/model/MemberGroupCategory.js +44 -30
- package/dist/model/MemberList.js +35 -39
- package/dist/model/MessageGroup.js +43 -30
- package/dist/model/MultipartBody.js +36 -22
- package/dist/model/Objecttype.js +104 -64
- package/dist/model/Page.js +60 -47
- package/dist/model/PageSchema.js +79 -65
- 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 +38 -25
- 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 +93 -108
- 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 +108 -68
- package/dist/model/UserDataPayload.js +108 -68
- 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 +108 -68
- package/dist/model/UserTag.js +51 -32
- package/dist/model/Video.js +104 -85
- package/dist/model/VideoLiveUrl.js +46 -28
- package/dist/model/VideoSchema.js +122 -98
- 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,23 +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 _Filter = _interopRequireDefault(require("./Filter"));
|
|
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); }
|
|
11
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
14
|
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
|
-
|
|
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.6
|
|
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
|
+
*/
|
|
20
30
|
/**
|
|
21
31
|
* The FilterManager model module.
|
|
22
32
|
* @module model/FilterManager
|
|
23
|
-
* @version 0.1.
|
|
33
|
+
* @version 0.1.6
|
|
24
34
|
*/
|
|
25
35
|
var FilterManager = /*#__PURE__*/function () {
|
|
26
36
|
/**
|
|
@@ -29,19 +39,18 @@ var FilterManager = /*#__PURE__*/function () {
|
|
|
29
39
|
*/
|
|
30
40
|
function FilterManager() {
|
|
31
41
|
_classCallCheck(this, FilterManager);
|
|
32
|
-
|
|
33
42
|
FilterManager.initialize(this);
|
|
34
43
|
}
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
* Initializes the fields of this object.
|
|
37
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
48
|
* Only for internal use.
|
|
39
49
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
50
|
_createClass(FilterManager, null, [{
|
|
43
51
|
key: "initialize",
|
|
44
52
|
value: function initialize(obj) {}
|
|
53
|
+
|
|
45
54
|
/**
|
|
46
55
|
* Constructs a <code>FilterManager</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
56
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,38 +58,62 @@ var FilterManager = /*#__PURE__*/function () {
|
|
|
49
58
|
* @param {module:model/FilterManager} obj Optional instance to populate.
|
|
50
59
|
* @return {module:model/FilterManager} The populated <code>FilterManager</code> instance.
|
|
51
60
|
*/
|
|
52
|
-
|
|
53
61
|
}, {
|
|
54
62
|
key: "constructFromObject",
|
|
55
63
|
value: function constructFromObject(data, obj) {
|
|
56
64
|
if (data) {
|
|
57
65
|
obj = obj || new FilterManager();
|
|
58
|
-
|
|
59
66
|
if (data.hasOwnProperty('availableFilters')) {
|
|
60
67
|
obj['availableFilters'] = _ApiClient["default"].convertToType(data['availableFilters'], [_Filter["default"]]);
|
|
61
68
|
}
|
|
62
|
-
|
|
63
69
|
if (data.hasOwnProperty('filterCount')) {
|
|
64
70
|
obj['filterCount'] = _ApiClient["default"].convertToType(data['filterCount'], 'Number');
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
|
-
|
|
68
73
|
return obj;
|
|
69
74
|
}
|
|
70
|
-
}]);
|
|
71
75
|
|
|
76
|
+
/**
|
|
77
|
+
* Validates the JSON data with respect to <code>FilterManager</code>.
|
|
78
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FilterManager</code>.
|
|
80
|
+
*/
|
|
81
|
+
}, {
|
|
82
|
+
key: "validateJSON",
|
|
83
|
+
value: function validateJSON(data) {
|
|
84
|
+
if (data['availableFilters']) {
|
|
85
|
+
// data not null
|
|
86
|
+
// ensure the json data is an array
|
|
87
|
+
if (!Array.isArray(data['availableFilters'])) {
|
|
88
|
+
throw new Error("Expected the field `availableFilters` to be an array in the JSON data but got " + data['availableFilters']);
|
|
89
|
+
}
|
|
90
|
+
// validate the optional field `availableFilters` (array)
|
|
91
|
+
var _iterator = _createForOfIteratorHelper(data['availableFilters']),
|
|
92
|
+
_step;
|
|
93
|
+
try {
|
|
94
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
95
|
+
var item = _step.value;
|
|
96
|
+
_Filter["default"].validateJSON(item);
|
|
97
|
+
}
|
|
98
|
+
} catch (err) {
|
|
99
|
+
_iterator.e(err);
|
|
100
|
+
} finally {
|
|
101
|
+
_iterator.f();
|
|
102
|
+
}
|
|
103
|
+
;
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
}]);
|
|
72
108
|
return FilterManager;
|
|
73
109
|
}();
|
|
74
110
|
/**
|
|
75
111
|
* @member {Array.<module:model/Filter>} availableFilters
|
|
76
112
|
*/
|
|
77
|
-
|
|
78
|
-
|
|
79
113
|
FilterManager.prototype['availableFilters'] = undefined;
|
|
114
|
+
|
|
80
115
|
/**
|
|
81
116
|
* @member {Number} filterCount
|
|
82
117
|
*/
|
|
83
|
-
|
|
84
118
|
FilterManager.prototype['filterCount'] = undefined;
|
|
85
|
-
var _default = FilterManager;
|
|
86
|
-
exports["default"] = _default;
|
|
119
|
+
var _default = exports["default"] = FilterManager;
|
package/dist/model/Form.js
CHANGED
|
@@ -4,29 +4,36 @@ 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 _Fields = _interopRequireDefault(require("./Fields"));
|
|
11
|
-
|
|
12
9
|
var _FormSection = _interopRequireDefault(require("./FormSection"));
|
|
13
|
-
|
|
14
10
|
var _FormSubmission = _interopRequireDefault(require("./FormSubmission"));
|
|
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); }
|
|
14
|
+
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; } } }; }
|
|
15
|
+
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); }
|
|
16
|
+
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; }
|
|
20
17
|
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
|
-
|
|
18
|
+
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); } }
|
|
19
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
20
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
21
|
+
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); } /**
|
|
22
|
+
* Gobodo API
|
|
23
|
+
* REST Interface for Gobodo API
|
|
24
|
+
*
|
|
25
|
+
* The version of the OpenAPI document: 0.1.6
|
|
26
|
+
* Contact: info@gobodo.io
|
|
27
|
+
*
|
|
28
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
29
|
+
* https://openapi-generator.tech
|
|
30
|
+
* Do not edit the class manually.
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
26
33
|
/**
|
|
27
34
|
* The Form model module.
|
|
28
35
|
* @module model/Form
|
|
29
|
-
* @version 0.1.
|
|
36
|
+
* @version 0.1.6
|
|
30
37
|
*/
|
|
31
38
|
var Form = /*#__PURE__*/function () {
|
|
32
39
|
/**
|
|
@@ -35,19 +42,18 @@ var Form = /*#__PURE__*/function () {
|
|
|
35
42
|
*/
|
|
36
43
|
function Form() {
|
|
37
44
|
_classCallCheck(this, Form);
|
|
38
|
-
|
|
39
45
|
Form.initialize(this);
|
|
40
46
|
}
|
|
47
|
+
|
|
41
48
|
/**
|
|
42
49
|
* Initializes the fields of this object.
|
|
43
50
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
51
|
* Only for internal use.
|
|
45
52
|
*/
|
|
46
|
-
|
|
47
|
-
|
|
48
53
|
_createClass(Form, null, [{
|
|
49
54
|
key: "initialize",
|
|
50
55
|
value: function initialize(obj) {}
|
|
56
|
+
|
|
51
57
|
/**
|
|
52
58
|
* Constructs a <code>Form</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
59
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -55,120 +61,179 @@ var Form = /*#__PURE__*/function () {
|
|
|
55
61
|
* @param {module:model/Form} obj Optional instance to populate.
|
|
56
62
|
* @return {module:model/Form} The populated <code>Form</code> instance.
|
|
57
63
|
*/
|
|
58
|
-
|
|
59
64
|
}, {
|
|
60
65
|
key: "constructFromObject",
|
|
61
66
|
value: function constructFromObject(data, obj) {
|
|
62
67
|
if (data) {
|
|
63
68
|
obj = obj || new Form();
|
|
64
|
-
|
|
65
69
|
if (data.hasOwnProperty('name')) {
|
|
66
70
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
67
71
|
}
|
|
68
|
-
|
|
69
|
-
if (data.hasOwnProperty('status')) {
|
|
70
|
-
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
72
|
if (data.hasOwnProperty('description')) {
|
|
74
73
|
obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
|
|
75
74
|
}
|
|
76
|
-
|
|
75
|
+
if (data.hasOwnProperty('status')) {
|
|
76
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
77
|
+
}
|
|
77
78
|
if (data.hasOwnProperty('creator')) {
|
|
78
79
|
obj['creator'] = _User["default"].constructFromObject(data['creator']);
|
|
79
80
|
}
|
|
80
|
-
|
|
81
81
|
if (data.hasOwnProperty('submissions')) {
|
|
82
82
|
obj['submissions'] = _FormSubmission["default"].constructFromObject(data['submissions']);
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
if (data.hasOwnProperty('fields')) {
|
|
86
85
|
obj['fields'] = _ApiClient["default"].convertToType(data['fields'], [_Fields["default"]]);
|
|
87
86
|
}
|
|
88
|
-
|
|
89
87
|
if (data.hasOwnProperty('sections')) {
|
|
90
88
|
obj['sections'] = _ApiClient["default"].convertToType(data['sections'], [_FormSection["default"]]);
|
|
91
89
|
}
|
|
92
|
-
|
|
93
90
|
if (data.hasOwnProperty('data')) {
|
|
94
91
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
95
92
|
}
|
|
96
|
-
|
|
97
93
|
if (data.hasOwnProperty('id')) {
|
|
98
94
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
99
95
|
}
|
|
100
96
|
}
|
|
101
|
-
|
|
102
97
|
return obj;
|
|
103
98
|
}
|
|
104
|
-
}]);
|
|
105
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Validates the JSON data with respect to <code>Form</code>.
|
|
102
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
103
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Form</code>.
|
|
104
|
+
*/
|
|
105
|
+
}, {
|
|
106
|
+
key: "validateJSON",
|
|
107
|
+
value: function validateJSON(data) {
|
|
108
|
+
// ensure the json data is a string
|
|
109
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
|
|
115
|
+
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
119
|
+
}
|
|
120
|
+
// validate the optional field `creator`
|
|
121
|
+
if (data['creator']) {
|
|
122
|
+
// data not null
|
|
123
|
+
_User["default"].validateJSON(data['creator']);
|
|
124
|
+
}
|
|
125
|
+
// validate the optional field `submissions`
|
|
126
|
+
if (data['submissions']) {
|
|
127
|
+
// data not null
|
|
128
|
+
_FormSubmission["default"].validateJSON(data['submissions']);
|
|
129
|
+
}
|
|
130
|
+
if (data['fields']) {
|
|
131
|
+
// data not null
|
|
132
|
+
// ensure the json data is an array
|
|
133
|
+
if (!Array.isArray(data['fields'])) {
|
|
134
|
+
throw new Error("Expected the field `fields` to be an array in the JSON data but got " + data['fields']);
|
|
135
|
+
}
|
|
136
|
+
// validate the optional field `fields` (array)
|
|
137
|
+
var _iterator = _createForOfIteratorHelper(data['fields']),
|
|
138
|
+
_step;
|
|
139
|
+
try {
|
|
140
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
141
|
+
var item = _step.value;
|
|
142
|
+
_Fields["default"].validateJSON(item);
|
|
143
|
+
}
|
|
144
|
+
} catch (err) {
|
|
145
|
+
_iterator.e(err);
|
|
146
|
+
} finally {
|
|
147
|
+
_iterator.f();
|
|
148
|
+
}
|
|
149
|
+
;
|
|
150
|
+
}
|
|
151
|
+
if (data['sections']) {
|
|
152
|
+
// data not null
|
|
153
|
+
// ensure the json data is an array
|
|
154
|
+
if (!Array.isArray(data['sections'])) {
|
|
155
|
+
throw new Error("Expected the field `sections` to be an array in the JSON data but got " + data['sections']);
|
|
156
|
+
}
|
|
157
|
+
// validate the optional field `sections` (array)
|
|
158
|
+
var _iterator2 = _createForOfIteratorHelper(data['sections']),
|
|
159
|
+
_step2;
|
|
160
|
+
try {
|
|
161
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
162
|
+
var _item = _step2.value;
|
|
163
|
+
_FormSection["default"].validateJSON(_item);
|
|
164
|
+
}
|
|
165
|
+
} catch (err) {
|
|
166
|
+
_iterator2.e(err);
|
|
167
|
+
} finally {
|
|
168
|
+
_iterator2.f();
|
|
169
|
+
}
|
|
170
|
+
;
|
|
171
|
+
}
|
|
172
|
+
return true;
|
|
173
|
+
}
|
|
174
|
+
}]);
|
|
106
175
|
return Form;
|
|
107
176
|
}();
|
|
108
177
|
/**
|
|
109
178
|
* @member {String} name
|
|
110
179
|
*/
|
|
111
|
-
|
|
112
|
-
|
|
113
180
|
Form.prototype['name'] = undefined;
|
|
181
|
+
|
|
114
182
|
/**
|
|
115
|
-
* @member {
|
|
183
|
+
* @member {String} description
|
|
116
184
|
*/
|
|
185
|
+
Form.prototype['description'] = undefined;
|
|
117
186
|
|
|
118
|
-
Form.prototype['status'] = undefined;
|
|
119
187
|
/**
|
|
120
|
-
* @member {
|
|
188
|
+
* @member {module:model/Form.StatusEnum} status
|
|
121
189
|
*/
|
|
190
|
+
Form.prototype['status'] = undefined;
|
|
122
191
|
|
|
123
|
-
Form.prototype['description'] = undefined;
|
|
124
192
|
/**
|
|
125
193
|
* @member {module:model/User} creator
|
|
126
194
|
*/
|
|
127
|
-
|
|
128
195
|
Form.prototype['creator'] = undefined;
|
|
196
|
+
|
|
129
197
|
/**
|
|
130
198
|
* @member {module:model/FormSubmission} submissions
|
|
131
199
|
*/
|
|
132
|
-
|
|
133
200
|
Form.prototype['submissions'] = undefined;
|
|
201
|
+
|
|
134
202
|
/**
|
|
135
203
|
* @member {Array.<module:model/Fields>} fields
|
|
136
204
|
*/
|
|
137
|
-
|
|
138
205
|
Form.prototype['fields'] = undefined;
|
|
206
|
+
|
|
139
207
|
/**
|
|
140
208
|
* @member {Array.<module:model/FormSection>} sections
|
|
141
209
|
*/
|
|
142
|
-
|
|
143
210
|
Form.prototype['sections'] = undefined;
|
|
211
|
+
|
|
144
212
|
/**
|
|
145
213
|
* @member {Object} data
|
|
146
214
|
*/
|
|
147
|
-
|
|
148
215
|
Form.prototype['data'] = undefined;
|
|
216
|
+
|
|
149
217
|
/**
|
|
150
218
|
* @member {Number} id
|
|
151
219
|
*/
|
|
152
|
-
|
|
153
220
|
Form.prototype['id'] = undefined;
|
|
221
|
+
|
|
154
222
|
/**
|
|
155
223
|
* Allowed values for the <code>status</code> property.
|
|
156
224
|
* @enum {String}
|
|
157
225
|
* @readonly
|
|
158
226
|
*/
|
|
159
|
-
|
|
160
227
|
Form['StatusEnum'] = {
|
|
161
228
|
/**
|
|
162
229
|
* value: "UNDER_CONSTRUCTION"
|
|
163
230
|
* @const
|
|
164
231
|
*/
|
|
165
232
|
"UNDER_CONSTRUCTION": "UNDER_CONSTRUCTION",
|
|
166
|
-
|
|
167
233
|
/**
|
|
168
234
|
* value: "PUBLISHED"
|
|
169
235
|
* @const
|
|
170
236
|
*/
|
|
171
237
|
"PUBLISHED": "PUBLISHED"
|
|
172
238
|
};
|
|
173
|
-
var _default = Form;
|
|
174
|
-
exports["default"] = _default;
|
|
239
|
+
var _default = exports["default"] = Form;
|
|
@@ -4,23 +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 _Fields = _interopRequireDefault(require("./Fields"));
|
|
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); }
|
|
11
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
13
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
14
14
|
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
|
-
|
|
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.6
|
|
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
|
+
*/
|
|
20
30
|
/**
|
|
21
31
|
* The FormSection model module.
|
|
22
32
|
* @module model/FormSection
|
|
23
|
-
* @version 0.1.
|
|
33
|
+
* @version 0.1.6
|
|
24
34
|
*/
|
|
25
35
|
var FormSection = /*#__PURE__*/function () {
|
|
26
36
|
/**
|
|
@@ -29,19 +39,18 @@ var FormSection = /*#__PURE__*/function () {
|
|
|
29
39
|
*/
|
|
30
40
|
function FormSection() {
|
|
31
41
|
_classCallCheck(this, FormSection);
|
|
32
|
-
|
|
33
42
|
FormSection.initialize(this);
|
|
34
43
|
}
|
|
44
|
+
|
|
35
45
|
/**
|
|
36
46
|
* Initializes the fields of this object.
|
|
37
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
38
48
|
* Only for internal use.
|
|
39
49
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
50
|
_createClass(FormSection, null, [{
|
|
43
51
|
key: "initialize",
|
|
44
52
|
value: function initialize(obj) {}
|
|
53
|
+
|
|
45
54
|
/**
|
|
46
55
|
* Constructs a <code>FormSection</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
56
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
@@ -49,83 +58,127 @@ var FormSection = /*#__PURE__*/function () {
|
|
|
49
58
|
* @param {module:model/FormSection} obj Optional instance to populate.
|
|
50
59
|
* @return {module:model/FormSection} The populated <code>FormSection</code> instance.
|
|
51
60
|
*/
|
|
52
|
-
|
|
53
61
|
}, {
|
|
54
62
|
key: "constructFromObject",
|
|
55
63
|
value: function constructFromObject(data, obj) {
|
|
56
64
|
if (data) {
|
|
57
65
|
obj = obj || new FormSection();
|
|
58
|
-
|
|
59
66
|
if (data.hasOwnProperty('parentsectionid')) {
|
|
60
67
|
obj['parentsectionid'] = _ApiClient["default"].convertToType(data['parentsectionid'], 'Number');
|
|
61
68
|
}
|
|
62
|
-
|
|
63
69
|
if (data.hasOwnProperty('formid')) {
|
|
64
70
|
obj['formid'] = _ApiClient["default"].convertToType(data['formid'], 'Number');
|
|
65
71
|
}
|
|
66
|
-
|
|
67
72
|
if (data.hasOwnProperty('name')) {
|
|
68
73
|
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
69
74
|
}
|
|
70
|
-
|
|
71
75
|
if (data.hasOwnProperty('fields')) {
|
|
72
76
|
obj['fields'] = _ApiClient["default"].convertToType(data['fields'], [_Fields["default"]]);
|
|
73
77
|
}
|
|
74
|
-
|
|
75
78
|
if (data.hasOwnProperty('sections')) {
|
|
76
79
|
obj['sections'] = _ApiClient["default"].convertToType(data['sections'], [FormSection]);
|
|
77
80
|
}
|
|
78
|
-
|
|
79
81
|
if (data.hasOwnProperty('data')) {
|
|
80
82
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
81
83
|
}
|
|
82
|
-
|
|
83
84
|
if (data.hasOwnProperty('id')) {
|
|
84
85
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number');
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
|
-
|
|
88
88
|
return obj;
|
|
89
89
|
}
|
|
90
|
-
}]);
|
|
91
90
|
|
|
91
|
+
/**
|
|
92
|
+
* Validates the JSON data with respect to <code>FormSection</code>.
|
|
93
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>FormSection</code>.
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "validateJSON",
|
|
98
|
+
value: function validateJSON(data) {
|
|
99
|
+
// ensure the json data is a string
|
|
100
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
101
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
102
|
+
}
|
|
103
|
+
if (data['fields']) {
|
|
104
|
+
// data not null
|
|
105
|
+
// ensure the json data is an array
|
|
106
|
+
if (!Array.isArray(data['fields'])) {
|
|
107
|
+
throw new Error("Expected the field `fields` to be an array in the JSON data but got " + data['fields']);
|
|
108
|
+
}
|
|
109
|
+
// validate the optional field `fields` (array)
|
|
110
|
+
var _iterator = _createForOfIteratorHelper(data['fields']),
|
|
111
|
+
_step;
|
|
112
|
+
try {
|
|
113
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
114
|
+
var item = _step.value;
|
|
115
|
+
_Fields["default"].validateJSON(item);
|
|
116
|
+
}
|
|
117
|
+
} catch (err) {
|
|
118
|
+
_iterator.e(err);
|
|
119
|
+
} finally {
|
|
120
|
+
_iterator.f();
|
|
121
|
+
}
|
|
122
|
+
;
|
|
123
|
+
}
|
|
124
|
+
if (data['sections']) {
|
|
125
|
+
// data not null
|
|
126
|
+
// ensure the json data is an array
|
|
127
|
+
if (!Array.isArray(data['sections'])) {
|
|
128
|
+
throw new Error("Expected the field `sections` to be an array in the JSON data but got " + data['sections']);
|
|
129
|
+
}
|
|
130
|
+
// validate the optional field `sections` (array)
|
|
131
|
+
var _iterator2 = _createForOfIteratorHelper(data['sections']),
|
|
132
|
+
_step2;
|
|
133
|
+
try {
|
|
134
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
135
|
+
var _item = _step2.value;
|
|
136
|
+
FormSection.validateJSON(_item);
|
|
137
|
+
}
|
|
138
|
+
} catch (err) {
|
|
139
|
+
_iterator2.e(err);
|
|
140
|
+
} finally {
|
|
141
|
+
_iterator2.f();
|
|
142
|
+
}
|
|
143
|
+
;
|
|
144
|
+
}
|
|
145
|
+
return true;
|
|
146
|
+
}
|
|
147
|
+
}]);
|
|
92
148
|
return FormSection;
|
|
93
149
|
}();
|
|
94
150
|
/**
|
|
95
151
|
* @member {Number} parentsectionid
|
|
96
152
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
153
|
FormSection.prototype['parentsectionid'] = undefined;
|
|
154
|
+
|
|
100
155
|
/**
|
|
101
156
|
* @member {Number} formid
|
|
102
157
|
*/
|
|
103
|
-
|
|
104
158
|
FormSection.prototype['formid'] = undefined;
|
|
159
|
+
|
|
105
160
|
/**
|
|
106
161
|
* @member {String} name
|
|
107
162
|
*/
|
|
108
|
-
|
|
109
163
|
FormSection.prototype['name'] = undefined;
|
|
164
|
+
|
|
110
165
|
/**
|
|
111
166
|
* @member {Array.<module:model/Fields>} fields
|
|
112
167
|
*/
|
|
113
|
-
|
|
114
168
|
FormSection.prototype['fields'] = undefined;
|
|
169
|
+
|
|
115
170
|
/**
|
|
116
171
|
* @member {Array.<module:model/FormSection>} sections
|
|
117
172
|
*/
|
|
118
|
-
|
|
119
173
|
FormSection.prototype['sections'] = undefined;
|
|
174
|
+
|
|
120
175
|
/**
|
|
121
176
|
* @member {Object} data
|
|
122
177
|
*/
|
|
123
|
-
|
|
124
178
|
FormSection.prototype['data'] = undefined;
|
|
179
|
+
|
|
125
180
|
/**
|
|
126
181
|
* @member {Number} id
|
|
127
182
|
*/
|
|
128
|
-
|
|
129
183
|
FormSection.prototype['id'] = undefined;
|
|
130
|
-
var _default = FormSection;
|
|
131
|
-
exports["default"] = _default;
|
|
184
|
+
var _default = exports["default"] = FormSection;
|