@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,571 @@
|
|
|
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 _GraphRelationship = _interopRequireDefault(require("../model/GraphRelationship"));
|
|
13
|
+
|
|
14
|
+
var _GraphSchema = _interopRequireDefault(require("../model/GraphSchema"));
|
|
15
|
+
|
|
16
|
+
var _InlineObject = _interopRequireDefault(require("../model/InlineObject1"));
|
|
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
|
+
* Graphs service.
|
|
28
|
+
* @module api/GraphsApi
|
|
29
|
+
* @version 0.1.2
|
|
30
|
+
*/
|
|
31
|
+
var GraphsApi = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new GraphsApi.
|
|
34
|
+
* @alias module:api/GraphsApi
|
|
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 GraphsApi(apiClient) {
|
|
40
|
+
_classCallCheck(this, GraphsApi);
|
|
41
|
+
|
|
42
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Callback function to receive the result of the addSchemas operation.
|
|
46
|
+
* @callback module:api/GraphsApi~addSchemasCallback
|
|
47
|
+
* @param {String} error Error message, if any.
|
|
48
|
+
* @param {module:model/GraphSchema} data The data returned by the service call.
|
|
49
|
+
* @param {String} response The complete HTTP response.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Adds schemas to the graph
|
|
54
|
+
* @param {Number} id
|
|
55
|
+
* @param {Array.<Number>} requestBody Array of schema ids
|
|
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/GraphsApi~addSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
61
|
+
* data is of type: {@link module:model/GraphSchema}
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
_createClass(GraphsApi, [{
|
|
66
|
+
key: "addSchemas",
|
|
67
|
+
value: function addSchemas(id, requestBody, opts, callback) {
|
|
68
|
+
opts = opts || {};
|
|
69
|
+
var postBody = requestBody; // verify the required parameter 'id' is set
|
|
70
|
+
|
|
71
|
+
if (id === undefined || id === null) {
|
|
72
|
+
throw new Error("Missing the required parameter 'id' when calling addSchemas");
|
|
73
|
+
} // verify the required parameter 'requestBody' is set
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
if (requestBody === undefined || requestBody === null) {
|
|
77
|
+
throw new Error("Missing the required parameter 'requestBody' when calling addSchemas");
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
var pathParams = {
|
|
81
|
+
'id': id
|
|
82
|
+
};
|
|
83
|
+
var queryParams = {};
|
|
84
|
+
var headerParams = {
|
|
85
|
+
'Authorization': opts['authorization'],
|
|
86
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
87
|
+
'transactionid': opts['transactionid']
|
|
88
|
+
};
|
|
89
|
+
var formParams = {};
|
|
90
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
91
|
+
var contentTypes = ['application/json'];
|
|
92
|
+
var accepts = ['application/json'];
|
|
93
|
+
var returnType = _GraphSchema["default"];
|
|
94
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Callback function to receive the result of the createAddObjectsToGraph operation.
|
|
98
|
+
* @callback module:api/GraphsApi~createAddObjectsToGraphCallback
|
|
99
|
+
* @param {String} error Error message, if any.
|
|
100
|
+
* @param {module:model/GraphObjectSchema} data The data returned by the service call.
|
|
101
|
+
* @param {String} response The complete HTTP response.
|
|
102
|
+
*/
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Adds objects to the graph
|
|
106
|
+
* @param {Number} id
|
|
107
|
+
* @param {Object} opts Optional parameters
|
|
108
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
109
|
+
* @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
|
|
110
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
111
|
+
* @param {String} opts.body
|
|
112
|
+
* @param {module:api/GraphsApi~createAddObjectsToGraphCallback} callback The callback function, accepting three arguments: error, data, response
|
|
113
|
+
* data is of type: {@link module:model/GraphObjectSchema}
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
}, {
|
|
117
|
+
key: "createAddObjectsToGraph",
|
|
118
|
+
value: function createAddObjectsToGraph(id, opts, callback) {
|
|
119
|
+
opts = opts || {};
|
|
120
|
+
var postBody = opts['body']; // verify the required parameter 'id' is set
|
|
121
|
+
|
|
122
|
+
if (id === undefined || id === null) {
|
|
123
|
+
throw new Error("Missing the required parameter 'id' when calling createAddObjectsToGraph");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
var pathParams = {
|
|
127
|
+
'id': id
|
|
128
|
+
};
|
|
129
|
+
var queryParams = {};
|
|
130
|
+
var headerParams = {
|
|
131
|
+
'Authorization': opts['authorization'],
|
|
132
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
133
|
+
'transactionid': opts['transactionid']
|
|
134
|
+
};
|
|
135
|
+
var formParams = {};
|
|
136
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
137
|
+
var contentTypes = ['application/json'];
|
|
138
|
+
var accepts = ['application/json'];
|
|
139
|
+
var returnType = _GraphObjectSchema["default"];
|
|
140
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/objects', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Callback function to receive the result of the get13 operation.
|
|
144
|
+
* @callback module:api/GraphsApi~get13Callback
|
|
145
|
+
* @param {String} error Error message, if any.
|
|
146
|
+
* @param data This operation does not return a value.
|
|
147
|
+
* @param {String} response The complete HTTP response.
|
|
148
|
+
*/
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Root for the API
|
|
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/GraphsApi~get13Callback} callback The callback function, accepting three arguments: error, data, response
|
|
157
|
+
*/
|
|
158
|
+
|
|
159
|
+
}, {
|
|
160
|
+
key: "get13",
|
|
161
|
+
value: function get13(opts, callback) {
|
|
162
|
+
opts = opts || {};
|
|
163
|
+
var postBody = null;
|
|
164
|
+
var pathParams = {};
|
|
165
|
+
var queryParams = {};
|
|
166
|
+
var headerParams = {
|
|
167
|
+
'Authorization': opts['authorization'],
|
|
168
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
169
|
+
'transactionid': opts['transactionid']
|
|
170
|
+
};
|
|
171
|
+
var formParams = {};
|
|
172
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
173
|
+
var contentTypes = [];
|
|
174
|
+
var accepts = ['*/*'];
|
|
175
|
+
var returnType = null;
|
|
176
|
+
return this.apiClient.callApi('/graph/data/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Callback function to receive the result of the get14 operation.
|
|
180
|
+
* @callback module:api/GraphsApi~get14Callback
|
|
181
|
+
* @param {String} error Error message, if any.
|
|
182
|
+
* @param {Object.<String, module:model/{String: InlineObject1}>} data The data returned by the service call.
|
|
183
|
+
* @param {String} response The complete HTTP response.
|
|
184
|
+
*/
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Gets and object by id
|
|
188
|
+
* @param {Number} id
|
|
189
|
+
* @param {Object} opts Optional parameters
|
|
190
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
191
|
+
* @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
|
|
192
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
193
|
+
* @param {module:api/GraphsApi~get14Callback} callback The callback function, accepting three arguments: error, data, response
|
|
194
|
+
* data is of type: {@link Object.<String, module:model/{String: InlineObject1}>}
|
|
195
|
+
*/
|
|
196
|
+
|
|
197
|
+
}, {
|
|
198
|
+
key: "get14",
|
|
199
|
+
value: function get14(id, opts, callback) {
|
|
200
|
+
opts = opts || {};
|
|
201
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
202
|
+
|
|
203
|
+
if (id === undefined || id === null) {
|
|
204
|
+
throw new Error("Missing the required parameter 'id' when calling get14");
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
var pathParams = {
|
|
208
|
+
'id': id
|
|
209
|
+
};
|
|
210
|
+
var queryParams = {};
|
|
211
|
+
var headerParams = {
|
|
212
|
+
'Authorization': opts['authorization'],
|
|
213
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
214
|
+
'transactionid': opts['transactionid']
|
|
215
|
+
};
|
|
216
|
+
var formParams = {};
|
|
217
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
218
|
+
var contentTypes = [];
|
|
219
|
+
var accepts = ['application/json'];
|
|
220
|
+
var returnType = {
|
|
221
|
+
'String': _InlineObject["default"]
|
|
222
|
+
};
|
|
223
|
+
return this.apiClient.callApi('/graph/data/graph/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Callback function to receive the result of the getObjectsInGraph operation.
|
|
227
|
+
* @callback module:api/GraphsApi~getObjectsInGraphCallback
|
|
228
|
+
* @param {String} error Error message, if any.
|
|
229
|
+
* @param {Array.<module:model/GraphObjectSchema>} data The data returned by the service call.
|
|
230
|
+
* @param {String} response The complete HTTP response.
|
|
231
|
+
*/
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Get objects in the graph
|
|
235
|
+
* @param {Number} id
|
|
236
|
+
* @param {Object} opts Optional parameters
|
|
237
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
238
|
+
* @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
|
|
239
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
240
|
+
* @param {module:api/GraphsApi~getObjectsInGraphCallback} callback The callback function, accepting three arguments: error, data, response
|
|
241
|
+
* data is of type: {@link Array.<module:model/GraphObjectSchema>}
|
|
242
|
+
*/
|
|
243
|
+
|
|
244
|
+
}, {
|
|
245
|
+
key: "getObjectsInGraph",
|
|
246
|
+
value: function getObjectsInGraph(id, opts, callback) {
|
|
247
|
+
opts = opts || {};
|
|
248
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
249
|
+
|
|
250
|
+
if (id === undefined || id === null) {
|
|
251
|
+
throw new Error("Missing the required parameter 'id' when calling getObjectsInGraph");
|
|
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 = [];
|
|
266
|
+
var accepts = ['application/json'];
|
|
267
|
+
var returnType = [_GraphObjectSchema["default"]];
|
|
268
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/objects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Callback function to receive the result of the getObjectsInGraphByTag operation.
|
|
272
|
+
* @callback module:api/GraphsApi~getObjectsInGraphByTagCallback
|
|
273
|
+
* @param {String} error Error message, if any.
|
|
274
|
+
* @param {Array.<module:model/GraphObjectSchema>} data The data returned by the service call.
|
|
275
|
+
* @param {String} response The complete HTTP response.
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Get objects in the graph with the given tag
|
|
280
|
+
* @param {Number} id
|
|
281
|
+
* @param {String} tag
|
|
282
|
+
* @param {Object} opts Optional parameters
|
|
283
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
284
|
+
* @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
|
|
285
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
286
|
+
* @param {module:api/GraphsApi~getObjectsInGraphByTagCallback} callback The callback function, accepting three arguments: error, data, response
|
|
287
|
+
* data is of type: {@link Array.<module:model/GraphObjectSchema>}
|
|
288
|
+
*/
|
|
289
|
+
|
|
290
|
+
}, {
|
|
291
|
+
key: "getObjectsInGraphByTag",
|
|
292
|
+
value: function getObjectsInGraphByTag(id, tag, opts, callback) {
|
|
293
|
+
opts = opts || {};
|
|
294
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
295
|
+
|
|
296
|
+
if (id === undefined || id === null) {
|
|
297
|
+
throw new Error("Missing the required parameter 'id' when calling getObjectsInGraphByTag");
|
|
298
|
+
} // verify the required parameter 'tag' is set
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
if (tag === undefined || tag === null) {
|
|
302
|
+
throw new Error("Missing the required parameter 'tag' when calling getObjectsInGraphByTag");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
var pathParams = {
|
|
306
|
+
'id': id,
|
|
307
|
+
'tag': tag
|
|
308
|
+
};
|
|
309
|
+
var queryParams = {};
|
|
310
|
+
var headerParams = {
|
|
311
|
+
'Authorization': opts['authorization'],
|
|
312
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
313
|
+
'transactionid': opts['transactionid']
|
|
314
|
+
};
|
|
315
|
+
var formParams = {};
|
|
316
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
317
|
+
var contentTypes = [];
|
|
318
|
+
var accepts = ['application/json'];
|
|
319
|
+
var returnType = [_GraphObjectSchema["default"]];
|
|
320
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/objects/{tag}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Callback function to receive the result of the getObjectsInGraphByType operation.
|
|
324
|
+
* @callback module:api/GraphsApi~getObjectsInGraphByTypeCallback
|
|
325
|
+
* @param {String} error Error message, if any.
|
|
326
|
+
* @param {Array.<module:model/GraphObjectSchema>} data The data returned by the service call.
|
|
327
|
+
* @param {String} response The complete HTTP response.
|
|
328
|
+
*/
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Get objects in the graph with the given object type
|
|
332
|
+
* @param {Number} id
|
|
333
|
+
* @param {String} type
|
|
334
|
+
* @param {Object} opts Optional parameters
|
|
335
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
336
|
+
* @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
|
|
337
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
338
|
+
* @param {module:api/GraphsApi~getObjectsInGraphByTypeCallback} callback The callback function, accepting three arguments: error, data, response
|
|
339
|
+
* data is of type: {@link Array.<module:model/GraphObjectSchema>}
|
|
340
|
+
*/
|
|
341
|
+
|
|
342
|
+
}, {
|
|
343
|
+
key: "getObjectsInGraphByType",
|
|
344
|
+
value: function getObjectsInGraphByType(id, type, opts, callback) {
|
|
345
|
+
opts = opts || {};
|
|
346
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
347
|
+
|
|
348
|
+
if (id === undefined || id === null) {
|
|
349
|
+
throw new Error("Missing the required parameter 'id' when calling getObjectsInGraphByType");
|
|
350
|
+
} // verify the required parameter 'type' is set
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
if (type === undefined || type === null) {
|
|
354
|
+
throw new Error("Missing the required parameter 'type' when calling getObjectsInGraphByType");
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
var pathParams = {
|
|
358
|
+
'id': id,
|
|
359
|
+
'type': type
|
|
360
|
+
};
|
|
361
|
+
var queryParams = {};
|
|
362
|
+
var headerParams = {
|
|
363
|
+
'Authorization': opts['authorization'],
|
|
364
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
365
|
+
'transactionid': opts['transactionid']
|
|
366
|
+
};
|
|
367
|
+
var formParams = {};
|
|
368
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
369
|
+
var contentTypes = [];
|
|
370
|
+
var accepts = ['application/json'];
|
|
371
|
+
var returnType = [_GraphObjectSchema["default"]];
|
|
372
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/objects/:{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Callback function to receive the result of the getRelationships operation.
|
|
376
|
+
* @callback module:api/GraphsApi~getRelationshipsCallback
|
|
377
|
+
* @param {String} error Error message, if any.
|
|
378
|
+
* @param {module:model/GraphRelationship} data The data returned by the service call.
|
|
379
|
+
* @param {String} response The complete HTTP response.
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Get relationships in the graph
|
|
384
|
+
* @param {Number} id
|
|
385
|
+
* @param {Object} opts Optional parameters
|
|
386
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
387
|
+
* @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
|
|
388
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
389
|
+
* @param {module:api/GraphsApi~getRelationshipsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
390
|
+
* data is of type: {@link module:model/GraphRelationship}
|
|
391
|
+
*/
|
|
392
|
+
|
|
393
|
+
}, {
|
|
394
|
+
key: "getRelationships",
|
|
395
|
+
value: function getRelationships(id, opts, callback) {
|
|
396
|
+
opts = opts || {};
|
|
397
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
398
|
+
|
|
399
|
+
if (id === undefined || id === null) {
|
|
400
|
+
throw new Error("Missing the required parameter 'id' when calling getRelationships");
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
var pathParams = {
|
|
404
|
+
'id': id
|
|
405
|
+
};
|
|
406
|
+
var queryParams = {};
|
|
407
|
+
var headerParams = {
|
|
408
|
+
'Authorization': opts['authorization'],
|
|
409
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
410
|
+
'transactionid': opts['transactionid']
|
|
411
|
+
};
|
|
412
|
+
var formParams = {};
|
|
413
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
414
|
+
var contentTypes = [];
|
|
415
|
+
var accepts = ['application/json'];
|
|
416
|
+
var returnType = _GraphRelationship["default"];
|
|
417
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/relationships', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Callback function to receive the result of the getRelationships1 operation.
|
|
421
|
+
* @callback module:api/GraphsApi~getRelationships1Callback
|
|
422
|
+
* @param {String} error Error message, if any.
|
|
423
|
+
* @param {module:model/GraphRelationship} data The data returned by the service call.
|
|
424
|
+
* @param {String} response The complete HTTP response.
|
|
425
|
+
*/
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Get relationships in the graph with the given object type
|
|
429
|
+
* @param {Number} id
|
|
430
|
+
* @param {String} type
|
|
431
|
+
* @param {Object} opts Optional parameters
|
|
432
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
433
|
+
* @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
|
|
434
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
435
|
+
* @param {module:api/GraphsApi~getRelationships1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
436
|
+
* data is of type: {@link module:model/GraphRelationship}
|
|
437
|
+
*/
|
|
438
|
+
|
|
439
|
+
}, {
|
|
440
|
+
key: "getRelationships1",
|
|
441
|
+
value: function getRelationships1(id, type, opts, callback) {
|
|
442
|
+
opts = opts || {};
|
|
443
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
444
|
+
|
|
445
|
+
if (id === undefined || id === null) {
|
|
446
|
+
throw new Error("Missing the required parameter 'id' when calling getRelationships1");
|
|
447
|
+
} // verify the required parameter 'type' is set
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
if (type === undefined || type === null) {
|
|
451
|
+
throw new Error("Missing the required parameter 'type' when calling getRelationships1");
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
var pathParams = {
|
|
455
|
+
'id': id,
|
|
456
|
+
'type': type
|
|
457
|
+
};
|
|
458
|
+
var queryParams = {};
|
|
459
|
+
var headerParams = {
|
|
460
|
+
'Authorization': opts['authorization'],
|
|
461
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
462
|
+
'transactionid': opts['transactionid']
|
|
463
|
+
};
|
|
464
|
+
var formParams = {};
|
|
465
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
466
|
+
var contentTypes = [];
|
|
467
|
+
var accepts = ['application/json'];
|
|
468
|
+
var returnType = _GraphRelationship["default"];
|
|
469
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/relationships/{type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Callback function to receive the result of the getSchemas operation.
|
|
473
|
+
* @callback module:api/GraphsApi~getSchemasCallback
|
|
474
|
+
* @param {String} error Error message, if any.
|
|
475
|
+
* @param {module:model/GraphSchema} data The data returned by the service call.
|
|
476
|
+
* @param {String} response The complete HTTP response.
|
|
477
|
+
*/
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* Get schemas in the graph
|
|
481
|
+
* @param {Number} id
|
|
482
|
+
* @param {Object} opts Optional parameters
|
|
483
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
484
|
+
* @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
|
|
485
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
486
|
+
* @param {module:api/GraphsApi~getSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
487
|
+
* data is of type: {@link module:model/GraphSchema}
|
|
488
|
+
*/
|
|
489
|
+
|
|
490
|
+
}, {
|
|
491
|
+
key: "getSchemas",
|
|
492
|
+
value: function getSchemas(id, opts, callback) {
|
|
493
|
+
opts = opts || {};
|
|
494
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
495
|
+
|
|
496
|
+
if (id === undefined || id === null) {
|
|
497
|
+
throw new Error("Missing the required parameter 'id' when calling getSchemas");
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
var pathParams = {
|
|
501
|
+
'id': id
|
|
502
|
+
};
|
|
503
|
+
var queryParams = {};
|
|
504
|
+
var headerParams = {
|
|
505
|
+
'Authorization': opts['authorization'],
|
|
506
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
507
|
+
'transactionid': opts['transactionid']
|
|
508
|
+
};
|
|
509
|
+
var formParams = {};
|
|
510
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
511
|
+
var contentTypes = [];
|
|
512
|
+
var accepts = ['application/json'];
|
|
513
|
+
var returnType = _GraphSchema["default"];
|
|
514
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Callback function to receive the result of the removeSchemas operation.
|
|
518
|
+
* @callback module:api/GraphsApi~removeSchemasCallback
|
|
519
|
+
* @param {String} error Error message, if any.
|
|
520
|
+
* @param data This operation does not return a value.
|
|
521
|
+
* @param {String} response The complete HTTP response.
|
|
522
|
+
*/
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Removes schemas to the graph
|
|
526
|
+
* @param {Number} id
|
|
527
|
+
* @param {Array.<Number>} requestBody Array of schema ids
|
|
528
|
+
* @param {Object} opts Optional parameters
|
|
529
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
530
|
+
* @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
|
|
531
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
532
|
+
* @param {module:api/GraphsApi~removeSchemasCallback} callback The callback function, accepting three arguments: error, data, response
|
|
533
|
+
*/
|
|
534
|
+
|
|
535
|
+
}, {
|
|
536
|
+
key: "removeSchemas",
|
|
537
|
+
value: function removeSchemas(id, requestBody, opts, callback) {
|
|
538
|
+
opts = opts || {};
|
|
539
|
+
var postBody = requestBody; // verify the required parameter 'id' is set
|
|
540
|
+
|
|
541
|
+
if (id === undefined || id === null) {
|
|
542
|
+
throw new Error("Missing the required parameter 'id' when calling removeSchemas");
|
|
543
|
+
} // verify the required parameter 'requestBody' is set
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
if (requestBody === undefined || requestBody === null) {
|
|
547
|
+
throw new Error("Missing the required parameter 'requestBody' when calling removeSchemas");
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
var pathParams = {
|
|
551
|
+
'id': id
|
|
552
|
+
};
|
|
553
|
+
var queryParams = {};
|
|
554
|
+
var headerParams = {
|
|
555
|
+
'Authorization': opts['authorization'],
|
|
556
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
557
|
+
'transactionid': opts['transactionid']
|
|
558
|
+
};
|
|
559
|
+
var formParams = {};
|
|
560
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
561
|
+
var contentTypes = ['application/json'];
|
|
562
|
+
var accepts = ['application/json'];
|
|
563
|
+
var returnType = null;
|
|
564
|
+
return this.apiClient.callApi('/graph/data/graph/{id}/schemas', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
565
|
+
}
|
|
566
|
+
}]);
|
|
567
|
+
|
|
568
|
+
return GraphsApi;
|
|
569
|
+
}();
|
|
570
|
+
|
|
571
|
+
exports["default"] = GraphsApi;
|