@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,301 @@
|
|
|
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 _InlineObject = _interopRequireDefault(require("../model/InlineObject4"));
|
|
11
|
+
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
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); } }
|
|
17
|
+
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Ads service.
|
|
22
|
+
* @module api/AdsApi
|
|
23
|
+
* @version 0.1.2
|
|
24
|
+
*/
|
|
25
|
+
var AdsApi = /*#__PURE__*/function () {
|
|
26
|
+
/**
|
|
27
|
+
* Constructs a new AdsApi.
|
|
28
|
+
* @alias module:api/AdsApi
|
|
29
|
+
* @class
|
|
30
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
31
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
32
|
+
*/
|
|
33
|
+
function AdsApi(apiClient) {
|
|
34
|
+
_classCallCheck(this, AdsApi);
|
|
35
|
+
|
|
36
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Callback function to receive the result of the createAd operation.
|
|
40
|
+
* @callback module:api/AdsApi~createAdCallback
|
|
41
|
+
* @param {String} error Error message, if any.
|
|
42
|
+
* @param {module:model/InlineObject4} data The data returned by the service call.
|
|
43
|
+
* @param {String} response The complete HTTP response.
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Create Ad
|
|
48
|
+
* Creates a new Ad object
|
|
49
|
+
* @param {Object} opts Optional parameters
|
|
50
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
51
|
+
* @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
|
|
52
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
53
|
+
* @param {module:model/InlineObject4} opts.inlineObject4
|
|
54
|
+
* @param {module:api/AdsApi~createAdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
55
|
+
* data is of type: {@link module:model/InlineObject4}
|
|
56
|
+
*/
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
_createClass(AdsApi, [{
|
|
60
|
+
key: "createAd",
|
|
61
|
+
value: function createAd(opts, callback) {
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
var postBody = opts['inlineObject4'];
|
|
64
|
+
var pathParams = {};
|
|
65
|
+
var queryParams = {};
|
|
66
|
+
var headerParams = {
|
|
67
|
+
'Authorization': opts['authorization'],
|
|
68
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
69
|
+
'transactionid': opts['transactionid']
|
|
70
|
+
};
|
|
71
|
+
var formParams = {};
|
|
72
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
73
|
+
var contentTypes = [];
|
|
74
|
+
var accepts = ['*/*'];
|
|
75
|
+
var returnType = _InlineObject["default"];
|
|
76
|
+
return this.apiClient.callApi('/graph/data/ads/ads', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Callback function to receive the result of the deleteObject operation.
|
|
80
|
+
* @callback module:api/AdsApi~deleteObjectCallback
|
|
81
|
+
* @param {String} error Error message, if any.
|
|
82
|
+
* @param data This operation does not return a value.
|
|
83
|
+
* @param {String} response The complete HTTP response.
|
|
84
|
+
*/
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Delete's the object with the id
|
|
88
|
+
* @param {Number} id The id of the object to delete
|
|
89
|
+
* @param {Object} opts Optional parameters
|
|
90
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
91
|
+
* @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
|
|
92
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
93
|
+
* @param {module:api/AdsApi~deleteObjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
}, {
|
|
97
|
+
key: "deleteObject",
|
|
98
|
+
value: function deleteObject(id, opts, callback) {
|
|
99
|
+
opts = opts || {};
|
|
100
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
101
|
+
|
|
102
|
+
if (id === undefined || id === null) {
|
|
103
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var pathParams = {
|
|
107
|
+
'id': id
|
|
108
|
+
};
|
|
109
|
+
var queryParams = {};
|
|
110
|
+
var headerParams = {
|
|
111
|
+
'Authorization': opts['authorization'],
|
|
112
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
113
|
+
'transactionid': opts['transactionid']
|
|
114
|
+
};
|
|
115
|
+
var formParams = {};
|
|
116
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
117
|
+
var contentTypes = [];
|
|
118
|
+
var accepts = ['application/json'];
|
|
119
|
+
var returnType = null;
|
|
120
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Callback function to receive the result of the get19 operation.
|
|
124
|
+
* @callback module:api/AdsApi~get19Callback
|
|
125
|
+
* @param {String} error Error message, if any.
|
|
126
|
+
* @param data This operation does not return a value.
|
|
127
|
+
* @param {String} response The complete HTTP response.
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Root for the API
|
|
132
|
+
* @param {Object} opts Optional parameters
|
|
133
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
134
|
+
* @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
|
|
135
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
136
|
+
* @param {module:api/AdsApi~get19Callback} callback The callback function, accepting three arguments: error, data, response
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
}, {
|
|
140
|
+
key: "get19",
|
|
141
|
+
value: function get19(opts, callback) {
|
|
142
|
+
opts = opts || {};
|
|
143
|
+
var postBody = null;
|
|
144
|
+
var pathParams = {};
|
|
145
|
+
var queryParams = {};
|
|
146
|
+
var headerParams = {
|
|
147
|
+
'Authorization': opts['authorization'],
|
|
148
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
149
|
+
'transactionid': opts['transactionid']
|
|
150
|
+
};
|
|
151
|
+
var formParams = {};
|
|
152
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
153
|
+
var contentTypes = [];
|
|
154
|
+
var accepts = ['*/*'];
|
|
155
|
+
var returnType = null;
|
|
156
|
+
return this.apiClient.callApi('/graph/data/ads/ads', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Callback function to receive the result of the get20 operation.
|
|
160
|
+
* @callback module:api/AdsApi~get20Callback
|
|
161
|
+
* @param {String} error Error message, if any.
|
|
162
|
+
* @param {Object.<String, module:model/{String: InlineObject4}>} data The data returned by the service call.
|
|
163
|
+
* @param {String} response The complete HTTP response.
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Gets and object by id
|
|
168
|
+
* @param {Number} id
|
|
169
|
+
* @param {Object} opts Optional parameters
|
|
170
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
171
|
+
* @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
|
|
172
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
173
|
+
* @param {module:api/AdsApi~get20Callback} callback The callback function, accepting three arguments: error, data, response
|
|
174
|
+
* data is of type: {@link Object.<String, module:model/{String: InlineObject4}>}
|
|
175
|
+
*/
|
|
176
|
+
|
|
177
|
+
}, {
|
|
178
|
+
key: "get20",
|
|
179
|
+
value: function get20(id, opts, callback) {
|
|
180
|
+
opts = opts || {};
|
|
181
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
182
|
+
|
|
183
|
+
if (id === undefined || id === null) {
|
|
184
|
+
throw new Error("Missing the required parameter 'id' when calling get20");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var pathParams = {
|
|
188
|
+
'id': id
|
|
189
|
+
};
|
|
190
|
+
var queryParams = {};
|
|
191
|
+
var headerParams = {
|
|
192
|
+
'Authorization': opts['authorization'],
|
|
193
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
194
|
+
'transactionid': opts['transactionid']
|
|
195
|
+
};
|
|
196
|
+
var formParams = {};
|
|
197
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
198
|
+
var contentTypes = [];
|
|
199
|
+
var accepts = ['application/json'];
|
|
200
|
+
var returnType = {
|
|
201
|
+
'String': _InlineObject["default"]
|
|
202
|
+
};
|
|
203
|
+
return this.apiClient.callApi('/graph/data/ads/ads/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Callback function to receive the result of the getCampaign operation.
|
|
207
|
+
* @callback module:api/AdsApi~getCampaignCallback
|
|
208
|
+
* @param {String} error Error message, if any.
|
|
209
|
+
* @param {Object.<String, module:model/{String: InlineObject4}>} data The data returned by the service call.
|
|
210
|
+
* @param {String} response The complete HTTP response.
|
|
211
|
+
*/
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @param {Number} id
|
|
215
|
+
* @param {Object} opts Optional parameters
|
|
216
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
217
|
+
* @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
|
|
218
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
219
|
+
* @param {module:api/AdsApi~getCampaignCallback} callback The callback function, accepting three arguments: error, data, response
|
|
220
|
+
* data is of type: {@link Object.<String, module:model/{String: InlineObject4}>}
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
}, {
|
|
224
|
+
key: "getCampaign",
|
|
225
|
+
value: function getCampaign(id, opts, callback) {
|
|
226
|
+
opts = opts || {};
|
|
227
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
228
|
+
|
|
229
|
+
if (id === undefined || id === null) {
|
|
230
|
+
throw new Error("Missing the required parameter 'id' when calling getCampaign");
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
var pathParams = {
|
|
234
|
+
'id': id
|
|
235
|
+
};
|
|
236
|
+
var queryParams = {};
|
|
237
|
+
var headerParams = {
|
|
238
|
+
'Authorization': opts['authorization'],
|
|
239
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
240
|
+
'transactionid': opts['transactionid']
|
|
241
|
+
};
|
|
242
|
+
var formParams = {};
|
|
243
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
244
|
+
var contentTypes = [];
|
|
245
|
+
var accepts = ['*/*'];
|
|
246
|
+
var returnType = {
|
|
247
|
+
'String': _InlineObject["default"]
|
|
248
|
+
};
|
|
249
|
+
return this.apiClient.callApi('/graph/data/ads/ads/{id}/campaign', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Callback function to receive the result of the update1 operation.
|
|
253
|
+
* @callback module:api/AdsApi~update1Callback
|
|
254
|
+
* @param {String} error Error message, if any.
|
|
255
|
+
* @param {module:model/InlineObject4} data The data returned by the service call.
|
|
256
|
+
* @param {String} response The complete HTTP response.
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* @param {Number} id
|
|
261
|
+
* @param {Object} opts Optional parameters
|
|
262
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
263
|
+
* @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
|
|
264
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
265
|
+
* @param {Object.<String, {String: Object}>} opts.requestBody
|
|
266
|
+
* @param {module:api/AdsApi~update1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
267
|
+
* data is of type: {@link module:model/InlineObject4}
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
}, {
|
|
271
|
+
key: "update1",
|
|
272
|
+
value: function update1(id, opts, callback) {
|
|
273
|
+
opts = opts || {};
|
|
274
|
+
var postBody = opts['requestBody']; // verify the required parameter 'id' is set
|
|
275
|
+
|
|
276
|
+
if (id === undefined || id === null) {
|
|
277
|
+
throw new Error("Missing the required parameter 'id' when calling update1");
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
var pathParams = {
|
|
281
|
+
'id': id
|
|
282
|
+
};
|
|
283
|
+
var queryParams = {};
|
|
284
|
+
var headerParams = {
|
|
285
|
+
'Authorization': opts['authorization'],
|
|
286
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
287
|
+
'transactionid': opts['transactionid']
|
|
288
|
+
};
|
|
289
|
+
var formParams = {};
|
|
290
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
291
|
+
var contentTypes = [];
|
|
292
|
+
var accepts = ['*/*'];
|
|
293
|
+
var returnType = _InlineObject["default"];
|
|
294
|
+
return this.apiClient.callApi('/graph/data/ads/ads/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
295
|
+
}
|
|
296
|
+
}]);
|
|
297
|
+
|
|
298
|
+
return AdsApi;
|
|
299
|
+
}();
|
|
300
|
+
|
|
301
|
+
exports["default"] = AdsApi;
|
|
@@ -0,0 +1,361 @@
|
|
|
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 _FileAttachmentUploadObject = _interopRequireDefault(require("../model/FileAttachmentUploadObject"));
|
|
11
|
+
|
|
12
|
+
var _InlineObject = _interopRequireDefault(require("../model/InlineObject4"));
|
|
13
|
+
|
|
14
|
+
var _InputPart = _interopRequireDefault(require("../model/InputPart"));
|
|
15
|
+
|
|
16
|
+
var _MultipartBody = _interopRequireDefault(require("../model/MultipartBody"));
|
|
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
|
+
* Attachments service.
|
|
28
|
+
* @module api/AttachmentsApi
|
|
29
|
+
* @version 0.1.2
|
|
30
|
+
*/
|
|
31
|
+
var AttachmentsApi = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new AttachmentsApi.
|
|
34
|
+
* @alias module:api/AttachmentsApi
|
|
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 AttachmentsApi(apiClient) {
|
|
40
|
+
_classCallCheck(this, AttachmentsApi);
|
|
41
|
+
|
|
42
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Callback function to receive the result of the deleteObject operation.
|
|
46
|
+
* @callback module:api/AttachmentsApi~deleteObjectCallback
|
|
47
|
+
* @param {String} error Error message, if any.
|
|
48
|
+
* @param data This operation does not return a value.
|
|
49
|
+
* @param {String} response The complete HTTP response.
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Delete's the object with the id
|
|
54
|
+
* @param {Number} id The id of the object to delete
|
|
55
|
+
* @param {Object} opts Optional parameters
|
|
56
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
57
|
+
* @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
|
|
58
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
59
|
+
* @param {module:api/AttachmentsApi~deleteObjectCallback} callback The callback function, accepting three arguments: error, data, response
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
_createClass(AttachmentsApi, [{
|
|
64
|
+
key: "deleteObject",
|
|
65
|
+
value: function deleteObject(id, opts, callback) {
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
68
|
+
|
|
69
|
+
if (id === undefined || id === null) {
|
|
70
|
+
throw new Error("Missing the required parameter 'id' when calling deleteObject");
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
var pathParams = {
|
|
74
|
+
'id': id
|
|
75
|
+
};
|
|
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 = [];
|
|
85
|
+
var accepts = ['application/json'];
|
|
86
|
+
var returnType = null;
|
|
87
|
+
return this.apiClient.callApi('/graph/data/object/{id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Callback function to receive the result of the get23 operation.
|
|
91
|
+
* @callback module:api/AttachmentsApi~get23Callback
|
|
92
|
+
* @param {String} error Error message, if any.
|
|
93
|
+
* @param data This operation does not return a value.
|
|
94
|
+
* @param {String} response The complete HTTP response.
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Root for the API
|
|
99
|
+
* @param {Object} opts Optional parameters
|
|
100
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
101
|
+
* @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
|
|
102
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
103
|
+
* @param {module:api/AttachmentsApi~get23Callback} callback The callback function, accepting three arguments: error, data, response
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
}, {
|
|
107
|
+
key: "get23",
|
|
108
|
+
value: function get23(opts, callback) {
|
|
109
|
+
opts = opts || {};
|
|
110
|
+
var postBody = null;
|
|
111
|
+
var pathParams = {};
|
|
112
|
+
var queryParams = {};
|
|
113
|
+
var headerParams = {
|
|
114
|
+
'Authorization': opts['authorization'],
|
|
115
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
116
|
+
'transactionid': opts['transactionid']
|
|
117
|
+
};
|
|
118
|
+
var formParams = {};
|
|
119
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
120
|
+
var contentTypes = [];
|
|
121
|
+
var accepts = ['*/*'];
|
|
122
|
+
var returnType = null;
|
|
123
|
+
return this.apiClient.callApi('/graph/data/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Callback function to receive the result of the getFileById operation.
|
|
127
|
+
* @callback module:api/AttachmentsApi~getFileByIdCallback
|
|
128
|
+
* @param {String} error Error message, if any.
|
|
129
|
+
* @param {File} data The data returned by the service call.
|
|
130
|
+
* @param {String} response The complete HTTP response.
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Get File By Id
|
|
135
|
+
* Returns the file with the given id
|
|
136
|
+
* @param {Number} id
|
|
137
|
+
* @param {Object} opts Optional parameters
|
|
138
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
139
|
+
* @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
|
|
140
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
141
|
+
* @param {module:api/AttachmentsApi~getFileByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
142
|
+
* data is of type: {@link File}
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
}, {
|
|
146
|
+
key: "getFileById",
|
|
147
|
+
value: function getFileById(id, opts, callback) {
|
|
148
|
+
opts = opts || {};
|
|
149
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
150
|
+
|
|
151
|
+
if (id === undefined || id === null) {
|
|
152
|
+
throw new Error("Missing the required parameter 'id' when calling getFileById");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
var pathParams = {
|
|
156
|
+
'id': id
|
|
157
|
+
};
|
|
158
|
+
var queryParams = {};
|
|
159
|
+
var headerParams = {
|
|
160
|
+
'Authorization': opts['authorization'],
|
|
161
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
162
|
+
'transactionid': opts['transactionid']
|
|
163
|
+
};
|
|
164
|
+
var formParams = {};
|
|
165
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
166
|
+
var contentTypes = [];
|
|
167
|
+
var accepts = ['application/json'];
|
|
168
|
+
var returnType = File;
|
|
169
|
+
return this.apiClient.callApi('/graph/data/files/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Callback function to receive the result of the getFiles operation.
|
|
173
|
+
* @callback module:api/AttachmentsApi~getFilesCallback
|
|
174
|
+
* @param {String} error Error message, if any.
|
|
175
|
+
* @param {Array.<File>} data The data returned by the service call.
|
|
176
|
+
* @param {String} response The complete HTTP response.
|
|
177
|
+
*/
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {Number} id
|
|
181
|
+
* @param {Object} opts Optional parameters
|
|
182
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
183
|
+
* @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
|
|
184
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
185
|
+
* @param {module:api/AttachmentsApi~getFilesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
186
|
+
* data is of type: {@link Array.<File>}
|
|
187
|
+
*/
|
|
188
|
+
|
|
189
|
+
}, {
|
|
190
|
+
key: "getFiles",
|
|
191
|
+
value: function getFiles(id, opts, callback) {
|
|
192
|
+
opts = opts || {};
|
|
193
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
194
|
+
|
|
195
|
+
if (id === undefined || id === null) {
|
|
196
|
+
throw new Error("Missing the required parameter 'id' when calling getFiles");
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
var pathParams = {
|
|
200
|
+
'id': id
|
|
201
|
+
};
|
|
202
|
+
var queryParams = {};
|
|
203
|
+
var headerParams = {
|
|
204
|
+
'Authorization': opts['authorization'],
|
|
205
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
206
|
+
'transactionid': opts['transactionid']
|
|
207
|
+
};
|
|
208
|
+
var formParams = {};
|
|
209
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
210
|
+
var contentTypes = [];
|
|
211
|
+
var accepts = ['application/json'];
|
|
212
|
+
var returnType = [File];
|
|
213
|
+
return this.apiClient.callApi('/graph/data/object/{id}/files', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Callback function to receive the result of the updateFile operation.
|
|
217
|
+
* @callback module:api/AttachmentsApi~updateFileCallback
|
|
218
|
+
* @param {String} error Error message, if any.
|
|
219
|
+
* @param {File} data The data returned by the service call.
|
|
220
|
+
* @param {String} response The complete HTTP response.
|
|
221
|
+
*/
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Update File
|
|
225
|
+
* Updates the file with the given id
|
|
226
|
+
* @param {Number} id
|
|
227
|
+
* @param {Object} opts Optional parameters
|
|
228
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
229
|
+
* @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
|
|
230
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
231
|
+
* @param {Object.<String, {String: Object}>} opts.requestBody
|
|
232
|
+
* @param {module:api/AttachmentsApi~updateFileCallback} callback The callback function, accepting three arguments: error, data, response
|
|
233
|
+
* data is of type: {@link File}
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
}, {
|
|
237
|
+
key: "updateFile",
|
|
238
|
+
value: function updateFile(id, opts, callback) {
|
|
239
|
+
opts = opts || {};
|
|
240
|
+
var postBody = opts['requestBody']; // verify the required parameter 'id' is set
|
|
241
|
+
|
|
242
|
+
if (id === undefined || id === null) {
|
|
243
|
+
throw new Error("Missing the required parameter 'id' when calling updateFile");
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
var pathParams = {
|
|
247
|
+
'id': id
|
|
248
|
+
};
|
|
249
|
+
var queryParams = {};
|
|
250
|
+
var headerParams = {
|
|
251
|
+
'Authorization': opts['authorization'],
|
|
252
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
253
|
+
'transactionid': opts['transactionid']
|
|
254
|
+
};
|
|
255
|
+
var formParams = {};
|
|
256
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
257
|
+
var contentTypes = ['application/json'];
|
|
258
|
+
var accepts = ['application/json'];
|
|
259
|
+
var returnType = File;
|
|
260
|
+
return this.apiClient.callApi('/graph/data/files/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
261
|
+
}
|
|
262
|
+
/**
|
|
263
|
+
* Callback function to receive the result of the upload operation.
|
|
264
|
+
* @callback module:api/AttachmentsApi~uploadCallback
|
|
265
|
+
* @param {String} error Error message, if any.
|
|
266
|
+
* @param {Object.<String, module:model/{String: InlineObject4}>} data The data returned by the service call.
|
|
267
|
+
* @param {String} response The complete HTTP response.
|
|
268
|
+
*/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @param {Number} id
|
|
272
|
+
* @param {Object} opts Optional parameters
|
|
273
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
274
|
+
* @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
|
|
275
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
276
|
+
* @param {Array.<module:model/InputPart>} opts.parts
|
|
277
|
+
* @param {String} opts.preamble
|
|
278
|
+
* @param {module:api/AttachmentsApi~uploadCallback} callback The callback function, accepting three arguments: error, data, response
|
|
279
|
+
* data is of type: {@link Object.<String, module:model/{String: InlineObject4}>}
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
}, {
|
|
283
|
+
key: "upload",
|
|
284
|
+
value: function upload(id, opts, callback) {
|
|
285
|
+
opts = opts || {};
|
|
286
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
287
|
+
|
|
288
|
+
if (id === undefined || id === null) {
|
|
289
|
+
throw new Error("Missing the required parameter 'id' when calling upload");
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
var pathParams = {
|
|
293
|
+
'id': id
|
|
294
|
+
};
|
|
295
|
+
var queryParams = {};
|
|
296
|
+
var headerParams = {
|
|
297
|
+
'Authorization': opts['authorization'],
|
|
298
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
299
|
+
'transactionid': opts['transactionid']
|
|
300
|
+
};
|
|
301
|
+
var formParams = {
|
|
302
|
+
'parts': this.apiClient.buildCollectionParam(opts['parts'], 'csv'),
|
|
303
|
+
'preamble': opts['preamble']
|
|
304
|
+
};
|
|
305
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
306
|
+
var contentTypes = ['multipart/form-data'];
|
|
307
|
+
var accepts = ['*/*'];
|
|
308
|
+
var returnType = {
|
|
309
|
+
'String': _InlineObject["default"]
|
|
310
|
+
};
|
|
311
|
+
return this.apiClient.callApi('/graph/data/files/{id}/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Callback function to receive the result of the uploadFile operation.
|
|
315
|
+
* @callback module:api/AttachmentsApi~uploadFileCallback
|
|
316
|
+
* @param {String} error Error message, if any.
|
|
317
|
+
* @param {Array.<File>} data The data returned by the service call.
|
|
318
|
+
* @param {String} response The complete HTTP response.
|
|
319
|
+
*/
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* Upload data
|
|
323
|
+
* Uploads one or more attachments
|
|
324
|
+
* @param {Object} opts Optional parameters
|
|
325
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
326
|
+
* @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
|
|
327
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
328
|
+
* @param {module:model/FileAttachmentUploadObject} opts.object
|
|
329
|
+
* @param {module:model/MultipartBody} opts.body
|
|
330
|
+
* @param {module:api/AttachmentsApi~uploadFileCallback} callback The callback function, accepting three arguments: error, data, response
|
|
331
|
+
* data is of type: {@link Array.<File>}
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
}, {
|
|
335
|
+
key: "uploadFile",
|
|
336
|
+
value: function uploadFile(opts, callback) {
|
|
337
|
+
opts = opts || {};
|
|
338
|
+
var postBody = null;
|
|
339
|
+
var pathParams = {};
|
|
340
|
+
var queryParams = {};
|
|
341
|
+
var headerParams = {
|
|
342
|
+
'Authorization': opts['authorization'],
|
|
343
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
344
|
+
'transactionid': opts['transactionid']
|
|
345
|
+
};
|
|
346
|
+
var formParams = {
|
|
347
|
+
'object': opts['object'],
|
|
348
|
+
'body': opts['body']
|
|
349
|
+
};
|
|
350
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
351
|
+
var contentTypes = ['multipart/form-data'];
|
|
352
|
+
var accepts = ['application/json'];
|
|
353
|
+
var returnType = [File];
|
|
354
|
+
return this.apiClient.callApi('/graph/data/files/upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
355
|
+
}
|
|
356
|
+
}]);
|
|
357
|
+
|
|
358
|
+
return AttachmentsApi;
|
|
359
|
+
}();
|
|
360
|
+
|
|
361
|
+
exports["default"] = AttachmentsApi;
|