@gobodo/gobodo-api 0.1.2
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 +742 -0
- package/dist/ApiClient.js +781 -0
- package/dist/api/ActionTypesApi.js +97 -0
- package/dist/api/AdCampaignsApi.js +392 -0
- package/dist/api/AdManagementApi.js +563 -0
- package/dist/api/AdminDataManagementApi.js +97 -0
- package/dist/api/AdsApi.js +301 -0
- package/dist/api/AttachmentsApi.js +361 -0
- package/dist/api/AuthenticationApi.js +292 -0
- package/dist/api/CategoriesApi.js +353 -0
- package/dist/api/CommentsApi.js +408 -0
- package/dist/api/ContentManagementApi.js +1171 -0
- package/dist/api/ConversationsApi.js +434 -0
- package/dist/api/DataSheetImportsApi.js +828 -0
- package/dist/api/DefaultApi.js +548 -0
- package/dist/api/DocumentsApi.js +635 -0
- package/dist/api/EntryPartsApi.js +670 -0
- package/dist/api/FacebookApi.js +80 -0
- package/dist/api/FieldsApi.js +199 -0
- package/dist/api/FilesApi.js +95 -0
- package/dist/api/FormsApi.js +885 -0
- package/dist/api/FunctionsApi.js +96 -0
- package/dist/api/GeocodeApi.js +277 -0
- package/dist/api/GoogleApi.js +80 -0
- package/dist/api/GraphActionsApi.js +523 -0
- package/dist/api/GraphObjectTypesApi.js +413 -0
- package/dist/api/GraphObjectsApi.js +3077 -0
- package/dist/api/GraphRelationshipTypesApi.js +831 -0
- package/dist/api/GraphRelationshipsApi.js +1500 -0
- package/dist/api/GraphSchemasApi.js +365 -0
- package/dist/api/GraphTraversalApi.js +291 -0
- package/dist/api/GraphsApi.js +571 -0
- package/dist/api/GroupsApi.js +568 -0
- package/dist/api/IAMApi.js +211 -0
- package/dist/api/ImagesApi.js +414 -0
- package/dist/api/InvitesApi.js +268 -0
- package/dist/api/LikesApi.js +601 -0
- package/dist/api/LinkedINApi.js +80 -0
- package/dist/api/LiveMeetingsApi.js +145 -0
- package/dist/api/MeetingEventsApi.js +286 -0
- package/dist/api/PagesApi.js +475 -0
- package/dist/api/PostsApi.js +262 -0
- package/dist/api/PrivateMessagesApi.js +752 -0
- package/dist/api/PublicationsApi.js +86 -0
- package/dist/api/ScreensApi.js +183 -0
- package/dist/api/SocialIntegrationApi.js +188 -0
- package/dist/api/StripeAccountsApi.js +461 -0
- package/dist/api/TagsApi.js +96 -0
- package/dist/api/TemplatesApi.js +183 -0
- package/dist/api/ThemeMappingsApi.js +178 -0
- package/dist/api/TransactionsApi.js +147 -0
- package/dist/api/TwitterApi.js +80 -0
- package/dist/api/UserTagsApi.js +467 -0
- package/dist/api/UsersApi.js +466 -0
- package/dist/api/UtilsApi.js +75 -0
- package/dist/api/VideosApi.js +564 -0
- package/dist/index.js +1295 -0
- package/dist/model/APIClient.js +180 -0
- package/dist/model/Account.js +315 -0
- package/dist/model/AchCreditTransfer.js +122 -0
- package/dist/model/AchDebit.js +140 -0
- package/dist/model/AcssDebit.js +106 -0
- package/dist/model/AddInvoiceItem.js +126 -0
- package/dist/model/Address.js +140 -0
- package/dist/model/Affirm.js +104 -0
- package/dist/model/AfterpayClearpay.js +113 -0
- package/dist/model/Alipay.js +95 -0
- package/dist/model/AlternateStatementDescriptors.js +104 -0
- package/dist/model/Alternative.js +104 -0
- package/dist/model/AmexExpressCheckout.js +86 -0
- package/dist/model/AmountDetails.js +97 -0
- package/dist/model/ApplePay.js +86 -0
- package/dist/model/Application.js +122 -0
- package/dist/model/ApplicationFee.js +267 -0
- package/dist/model/AppliesTo.js +95 -0
- package/dist/model/Article.js +272 -0
- package/dist/model/AuBecsDebit.js +95 -0
- package/dist/model/Authorization.js +93 -0
- package/dist/model/AutomaticPaymentMethodsPaymentIntent.js +95 -0
- package/dist/model/AutomaticTax.js +95 -0
- package/dist/model/BacsDebit.js +95 -0
- package/dist/model/BacsDebitPayments.js +95 -0
- package/dist/model/BalanceSettings.js +95 -0
- package/dist/model/BalanceTransaction.js +234 -0
- package/dist/model/BalanceTransactionSource.js +84 -0
- package/dist/model/Bancontact.js +180 -0
- package/dist/model/BankTransfer.js +106 -0
- package/dist/model/BillingDetails.js +124 -0
- package/dist/model/BillingThresholds.js +95 -0
- package/dist/model/Blik.js +86 -0
- package/dist/model/BlikMandateOptions.js +115 -0
- package/dist/model/BlikMandateOptionsOffSessionDetails.js +122 -0
- package/dist/model/Boleto.js +95 -0
- package/dist/model/Breakdown.js +108 -0
- package/dist/model/BusinessProfile.js +160 -0
- package/dist/model/Capabilities.js +383 -0
- package/dist/model/Card.js +247 -0
- package/dist/model/CardPresent.js +268 -0
- package/dist/model/CashBalance.js +135 -0
- package/dist/model/Charge.js +706 -0
- package/dist/model/ChargeCollection.js +146 -0
- package/dist/model/Checks.js +113 -0
- package/dist/model/Comment.js +210 -0
- package/dist/model/Company.js +238 -0
- package/dist/model/Computed.js +108 -0
- package/dist/model/Controller.js +104 -0
- package/dist/model/Coordinates.js +84 -0
- package/dist/model/Coupon.js +256 -0
- package/dist/model/CreateAccountResponse.js +95 -0
- package/dist/model/CreateAccountResponseFailureException.js +117 -0
- package/dist/model/CreateAccountResponseFailureExceptionCause.js +106 -0
- package/dist/model/CreateAccountResponseFailureExceptionCauseStackTrace.js +138 -0
- package/dist/model/CreateAccountResponseFailureExceptionCauseSuppressed.js +95 -0
- package/dist/model/CreateCustomerResponse.js +95 -0
- package/dist/model/CreateStripeAccountInput.js +129 -0
- package/dist/model/CreateStripeCustomerInput.js +95 -0
- package/dist/model/CreditedItems.js +104 -0
- package/dist/model/CurrencyOption.js +135 -0
- package/dist/model/CurrentPhase.js +104 -0
- package/dist/model/CustomField.js +104 -0
- package/dist/model/CustomUnitAmount.js +113 -0
- package/dist/model/Customer.js +400 -0
- package/dist/model/CustomerAcceptance.js +126 -0
- package/dist/model/CustomerBalance.js +86 -0
- package/dist/model/CustomerNotification.js +104 -0
- package/dist/model/CustomerTaxId.js +104 -0
- package/dist/model/DataObject.js +84 -0
- package/dist/model/DataSheetImport.js +320 -0
- package/dist/model/DataSheetImportPrivacySettings.js +93 -0
- package/dist/model/DataSheetImportSummary.js +120 -0
- package/dist/model/DateOfBirth.js +113 -0
- package/dist/model/DeclineChargeOn.js +104 -0
- package/dist/model/DefaultSettings.js +177 -0
- package/dist/model/Discount.js +104 -0
- package/dist/model/DiscountAmount.js +115 -0
- package/dist/model/Dispute.js +260 -0
- package/dist/model/Document.js +292 -0
- package/dist/model/DocumentPart.js +243 -0
- package/dist/model/DocumentPartType.js +160 -0
- package/dist/model/DocumentType.js +196 -0
- package/dist/model/EmailSent.js +104 -0
- package/dist/model/Eps.js +104 -0
- package/dist/model/Errors.js +113 -0
- package/dist/model/EuBankTransfer.js +95 -0
- package/dist/model/Evidence.js +410 -0
- package/dist/model/EvidenceDetails.js +122 -0
- package/dist/model/ExternalAccount.js +84 -0
- package/dist/model/ExternalAccountCollection.js +146 -0
- package/dist/model/Familymart.js +104 -0
- package/dist/model/Fee.js +131 -0
- package/dist/model/FeeRefund.js +182 -0
- package/dist/model/FeeRefundCollection.js +146 -0
- package/dist/model/FieldMapping.js +139 -0
- package/dist/model/Fields.js +462 -0
- package/dist/model/File.js +156 -0
- package/dist/model/FileAttachmentUpload.js +88 -0
- package/dist/model/FileAttachmentUploadObject.js +165 -0
- package/dist/model/FileLink.js +178 -0
- package/dist/model/FileLinkCollection.js +146 -0
- package/dist/model/Filter.js +84 -0
- package/dist/model/FilterManager.js +86 -0
- package/dist/model/FinancialAddress.js +148 -0
- package/dist/model/FinancialConnections.js +95 -0
- package/dist/model/Form.js +174 -0
- package/dist/model/FormSection.js +131 -0
- package/dist/model/FormSubmission.js +134 -0
- package/dist/model/Fpx.js +113 -0
- package/dist/model/FraudDetails.js +104 -0
- package/dist/model/FromQuote.js +115 -0
- package/dist/model/FutureRequirements.js +144 -0
- package/dist/model/GeneratedFrom.js +126 -0
- package/dist/model/Geocode.js +106 -0
- package/dist/model/GeocodePayload.js +88 -0
- package/dist/model/GeolocationInput.js +132 -0
- package/dist/model/Giropay.js +122 -0
- package/dist/model/GooglePay.js +86 -0
- package/dist/model/Grabpay.js +95 -0
- package/dist/model/Graph.js +213 -0
- package/dist/model/GraphAction.js +140 -0
- package/dist/model/GraphDatabaseService.js +129 -0
- package/dist/model/GraphGeocode.js +136 -0
- package/dist/model/GraphIteratorEntryPart.js +77 -0
- package/dist/model/GraphIteratorEntryPartStackTrace.js +138 -0
- package/dist/model/GraphObject.js +192 -0
- package/dist/model/GraphObjectDescriptorSchema.js +179 -0
- package/dist/model/GraphObjectPayload.js +151 -0
- package/dist/model/GraphObjectSchema.js +223 -0
- package/dist/model/GraphObjectType.js +254 -0
- package/dist/model/GraphObjectTypeSchema.js +254 -0
- package/dist/model/GraphOwner.js +93 -0
- package/dist/model/GraphRelation.js +133 -0
- package/dist/model/GraphRelationObjectObject.js +133 -0
- package/dist/model/GraphRelationship.js +143 -0
- package/dist/model/GraphRelationshipPayload.js +104 -0
- package/dist/model/GraphRelationshipType.js +309 -0
- package/dist/model/GraphSchema.js +262 -0
- package/dist/model/GraphTraversalInput.js +255 -0
- package/dist/model/Iban.js +122 -0
- package/dist/model/Ideal.js +162 -0
- package/dist/model/Image.js +192 -0
- package/dist/model/ImageUpload.js +88 -0
- package/dist/model/ImageUploadObject.js +192 -0
- package/dist/model/InlineObject.js +124 -0
- package/dist/model/InlineObject1.js +124 -0
- package/dist/model/InlineObject2.js +124 -0
- package/dist/model/InlineObject3.js +124 -0
- package/dist/model/InlineObject4.js +124 -0
- package/dist/model/InlineObject5.js +124 -0
- package/dist/model/InlineResponseDefault.js +124 -0
- package/dist/model/InputPart.js +106 -0
- package/dist/model/InputPartMediaType.js +113 -0
- package/dist/model/Installments.js +97 -0
- package/dist/model/InteracPresent.js +241 -0
- package/dist/model/Invoice.js +925 -0
- package/dist/model/InvoiceLineItem.js +329 -0
- package/dist/model/InvoiceLineItemCollection.js +146 -0
- package/dist/model/InvoiceLineItemPeriod.js +104 -0
- package/dist/model/InvoiceSettings.js +95 -0
- package/dist/model/JapanAddress.js +149 -0
- package/dist/model/JsonArray.js +252 -0
- package/dist/model/JsonNull.js +252 -0
- package/dist/model/JsonObject.js +252 -0
- package/dist/model/JsonPrimitive.js +288 -0
- package/dist/model/Klarna.js +104 -0
- package/dist/model/Konbini.js +97 -0
- package/dist/model/Lawson.js +104 -0
- package/dist/model/Level3.js +142 -0
- package/dist/model/LineItem.js +220 -0
- package/dist/model/LineItemCollection.js +146 -0
- package/dist/model/Link.js +140 -0
- package/dist/model/LiveStreamInfo.js +94 -0
- package/dist/model/Location.js +113 -0
- package/dist/model/Mandate.js +195 -0
- package/dist/model/MandateOptions.js +95 -0
- package/dist/model/Masterpass.js +124 -0
- package/dist/model/MeetingEvent.js +251 -0
- package/dist/model/MeetingEventTimezone.js +102 -0
- package/dist/model/MeetingInfo.js +126 -0
- package/dist/model/Member.js +212 -0
- package/dist/model/MemberGroupCategory.js +120 -0
- package/dist/model/MemberList.js +101 -0
- package/dist/model/MessageGroup.js +95 -0
- package/dist/model/Ministop.js +104 -0
- package/dist/model/MultiUse.js +86 -0
- package/dist/model/Multibanco.js +104 -0
- package/dist/model/MultipartBody.js +84 -0
- package/dist/model/MultipartFormDataInput.js +108 -0
- package/dist/model/Networks.js +104 -0
- package/dist/model/NextAction.js +249 -0
- package/dist/model/NextActionAlipayHandleRedirect.js +122 -0
- package/dist/model/NextActionCardAwaitNotification.js +104 -0
- package/dist/model/NextActionDisplayBankTransferInstructions.js +142 -0
- package/dist/model/NextActionDisplayBoletoDetails.js +122 -0
- package/dist/model/NextActionDisplayDetails.js +106 -0
- package/dist/model/NextActionKonbiniDisplayDetails.js +115 -0
- package/dist/model/NextActionOxxoDisplayDetails.js +113 -0
- package/dist/model/NextActionRedirectToUrl.js +104 -0
- package/dist/model/Objecttype.js +244 -0
- package/dist/model/Offline.js +86 -0
- package/dist/model/Online.js +104 -0
- package/dist/model/Outcome.js +160 -0
- package/dist/model/OwnershipDeclaration.js +113 -0
- package/dist/model/Oxxo.js +95 -0
- package/dist/model/P24.js +113 -0
- package/dist/model/PackageDimensions.js +122 -0
- package/dist/model/Page.js +169 -0
- package/dist/model/PageSchema.js +229 -0
- package/dist/model/Pageable.js +122 -0
- package/dist/model/Path.js +77 -0
- package/dist/model/PauseCollection.js +104 -0
- package/dist/model/PaymentIntent.js +534 -0
- package/dist/model/PaymentIntentInput.js +102 -0
- package/dist/model/PaymentIntentResponse.js +84 -0
- package/dist/model/PaymentMethod.js +120 -0
- package/dist/model/PaymentMethodDetails.js +480 -0
- package/dist/model/PaymentMethodOptions.js +152 -0
- package/dist/model/PaymentSettings.js +115 -0
- package/dist/model/PaymentSource.js +84 -0
- package/dist/model/PaymentSourceCollection.js +146 -0
- package/dist/model/Paynow.js +95 -0
- package/dist/model/PaynowDisplayQrCode.js +113 -0
- package/dist/model/PayoutSchedule.js +122 -0
- package/dist/model/PendingInvoiceItemInterval.js +104 -0
- package/dist/model/PendingUpdate.js +133 -0
- package/dist/model/Person.js +381 -0
- package/dist/model/Phase.js +286 -0
- package/dist/model/PhaseItem.js +157 -0
- package/dist/model/Plan.js +292 -0
- package/dist/model/Post.js +167 -0
- package/dist/model/Price.js +309 -0
- package/dist/model/PrivateMessage.js +222 -0
- package/dist/model/PrivateMessageConversation.js +222 -0
- package/dist/model/PrivateMessageConversationSchema.js +125 -0
- package/dist/model/Processing.js +106 -0
- package/dist/model/Product.js +310 -0
- package/dist/model/Profile.js +106 -0
- package/dist/model/Profiletype.js +106 -0
- package/dist/model/PromotionCode.js +220 -0
- package/dist/model/Promptpay.js +95 -0
- package/dist/model/PromptpayDisplayQrCode.js +122 -0
- package/dist/model/PropertyContainer.js +97 -0
- package/dist/model/ProrationDetails.js +97 -0
- package/dist/model/Quote.js +520 -0
- package/dist/model/RadarOptions.js +95 -0
- package/dist/model/Receipt.js +167 -0
- package/dist/model/Recurring.js +133 -0
- package/dist/model/Refund.js +332 -0
- package/dist/model/RefundCollection.js +146 -0
- package/dist/model/Relationship.js +140 -0
- package/dist/model/RelationshipMapping.js +159 -0
- package/dist/model/RenderingOptions.js +95 -0
- package/dist/model/RequestOptions.js +167 -0
- package/dist/model/RequestOptionsProxyCredential.js +84 -0
- package/dist/model/Requirements.js +162 -0
- package/dist/model/Restrictions.js +126 -0
- package/dist/model/Review.js +238 -0
- package/dist/model/Rule.js +113 -0
- package/dist/model/SamsungPay.js +86 -0
- package/dist/model/ScreenSchema.js +299 -0
- package/dist/model/Seicomart.js +104 -0
- package/dist/model/SepaCreditTransfer.js +113 -0
- package/dist/model/SepaDebit.js +142 -0
- package/dist/model/SepaDebitMandateOptions.js +86 -0
- package/dist/model/SepaDebitPayments.js +95 -0
- package/dist/model/Session.js +122 -0
- package/dist/model/Settings.js +185 -0
- package/dist/model/SettingsBranding.js +140 -0
- package/dist/model/SettingsCardIssuing.js +97 -0
- package/dist/model/SettingsCardPayments.js +124 -0
- package/dist/model/SettingsDashboard.js +104 -0
- package/dist/model/SettingsPayments.js +131 -0
- package/dist/model/SettingsPayouts.js +115 -0
- package/dist/model/SettingsTreasury.js +97 -0
- package/dist/model/SetupAttempt.js +280 -0
- package/dist/model/SetupIntent.js +376 -0
- package/dist/model/ShippingDetails.js +133 -0
- package/dist/model/SimulcastInfo.js +96 -0
- package/dist/model/SingleUse.js +104 -0
- package/dist/model/SkinField.js +462 -0
- package/dist/model/SocialGroup.js +273 -0
- package/dist/model/SocialGroupType.js +149 -0
- package/dist/model/Sofort.js +189 -0
- package/dist/model/Sort.js +93 -0
- package/dist/model/SortCode.js +113 -0
- package/dist/model/Spei.js +113 -0
- package/dist/model/StatusTransitions.js +113 -0
- package/dist/model/StatusUpdate.js +147 -0
- package/dist/model/Store.js +95 -0
- package/dist/model/Stores.js +130 -0
- package/dist/model/StreetAddress.js +111 -0
- package/dist/model/StripeAccount.js +111 -0
- package/dist/model/StripeCustomerAccount.js +111 -0
- package/dist/model/StripeError.js +202 -0
- package/dist/model/Subscription.js +556 -0
- package/dist/model/SubscriptionCollection.js +146 -0
- package/dist/model/SubscriptionData.js +104 -0
- package/dist/model/SubscriptionItem.js +195 -0
- package/dist/model/SubscriptionItemCollection.js +146 -0
- package/dist/model/SubscriptionSchedule.js +300 -0
- package/dist/model/Tax.js +115 -0
- package/dist/model/TaxAmount.js +124 -0
- package/dist/model/TaxCode.js +122 -0
- package/dist/model/TaxId.js +189 -0
- package/dist/model/TaxIdCollection.js +146 -0
- package/dist/model/TaxRate.js +214 -0
- package/dist/model/Template.js +131 -0
- package/dist/model/TemplateSchema.js +144 -0
- package/dist/model/TestClock.js +167 -0
- package/dist/model/ThemeMapping.js +124 -0
- package/dist/model/ThemeMappingPayload.js +122 -0
- package/dist/model/ThreeDSecure.js +122 -0
- package/dist/model/ThreeDSecureUsage.js +95 -0
- package/dist/model/ThresholdItemReason.js +104 -0
- package/dist/model/ThresholdReason.js +106 -0
- package/dist/model/Tier.js +131 -0
- package/dist/model/Tip.js +95 -0
- package/dist/model/TosAcceptance.js +122 -0
- package/dist/model/TotalDetails.js +124 -0
- package/dist/model/Transaction.js +84 -0
- package/dist/model/Transfer.js +285 -0
- package/dist/model/TransferData.js +124 -0
- package/dist/model/TransferReversal.js +220 -0
- package/dist/model/TransferReversalCollection.js +146 -0
- package/dist/model/TransformQuantity.js +104 -0
- package/dist/model/TransformUsage.js +104 -0
- package/dist/model/TraversalQuery.js +209 -0
- package/dist/model/TraversalQueryStartobjecttypes.js +179 -0
- package/dist/model/USBankAccount.js +140 -0
- package/dist/model/Upfront.js +126 -0
- package/dist/model/User.js +212 -0
- package/dist/model/UserDataPayload.js +212 -0
- package/dist/model/UserDomain.js +102 -0
- package/dist/model/UserInvite.js +191 -0
- package/dist/model/UserInviteInput.js +120 -0
- package/dist/model/UserSchema.js +212 -0
- package/dist/model/UserTag.js +124 -0
- package/dist/model/Verification.js +113 -0
- package/dist/model/VerificationDocument.js +140 -0
- package/dist/model/VerifyWithMicrodeposits.js +113 -0
- package/dist/model/Video.js +255 -0
- package/dist/model/VideoLiveUrl.js +84 -0
- package/dist/model/VideoSchema.js +284 -0
- package/dist/model/VideoUpload.js +88 -0
- package/dist/model/VideoUploadObject.js +228 -0
- package/dist/model/VisaCheckout.js +124 -0
- package/dist/model/Wallet.js +170 -0
- package/dist/model/Wechat.js +86 -0
- package/dist/model/WechatPay.js +104 -0
- package/dist/model/WechatPayDisplayQrCode.js +122 -0
- package/dist/model/WechatPayRedirectToAndroidApp.js +158 -0
- package/dist/model/WechatPayRedirectToIosApp.js +95 -0
- package/dist/model/Zengin.js +149 -0
- package/dist/model/ZeusPortalCategory.js +185 -0
- package/package.json +46 -0
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
var _GraphSchema = _interopRequireDefault(require("../model/GraphSchema"));
|
|
11
|
+
|
|
12
|
+
var _InlineObject = _interopRequireDefault(require("../model/InlineObject1"));
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
17
|
+
|
|
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, descriptor.key, descriptor); } }
|
|
19
|
+
|
|
20
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* GraphSchemas service.
|
|
24
|
+
* @module api/GraphSchemasApi
|
|
25
|
+
* @version 0.1.2
|
|
26
|
+
*/
|
|
27
|
+
var GraphSchemasApi = /*#__PURE__*/function () {
|
|
28
|
+
/**
|
|
29
|
+
* Constructs a new GraphSchemasApi.
|
|
30
|
+
* @alias module:api/GraphSchemasApi
|
|
31
|
+
* @class
|
|
32
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
33
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
34
|
+
*/
|
|
35
|
+
function GraphSchemasApi(apiClient) {
|
|
36
|
+
_classCallCheck(this, GraphSchemasApi);
|
|
37
|
+
|
|
38
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Callback function to receive the result of the addSchemas operation.
|
|
42
|
+
* @callback module:api/GraphSchemasApi~addSchemasCallback
|
|
43
|
+
* @param {String} error Error message, if any.
|
|
44
|
+
* @param {module:model/GraphSchema} data The data returned by the service call.
|
|
45
|
+
* @param {String} response The complete HTTP response.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Adds schemas to the graph
|
|
50
|
+
* @param {Number} id
|
|
51
|
+
* @param {Array.<Number>} requestBody Array of schema ids
|
|
52
|
+
* @param {Object} opts Optional parameters
|
|
53
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
54
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
55
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
56
|
+
* @param {module:api/GraphSchemasApi~addSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
57
|
+
* data is of type: {@link module:model/GraphSchema}
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
_createClass(GraphSchemasApi, [{
|
|
62
|
+
key: "addSchemas",
|
|
63
|
+
value: function addSchemas(id, requestBody, opts, callback) {
|
|
64
|
+
opts = opts || {};
|
|
65
|
+
var postBody = requestBody; // verify the required parameter 'id' is set
|
|
66
|
+
|
|
67
|
+
if (id === undefined || id === null) {
|
|
68
|
+
throw new Error("Missing the required parameter 'id' when calling addSchemas");
|
|
69
|
+
} // verify the required parameter 'requestBody' is set
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
if (requestBody === undefined || requestBody === null) {
|
|
73
|
+
throw new Error("Missing the required parameter 'requestBody' when calling addSchemas");
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
var pathParams = {
|
|
77
|
+
'id': id
|
|
78
|
+
};
|
|
79
|
+
var queryParams = {};
|
|
80
|
+
var headerParams = {
|
|
81
|
+
'Authorization': opts['authorization'],
|
|
82
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
83
|
+
'transactionid': opts['transactionid']
|
|
84
|
+
};
|
|
85
|
+
var formParams = {};
|
|
86
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
87
|
+
var contentTypes = ['application/json'];
|
|
88
|
+
var accepts = ['application/json'];
|
|
89
|
+
var returnType = _GraphSchema["default"];
|
|
90
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Callback function to receive the result of the get15 operation.
|
|
94
|
+
* @callback module:api/GraphSchemasApi~get15Callback
|
|
95
|
+
* @param {String} error Error message, if any.
|
|
96
|
+
* @param data This operation does not return a value.
|
|
97
|
+
* @param {String} response The complete HTTP response.
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Root for the API
|
|
102
|
+
* @param {Object} opts Optional parameters
|
|
103
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
104
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
105
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
106
|
+
* @param {module:api/GraphSchemasApi~get15Callback} callback The callback function, accepting three arguments: error, data, response
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
}, {
|
|
110
|
+
key: "get15",
|
|
111
|
+
value: function get15(opts, callback) {
|
|
112
|
+
opts = opts || {};
|
|
113
|
+
var postBody = null;
|
|
114
|
+
var pathParams = {};
|
|
115
|
+
var queryParams = {};
|
|
116
|
+
var headerParams = {
|
|
117
|
+
'Authorization': opts['authorization'],
|
|
118
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
119
|
+
'transactionid': opts['transactionid']
|
|
120
|
+
};
|
|
121
|
+
var formParams = {};
|
|
122
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
123
|
+
var contentTypes = [];
|
|
124
|
+
var accepts = ['*/*'];
|
|
125
|
+
var returnType = null;
|
|
126
|
+
return this.apiClient.callApi('/graph/data/schema', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Callback function to receive the result of the get16 operation.
|
|
130
|
+
* @callback module:api/GraphSchemasApi~get16Callback
|
|
131
|
+
* @param {String} error Error message, if any.
|
|
132
|
+
* @param {Object.<String, module:model/{String: InlineObject1}>} data The data returned by the service call.
|
|
133
|
+
* @param {String} response The complete HTTP response.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Gets and object by id
|
|
138
|
+
* @param {Number} id
|
|
139
|
+
* @param {Object} opts Optional parameters
|
|
140
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
141
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
142
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
143
|
+
* @param {module:api/GraphSchemasApi~get16Callback} callback The callback function, accepting three arguments: error, data, response
|
|
144
|
+
* data is of type: {@link Object.<String, module:model/{String: InlineObject1}>}
|
|
145
|
+
*/
|
|
146
|
+
|
|
147
|
+
}, {
|
|
148
|
+
key: "get16",
|
|
149
|
+
value: function get16(id, opts, callback) {
|
|
150
|
+
opts = opts || {};
|
|
151
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
152
|
+
|
|
153
|
+
if (id === undefined || id === null) {
|
|
154
|
+
throw new Error("Missing the required parameter 'id' when calling get16");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
var pathParams = {
|
|
158
|
+
'id': id
|
|
159
|
+
};
|
|
160
|
+
var queryParams = {};
|
|
161
|
+
var headerParams = {
|
|
162
|
+
'Authorization': opts['authorization'],
|
|
163
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
164
|
+
'transactionid': opts['transactionid']
|
|
165
|
+
};
|
|
166
|
+
var formParams = {};
|
|
167
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
168
|
+
var contentTypes = [];
|
|
169
|
+
var accepts = ['application/json'];
|
|
170
|
+
var returnType = {
|
|
171
|
+
'String': _InlineObject["default"]
|
|
172
|
+
};
|
|
173
|
+
return this.apiClient.callApi('/graph/data/schema/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Callback function to receive the result of the getSchemas operation.
|
|
177
|
+
* @callback module:api/GraphSchemasApi~getSchemasCallback
|
|
178
|
+
* @param {String} error Error message, if any.
|
|
179
|
+
* @param {module:model/GraphSchema} data The data returned by the service call.
|
|
180
|
+
* @param {String} response The complete HTTP response.
|
|
181
|
+
*/
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Get schemas in the graph
|
|
185
|
+
* @param {Number} id
|
|
186
|
+
* @param {Object} opts Optional parameters
|
|
187
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
188
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
189
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
190
|
+
* @param {module:api/GraphSchemasApi~getSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
191
|
+
* data is of type: {@link module:model/GraphSchema}
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
}, {
|
|
195
|
+
key: "getSchemas",
|
|
196
|
+
value: function getSchemas(id, opts, callback) {
|
|
197
|
+
opts = opts || {};
|
|
198
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
199
|
+
|
|
200
|
+
if (id === undefined || id === null) {
|
|
201
|
+
throw new Error("Missing the required parameter 'id' when calling getSchemas");
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var pathParams = {
|
|
205
|
+
'id': id
|
|
206
|
+
};
|
|
207
|
+
var queryParams = {};
|
|
208
|
+
var headerParams = {
|
|
209
|
+
'Authorization': opts['authorization'],
|
|
210
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
211
|
+
'transactionid': opts['transactionid']
|
|
212
|
+
};
|
|
213
|
+
var formParams = {};
|
|
214
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
215
|
+
var contentTypes = [];
|
|
216
|
+
var accepts = ['application/json'];
|
|
217
|
+
var returnType = _GraphSchema["default"];
|
|
218
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Callback function to receive the result of the removeSchemas operation.
|
|
222
|
+
* @callback module:api/GraphSchemasApi~removeSchemasCallback
|
|
223
|
+
* @param {String} error Error message, if any.
|
|
224
|
+
* @param data This operation does not return a value.
|
|
225
|
+
* @param {String} response The complete HTTP response.
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Removes schemas to the graph
|
|
230
|
+
* @param {Number} id
|
|
231
|
+
* @param {Array.<Number>} requestBody Array of schema ids
|
|
232
|
+
* @param {Object} opts Optional parameters
|
|
233
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
234
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
235
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
236
|
+
* @param {module:api/GraphSchemasApi~removeSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
237
|
+
*/
|
|
238
|
+
|
|
239
|
+
}, {
|
|
240
|
+
key: "removeSchemas",
|
|
241
|
+
value: function removeSchemas(id, requestBody, opts, callback) {
|
|
242
|
+
opts = opts || {};
|
|
243
|
+
var postBody = requestBody; // verify the required parameter 'id' is set
|
|
244
|
+
|
|
245
|
+
if (id === undefined || id === null) {
|
|
246
|
+
throw new Error("Missing the required parameter 'id' when calling removeSchemas");
|
|
247
|
+
} // verify the required parameter 'requestBody' is set
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
if (requestBody === undefined || requestBody === null) {
|
|
251
|
+
throw new Error("Missing the required parameter 'requestBody' when calling removeSchemas");
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
var pathParams = {
|
|
255
|
+
'id': id
|
|
256
|
+
};
|
|
257
|
+
var queryParams = {};
|
|
258
|
+
var headerParams = {
|
|
259
|
+
'Authorization': opts['authorization'],
|
|
260
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
261
|
+
'transactionid': opts['transactionid']
|
|
262
|
+
};
|
|
263
|
+
var formParams = {};
|
|
264
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
265
|
+
var contentTypes = ['application/json'];
|
|
266
|
+
var accepts = ['application/json'];
|
|
267
|
+
var returnType = null;
|
|
268
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Callback function to receive the result of the updateObjectTypes operation.
|
|
272
|
+
* @callback module:api/GraphSchemasApi~updateObjectTypesCallback
|
|
273
|
+
* @param {String} error Error message, if any.
|
|
274
|
+
* @param {module:model/InlineObject1} data The data returned by the service call.
|
|
275
|
+
* @param {String} response The complete HTTP response.
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @param {Number} id
|
|
280
|
+
* @param {Object} opts Optional parameters
|
|
281
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
282
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
283
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
284
|
+
* @param {String} opts.body
|
|
285
|
+
* @param {module:api/GraphSchemasApi~updateObjectTypesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
286
|
+
* data is of type: {@link module:model/InlineObject1}
|
|
287
|
+
*/
|
|
288
|
+
|
|
289
|
+
}, {
|
|
290
|
+
key: "updateObjectTypes",
|
|
291
|
+
value: function updateObjectTypes(id, opts, callback) {
|
|
292
|
+
opts = opts || {};
|
|
293
|
+
var postBody = opts['body']; // verify the required parameter 'id' is set
|
|
294
|
+
|
|
295
|
+
if (id === undefined || id === null) {
|
|
296
|
+
throw new Error("Missing the required parameter 'id' when calling updateObjectTypes");
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
var pathParams = {
|
|
300
|
+
'id': id
|
|
301
|
+
};
|
|
302
|
+
var queryParams = {};
|
|
303
|
+
var headerParams = {
|
|
304
|
+
'Authorization': opts['authorization'],
|
|
305
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
306
|
+
'transactionid': opts['transactionid']
|
|
307
|
+
};
|
|
308
|
+
var formParams = {};
|
|
309
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
310
|
+
var contentTypes = ['application/json'];
|
|
311
|
+
var accepts = ['application/json'];
|
|
312
|
+
var returnType = _InlineObject["default"];
|
|
313
|
+
return this.apiClient.callApi('/graph/data/schema/{id}/objecttypes', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Callback function to receive the result of the updateTemplate3 operation.
|
|
317
|
+
* @callback module:api/GraphSchemasApi~updateTemplate3Callback
|
|
318
|
+
* @param {String} error Error message, if any.
|
|
319
|
+
* @param {module:model/InlineObject1} data The data returned by the service call.
|
|
320
|
+
* @param {String} response The complete HTTP response.
|
|
321
|
+
*/
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* @param {Number} id
|
|
325
|
+
* @param {Object} opts Optional parameters
|
|
326
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
327
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
328
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
329
|
+
* @param {String} opts.body
|
|
330
|
+
* @param {module:api/GraphSchemasApi~updateTemplate3Callback} callback The callback function, accepting three arguments: error, data, response
|
|
331
|
+
* data is of type: {@link module:model/InlineObject1}
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
}, {
|
|
335
|
+
key: "updateTemplate3",
|
|
336
|
+
value: function updateTemplate3(id, opts, callback) {
|
|
337
|
+
opts = opts || {};
|
|
338
|
+
var postBody = opts['body']; // verify the required parameter 'id' is set
|
|
339
|
+
|
|
340
|
+
if (id === undefined || id === null) {
|
|
341
|
+
throw new Error("Missing the required parameter 'id' when calling updateTemplate3");
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
var pathParams = {
|
|
345
|
+
'id': id
|
|
346
|
+
};
|
|
347
|
+
var queryParams = {};
|
|
348
|
+
var headerParams = {
|
|
349
|
+
'Authorization': opts['authorization'],
|
|
350
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
351
|
+
'transactionid': opts['transactionid']
|
|
352
|
+
};
|
|
353
|
+
var formParams = {};
|
|
354
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
355
|
+
var contentTypes = ['application/json'];
|
|
356
|
+
var accepts = ['application/json'];
|
|
357
|
+
var returnType = _InlineObject["default"];
|
|
358
|
+
return this.apiClient.callApi('/graph/data/schema/{id}/template', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
359
|
+
}
|
|
360
|
+
}]);
|
|
361
|
+
|
|
362
|
+
return GraphSchemasApi;
|
|
363
|
+
}();
|
|
364
|
+
|
|
365
|
+
exports["default"] = GraphSchemasApi;
|
|
@@ -0,0 +1,291 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
9
|
+
|
|
10
|
+
var _GraphObjectSchema = _interopRequireDefault(require("../model/GraphObjectSchema"));
|
|
11
|
+
|
|
12
|
+
var _GraphRelation = _interopRequireDefault(require("../model/GraphRelation"));
|
|
13
|
+
|
|
14
|
+
var _GraphTraversalInput = _interopRequireDefault(require("../model/GraphTraversalInput"));
|
|
15
|
+
|
|
16
|
+
var _Path = _interopRequireDefault(require("../model/Path"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
+
|
|
22
|
+
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, descriptor.key, descriptor); } }
|
|
23
|
+
|
|
24
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* GraphTraversal service.
|
|
28
|
+
* @module api/GraphTraversalApi
|
|
29
|
+
* @version 0.1.2
|
|
30
|
+
*/
|
|
31
|
+
var GraphTraversalApi = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new GraphTraversalApi.
|
|
34
|
+
* @alias module:api/GraphTraversalApi
|
|
35
|
+
* @class
|
|
36
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
37
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
38
|
+
*/
|
|
39
|
+
function GraphTraversalApi(apiClient) {
|
|
40
|
+
_classCallCheck(this, GraphTraversalApi);
|
|
41
|
+
|
|
42
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Callback function to receive the result of the traverse operation.
|
|
46
|
+
* @callback module:api/GraphTraversalApi~traverseCallback
|
|
47
|
+
* @param {String} error Error message, if any.
|
|
48
|
+
* @param {Array.<module:model/Path>} data The data returned by the service call.
|
|
49
|
+
* @param {String} response The complete HTTP response.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Traverses the graph and returns a list of discovered paths
|
|
54
|
+
* Traverses the graph based on the traversal query provided
|
|
55
|
+
* @param {module:model/GraphTraversalInput} graphTraversalInput The traversal query to execute
|
|
56
|
+
* @param {Object} opts Optional parameters
|
|
57
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
58
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
59
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
60
|
+
* @param {module:api/GraphTraversalApi~traverseCallback} callback The callback function, accepting three arguments: error, data, response
|
|
61
|
+
* data is of type: {@link Array.<module:model/Path>}
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
_createClass(GraphTraversalApi, [{
|
|
66
|
+
key: "traverse",
|
|
67
|
+
value: function traverse(graphTraversalInput, opts, callback) {
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
var postBody = graphTraversalInput; // verify the required parameter 'graphTraversalInput' is set
|
|
70
|
+
|
|
71
|
+
if (graphTraversalInput === undefined || graphTraversalInput === null) {
|
|
72
|
+
throw new Error("Missing the required parameter 'graphTraversalInput' when calling traverse");
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var pathParams = {};
|
|
76
|
+
var queryParams = {};
|
|
77
|
+
var headerParams = {
|
|
78
|
+
'Authorization': opts['authorization'],
|
|
79
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
80
|
+
'transactionid': opts['transactionid']
|
|
81
|
+
};
|
|
82
|
+
var formParams = {};
|
|
83
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
84
|
+
var contentTypes = ['application/json'];
|
|
85
|
+
var accepts = ['application/json'];
|
|
86
|
+
var returnType = [_Path["default"]];
|
|
87
|
+
return this.apiClient.callApi('/graph/data/traverse', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Callback function to receive the result of the traverseFrom operation.
|
|
91
|
+
* @callback module:api/GraphTraversalApi~traverseFromCallback
|
|
92
|
+
* @param {String} error Error message, if any.
|
|
93
|
+
* @param {Array.<module:model/Path>} data The data returned by the service call.
|
|
94
|
+
* @param {String} response The complete HTTP response.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Traverses the graph from this object and returns a list of discovered paths
|
|
99
|
+
* @param {Number} id The id of the object being traversed from
|
|
100
|
+
* @param {module:model/GraphTraversalInput} graphTraversalInput The traversal query to execute
|
|
101
|
+
* @param {Object} opts Optional parameters
|
|
102
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
103
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
104
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
105
|
+
* @param {module:api/GraphTraversalApi~traverseFromCallback} callback The callback function, accepting three arguments: error, data, response
|
|
106
|
+
* data is of type: {@link Array.<module:model/Path>}
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
}, {
|
|
110
|
+
key: "traverseFrom",
|
|
111
|
+
value: function traverseFrom(id, graphTraversalInput, opts, callback) {
|
|
112
|
+
opts = opts || {};
|
|
113
|
+
var postBody = graphTraversalInput; // verify the required parameter 'id' is set
|
|
114
|
+
|
|
115
|
+
if (id === undefined || id === null) {
|
|
116
|
+
throw new Error("Missing the required parameter 'id' when calling traverseFrom");
|
|
117
|
+
} // verify the required parameter 'graphTraversalInput' is set
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
if (graphTraversalInput === undefined || graphTraversalInput === null) {
|
|
121
|
+
throw new Error("Missing the required parameter 'graphTraversalInput' when calling traverseFrom");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
var pathParams = {
|
|
125
|
+
'id': id
|
|
126
|
+
};
|
|
127
|
+
var queryParams = {};
|
|
128
|
+
var headerParams = {
|
|
129
|
+
'Authorization': opts['authorization'],
|
|
130
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
131
|
+
'transactionid': opts['transactionid']
|
|
132
|
+
};
|
|
133
|
+
var formParams = {};
|
|
134
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
135
|
+
var contentTypes = ['application/json'];
|
|
136
|
+
var accepts = ['application/json'];
|
|
137
|
+
var returnType = [_Path["default"]];
|
|
138
|
+
return this.apiClient.callApi('/graph/data/traverse/{id}/traverse', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Callback function to receive the result of the traverseFromFindObjects operation.
|
|
142
|
+
* @callback module:api/GraphTraversalApi~traverseFromFindObjectsCallback
|
|
143
|
+
* @param {String} error Error message, if any.
|
|
144
|
+
* @param {Array.<module:model/GraphObjectSchema>} data The data returned by the service call.
|
|
145
|
+
* @param {String} response The complete HTTP response.
|
|
146
|
+
*/
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Traverses the graph from this object and returns a list of discovered objects
|
|
150
|
+
* @param {Number} id The id of the object being traversed from
|
|
151
|
+
* @param {module:model/GraphTraversalInput} graphTraversalInput The traversal query to execute
|
|
152
|
+
* @param {Object} opts Optional parameters
|
|
153
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
154
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
155
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
156
|
+
* @param {module:api/GraphTraversalApi~traverseFromFindObjectsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
157
|
+
* data is of type: {@link Array.<module:model/GraphObjectSchema>}
|
|
158
|
+
*/
|
|
159
|
+
|
|
160
|
+
}, {
|
|
161
|
+
key: "traverseFromFindObjects",
|
|
162
|
+
value: function traverseFromFindObjects(id, graphTraversalInput, opts, callback) {
|
|
163
|
+
opts = opts || {};
|
|
164
|
+
var postBody = graphTraversalInput; // verify the required parameter 'id' is set
|
|
165
|
+
|
|
166
|
+
if (id === undefined || id === null) {
|
|
167
|
+
throw new Error("Missing the required parameter 'id' when calling traverseFromFindObjects");
|
|
168
|
+
} // verify the required parameter 'graphTraversalInput' is set
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
if (graphTraversalInput === undefined || graphTraversalInput === null) {
|
|
172
|
+
throw new Error("Missing the required parameter 'graphTraversalInput' when calling traverseFromFindObjects");
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
var pathParams = {
|
|
176
|
+
'id': id
|
|
177
|
+
};
|
|
178
|
+
var queryParams = {};
|
|
179
|
+
var headerParams = {
|
|
180
|
+
'Authorization': opts['authorization'],
|
|
181
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
182
|
+
'transactionid': opts['transactionid']
|
|
183
|
+
};
|
|
184
|
+
var formParams = {};
|
|
185
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
186
|
+
var contentTypes = ['application/json'];
|
|
187
|
+
var accepts = ['application/json'];
|
|
188
|
+
var returnType = [_GraphObjectSchema["default"]];
|
|
189
|
+
return this.apiClient.callApi('/graph/data/traverse/{id}/traverseobjects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Callback function to receive the result of the traverseFromFindRelationships operation.
|
|
193
|
+
* @callback module:api/GraphTraversalApi~traverseFromFindRelationshipsCallback
|
|
194
|
+
* @param {String} error Error message, if any.
|
|
195
|
+
* @param {Array.<module:model/GraphRelation>} data The data returned by the service call.
|
|
196
|
+
* @param {String} response The complete HTTP response.
|
|
197
|
+
*/
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Traverses the graph from this object and returns a list of discovered relationships
|
|
201
|
+
* @param {Number} id The id of the object being traversed from
|
|
202
|
+
* @param {module:model/GraphTraversalInput} graphTraversalInput The traversal query to execute
|
|
203
|
+
* @param {Object} opts Optional parameters
|
|
204
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
205
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
206
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
207
|
+
* @param {module:api/GraphTraversalApi~traverseFromFindRelationshipsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
208
|
+
* data is of type: {@link Array.<module:model/GraphRelation>}
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
}, {
|
|
212
|
+
key: "traverseFromFindRelationships",
|
|
213
|
+
value: function traverseFromFindRelationships(id, graphTraversalInput, opts, callback) {
|
|
214
|
+
opts = opts || {};
|
|
215
|
+
var postBody = graphTraversalInput; // verify the required parameter 'id' is set
|
|
216
|
+
|
|
217
|
+
if (id === undefined || id === null) {
|
|
218
|
+
throw new Error("Missing the required parameter 'id' when calling traverseFromFindRelationships");
|
|
219
|
+
} // verify the required parameter 'graphTraversalInput' is set
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
if (graphTraversalInput === undefined || graphTraversalInput === null) {
|
|
223
|
+
throw new Error("Missing the required parameter 'graphTraversalInput' when calling traverseFromFindRelationships");
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
var pathParams = {
|
|
227
|
+
'id': id
|
|
228
|
+
};
|
|
229
|
+
var queryParams = {};
|
|
230
|
+
var headerParams = {
|
|
231
|
+
'Authorization': opts['authorization'],
|
|
232
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
233
|
+
'transactionid': opts['transactionid']
|
|
234
|
+
};
|
|
235
|
+
var formParams = {};
|
|
236
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
237
|
+
var contentTypes = ['application/json'];
|
|
238
|
+
var accepts = ['application/json'];
|
|
239
|
+
var returnType = [_GraphRelation["default"]];
|
|
240
|
+
return this.apiClient.callApi('/graph/data/traverse/{id}/traverserelationships', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Callback function to receive the result of the traverseObjects operation.
|
|
244
|
+
* @callback module:api/GraphTraversalApi~traverseObjectsCallback
|
|
245
|
+
* @param {String} error Error message, if any.
|
|
246
|
+
* @param {Array.<module:model/GraphObjectSchema>} data The data returned by the service call.
|
|
247
|
+
* @param {String} response The complete HTTP response.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Traverses the graph based on the traversal query provided and returns the discovered objects
|
|
252
|
+
* Traverses the graph based on the traversal query provided
|
|
253
|
+
* @param {module:model/GraphTraversalInput} graphTraversalInput The traversal query to execute
|
|
254
|
+
* @param {Object} opts Optional parameters
|
|
255
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
256
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
257
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
258
|
+
* @param {module:api/GraphTraversalApi~traverseObjectsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
259
|
+
* data is of type: {@link Array.<module:model/GraphObjectSchema>}
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
}, {
|
|
263
|
+
key: "traverseObjects",
|
|
264
|
+
value: function traverseObjects(graphTraversalInput, opts, callback) {
|
|
265
|
+
opts = opts || {};
|
|
266
|
+
var postBody = graphTraversalInput; // verify the required parameter 'graphTraversalInput' is set
|
|
267
|
+
|
|
268
|
+
if (graphTraversalInput === undefined || graphTraversalInput === null) {
|
|
269
|
+
throw new Error("Missing the required parameter 'graphTraversalInput' when calling traverseObjects");
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
var pathParams = {};
|
|
273
|
+
var queryParams = {};
|
|
274
|
+
var headerParams = {
|
|
275
|
+
'Authorization': opts['authorization'],
|
|
276
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
277
|
+
'transactionid': opts['transactionid']
|
|
278
|
+
};
|
|
279
|
+
var formParams = {};
|
|
280
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
281
|
+
var contentTypes = ['application/json'];
|
|
282
|
+
var accepts = ['application/json'];
|
|
283
|
+
var returnType = [_GraphObjectSchema["default"]];
|
|
284
|
+
return this.apiClient.callApi('/graph/data/traverse/objects', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
285
|
+
}
|
|
286
|
+
}]);
|
|
287
|
+
|
|
288
|
+
return GraphTraversalApi;
|
|
289
|
+
}();
|
|
290
|
+
|
|
291
|
+
exports["default"] = GraphTraversalApi;
|