@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,568 @@
|
|
|
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 _Page = _interopRequireDefault(require("../model/Page"));
|
|
11
|
+
|
|
12
|
+
var _SocialGroup = _interopRequireDefault(require("../model/SocialGroup"));
|
|
13
|
+
|
|
14
|
+
var _User = _interopRequireDefault(require("../model/User"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
+
|
|
20
|
+
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); } }
|
|
21
|
+
|
|
22
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Groups service.
|
|
26
|
+
* @module api/GroupsApi
|
|
27
|
+
* @version 0.1.2
|
|
28
|
+
*/
|
|
29
|
+
var GroupsApi = /*#__PURE__*/function () {
|
|
30
|
+
/**
|
|
31
|
+
* Constructs a new GroupsApi.
|
|
32
|
+
* @alias module:api/GroupsApi
|
|
33
|
+
* @class
|
|
34
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
35
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
36
|
+
*/
|
|
37
|
+
function GroupsApi(apiClient) {
|
|
38
|
+
_classCallCheck(this, GroupsApi);
|
|
39
|
+
|
|
40
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Callback function to receive the result of the addMembers operation.
|
|
44
|
+
* @callback module:api/GroupsApi~addMembersCallback
|
|
45
|
+
* @param {String} error Error message, if any.
|
|
46
|
+
* @param data This operation does not return a value.
|
|
47
|
+
* @param {String} response The complete HTTP response.
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Adds the users corresponding to the list of userids to the group
|
|
52
|
+
* Adds the users corresponding to the list of userids to the group
|
|
53
|
+
* @param {Number} groupid
|
|
54
|
+
* @param {Array.<Number>} requestBody Id of user or an array of user ids to add
|
|
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 {String} opts.inviteCode
|
|
60
|
+
* @param {module:api/GroupsApi~addMembersCallback} callback The callback function, accepting three arguments: error, data, response
|
|
61
|
+
*/
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
_createClass(GroupsApi, [{
|
|
65
|
+
key: "addMembers",
|
|
66
|
+
value: function addMembers(groupid, requestBody, opts, callback) {
|
|
67
|
+
opts = opts || {};
|
|
68
|
+
var postBody = requestBody; // verify the required parameter 'groupid' is set
|
|
69
|
+
|
|
70
|
+
if (groupid === undefined || groupid === null) {
|
|
71
|
+
throw new Error("Missing the required parameter 'groupid' when calling addMembers");
|
|
72
|
+
} // verify the required parameter 'requestBody' is set
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
if (requestBody === undefined || requestBody === null) {
|
|
76
|
+
throw new Error("Missing the required parameter 'requestBody' when calling addMembers");
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
var pathParams = {
|
|
80
|
+
'groupid': groupid
|
|
81
|
+
};
|
|
82
|
+
var queryParams = {
|
|
83
|
+
'inviteCode': opts['inviteCode']
|
|
84
|
+
};
|
|
85
|
+
var headerParams = {
|
|
86
|
+
'Authorization': opts['authorization'],
|
|
87
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
88
|
+
'transactionid': opts['transactionid']
|
|
89
|
+
};
|
|
90
|
+
var formParams = {};
|
|
91
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
92
|
+
var contentTypes = [];
|
|
93
|
+
var accepts = ['*/*'];
|
|
94
|
+
var returnType = null;
|
|
95
|
+
return this.apiClient.callApi('/graph/data/groups/{groupid}/addmembers', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Callback function to receive the result of the createGroup operation.
|
|
99
|
+
* @callback module:api/GroupsApi~createGroupCallback
|
|
100
|
+
* @param {String} error Error message, if any.
|
|
101
|
+
* @param {Array.<module:model/SocialGroup>} data The data returned by the service call.
|
|
102
|
+
* @param {String} response The complete HTTP response.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Create Group
|
|
107
|
+
* Create new group(s)
|
|
108
|
+
* @param {module:model/SocialGroup} socialGroup Group object or array of objects to create
|
|
109
|
+
* @param {Object} opts Optional parameters
|
|
110
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
111
|
+
* @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
|
|
112
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
113
|
+
* @param {module:api/GroupsApi~createGroupCallback} callback The callback function, accepting three arguments: error, data, response
|
|
114
|
+
* data is of type: {@link Array.<module:model/SocialGroup>}
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
}, {
|
|
118
|
+
key: "createGroup",
|
|
119
|
+
value: function createGroup(socialGroup, opts, callback) {
|
|
120
|
+
opts = opts || {};
|
|
121
|
+
var postBody = socialGroup; // verify the required parameter 'socialGroup' is set
|
|
122
|
+
|
|
123
|
+
if (socialGroup === undefined || socialGroup === null) {
|
|
124
|
+
throw new Error("Missing the required parameter 'socialGroup' when calling createGroup");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
var pathParams = {};
|
|
128
|
+
var queryParams = {};
|
|
129
|
+
var headerParams = {
|
|
130
|
+
'Authorization': opts['authorization'],
|
|
131
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
132
|
+
'transactionid': opts['transactionid']
|
|
133
|
+
};
|
|
134
|
+
var formParams = {};
|
|
135
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
136
|
+
var contentTypes = [];
|
|
137
|
+
var accepts = ['*/*'];
|
|
138
|
+
var returnType = [_SocialGroup["default"]];
|
|
139
|
+
return this.apiClient.callApi('/graph/data/groups', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Callback function to receive the result of the editGroup operation.
|
|
143
|
+
* @callback module:api/GroupsApi~editGroupCallback
|
|
144
|
+
* @param {String} error Error message, if any.
|
|
145
|
+
* @param {module:model/Page} data The data returned by the service call.
|
|
146
|
+
* @param {String} response The complete HTTP response.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Edit Group
|
|
151
|
+
* Edits a Group
|
|
152
|
+
* @param {Number} id
|
|
153
|
+
* @param {module:model/Page} page Conversation object or array of objects to create
|
|
154
|
+
* @param {Object} opts Optional parameters
|
|
155
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
156
|
+
* @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
|
|
157
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
158
|
+
* @param {module:api/GroupsApi~editGroupCallback} callback The callback function, accepting three arguments: error, data, response
|
|
159
|
+
* data is of type: {@link module:model/Page}
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
}, {
|
|
163
|
+
key: "editGroup",
|
|
164
|
+
value: function editGroup(id, page, opts, callback) {
|
|
165
|
+
opts = opts || {};
|
|
166
|
+
var postBody = page; // verify the required parameter 'id' is set
|
|
167
|
+
|
|
168
|
+
if (id === undefined || id === null) {
|
|
169
|
+
throw new Error("Missing the required parameter 'id' when calling editGroup");
|
|
170
|
+
} // verify the required parameter 'page' is set
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
if (page === undefined || page === null) {
|
|
174
|
+
throw new Error("Missing the required parameter 'page' when calling editGroup");
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
var pathParams = {
|
|
178
|
+
'id': id
|
|
179
|
+
};
|
|
180
|
+
var queryParams = {};
|
|
181
|
+
var headerParams = {
|
|
182
|
+
'Authorization': opts['authorization'],
|
|
183
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
184
|
+
'transactionid': opts['transactionid']
|
|
185
|
+
};
|
|
186
|
+
var formParams = {};
|
|
187
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
188
|
+
var contentTypes = [];
|
|
189
|
+
var accepts = ['*/*'];
|
|
190
|
+
var returnType = _Page["default"];
|
|
191
|
+
return this.apiClient.callApi('/graph/data/groups/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Callback function to receive the result of the get41 operation.
|
|
195
|
+
* @callback module:api/GroupsApi~get41Callback
|
|
196
|
+
* @param {String} error Error message, if any.
|
|
197
|
+
* @param data This operation does not return a value.
|
|
198
|
+
* @param {String} response The complete HTTP response.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Root for the API
|
|
203
|
+
* @param {Object} opts Optional parameters
|
|
204
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
205
|
+
* @param {Number} opts.zeusportalPostas The id of the organization page this operation is being performed as if the caller chooses to post as an organization page
|
|
206
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
207
|
+
* @param {module:api/GroupsApi~get41Callback} callback The callback function, accepting three arguments: error, data, response
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
}, {
|
|
211
|
+
key: "get41",
|
|
212
|
+
value: function get41(opts, callback) {
|
|
213
|
+
opts = opts || {};
|
|
214
|
+
var postBody = null;
|
|
215
|
+
var pathParams = {};
|
|
216
|
+
var queryParams = {};
|
|
217
|
+
var headerParams = {
|
|
218
|
+
'Authorization': opts['authorization'],
|
|
219
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
220
|
+
'transactionid': opts['transactionid']
|
|
221
|
+
};
|
|
222
|
+
var formParams = {};
|
|
223
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
224
|
+
var contentTypes = [];
|
|
225
|
+
var accepts = ['*/*'];
|
|
226
|
+
var returnType = null;
|
|
227
|
+
return this.apiClient.callApi('/graph/data/groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Callback function to receive the result of the getGroupById operation.
|
|
231
|
+
* @callback module:api/GroupsApi~getGroupByIdCallback
|
|
232
|
+
* @param {String} error Error message, if any.
|
|
233
|
+
* @param {module:model/SocialGroup} data The data returned by the service call.
|
|
234
|
+
* @param {String} response The complete HTTP response.
|
|
235
|
+
*/
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Get Group By Id
|
|
239
|
+
* Returns the group with the given id
|
|
240
|
+
* @param {Number} id
|
|
241
|
+
* @param {Object} opts Optional parameters
|
|
242
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
243
|
+
* @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
|
|
244
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
245
|
+
* @param {module:api/GroupsApi~getGroupByIdCallback} callback The callback function, accepting three arguments: error, data, response
|
|
246
|
+
* data is of type: {@link module:model/SocialGroup}
|
|
247
|
+
*/
|
|
248
|
+
|
|
249
|
+
}, {
|
|
250
|
+
key: "getGroupById",
|
|
251
|
+
value: function getGroupById(id, opts, callback) {
|
|
252
|
+
opts = opts || {};
|
|
253
|
+
var postBody = null; // verify the required parameter 'id' is set
|
|
254
|
+
|
|
255
|
+
if (id === undefined || id === null) {
|
|
256
|
+
throw new Error("Missing the required parameter 'id' when calling getGroupById");
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
var pathParams = {
|
|
260
|
+
'id': id
|
|
261
|
+
};
|
|
262
|
+
var queryParams = {};
|
|
263
|
+
var headerParams = {
|
|
264
|
+
'Authorization': opts['authorization'],
|
|
265
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
266
|
+
'transactionid': opts['transactionid']
|
|
267
|
+
};
|
|
268
|
+
var formParams = {};
|
|
269
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
270
|
+
var contentTypes = [];
|
|
271
|
+
var accepts = ['application/json'];
|
|
272
|
+
var returnType = _SocialGroup["default"];
|
|
273
|
+
return this.apiClient.callApi('/graph/data/groups/{id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Callback function to receive the result of the getMembers operation.
|
|
277
|
+
* @callback module:api/GroupsApi~getMembersCallback
|
|
278
|
+
* @param {String} error Error message, if any.
|
|
279
|
+
* @param {Array.<module:model/User>} data The data returned by the service call.
|
|
280
|
+
* @param {String} response The complete HTTP response.
|
|
281
|
+
*/
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Returns the admins in the group
|
|
285
|
+
* Returns the admins in the group
|
|
286
|
+
* @param {Number} groupid
|
|
287
|
+
* @param {Object} opts Optional parameters
|
|
288
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
289
|
+
* @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
|
|
290
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
291
|
+
* @param {module:api/GroupsApi~getMembersCallback} callback The callback function, accepting three arguments: error, data, response
|
|
292
|
+
* data is of type: {@link Array.<module:model/User>}
|
|
293
|
+
*/
|
|
294
|
+
|
|
295
|
+
}, {
|
|
296
|
+
key: "getMembers",
|
|
297
|
+
value: function getMembers(groupid, opts, callback) {
|
|
298
|
+
opts = opts || {};
|
|
299
|
+
var postBody = null; // verify the required parameter 'groupid' is set
|
|
300
|
+
|
|
301
|
+
if (groupid === undefined || groupid === null) {
|
|
302
|
+
throw new Error("Missing the required parameter 'groupid' when calling getMembers");
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
var pathParams = {
|
|
306
|
+
'groupid': groupid
|
|
307
|
+
};
|
|
308
|
+
var queryParams = {};
|
|
309
|
+
var headerParams = {
|
|
310
|
+
'Authorization': opts['authorization'],
|
|
311
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
312
|
+
'transactionid': opts['transactionid']
|
|
313
|
+
};
|
|
314
|
+
var formParams = {};
|
|
315
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
316
|
+
var contentTypes = [];
|
|
317
|
+
var accepts = ['*/*'];
|
|
318
|
+
var returnType = [_User["default"]];
|
|
319
|
+
return this.apiClient.callApi('/graph/data/groups/{groupid}/administrators', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* Callback function to receive the result of the getMembers1 operation.
|
|
323
|
+
* @callback module:api/GroupsApi~getMembers1Callback
|
|
324
|
+
* @param {String} error Error message, if any.
|
|
325
|
+
* @param {Array.<module:model/User>} data The data returned by the service call.
|
|
326
|
+
* @param {String} response The complete HTTP response.
|
|
327
|
+
*/
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Returns the users in the group
|
|
331
|
+
* Returns the users in the group
|
|
332
|
+
* @param {Number} groupid
|
|
333
|
+
* @param {Object} opts Optional parameters
|
|
334
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
335
|
+
* @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
|
|
336
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
337
|
+
* @param {module:api/GroupsApi~getMembers1Callback} callback The callback function, accepting three arguments: error, data, response
|
|
338
|
+
* data is of type: {@link Array.<module:model/User>}
|
|
339
|
+
*/
|
|
340
|
+
|
|
341
|
+
}, {
|
|
342
|
+
key: "getMembers1",
|
|
343
|
+
value: function getMembers1(groupid, opts, callback) {
|
|
344
|
+
opts = opts || {};
|
|
345
|
+
var postBody = null; // verify the required parameter 'groupid' is set
|
|
346
|
+
|
|
347
|
+
if (groupid === undefined || groupid === null) {
|
|
348
|
+
throw new Error("Missing the required parameter 'groupid' when calling getMembers1");
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
var pathParams = {
|
|
352
|
+
'groupid': groupid
|
|
353
|
+
};
|
|
354
|
+
var queryParams = {};
|
|
355
|
+
var headerParams = {
|
|
356
|
+
'Authorization': opts['authorization'],
|
|
357
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
358
|
+
'transactionid': opts['transactionid']
|
|
359
|
+
};
|
|
360
|
+
var formParams = {};
|
|
361
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
362
|
+
var contentTypes = [];
|
|
363
|
+
var accepts = ['*/*'];
|
|
364
|
+
var returnType = [_User["default"]];
|
|
365
|
+
return this.apiClient.callApi('/graph/data/groups/{groupid}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Callback function to receive the result of the joinGroup operation.
|
|
369
|
+
* @callback module:api/GroupsApi~joinGroupCallback
|
|
370
|
+
* @param {String} error Error message, if any.
|
|
371
|
+
* @param data This operation does not return a value.
|
|
372
|
+
* @param {String} response The complete HTTP response.
|
|
373
|
+
*/
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Adds the currently logged in user to the group
|
|
377
|
+
* Adds the currently logged in user to the group
|
|
378
|
+
* @param {Number} groupid
|
|
379
|
+
* @param {Object} opts Optional parameters
|
|
380
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
381
|
+
* @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
|
|
382
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
383
|
+
* @param {module:api/GroupsApi~joinGroupCallback} callback The callback function, accepting three arguments: error, data, response
|
|
384
|
+
*/
|
|
385
|
+
|
|
386
|
+
}, {
|
|
387
|
+
key: "joinGroup",
|
|
388
|
+
value: function joinGroup(groupid, opts, callback) {
|
|
389
|
+
opts = opts || {};
|
|
390
|
+
var postBody = null; // verify the required parameter 'groupid' is set
|
|
391
|
+
|
|
392
|
+
if (groupid === undefined || groupid === null) {
|
|
393
|
+
throw new Error("Missing the required parameter 'groupid' when calling joinGroup");
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
var pathParams = {
|
|
397
|
+
'groupid': groupid
|
|
398
|
+
};
|
|
399
|
+
var queryParams = {};
|
|
400
|
+
var headerParams = {
|
|
401
|
+
'Authorization': opts['authorization'],
|
|
402
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
403
|
+
'transactionid': opts['transactionid']
|
|
404
|
+
};
|
|
405
|
+
var formParams = {};
|
|
406
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
407
|
+
var contentTypes = [];
|
|
408
|
+
var accepts = ['*/*'];
|
|
409
|
+
var returnType = null;
|
|
410
|
+
return this.apiClient.callApi('/graph/data/groups/{groupid}/join', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Callback function to receive the result of the removeMember operation.
|
|
414
|
+
* @callback module:api/GroupsApi~removeMemberCallback
|
|
415
|
+
* @param {String} error Error message, if any.
|
|
416
|
+
* @param data This operation does not return a value.
|
|
417
|
+
* @param {String} response The complete HTTP response.
|
|
418
|
+
*/
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Remove the user from the group
|
|
422
|
+
* Returns the users in the group
|
|
423
|
+
* @param {Number} groupid
|
|
424
|
+
* @param {Number} uid
|
|
425
|
+
* @param {Object} opts Optional parameters
|
|
426
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
427
|
+
* @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
|
|
428
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
429
|
+
* @param {module:api/GroupsApi~removeMemberCallback} callback The callback function, accepting three arguments: error, data, response
|
|
430
|
+
*/
|
|
431
|
+
|
|
432
|
+
}, {
|
|
433
|
+
key: "removeMember",
|
|
434
|
+
value: function removeMember(groupid, uid, opts, callback) {
|
|
435
|
+
opts = opts || {};
|
|
436
|
+
var postBody = null; // verify the required parameter 'groupid' is set
|
|
437
|
+
|
|
438
|
+
if (groupid === undefined || groupid === null) {
|
|
439
|
+
throw new Error("Missing the required parameter 'groupid' when calling removeMember");
|
|
440
|
+
} // verify the required parameter 'uid' is set
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
if (uid === undefined || uid === null) {
|
|
444
|
+
throw new Error("Missing the required parameter 'uid' when calling removeMember");
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
var pathParams = {
|
|
448
|
+
'groupid': groupid,
|
|
449
|
+
'uid': uid
|
|
450
|
+
};
|
|
451
|
+
var queryParams = {};
|
|
452
|
+
var headerParams = {
|
|
453
|
+
'Authorization': opts['authorization'],
|
|
454
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
455
|
+
'transactionid': opts['transactionid']
|
|
456
|
+
};
|
|
457
|
+
var formParams = {};
|
|
458
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
459
|
+
var contentTypes = [];
|
|
460
|
+
var accepts = ['*/*'];
|
|
461
|
+
var returnType = null;
|
|
462
|
+
return this.apiClient.callApi('/graph/data/groups/{groupid}/members/{uid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Callback function to receive the result of the setGroupProperties operation.
|
|
466
|
+
* @callback module:api/GroupsApi~setGroupPropertiesCallback
|
|
467
|
+
* @param {String} error Error message, if any.
|
|
468
|
+
* @param data This operation does not return a value.
|
|
469
|
+
* @param {String} response The complete HTTP response.
|
|
470
|
+
*/
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* Set Multiple Properties
|
|
474
|
+
* Set multiple properties attaced to an object / record
|
|
475
|
+
* @param {Number} id
|
|
476
|
+
* @param {Object} opts Optional parameters
|
|
477
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
478
|
+
* @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
|
|
479
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
480
|
+
* @param {Object.<String, {String: Object}>} opts.requestBody
|
|
481
|
+
* @param {module:api/GroupsApi~setGroupPropertiesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
482
|
+
*/
|
|
483
|
+
|
|
484
|
+
}, {
|
|
485
|
+
key: "setGroupProperties",
|
|
486
|
+
value: function setGroupProperties(id, opts, callback) {
|
|
487
|
+
opts = opts || {};
|
|
488
|
+
var postBody = opts['requestBody']; // verify the required parameter 'id' is set
|
|
489
|
+
|
|
490
|
+
if (id === undefined || id === null) {
|
|
491
|
+
throw new Error("Missing the required parameter 'id' when calling setGroupProperties");
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
var pathParams = {
|
|
495
|
+
'id': id
|
|
496
|
+
};
|
|
497
|
+
var queryParams = {};
|
|
498
|
+
var headerParams = {
|
|
499
|
+
'Authorization': opts['authorization'],
|
|
500
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
501
|
+
'transactionid': opts['transactionid']
|
|
502
|
+
};
|
|
503
|
+
var formParams = {};
|
|
504
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
505
|
+
var contentTypes = ['application/json'];
|
|
506
|
+
var accepts = ['*/*'];
|
|
507
|
+
var returnType = null;
|
|
508
|
+
return this.apiClient.callApi('/graph/data/groups/{id}/properties', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Callback function to receive the result of the setGroupProperty operation.
|
|
512
|
+
* @callback module:api/GroupsApi~setGroupPropertyCallback
|
|
513
|
+
* @param {String} error Error message, if any.
|
|
514
|
+
* @param data This operation does not return a value.
|
|
515
|
+
* @param {String} response The complete HTTP response.
|
|
516
|
+
*/
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Update Property
|
|
520
|
+
* Update a specific property
|
|
521
|
+
* @param {Number} id
|
|
522
|
+
* @param {String} prop
|
|
523
|
+
* @param {Object} opts Optional parameters
|
|
524
|
+
* @param {String} opts.authorization The authorization token of the logged in user
|
|
525
|
+
* @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
|
|
526
|
+
* @param {String} opts.transactionid The id of the transaction this operation is being run in
|
|
527
|
+
* @param {String} opts.body
|
|
528
|
+
* @param {module:api/GroupsApi~setGroupPropertyCallback} callback The callback function, accepting three arguments: error, data, response
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
}, {
|
|
532
|
+
key: "setGroupProperty",
|
|
533
|
+
value: function setGroupProperty(id, prop, opts, callback) {
|
|
534
|
+
opts = opts || {};
|
|
535
|
+
var postBody = opts['body']; // verify the required parameter 'id' is set
|
|
536
|
+
|
|
537
|
+
if (id === undefined || id === null) {
|
|
538
|
+
throw new Error("Missing the required parameter 'id' when calling setGroupProperty");
|
|
539
|
+
} // verify the required parameter 'prop' is set
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
if (prop === undefined || prop === null) {
|
|
543
|
+
throw new Error("Missing the required parameter 'prop' when calling setGroupProperty");
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
var pathParams = {
|
|
547
|
+
'id': id,
|
|
548
|
+
'prop': prop
|
|
549
|
+
};
|
|
550
|
+
var queryParams = {};
|
|
551
|
+
var headerParams = {
|
|
552
|
+
'Authorization': opts['authorization'],
|
|
553
|
+
'zeusportal-postas': opts['zeusportalPostas'],
|
|
554
|
+
'transactionid': opts['transactionid']
|
|
555
|
+
};
|
|
556
|
+
var formParams = {};
|
|
557
|
+
var authNames = ['NexusGraphAPIAuth', 'NexusGraphAPIKey'];
|
|
558
|
+
var contentTypes = ['application/json'];
|
|
559
|
+
var accepts = ['*/*'];
|
|
560
|
+
var returnType = null;
|
|
561
|
+
return this.apiClient.callApi('/graph/data/groups/{id}/properties/{prop}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
562
|
+
}
|
|
563
|
+
}]);
|
|
564
|
+
|
|
565
|
+
return GroupsApi;
|
|
566
|
+
}();
|
|
567
|
+
|
|
568
|
+
exports["default"] = GroupsApi;
|