@getbrevo/brevo 1.0.0
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/.eslintignore +2 -0
- package/.eslintrc +22 -0
- package/.github/CODEOWNERS +1 -0
- package/.github/workflows/release.yml +20 -0
- package/.swagger-codegen/VERSION +1 -0
- package/.swagger-codegen-ignore +23 -0
- package/.travis.yml +5 -0
- package/LICENSE.md +15 -0
- package/README.md +683 -0
- package/docs/AbTestCampaignResult.md +43 -0
- package/docs/AbTestCampaignResultClickedLinks.md +9 -0
- package/docs/AbTestCampaignResultStatistics.md +13 -0
- package/docs/AbTestVersionClicks.md +7 -0
- package/docs/AbTestVersionClicksInner.md +10 -0
- package/docs/AbTestVersionStats.md +9 -0
- package/docs/AccountApi.md +119 -0
- package/docs/AddChildDomain.md +8 -0
- package/docs/AddContactToList.md +9 -0
- package/docs/AddCredits.md +9 -0
- package/docs/AuthenticateDomainModel.md +9 -0
- package/docs/BlockDomain.md +8 -0
- package/docs/Body.md +10 -0
- package/docs/Body1.md +10 -0
- package/docs/Body10.md +11 -0
- package/docs/Body11.md +8 -0
- package/docs/Body12.md +11 -0
- package/docs/Body2.md +11 -0
- package/docs/Body3.md +9 -0
- package/docs/Body4.md +9 -0
- package/docs/Body5.md +11 -0
- package/docs/Body6.md +18 -0
- package/docs/Body7.md +17 -0
- package/docs/Body8.md +13 -0
- package/docs/Body9.md +8 -0
- package/docs/BodyVariablesItems.md +7 -0
- package/docs/CompaniesApi.md +406 -0
- package/docs/CompaniesList.md +8 -0
- package/docs/Company.md +11 -0
- package/docs/CompanyAttributes.md +7 -0
- package/docs/CompanyAttributesInner.md +12 -0
- package/docs/ComponentItems.md +9 -0
- package/docs/ContactsApi.md +1691 -0
- package/docs/ConversationsApi.md +518 -0
- package/docs/ConversationsMessage.md +28 -0
- package/docs/ConversationsMessageFile.md +12 -0
- package/docs/ConversationsMessageFileImageInfo.md +10 -0
- package/docs/CouponsApi.md +291 -0
- package/docs/CreateApiKeyRequest.md +9 -0
- package/docs/CreateApiKeyResponse.md +9 -0
- package/docs/CreateAttribute.md +30 -0
- package/docs/CreateAttributeEnumeration.md +9 -0
- package/docs/CreateCategoryModel.md +8 -0
- package/docs/CreateChild.md +32 -0
- package/docs/CreateContact.md +15 -0
- package/docs/CreateCouponCollection.md +9 -0
- package/docs/CreateCoupons.md +9 -0
- package/docs/CreateDoiContact.md +13 -0
- package/docs/CreateDomain.md +8 -0
- package/docs/CreateDomainModel.md +11 -0
- package/docs/CreateDomainModelDnsRecords.md +9 -0
- package/docs/CreateDomainModelDnsRecordsDkimRecord.md +11 -0
- package/docs/CreateEmailCampaign.md +49 -0
- package/docs/CreateEmailCampaignRecipients.md +10 -0
- package/docs/CreateEmailCampaignSender.md +10 -0
- package/docs/CreateExternalFeed.md +29 -0
- package/docs/CreateList.md +9 -0
- package/docs/CreateModel.md +8 -0
- package/docs/CreateProductModel.md +8 -0
- package/docs/CreateReseller.md +9 -0
- package/docs/CreateSender.md +10 -0
- package/docs/CreateSenderIps.md +10 -0
- package/docs/CreateSenderModel.md +10 -0
- package/docs/CreateSmsCampaign.md +15 -0
- package/docs/CreateSmsCampaignRecipients.md +9 -0
- package/docs/CreateSmtpEmail.md +9 -0
- package/docs/CreateSmtpTemplate.md +17 -0
- package/docs/CreateSmtpTemplateSender.md +10 -0
- package/docs/CreateSubAccount.md +30 -0
- package/docs/CreateSubAccountResponse.md +8 -0
- package/docs/CreateUpdateBatchCategory.md +9 -0
- package/docs/CreateUpdateBatchCategoryModel.md +9 -0
- package/docs/CreateUpdateBatchProducts.md +9 -0
- package/docs/CreateUpdateBatchProductsModel.md +9 -0
- package/docs/CreateUpdateCategories.md +11 -0
- package/docs/CreateUpdateCategory.md +12 -0
- package/docs/CreateUpdateContactModel.md +8 -0
- package/docs/CreateUpdateFolder.md +8 -0
- package/docs/CreateUpdateProduct.md +18 -0
- package/docs/CreateUpdateProducts.md +17 -0
- package/docs/CreateWebhook.md +66 -0
- package/docs/CreateWhatsAppCampaign.md +11 -0
- package/docs/CreateWhatsAppCampaignRecipients.md +10 -0
- package/docs/CreateWhatsAppTemplate.md +24 -0
- package/docs/CreatedBatchId.md +8 -0
- package/docs/CreatedProcessId.md +8 -0
- package/docs/Deal.md +11 -0
- package/docs/DealAttributes.md +7 -0
- package/docs/DealAttributesInner.md +12 -0
- package/docs/DealsApi.md +512 -0
- package/docs/DealsList.md +8 -0
- package/docs/DeleteHardbounces.md +10 -0
- package/docs/DomainsApi.md +278 -0
- package/docs/EcommerceApi.md +645 -0
- package/docs/EmailCampaignsApi.md +766 -0
- package/docs/EmailExportRecipients.md +32 -0
- package/docs/ErrorModel.md +48 -0
- package/docs/ExportWebhooksHistory.md +57 -0
- package/docs/ExternalFeedsApi.md +309 -0
- package/docs/FileData.md +14 -0
- package/docs/FileDownloadableLink.md +8 -0
- package/docs/FileList.md +7 -0
- package/docs/FilesApi.md +304 -0
- package/docs/GetAccount.md +10 -0
- package/docs/GetAccountActivity.md +8 -0
- package/docs/GetAccountActivityLogs.md +12 -0
- package/docs/GetAccountMarketingAutomation.md +9 -0
- package/docs/GetAccountPlan.md +39 -0
- package/docs/GetAccountRelay.md +9 -0
- package/docs/GetAccountRelayData.md +10 -0
- package/docs/GetAggregatedReport.md +20 -0
- package/docs/GetAllExternalFeeds.md +9 -0
- package/docs/GetAllExternalFeedsFeeds.md +32 -0
- package/docs/GetAttributes.md +8 -0
- package/docs/GetAttributesAttributes.md +46 -0
- package/docs/GetAttributesEnumeration.md +9 -0
- package/docs/GetBlockedDomains.md +8 -0
- package/docs/GetCampaignOverview.md +51 -0
- package/docs/GetCampaignRecipients.md +9 -0
- package/docs/GetCampaignStats.md +23 -0
- package/docs/GetCategories.md +9 -0
- package/docs/GetCategoryDetails.md +13 -0
- package/docs/GetChildAccountCreationStatus.md +8 -0
- package/docs/GetChildDomain.md +9 -0
- package/docs/GetChildDomains.md +7 -0
- package/docs/GetChildInfo.md +12 -0
- package/docs/GetChildInfoApiKeys.md +9 -0
- package/docs/GetChildInfoApiKeysV2.md +9 -0
- package/docs/GetChildInfoApiKeysV3.md +9 -0
- package/docs/GetChildInfoCredits.md +9 -0
- package/docs/GetChildInfoStatistics.md +10 -0
- package/docs/GetChildrenList.md +9 -0
- package/docs/GetClient.md +11 -0
- package/docs/GetContactCampaignStats.md +16 -0
- package/docs/GetContactCampaignStatsClicked.md +9 -0
- package/docs/GetContactCampaignStatsOpened.md +11 -0
- package/docs/GetContactCampaignStatsTransacAttributes.md +10 -0
- package/docs/GetContactCampaignStatsUnsubscriptions.md +9 -0
- package/docs/GetContactDetails.md +16 -0
- package/docs/GetContacts.md +9 -0
- package/docs/GetCouponCollection.md +13 -0
- package/docs/GetDeviceBrowserStats.md +11 -0
- package/docs/GetDomainConfigurationModel.md +11 -0
- package/docs/GetDomainsList.md +8 -0
- package/docs/GetDomainsListDomains.md +12 -0
- package/docs/GetEmailCampaign.md +9 -0
- package/docs/GetEmailCampaigns.md +9 -0
- package/docs/GetEmailEventReport.md +8 -0
- package/docs/GetEmailEventReportEvents.md +53 -0
- package/docs/GetExtendedCampaignOverview.md +23 -0
- package/docs/GetExtendedCampaignOverviewSender.md +10 -0
- package/docs/GetExtendedCampaignStats.md +15 -0
- package/docs/GetExtendedCampaignStatsGlobalStats.md +7 -0
- package/docs/GetExtendedClient.md +8 -0
- package/docs/GetExtendedClientAddress.md +11 -0
- package/docs/GetExtendedContactDetails.md +8 -0
- package/docs/GetExtendedContactDetailsStatistics.md +16 -0
- package/docs/GetExtendedContactDetailsStatisticsClicked.md +9 -0
- package/docs/GetExtendedContactDetailsStatisticsLinks.md +11 -0
- package/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +9 -0
- package/docs/GetExtendedContactDetailsStatisticsOpened.md +11 -0
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md +9 -0
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +9 -0
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +10 -0
- package/docs/GetExtendedList.md +11 -0
- package/docs/GetExtendedListCampaignStats.md +9 -0
- package/docs/GetExternalFeedByUUID.md +32 -0
- package/docs/GetExternalFeedByUUIDHeaders.md +9 -0
- package/docs/GetFolder.md +12 -0
- package/docs/GetFolderLists.md +9 -0
- package/docs/GetFolders.md +9 -0
- package/docs/GetInboundEmailEvents.md +8 -0
- package/docs/GetInboundEmailEventsByUuid.md +15 -0
- package/docs/GetInboundEmailEventsByUuidAttachments.md +11 -0
- package/docs/GetInboundEmailEventsByUuidLogs.md +24 -0
- package/docs/GetInboundEmailEventsEvents.md +11 -0
- package/docs/GetInvitedUsersList.md +8 -0
- package/docs/GetInvitedUsersListFeatureAccess.md +10 -0
- package/docs/GetInvitedUsersListUsers.md +11 -0
- package/docs/GetIp.md +11 -0
- package/docs/GetIpFromSender.md +11 -0
- package/docs/GetIps.md +8 -0
- package/docs/GetIpsFromSender.md +8 -0
- package/docs/GetList.md +12 -0
- package/docs/GetLists.md +9 -0
- package/docs/GetProcess.md +24 -0
- package/docs/GetProcesses.md +9 -0
- package/docs/GetProductDetails.md +22 -0
- package/docs/GetProducts.md +9 -0
- package/docs/GetReports.md +8 -0
- package/docs/GetReportsReports.md +20 -0
- package/docs/GetScheduledEmailByBatchId.md +9 -0
- package/docs/GetScheduledEmailByBatchIdBatches.md +25 -0
- package/docs/GetScheduledEmailByMessageId.md +25 -0
- package/docs/GetSegments.md +9 -0
- package/docs/GetSegmentsSegments.md +11 -0
- package/docs/GetSendersList.md +8 -0
- package/docs/GetSendersListIps.md +10 -0
- package/docs/GetSendersListSenders.md +12 -0
- package/docs/GetSharedTemplateUrl.md +8 -0
- package/docs/GetSmsCampaign.md +9 -0
- package/docs/GetSmsCampaignOverview.md +34 -0
- package/docs/GetSmsCampaignRecipients.md +7 -0
- package/docs/GetSmsCampaignStats.md +14 -0
- package/docs/GetSmsCampaigns.md +9 -0
- package/docs/GetSmsEventReport.md +8 -0
- package/docs/GetSmsEventReportEvents.md +41 -0
- package/docs/GetSmtpTemplateOverview.md +20 -0
- package/docs/GetSmtpTemplateOverviewSender.md +10 -0
- package/docs/GetSmtpTemplates.md +9 -0
- package/docs/GetSsoToken.md +8 -0
- package/docs/GetStatsByBrowser.md +7 -0
- package/docs/GetStatsByDevice.md +11 -0
- package/docs/GetStatsByDomain.md +7 -0
- package/docs/GetTransacAggregatedSmsReport.md +17 -0
- package/docs/GetTransacBlockedContacts.md +9 -0
- package/docs/GetTransacBlockedContactsContacts.md +11 -0
- package/docs/GetTransacBlockedContactsReason.md +28 -0
- package/docs/GetTransacEmailContent.md +14 -0
- package/docs/GetTransacEmailContentEvents.md +9 -0
- package/docs/GetTransacEmailsList.md +9 -0
- package/docs/GetTransacEmailsListTransactionalEmails.md +15 -0
- package/docs/GetTransacSmsReport.md +8 -0
- package/docs/GetTransacSmsReportReports.md +17 -0
- package/docs/GetUserPermission.md +10 -0
- package/docs/GetUserPermissionPrivileges.md +9 -0
- package/docs/GetWATemplates.md +9 -0
- package/docs/GetWATemplatesTemplates.md +15 -0
- package/docs/GetWebhook.md +25 -0
- package/docs/GetWebhooks.md +8 -0
- package/docs/GetWhatsAppConfig.md +39 -0
- package/docs/GetWhatsappCampaignOverview.md +39 -0
- package/docs/GetWhatsappCampaigns.md +9 -0
- package/docs/GetWhatsappCampaignsCampaigns.md +41 -0
- package/docs/GetWhatsappEventReport.md +8 -0
- package/docs/GetWhatsappEventReportEvents.md +36 -0
- package/docs/InboundParsingApi.md +190 -0
- package/docs/InlineResponse200.md +8 -0
- package/docs/InlineResponse2001.md +10 -0
- package/docs/InlineResponse201.md +8 -0
- package/docs/InlineResponse2011.md +8 -0
- package/docs/InlineResponse2012.md +8 -0
- package/docs/InlineResponse2013.md +8 -0
- package/docs/InlineResponse2014.md +8 -0
- package/docs/ManageIp.md +8 -0
- package/docs/MasterAccountApi.md +524 -0
- package/docs/MasterDetailsResponse.md +14 -0
- package/docs/MasterDetailsResponseBillingInfo.md +11 -0
- package/docs/MasterDetailsResponseBillingInfoAddress.md +12 -0
- package/docs/MasterDetailsResponseBillingInfoName.md +9 -0
- package/docs/MasterDetailsResponsePlanInfo.md +24 -0
- package/docs/MasterDetailsResponsePlanInfoFeatures.md +12 -0
- package/docs/Note.md +14 -0
- package/docs/NoteData.md +11 -0
- package/docs/NoteId.md +8 -0
- package/docs/NoteList.md +7 -0
- package/docs/NotesApi.md +299 -0
- package/docs/Order.md +16 -0
- package/docs/OrderBatch.md +9 -0
- package/docs/OrderBilling.md +14 -0
- package/docs/OrderProducts.md +11 -0
- package/docs/Otp.md +8 -0
- package/docs/Pipeline.md +10 -0
- package/docs/PipelineStage.md +9 -0
- package/docs/Pipelines.md +7 -0
- package/docs/PostContactInfo.md +8 -0
- package/docs/PostContactInfoContacts.md +11 -0
- package/docs/PostSendFailed.md +12 -0
- package/docs/PostSendSmsTestFailed.md +11 -0
- package/docs/ProcessApi.md +123 -0
- package/docs/RemainingCreditModel.md +9 -0
- package/docs/RemainingCreditModelChild.md +9 -0
- package/docs/RemainingCreditModelReseller.md +9 -0
- package/docs/RemoveContactFromList.md +10 -0
- package/docs/RemoveCredits.md +9 -0
- package/docs/RequestContactExport.md +10 -0
- package/docs/RequestContactExportCustomContactFilter.md +62 -0
- package/docs/RequestContactImport.md +17 -0
- package/docs/RequestContactImportNewList.md +9 -0
- package/docs/RequestSmsRecipientExport.md +28 -0
- package/docs/ResellerApi.md +924 -0
- package/docs/SMSCampaignsApi.md +589 -0
- package/docs/ScheduleSmtpEmail.md +10 -0
- package/docs/SendReport.md +28 -0
- package/docs/SendReportEmail.md +9 -0
- package/docs/SendSms.md +12 -0
- package/docs/SendSmtpEmail.md +23 -0
- package/docs/SendSmtpEmailAttachment.md +10 -0
- package/docs/SendSmtpEmailBcc.md +9 -0
- package/docs/SendSmtpEmailCc.md +9 -0
- package/docs/SendSmtpEmailMessageVersions.md +13 -0
- package/docs/SendSmtpEmailReplyTo.md +9 -0
- package/docs/SendSmtpEmailReplyTo1.md +9 -0
- package/docs/SendSmtpEmailSender.md +10 -0
- package/docs/SendSmtpEmailTo.md +9 -0
- package/docs/SendSmtpEmailTo1.md +9 -0
- package/docs/SendTestEmail.md +8 -0
- package/docs/SendTestSms.md +8 -0
- package/docs/SendTransacSms.md +26 -0
- package/docs/SendWhatsappMessage.md +11 -0
- package/docs/SendersApi.md +399 -0
- package/docs/SsoTokenRequest.md +33 -0
- package/docs/SubAccountDetailsResponse.md +11 -0
- package/docs/SubAccountDetailsResponsePlanInfo.md +10 -0
- package/docs/SubAccountDetailsResponsePlanInfoCredits.md +9 -0
- package/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +9 -0
- package/docs/SubAccountDetailsResponsePlanInfoFeatures.md +10 -0
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +9 -0
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +9 -0
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +9 -0
- package/docs/SubAccountUpdatePlanRequest.md +9 -0
- package/docs/SubAccountUpdatePlanRequestCredits.md +8 -0
- package/docs/SubAccountUpdatePlanRequestFeatures.md +10 -0
- package/docs/SubAccountsResponse.md +9 -0
- package/docs/SubAccountsResponseSubAccounts.md +11 -0
- package/docs/Task.md +13 -0
- package/docs/TaskList.md +8 -0
- package/docs/TaskReminder.md +25 -0
- package/docs/TaskTypes.md +9 -0
- package/docs/TasksApi.md +360 -0
- package/docs/TransactionalEmailsApi.md +1333 -0
- package/docs/TransactionalSMSApi.md +261 -0
- package/docs/TransactionalWhatsAppApi.md +137 -0
- package/docs/UpdateAttribute.md +9 -0
- package/docs/UpdateAttributeEnumeration.md +9 -0
- package/docs/UpdateBatchContacts.md +8 -0
- package/docs/UpdateBatchContactsContacts.md +17 -0
- package/docs/UpdateBatchContactsModel.md +9 -0
- package/docs/UpdateCampaignStatus.md +31 -0
- package/docs/UpdateChild.md +12 -0
- package/docs/UpdateChildAccountStatus.md +11 -0
- package/docs/UpdateChildDomain.md +8 -0
- package/docs/UpdateContact.md +14 -0
- package/docs/UpdateCouponCollection.md +8 -0
- package/docs/UpdateEmailCampaign.md +49 -0
- package/docs/UpdateEmailCampaignRecipients.md +10 -0
- package/docs/UpdateEmailCampaignSender.md +10 -0
- package/docs/UpdateExternalFeed.md +29 -0
- package/docs/UpdateList.md +9 -0
- package/docs/UpdateSender.md +10 -0
- package/docs/UpdateSmsCampaign.md +15 -0
- package/docs/UpdateSmtpTemplate.md +17 -0
- package/docs/UpdateSmtpTemplateSender.md +10 -0
- package/docs/UpdateWebhook.md +52 -0
- package/docs/UpdateWhatsAppCampaign.md +22 -0
- package/docs/UploadImageModel.md +8 -0
- package/docs/UploadImageToGallery.md +9 -0
- package/docs/UserApi.md +112 -0
- package/docs/VariablesItems.md +10 -0
- package/docs/WebhooksApi.md +346 -0
- package/docs/WhatsAppCampaignsApi.md +519 -0
- package/docs/WhatsappCampStats.md +12 -0
- package/docs/WhatsappCampTemplate.md +18 -0
- package/git_push.sh +52 -0
- package/mocha.opts +1 -0
- package/package.json +35 -0
- package/src/ApiClient.js +601 -0
- package/src/api/AccountApi.js +154 -0
- package/src/api/CompaniesApi.js +431 -0
- package/src/api/ContactsApi.js +1683 -0
- package/src/api/ConversationsApi.js +529 -0
- package/src/api/CouponsApi.js +317 -0
- package/src/api/DealsApi.js +527 -0
- package/src/api/DomainsApi.js +297 -0
- package/src/api/EcommerceApi.js +656 -0
- package/src/api/EmailCampaignsApi.js +781 -0
- package/src/api/ExternalFeedsApi.js +340 -0
- package/src/api/FilesApi.js +336 -0
- package/src/api/InboundParsingApi.js +225 -0
- package/src/api/MasterAccountApi.js +537 -0
- package/src/api/NotesApi.js +330 -0
- package/src/api/ProcessApi.js +159 -0
- package/src/api/ResellerApi.js +941 -0
- package/src/api/SMSCampaignsApi.js +612 -0
- package/src/api/SendersApi.js +410 -0
- package/src/api/TasksApi.js +391 -0
- package/src/api/TransactionalEmailsApi.js +1318 -0
- package/src/api/TransactionalSMSApi.js +295 -0
- package/src/api/TransactionalWhatsAppApi.js +177 -0
- package/src/api/UserApi.js +147 -0
- package/src/api/WebhooksApi.js +367 -0
- package/src/api/WhatsAppCampaignsApi.js +527 -0
- package/src/index.js +1833 -0
- package/src/model/AbTestCampaignResult.js +185 -0
- package/src/model/AbTestCampaignResultClickedLinks.js +83 -0
- package/src/model/AbTestCampaignResultStatistics.js +119 -0
- package/src/model/AbTestVersionClicks.js +69 -0
- package/src/model/AbTestVersionClicksInner.js +95 -0
- package/src/model/AbTestVersionStats.js +86 -0
- package/src/model/AddChildDomain.js +73 -0
- package/src/model/AddContactToList.js +81 -0
- package/src/model/AddCredits.js +81 -0
- package/src/model/AuthenticateDomainModel.js +85 -0
- package/src/model/BlockDomain.js +75 -0
- package/src/model/Body.js +91 -0
- package/src/model/Body1.js +89 -0
- package/src/model/Body10.js +101 -0
- package/src/model/Body11.js +75 -0
- package/src/model/Body12.js +97 -0
- package/src/model/Body2.js +97 -0
- package/src/model/Body3.js +83 -0
- package/src/model/Body4.js +81 -0
- package/src/model/Body5.js +97 -0
- package/src/model/Body6.js +158 -0
- package/src/model/Body7.js +145 -0
- package/src/model/Body8.js +117 -0
- package/src/model/Body9.js +75 -0
- package/src/model/BodyVariablesItems.js +65 -0
- package/src/model/CompaniesList.js +74 -0
- package/src/model/Company.js +98 -0
- package/src/model/CompanyAttributes.js +69 -0
- package/src/model/CompanyAttributesInner.js +101 -0
- package/src/model/ComponentItems.js +79 -0
- package/src/model/ConversationsMessage.js +165 -0
- package/src/model/ConversationsMessageFile.js +104 -0
- package/src/model/ConversationsMessageFileImageInfo.js +90 -0
- package/src/model/CreateApiKeyRequest.js +83 -0
- package/src/model/CreateApiKeyResponse.js +81 -0
- package/src/model/CreateAttribute.js +141 -0
- package/src/model/CreateAttributeEnumeration.js +85 -0
- package/src/model/CreateCategoryModel.js +73 -0
- package/src/model/CreateChild.js +167 -0
- package/src/model/CreateContact.js +130 -0
- package/src/model/CreateCouponCollection.js +85 -0
- package/src/model/CreateCoupons.js +84 -0
- package/src/model/CreateDoiContact.js +121 -0
- package/src/model/CreateDomain.js +75 -0
- package/src/model/CreateDomainModel.js +98 -0
- package/src/model/CreateDomainModelDnsRecords.js +79 -0
- package/src/model/CreateDomainModelDnsRecordsDkimRecord.js +93 -0
- package/src/model/CreateEmailCampaign.js +339 -0
- package/src/model/CreateEmailCampaignRecipients.js +90 -0
- package/src/model/CreateEmailCampaignSender.js +92 -0
- package/src/model/CreateExternalFeed.js +169 -0
- package/src/model/CreateList.js +85 -0
- package/src/model/CreateModel.js +75 -0
- package/src/model/CreateProductModel.js +73 -0
- package/src/model/CreateReseller.js +83 -0
- package/src/model/CreateSender.js +93 -0
- package/src/model/CreateSenderIps.js +93 -0
- package/src/model/CreateSenderModel.js +91 -0
- package/src/model/CreateSmsCampaign.js +135 -0
- package/src/model/CreateSmsCampaignRecipients.js +83 -0
- package/src/model/CreateSmtpEmail.js +80 -0
- package/src/model/CreateSmtpTemplate.js +150 -0
- package/src/model/CreateSmtpTemplateSender.js +90 -0
- package/src/model/CreateSubAccount.js +145 -0
- package/src/model/CreateSubAccountResponse.js +75 -0
- package/src/model/CreateUpdateBatchCategory.js +83 -0
- package/src/model/CreateUpdateBatchCategoryModel.js +81 -0
- package/src/model/CreateUpdateBatchProducts.js +83 -0
- package/src/model/CreateUpdateBatchProductsModel.js +81 -0
- package/src/model/CreateUpdateCategories.js +99 -0
- package/src/model/CreateUpdateCategory.js +108 -0
- package/src/model/CreateUpdateContactModel.js +73 -0
- package/src/model/CreateUpdateFolder.js +73 -0
- package/src/model/CreateUpdateProduct.js +158 -0
- package/src/model/CreateUpdateProducts.js +149 -0
- package/src/model/CreateWebhook.js +246 -0
- package/src/model/CreateWhatsAppCampaign.js +104 -0
- package/src/model/CreateWhatsAppCampaignRecipients.js +90 -0
- package/src/model/CreateWhatsAppTemplate.js +141 -0
- package/src/model/CreatedBatchId.js +75 -0
- package/src/model/CreatedProcessId.js +75 -0
- package/src/model/Deal.js +98 -0
- package/src/model/DealAttributes.js +69 -0
- package/src/model/DealAttributesInner.js +101 -0
- package/src/model/DealsList.js +74 -0
- package/src/model/DeleteHardbounces.js +89 -0
- package/src/model/EmailExportRecipients.js +139 -0
- package/src/model/ErrorModel.js +189 -0
- package/src/model/ExportWebhooksHistory.js +251 -0
- package/src/model/FileData.js +122 -0
- package/src/model/FileDownloadableLink.js +75 -0
- package/src/model/FileList.js +69 -0
- package/src/model/GetAccount.js +101 -0
- package/src/model/GetAccountActivity.js +73 -0
- package/src/model/GetAccountActivityLogs.js +115 -0
- package/src/model/GetAccountMarketingAutomation.js +83 -0
- package/src/model/GetAccountPlan.js +171 -0
- package/src/model/GetAccountRelay.js +85 -0
- package/src/model/GetAccountRelayData.js +96 -0
- package/src/model/GetAggregatedReport.js +169 -0
- package/src/model/GetAllExternalFeeds.js +80 -0
- package/src/model/GetAllExternalFeedsFeeds.js +205 -0
- package/src/model/GetAttributes.js +75 -0
- package/src/model/GetAttributesAttributes.js +185 -0
- package/src/model/GetAttributesEnumeration.js +85 -0
- package/src/model/GetBlockedDomains.js +76 -0
- package/src/model/GetCampaignOverview.js +249 -0
- package/src/model/GetCampaignRecipients.js +83 -0
- package/src/model/GetCampaignStats.js +215 -0
- package/src/model/GetCategories.js +84 -0
- package/src/model/GetCategoryDetails.js +121 -0
- package/src/model/GetChildAccountCreationStatus.js +75 -0
- package/src/model/GetChildDomain.js +81 -0
- package/src/model/GetChildDomains.js +68 -0
- package/src/model/GetChildInfo.js +113 -0
- package/src/model/GetChildInfoApiKeys.js +82 -0
- package/src/model/GetChildInfoApiKeysV2.js +85 -0
- package/src/model/GetChildInfoApiKeysV3.js +85 -0
- package/src/model/GetChildInfoCredits.js +82 -0
- package/src/model/GetChildInfoStatistics.js +90 -0
- package/src/model/GetChildrenList.js +81 -0
- package/src/model/GetClient.js +105 -0
- package/src/model/GetContactCampaignStats.js +129 -0
- package/src/model/GetContactCampaignStatsClicked.js +84 -0
- package/src/model/GetContactCampaignStatsOpened.js +105 -0
- package/src/model/GetContactCampaignStatsTransacAttributes.js +95 -0
- package/src/model/GetContactCampaignStatsUnsubscriptions.js +85 -0
- package/src/model/GetContactDetails.js +151 -0
- package/src/model/GetContacts.js +84 -0
- package/src/model/GetCouponCollection.js +125 -0
- package/src/model/GetDeviceBrowserStats.js +105 -0
- package/src/model/GetDomainConfigurationModel.js +104 -0
- package/src/model/GetDomainsList.js +73 -0
- package/src/model/GetDomainsListDomains.js +113 -0
- package/src/model/GetEmailCampaign.js +100 -0
- package/src/model/GetEmailCampaigns.js +80 -0
- package/src/model/GetEmailEventReport.js +72 -0
- package/src/model/GetEmailEventReportEvents.js +253 -0
- package/src/model/GetExtendedCampaignOverview.js +217 -0
- package/src/model/GetExtendedCampaignOverviewSender.js +89 -0
- package/src/model/GetExtendedCampaignStats.js +143 -0
- package/src/model/GetExtendedCampaignStatsGlobalStats.js +66 -0
- package/src/model/GetExtendedClient.js +83 -0
- package/src/model/GetExtendedClientAddress.js +106 -0
- package/src/model/GetExtendedContactDetails.js +87 -0
- package/src/model/GetExtendedContactDetailsStatistics.js +137 -0
- package/src/model/GetExtendedContactDetailsStatisticsClicked.js +85 -0
- package/src/model/GetExtendedContactDetailsStatisticsLinks.js +105 -0
- package/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js +85 -0
- package/src/model/GetExtendedContactDetailsStatisticsOpened.js +105 -0
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptions.js +86 -0
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js +83 -0
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js +93 -0
- package/src/model/GetExtendedList.js +110 -0
- package/src/model/GetExtendedListCampaignStats.js +84 -0
- package/src/model/GetExternalFeedByUUID.js +205 -0
- package/src/model/GetExternalFeedByUUIDHeaders.js +81 -0
- package/src/model/GetFolder.js +115 -0
- package/src/model/GetFolderLists.js +80 -0
- package/src/model/GetFolders.js +80 -0
- package/src/model/GetInboundEmailEvents.js +72 -0
- package/src/model/GetInboundEmailEventsByUuid.js +129 -0
- package/src/model/GetInboundEmailEventsByUuidAttachments.js +97 -0
- package/src/model/GetInboundEmailEventsByUuidLogs.js +113 -0
- package/src/model/GetInboundEmailEventsEvents.js +105 -0
- package/src/model/GetInvitedUsersList.js +73 -0
- package/src/model/GetInvitedUsersListFeatureAccess.js +90 -0
- package/src/model/GetInvitedUsersListUsers.js +104 -0
- package/src/model/GetIp.js +105 -0
- package/src/model/GetIpFromSender.js +105 -0
- package/src/model/GetIps.js +75 -0
- package/src/model/GetIpsFromSender.js +75 -0
- package/src/model/GetList.js +115 -0
- package/src/model/GetLists.js +81 -0
- package/src/model/GetProcess.js +129 -0
- package/src/model/GetProcesses.js +81 -0
- package/src/model/GetProductDetails.js +197 -0
- package/src/model/GetProducts.js +84 -0
- package/src/model/GetReports.js +72 -0
- package/src/model/GetReportsReports.js +195 -0
- package/src/model/GetScheduledEmailByBatchId.js +80 -0
- package/src/model/GetScheduledEmailByBatchIdBatches.js +127 -0
- package/src/model/GetScheduledEmailByMessageId.js +127 -0
- package/src/model/GetSegments.js +80 -0
- package/src/model/GetSegmentsSegments.js +97 -0
- package/src/model/GetSendersList.js +73 -0
- package/src/model/GetSendersListIps.js +95 -0
- package/src/model/GetSendersListSenders.js +113 -0
- package/src/model/GetSharedTemplateUrl.js +75 -0
- package/src/model/GetSmsCampaign.js +95 -0
- package/src/model/GetSmsCampaignOverview.js +187 -0
- package/src/model/GetSmsCampaignRecipients.js +65 -0
- package/src/model/GetSmsCampaignStats.js +135 -0
- package/src/model/GetSmsCampaigns.js +80 -0
- package/src/model/GetSmsEventReport.js +72 -0
- package/src/model/GetSmsEventReportEvents.js +188 -0
- package/src/model/GetSmtpTemplateOverview.js +192 -0
- package/src/model/GetSmtpTemplateOverviewSender.js +89 -0
- package/src/model/GetSmtpTemplates.js +80 -0
- package/src/model/GetSsoToken.js +75 -0
- package/src/model/GetStatsByBrowser.js +68 -0
- package/src/model/GetStatsByDevice.js +97 -0
- package/src/model/GetStatsByDomain.js +68 -0
- package/src/model/GetTransacAggregatedSmsReport.js +145 -0
- package/src/model/GetTransacBlockedContacts.js +80 -0
- package/src/model/GetTransacBlockedContactsContacts.js +104 -0
- package/src/model/GetTransacBlockedContactsReason.js +126 -0
- package/src/model/GetTransacEmailContent.js +133 -0
- package/src/model/GetTransacEmailContentEvents.js +85 -0
- package/src/model/GetTransacEmailsList.js +80 -0
- package/src/model/GetTransacEmailsListTransactionalEmails.js +139 -0
- package/src/model/GetTransacSmsReport.js +72 -0
- package/src/model/GetTransacSmsReportReports.js +145 -0
- package/src/model/GetUserPermission.js +96 -0
- package/src/model/GetUserPermissionPrivileges.js +83 -0
- package/src/model/GetWATemplates.js +84 -0
- package/src/model/GetWATemplatesTemplates.js +143 -0
- package/src/model/GetWebhook.js +154 -0
- package/src/model/GetWebhooks.js +74 -0
- package/src/model/GetWhatsAppConfig.js +165 -0
- package/src/model/GetWhatsappCampaignOverview.js +205 -0
- package/src/model/GetWhatsappCampaigns.js +80 -0
- package/src/model/GetWhatsappCampaignsCampaigns.js +222 -0
- package/src/model/GetWhatsappEventReport.js +72 -0
- package/src/model/GetWhatsappEventReportEvents.js +189 -0
- package/src/model/InlineResponse200.js +76 -0
- package/src/model/InlineResponse2001.js +95 -0
- package/src/model/InlineResponse201.js +76 -0
- package/src/model/InlineResponse2011.js +76 -0
- package/src/model/InlineResponse2012.js +75 -0
- package/src/model/InlineResponse2013.js +75 -0
- package/src/model/InlineResponse2014.js +75 -0
- package/src/model/ManageIp.js +73 -0
- package/src/model/MasterDetailsResponse.js +119 -0
- package/src/model/MasterDetailsResponseBillingInfo.js +96 -0
- package/src/model/MasterDetailsResponseBillingInfoAddress.js +106 -0
- package/src/model/MasterDetailsResponseBillingInfoName.js +82 -0
- package/src/model/MasterDetailsResponsePlanInfo.js +134 -0
- package/src/model/MasterDetailsResponsePlanInfoFeatures.js +105 -0
- package/src/model/Note.js +124 -0
- package/src/model/NoteData.js +100 -0
- package/src/model/NoteId.js +74 -0
- package/src/model/NoteList.js +69 -0
- package/src/model/Order.js +147 -0
- package/src/model/OrderBatch.js +83 -0
- package/src/model/OrderBilling.js +122 -0
- package/src/model/OrderProducts.js +104 -0
- package/src/model/Otp.js +73 -0
- package/src/model/Pipeline.js +90 -0
- package/src/model/PipelineStage.js +82 -0
- package/src/model/Pipelines.js +69 -0
- package/src/model/PostContactInfo.js +74 -0
- package/src/model/PostContactInfoContacts.js +95 -0
- package/src/model/PostSendFailed.js +106 -0
- package/src/model/PostSendSmsTestFailed.js +99 -0
- package/src/model/RemainingCreditModel.js +83 -0
- package/src/model/RemainingCreditModelChild.js +86 -0
- package/src/model/RemainingCreditModelReseller.js +85 -0
- package/src/model/RemoveContactFromList.js +89 -0
- package/src/model/RemoveCredits.js +81 -0
- package/src/model/RequestContactExport.js +90 -0
- package/src/model/RequestContactExportCustomContactFilter.js +222 -0
- package/src/model/RequestContactImport.js +148 -0
- package/src/model/RequestContactImportNewList.js +82 -0
- package/src/model/RequestSmsRecipientExport.js +127 -0
- package/src/model/ScheduleSmtpEmail.js +88 -0
- package/src/model/SendReport.js +127 -0
- package/src/model/SendReportEmail.js +86 -0
- package/src/model/SendSms.js +107 -0
- package/src/model/SendSmtpEmail.js +191 -0
- package/src/model/SendSmtpEmailAttachment.js +89 -0
- package/src/model/SendSmtpEmailBcc.js +83 -0
- package/src/model/SendSmtpEmailCc.js +83 -0
- package/src/model/SendSmtpEmailMessageVersions.js +114 -0
- package/src/model/SendSmtpEmailReplyTo.js +84 -0
- package/src/model/SendSmtpEmailReplyTo1.js +84 -0
- package/src/model/SendSmtpEmailSender.js +90 -0
- package/src/model/SendSmtpEmailTo.js +83 -0
- package/src/model/SendSmtpEmailTo1.js +83 -0
- package/src/model/SendTestEmail.js +73 -0
- package/src/model/SendTestSms.js +73 -0
- package/src/model/SendTransacSms.js +157 -0
- package/src/model/SendWhatsappMessage.js +101 -0
- package/src/model/SsoTokenRequest.js +147 -0
- package/src/model/SubAccountDetailsResponse.js +96 -0
- package/src/model/SubAccountDetailsResponsePlanInfo.js +88 -0
- package/src/model/SubAccountDetailsResponsePlanInfoCredits.js +81 -0
- package/src/model/SubAccountDetailsResponsePlanInfoCreditsEmails.js +82 -0
- package/src/model/SubAccountDetailsResponsePlanInfoFeatures.js +87 -0
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesInbox.js +82 -0
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.js +82 -0
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesUsers.js +82 -0
- package/src/model/SubAccountUpdatePlanRequest.js +80 -0
- package/src/model/SubAccountUpdatePlanRequestCredits.js +74 -0
- package/src/model/SubAccountUpdatePlanRequestFeatures.js +90 -0
- package/src/model/SubAccountsResponse.js +80 -0
- package/src/model/SubAccountsResponseSubAccounts.js +105 -0
- package/src/model/Task.js +118 -0
- package/src/model/TaskList.js +74 -0
- package/src/model/TaskReminder.js +128 -0
- package/src/model/TaskTypes.js +82 -0
- package/src/model/UpdateAttribute.js +81 -0
- package/src/model/UpdateAttributeEnumeration.js +85 -0
- package/src/model/UpdateBatchContacts.js +73 -0
- package/src/model/UpdateBatchContactsContacts.js +145 -0
- package/src/model/UpdateBatchContactsModel.js +79 -0
- package/src/model/UpdateCampaignStatus.js +130 -0
- package/src/model/UpdateChild.js +105 -0
- package/src/model/UpdateChildAccountStatus.js +97 -0
- package/src/model/UpdateChildDomain.js +73 -0
- package/src/model/UpdateContact.js +121 -0
- package/src/model/UpdateCouponCollection.js +75 -0
- package/src/model/UpdateEmailCampaign.js +335 -0
- package/src/model/UpdateEmailCampaignRecipients.js +90 -0
- package/src/model/UpdateEmailCampaignSender.js +90 -0
- package/src/model/UpdateExternalFeed.js +164 -0
- package/src/model/UpdateList.js +81 -0
- package/src/model/UpdateSender.js +89 -0
- package/src/model/UpdateSmsCampaign.js +129 -0
- package/src/model/UpdateSmtpTemplate.js +144 -0
- package/src/model/UpdateSmtpTemplateSender.js +90 -0
- package/src/model/UpdateWebhook.js +207 -0
- package/src/model/UpdateWhatsAppCampaign.js +117 -0
- package/src/model/UploadImageModel.js +75 -0
- package/src/model/UploadImageToGallery.js +83 -0
- package/src/model/VariablesItems.js +86 -0
- package/src/model/WhatsappCampStats.js +110 -0
- package/src/model/WhatsappCampTemplate.js +149 -0
- package/test/api/AccountApi.spec.js +157 -0
- package/test/api/CompaniesApi.spec.js +273 -0
- package/test/api/ContactsApi.spec.js +1278 -0
- package/test/api/ConversationsApi.spec.js +430 -0
- package/test/api/CouponsApi.spec.js +176 -0
- package/test/api/DealsApi.spec.js +300 -0
- package/test/api/DomainsApi.spec.js +210 -0
- package/test/api/EcommerceApi.spec.js +423 -0
- package/test/api/EmailCampaignsApi.spec.js +512 -0
- package/test/api/ExternalFeedsApi.spec.js +249 -0
- package/test/api/FilesApi.spec.js +176 -0
- package/test/api/InboundParsingApi.spec.js +168 -0
- package/test/api/MasterAccountApi.spec.js +372 -0
- package/test/api/NotesApi.spec.js +181 -0
- package/test/api/ProcessApi.spec.js +111 -0
- package/test/api/ResellerApi.spec.js +467 -0
- package/test/api/SMSCampaignsApi.spec.js +294 -0
- package/test/api/SendersApi.spec.js +264 -0
- package/test/api/TasksApi.spec.js +277 -0
- package/test/api/TransactionalEmailsApi.spec.js +870 -0
- package/test/api/TransactionalSMSApi.spec.js +228 -0
- package/test/api/TransactionalWhatsAppApi.spec.js +120 -0
- package/test/api/UserApi.spec.js +128 -0
- package/test/api/WebhooksApi.spec.js +209 -0
- package/test/api/WhatsAppCampaignsApi.spec.js +413 -0
- package/test/assert-equals.js +81 -0
- package/test/model/AbTestCampaignResult.spec.js +95 -0
- package/test/model/AbTestCampaignResultClickedLinks.spec.js +59 -0
- package/test/model/AbTestCampaignResultStatistics.spec.js +83 -0
- package/test/model/AbTestVersionClicks.spec.js +47 -0
- package/test/model/AbTestVersionClicksInner.spec.js +65 -0
- package/test/model/AbTestVersionStats.spec.js +59 -0
- package/test/model/AddChildDomain.spec.js +53 -0
- package/test/model/AddContactToList.spec.js +59 -0
- package/test/model/AddCredits.spec.js +59 -0
- package/test/model/AuthenticateDomainModel.spec.js +59 -0
- package/test/model/BlockDomain.spec.js +53 -0
- package/test/model/Body.spec.js +65 -0
- package/test/model/Body1.spec.js +65 -0
- package/test/model/Body10.spec.js +71 -0
- package/test/model/Body11.spec.js +53 -0
- package/test/model/Body12.spec.js +71 -0
- package/test/model/Body2.spec.js +71 -0
- package/test/model/Body3.spec.js +59 -0
- package/test/model/Body4.spec.js +59 -0
- package/test/model/Body5.spec.js +71 -0
- package/test/model/Body6.spec.js +113 -0
- package/test/model/Body7.spec.js +107 -0
- package/test/model/Body8.spec.js +83 -0
- package/test/model/Body9.spec.js +53 -0
- package/test/model/BodyVariablesItems.spec.js +47 -0
- package/test/model/CompaniesList.spec.js +53 -0
- package/test/model/Company.spec.js +71 -0
- package/test/model/CompanyAttributes.spec.js +47 -0
- package/test/model/CompanyAttributesInner.spec.js +77 -0
- package/test/model/ComponentItems.spec.js +59 -0
- package/test/model/ConversationsMessage.spec.js +107 -0
- package/test/model/ConversationsMessageFile.spec.js +77 -0
- package/test/model/ConversationsMessageFileImageInfo.spec.js +65 -0
- package/test/model/CreateApiKeyRequest.spec.js +59 -0
- package/test/model/CreateApiKeyResponse.spec.js +59 -0
- package/test/model/CreateAttribute.spec.js +71 -0
- package/test/model/CreateAttributeEnumeration.spec.js +59 -0
- package/test/model/CreateCategoryModel.spec.js +53 -0
- package/test/model/CreateChild.spec.js +83 -0
- package/test/model/CreateContact.spec.js +95 -0
- package/test/model/CreateCouponCollection.spec.js +59 -0
- package/test/model/CreateCoupons.spec.js +59 -0
- package/test/model/CreateDoiContact.spec.js +83 -0
- package/test/model/CreateDomain.spec.js +53 -0
- package/test/model/CreateDomainModel.spec.js +71 -0
- package/test/model/CreateDomainModelDnsRecords.spec.js +59 -0
- package/test/model/CreateDomainModelDnsRecordsDkimRecord.spec.js +71 -0
- package/test/model/CreateEmailCampaign.spec.js +233 -0
- package/test/model/CreateEmailCampaignRecipients.spec.js +65 -0
- package/test/model/CreateEmailCampaignSender.spec.js +65 -0
- package/test/model/CreateExternalFeed.spec.js +101 -0
- package/test/model/CreateList.spec.js +59 -0
- package/test/model/CreateModel.spec.js +53 -0
- package/test/model/CreateProductModel.spec.js +53 -0
- package/test/model/CreateReseller.spec.js +59 -0
- package/test/model/CreateSender.spec.js +65 -0
- package/test/model/CreateSenderIps.spec.js +65 -0
- package/test/model/CreateSenderModel.spec.js +65 -0
- package/test/model/CreateSmsCampaign.spec.js +95 -0
- package/test/model/CreateSmsCampaignRecipients.spec.js +59 -0
- package/test/model/CreateSmtpEmail.spec.js +59 -0
- package/test/model/CreateSmtpTemplate.spec.js +107 -0
- package/test/model/CreateSmtpTemplateSender.spec.js +65 -0
- package/test/model/CreateSubAccount.spec.js +71 -0
- package/test/model/CreateSubAccountResponse.spec.js +53 -0
- package/test/model/CreateUpdateBatchCategory.spec.js +59 -0
- package/test/model/CreateUpdateBatchCategoryModel.spec.js +59 -0
- package/test/model/CreateUpdateBatchProducts.spec.js +59 -0
- package/test/model/CreateUpdateBatchProductsModel.spec.js +59 -0
- package/test/model/CreateUpdateCategories.spec.js +71 -0
- package/test/model/CreateUpdateCategory.spec.js +77 -0
- package/test/model/CreateUpdateContactModel.spec.js +53 -0
- package/test/model/CreateUpdateFolder.spec.js +53 -0
- package/test/model/CreateUpdateProduct.spec.js +113 -0
- package/test/model/CreateUpdateProducts.spec.js +107 -0
- package/test/model/CreateWebhook.spec.js +77 -0
- package/test/model/CreateWhatsAppCampaign.spec.js +71 -0
- package/test/model/CreateWhatsAppCampaignRecipients.spec.js +65 -0
- package/test/model/CreateWhatsAppTemplate.spec.js +83 -0
- package/test/model/CreatedBatchId.spec.js +53 -0
- package/test/model/CreatedProcessId.spec.js +53 -0
- package/test/model/Deal.spec.js +71 -0
- package/test/model/DealAttributes.spec.js +47 -0
- package/test/model/DealAttributesInner.spec.js +77 -0
- package/test/model/DealsList.spec.js +53 -0
- package/test/model/DeleteHardbounces.spec.js +65 -0
- package/test/model/EmailExportRecipients.spec.js +59 -0
- package/test/model/ErrorModel.spec.js +59 -0
- package/test/model/ExportWebhooksHistory.spec.js +101 -0
- package/test/model/FileData.spec.js +89 -0
- package/test/model/FileDownloadableLink.spec.js +53 -0
- package/test/model/FileList.spec.js +47 -0
- package/test/model/GetAccount.spec.js +65 -0
- package/test/model/GetAccountActivity.spec.js +53 -0
- package/test/model/GetAccountActivityLogs.spec.js +77 -0
- package/test/model/GetAccountMarketingAutomation.spec.js +59 -0
- package/test/model/GetAccountPlan.spec.js +83 -0
- package/test/model/GetAccountRelay.spec.js +59 -0
- package/test/model/GetAccountRelayData.spec.js +65 -0
- package/test/model/GetAggregatedReport.spec.js +125 -0
- package/test/model/GetAllExternalFeeds.spec.js +59 -0
- package/test/model/GetAllExternalFeedsFeeds.spec.js +119 -0
- package/test/model/GetAttributes.spec.js +53 -0
- package/test/model/GetAttributesAttributes.spec.js +77 -0
- package/test/model/GetAttributesEnumeration.spec.js +59 -0
- package/test/model/GetBlockedDomains.spec.js +53 -0
- package/test/model/GetCampaignOverview.spec.js +131 -0
- package/test/model/GetCampaignRecipients.spec.js +59 -0
- package/test/model/GetCampaignStats.spec.js +143 -0
- package/test/model/GetCategories.spec.js +59 -0
- package/test/model/GetCategoryDetails.spec.js +83 -0
- package/test/model/GetChildAccountCreationStatus.spec.js +53 -0
- package/test/model/GetChildDomain.spec.js +59 -0
- package/test/model/GetChildDomains.spec.js +47 -0
- package/test/model/GetChildInfo.spec.js +77 -0
- package/test/model/GetChildInfoApiKeys.spec.js +59 -0
- package/test/model/GetChildInfoApiKeysV2.spec.js +59 -0
- package/test/model/GetChildInfoApiKeysV3.spec.js +59 -0
- package/test/model/GetChildInfoCredits.spec.js +59 -0
- package/test/model/GetChildInfoStatistics.spec.js +65 -0
- package/test/model/GetChildrenList.spec.js +59 -0
- package/test/model/GetClient.spec.js +71 -0
- package/test/model/GetContactCampaignStats.spec.js +101 -0
- package/test/model/GetContactCampaignStatsClicked.spec.js +59 -0
- package/test/model/GetContactCampaignStatsOpened.spec.js +71 -0
- package/test/model/GetContactCampaignStatsTransacAttributes.spec.js +65 -0
- package/test/model/GetContactCampaignStatsUnsubscriptions.spec.js +59 -0
- package/test/model/GetContactDetails.spec.js +101 -0
- package/test/model/GetContacts.spec.js +59 -0
- package/test/model/GetCouponCollection.spec.js +83 -0
- package/test/model/GetDeviceBrowserStats.spec.js +71 -0
- package/test/model/GetDomainConfigurationModel.spec.js +71 -0
- package/test/model/GetDomainsList.spec.js +53 -0
- package/test/model/GetDomainsListDomains.spec.js +77 -0
- package/test/model/GetEmailCampaign.spec.js +59 -0
- package/test/model/GetEmailCampaigns.spec.js +59 -0
- package/test/model/GetEmailEventReport.spec.js +53 -0
- package/test/model/GetEmailEventReportEvents.spec.js +113 -0
- package/test/model/GetExtendedCampaignOverview.spec.js +143 -0
- package/test/model/GetExtendedCampaignOverviewSender.spec.js +65 -0
- package/test/model/GetExtendedCampaignStats.spec.js +95 -0
- package/test/model/GetExtendedCampaignStatsGlobalStats.spec.js +47 -0
- package/test/model/GetExtendedClient.spec.js +53 -0
- package/test/model/GetExtendedClientAddress.spec.js +71 -0
- package/test/model/GetExtendedContactDetails.spec.js +53 -0
- package/test/model/GetExtendedContactDetailsStatistics.spec.js +101 -0
- package/test/model/GetExtendedContactDetailsStatisticsClicked.spec.js +59 -0
- package/test/model/GetExtendedContactDetailsStatisticsLinks.spec.js +71 -0
- package/test/model/GetExtendedContactDetailsStatisticsMessagesSent.spec.js +59 -0
- package/test/model/GetExtendedContactDetailsStatisticsOpened.spec.js +71 -0
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptions.spec.js +59 -0
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.spec.js +59 -0
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.spec.js +65 -0
- package/test/model/GetExtendedList.spec.js +71 -0
- package/test/model/GetExtendedListCampaignStats.spec.js +59 -0
- package/test/model/GetExternalFeedByUUID.spec.js +119 -0
- package/test/model/GetExternalFeedByUUIDHeaders.spec.js +59 -0
- package/test/model/GetFolder.spec.js +77 -0
- package/test/model/GetFolderLists.spec.js +59 -0
- package/test/model/GetFolders.spec.js +59 -0
- package/test/model/GetInboundEmailEvents.spec.js +53 -0
- package/test/model/GetInboundEmailEventsByUuid.spec.js +95 -0
- package/test/model/GetInboundEmailEventsByUuidAttachments.spec.js +71 -0
- package/test/model/GetInboundEmailEventsByUuidLogs.spec.js +59 -0
- package/test/model/GetInboundEmailEventsEvents.spec.js +71 -0
- package/test/model/GetInvitedUsersList.spec.js +53 -0
- package/test/model/GetInvitedUsersListFeatureAccess.spec.js +65 -0
- package/test/model/GetInvitedUsersListUsers.spec.js +71 -0
- package/test/model/GetIp.spec.js +71 -0
- package/test/model/GetIpFromSender.spec.js +71 -0
- package/test/model/GetIps.spec.js +53 -0
- package/test/model/GetIpsFromSender.spec.js +53 -0
- package/test/model/GetList.spec.js +77 -0
- package/test/model/GetLists.spec.js +59 -0
- package/test/model/GetProcess.spec.js +71 -0
- package/test/model/GetProcesses.spec.js +59 -0
- package/test/model/GetProductDetails.spec.js +137 -0
- package/test/model/GetProducts.spec.js +59 -0
- package/test/model/GetReports.spec.js +53 -0
- package/test/model/GetReportsReports.spec.js +125 -0
- package/test/model/GetScheduledEmailByBatchId.spec.js +59 -0
- package/test/model/GetScheduledEmailByBatchIdBatches.spec.js +65 -0
- package/test/model/GetScheduledEmailByMessageId.spec.js +65 -0
- package/test/model/GetSegments.spec.js +59 -0
- package/test/model/GetSegmentsSegments.spec.js +71 -0
- package/test/model/GetSendersList.spec.js +53 -0
- package/test/model/GetSendersListIps.spec.js +65 -0
- package/test/model/GetSendersListSenders.spec.js +77 -0
- package/test/model/GetSharedTemplateUrl.spec.js +53 -0
- package/test/model/GetSmsCampaign.spec.js +59 -0
- package/test/model/GetSmsCampaignOverview.spec.js +95 -0
- package/test/model/GetSmsCampaignRecipients.spec.js +47 -0
- package/test/model/GetSmsCampaignStats.spec.js +89 -0
- package/test/model/GetSmsCampaigns.spec.js +59 -0
- package/test/model/GetSmsEventReport.spec.js +53 -0
- package/test/model/GetSmsEventReportEvents.spec.js +89 -0
- package/test/model/GetSmtpTemplateOverview.spec.js +125 -0
- package/test/model/GetSmtpTemplateOverviewSender.spec.js +65 -0
- package/test/model/GetSmtpTemplates.spec.js +59 -0
- package/test/model/GetSsoToken.spec.js +53 -0
- package/test/model/GetStatsByBrowser.spec.js +47 -0
- package/test/model/GetStatsByDevice.spec.js +71 -0
- package/test/model/GetStatsByDomain.spec.js +47 -0
- package/test/model/GetTransacAggregatedSmsReport.spec.js +107 -0
- package/test/model/GetTransacBlockedContacts.spec.js +59 -0
- package/test/model/GetTransacBlockedContactsContacts.spec.js +71 -0
- package/test/model/GetTransacBlockedContactsReason.spec.js +59 -0
- package/test/model/GetTransacEmailContent.spec.js +89 -0
- package/test/model/GetTransacEmailContentEvents.spec.js +59 -0
- package/test/model/GetTransacEmailsList.spec.js +59 -0
- package/test/model/GetTransacEmailsListTransactionalEmails.spec.js +95 -0
- package/test/model/GetTransacSmsReport.spec.js +53 -0
- package/test/model/GetTransacSmsReportReports.spec.js +107 -0
- package/test/model/GetUserPermission.spec.js +65 -0
- package/test/model/GetUserPermissionPrivileges.spec.js +59 -0
- package/test/model/GetWATemplates.spec.js +59 -0
- package/test/model/GetWATemplatesTemplates.spec.js +95 -0
- package/test/model/GetWebhook.spec.js +89 -0
- package/test/model/GetWebhooks.spec.js +53 -0
- package/test/model/GetWhatsAppConfig.spec.js +83 -0
- package/test/model/GetWhatsappCampaignOverview.spec.js +101 -0
- package/test/model/GetWhatsappCampaigns.spec.js +59 -0
- package/test/model/GetWhatsappCampaignsCampaigns.spec.js +113 -0
- package/test/model/GetWhatsappEventReport.spec.js +53 -0
- package/test/model/GetWhatsappEventReportEvents.spec.js +95 -0
- package/test/model/InlineResponse200.spec.js +53 -0
- package/test/model/InlineResponse2001.spec.js +65 -0
- package/test/model/InlineResponse201.spec.js +53 -0
- package/test/model/InlineResponse2011.spec.js +53 -0
- package/test/model/InlineResponse2012.spec.js +53 -0
- package/test/model/InlineResponse2013.spec.js +53 -0
- package/test/model/InlineResponse2014.spec.js +53 -0
- package/test/model/ManageIp.spec.js +53 -0
- package/test/model/MasterDetailsResponse.spec.js +89 -0
- package/test/model/MasterDetailsResponseBillingInfo.spec.js +71 -0
- package/test/model/MasterDetailsResponseBillingInfoAddress.spec.js +77 -0
- package/test/model/MasterDetailsResponseBillingInfoName.spec.js +59 -0
- package/test/model/MasterDetailsResponsePlanInfo.spec.js +83 -0
- package/test/model/MasterDetailsResponsePlanInfoFeatures.spec.js +77 -0
- package/test/model/Note.spec.js +89 -0
- package/test/model/NoteData.spec.js +71 -0
- package/test/model/NoteId.spec.js +53 -0
- package/test/model/NoteList.spec.js +47 -0
- package/test/model/Order.spec.js +101 -0
- package/test/model/OrderBatch.spec.js +59 -0
- package/test/model/OrderBilling.spec.js +89 -0
- package/test/model/OrderProducts.spec.js +71 -0
- package/test/model/Otp.spec.js +53 -0
- package/test/model/Pipeline.spec.js +65 -0
- package/test/model/PipelineStage.spec.js +59 -0
- package/test/model/Pipelines.spec.js +47 -0
- package/test/model/PostContactInfo.spec.js +53 -0
- package/test/model/PostContactInfoContacts.spec.js +71 -0
- package/test/model/PostSendFailed.spec.js +77 -0
- package/test/model/PostSendSmsTestFailed.spec.js +71 -0
- package/test/model/RemainingCreditModel.spec.js +59 -0
- package/test/model/RemainingCreditModelChild.spec.js +59 -0
- package/test/model/RemainingCreditModelReseller.spec.js +59 -0
- package/test/model/RemoveContactFromList.spec.js +65 -0
- package/test/model/RemoveCredits.spec.js +59 -0
- package/test/model/RequestContactExport.spec.js +65 -0
- package/test/model/RequestContactExportCustomContactFilter.spec.js +83 -0
- package/test/model/RequestContactImport.spec.js +107 -0
- package/test/model/RequestContactImportNewList.spec.js +59 -0
- package/test/model/RequestSmsRecipientExport.spec.js +59 -0
- package/test/model/ScheduleSmtpEmail.spec.js +65 -0
- package/test/model/SendReport.spec.js +59 -0
- package/test/model/SendReportEmail.spec.js +59 -0
- package/test/model/SendSms.spec.js +77 -0
- package/test/model/SendSmtpEmail.spec.js +143 -0
- package/test/model/SendSmtpEmailAttachment.spec.js +65 -0
- package/test/model/SendSmtpEmailBcc.spec.js +59 -0
- package/test/model/SendSmtpEmailCc.spec.js +59 -0
- package/test/model/SendSmtpEmailMessageVersions.spec.js +83 -0
- package/test/model/SendSmtpEmailReplyTo.spec.js +59 -0
- package/test/model/SendSmtpEmailReplyTo1.spec.js +59 -0
- package/test/model/SendSmtpEmailSender.spec.js +65 -0
- package/test/model/SendSmtpEmailTo.spec.js +59 -0
- package/test/model/SendSmtpEmailTo1.spec.js +59 -0
- package/test/model/SendTestEmail.spec.js +53 -0
- package/test/model/SendTestSms.spec.js +53 -0
- package/test/model/SendTransacSms.spec.js +95 -0
- package/test/model/SendWhatsappMessage.spec.js +71 -0
- package/test/model/SsoTokenRequest.spec.js +65 -0
- package/test/model/SubAccountDetailsResponse.spec.js +71 -0
- package/test/model/SubAccountDetailsResponsePlanInfo.spec.js +65 -0
- package/test/model/SubAccountDetailsResponsePlanInfoCredits.spec.js +59 -0
- package/test/model/SubAccountDetailsResponsePlanInfoCreditsEmails.spec.js +59 -0
- package/test/model/SubAccountDetailsResponsePlanInfoFeatures.spec.js +65 -0
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesInbox.spec.js +59 -0
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.spec.js +59 -0
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesUsers.spec.js +59 -0
- package/test/model/SubAccountUpdatePlanRequest.spec.js +59 -0
- package/test/model/SubAccountUpdatePlanRequestCredits.spec.js +53 -0
- package/test/model/SubAccountUpdatePlanRequestFeatures.spec.js +65 -0
- package/test/model/SubAccountsResponse.spec.js +59 -0
- package/test/model/SubAccountsResponseSubAccounts.spec.js +71 -0
- package/test/model/Task.spec.js +83 -0
- package/test/model/TaskList.spec.js +53 -0
- package/test/model/TaskReminder.spec.js +65 -0
- package/test/model/TaskTypes.spec.js +59 -0
- package/test/model/UpdateAttribute.spec.js +59 -0
- package/test/model/UpdateAttributeEnumeration.spec.js +59 -0
- package/test/model/UpdateBatchContacts.spec.js +53 -0
- package/test/model/UpdateBatchContactsContacts.spec.js +107 -0
- package/test/model/UpdateBatchContactsModel.spec.js +59 -0
- package/test/model/UpdateCampaignStatus.spec.js +53 -0
- package/test/model/UpdateChild.spec.js +77 -0
- package/test/model/UpdateChildAccountStatus.spec.js +71 -0
- package/test/model/UpdateChildDomain.spec.js +53 -0
- package/test/model/UpdateContact.spec.js +89 -0
- package/test/model/UpdateCouponCollection.spec.js +53 -0
- package/test/model/UpdateEmailCampaign.spec.js +233 -0
- package/test/model/UpdateEmailCampaignRecipients.spec.js +65 -0
- package/test/model/UpdateEmailCampaignSender.spec.js +65 -0
- package/test/model/UpdateExternalFeed.spec.js +101 -0
- package/test/model/UpdateList.spec.js +59 -0
- package/test/model/UpdateSender.spec.js +65 -0
- package/test/model/UpdateSmsCampaign.spec.js +95 -0
- package/test/model/UpdateSmtpTemplate.spec.js +107 -0
- package/test/model/UpdateSmtpTemplateSender.spec.js +65 -0
- package/test/model/UpdateWebhook.spec.js +71 -0
- package/test/model/UpdateWhatsAppCampaign.spec.js +71 -0
- package/test/model/UploadImageModel.spec.js +53 -0
- package/test/model/UploadImageToGallery.spec.js +59 -0
- package/test/model/VariablesItems.spec.js +65 -0
- package/test/model/WhatsappCampStats.spec.js +77 -0
- package/test/model/WhatsappCampTemplate.spec.js +113 -0
|
@@ -0,0 +1,941 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
*
|
|
11
|
+
* Swagger Codegen version: 2.4.32
|
|
12
|
+
*
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
(function(root, factory) {
|
|
18
|
+
if (typeof define === 'function' && define.amd) {
|
|
19
|
+
// AMD. Register as an anonymous module.
|
|
20
|
+
define(['ApiClient', 'model/AddChildDomain', 'model/AddCredits', 'model/CreateChild', 'model/CreateReseller', 'model/ErrorModel', 'model/GetChildAccountCreationStatus', 'model/GetChildDomains', 'model/GetChildInfo', 'model/GetChildrenList', 'model/GetSsoToken', 'model/ManageIp', 'model/RemainingCreditModel', 'model/RemoveCredits', 'model/UpdateChild', 'model/UpdateChildAccountStatus', 'model/UpdateChildDomain'], factory);
|
|
21
|
+
} else if (typeof module === 'object' && module.exports) {
|
|
22
|
+
// CommonJS-like environments that support module.exports, like Node.
|
|
23
|
+
module.exports = factory(require('../ApiClient'), require('../model/AddChildDomain'), require('../model/AddCredits'), require('../model/CreateChild'), require('../model/CreateReseller'), require('../model/ErrorModel'), require('../model/GetChildAccountCreationStatus'), require('../model/GetChildDomains'), require('../model/GetChildInfo'), require('../model/GetChildrenList'), require('../model/GetSsoToken'), require('../model/ManageIp'), require('../model/RemainingCreditModel'), require('../model/RemoveCredits'), require('../model/UpdateChild'), require('../model/UpdateChildAccountStatus'), require('../model/UpdateChildDomain'));
|
|
24
|
+
} else {
|
|
25
|
+
// Browser globals (root is window)
|
|
26
|
+
if (!root.Brevo) {
|
|
27
|
+
root.Brevo = {};
|
|
28
|
+
}
|
|
29
|
+
root.Brevo.ResellerApi = factory(root.Brevo.ApiClient, root.Brevo.AddChildDomain, root.Brevo.AddCredits, root.Brevo.CreateChild, root.Brevo.CreateReseller, root.Brevo.ErrorModel, root.Brevo.GetChildAccountCreationStatus, root.Brevo.GetChildDomains, root.Brevo.GetChildInfo, root.Brevo.GetChildrenList, root.Brevo.GetSsoToken, root.Brevo.ManageIp, root.Brevo.RemainingCreditModel, root.Brevo.RemoveCredits, root.Brevo.UpdateChild, root.Brevo.UpdateChildAccountStatus, root.Brevo.UpdateChildDomain);
|
|
30
|
+
}
|
|
31
|
+
}(this, function(ApiClient, AddChildDomain, AddCredits, CreateChild, CreateReseller, ErrorModel, GetChildAccountCreationStatus, GetChildDomains, GetChildInfo, GetChildrenList, GetSsoToken, ManageIp, RemainingCreditModel, RemoveCredits, UpdateChild, UpdateChildAccountStatus, UpdateChildDomain) {
|
|
32
|
+
'use strict';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Reseller service.
|
|
36
|
+
* @module api/ResellerApi
|
|
37
|
+
* @version 1.0.0
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a new ResellerApi.
|
|
42
|
+
* @alias module:api/ResellerApi
|
|
43
|
+
* @class
|
|
44
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
45
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
46
|
+
*/
|
|
47
|
+
var exports = function(apiClient) {
|
|
48
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Add Email and/or SMS credits to a specific child account
|
|
54
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
55
|
+
* @param {module:model/AddCredits} addCredits Values to post to add credit to a specific child account
|
|
56
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemainingCreditModel} and HTTP response
|
|
57
|
+
*/
|
|
58
|
+
this.addCreditsWithHttpInfo = function(childIdentifier, addCredits) {
|
|
59
|
+
var postBody = addCredits;
|
|
60
|
+
|
|
61
|
+
// verify the required parameter 'childIdentifier' is set
|
|
62
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
63
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling addCredits");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// verify the required parameter 'addCredits' is set
|
|
67
|
+
if (addCredits === undefined || addCredits === null) {
|
|
68
|
+
throw new Error("Missing the required parameter 'addCredits' when calling addCredits");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
var pathParams = {
|
|
73
|
+
'childIdentifier': childIdentifier
|
|
74
|
+
};
|
|
75
|
+
var queryParams = {
|
|
76
|
+
};
|
|
77
|
+
var collectionQueryParams = {
|
|
78
|
+
};
|
|
79
|
+
var headerParams = {
|
|
80
|
+
};
|
|
81
|
+
var formParams = {
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var authNames = ['api-key', 'partner-key'];
|
|
85
|
+
var contentTypes = ['application/json'];
|
|
86
|
+
var accepts = ['application/json'];
|
|
87
|
+
var returnType = RemainingCreditModel;
|
|
88
|
+
|
|
89
|
+
return this.apiClient.callApi(
|
|
90
|
+
'/reseller/children/{childIdentifier}/credits/add', 'POST',
|
|
91
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
92
|
+
authNames, contentTypes, accepts, returnType
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Add Email and/or SMS credits to a specific child account
|
|
98
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
99
|
+
* @param {module:model/AddCredits} addCredits Values to post to add credit to a specific child account
|
|
100
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemainingCreditModel}
|
|
101
|
+
*/
|
|
102
|
+
this.addCredits = function(childIdentifier, addCredits) {
|
|
103
|
+
return this.addCreditsWithHttpInfo(childIdentifier, addCredits)
|
|
104
|
+
.then(function(response_and_data) {
|
|
105
|
+
return response_and_data.data;
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Associate a dedicated IP to the child
|
|
112
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
113
|
+
* @param {module:model/ManageIp} ip IP to associate
|
|
114
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
115
|
+
*/
|
|
116
|
+
this.associateIpToChildWithHttpInfo = function(childIdentifier, ip) {
|
|
117
|
+
var postBody = ip;
|
|
118
|
+
|
|
119
|
+
// verify the required parameter 'childIdentifier' is set
|
|
120
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
121
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling associateIpToChild");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// verify the required parameter 'ip' is set
|
|
125
|
+
if (ip === undefined || ip === null) {
|
|
126
|
+
throw new Error("Missing the required parameter 'ip' when calling associateIpToChild");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
var pathParams = {
|
|
131
|
+
'childIdentifier': childIdentifier
|
|
132
|
+
};
|
|
133
|
+
var queryParams = {
|
|
134
|
+
};
|
|
135
|
+
var collectionQueryParams = {
|
|
136
|
+
};
|
|
137
|
+
var headerParams = {
|
|
138
|
+
};
|
|
139
|
+
var formParams = {
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
var authNames = ['api-key', 'partner-key'];
|
|
143
|
+
var contentTypes = ['application/json'];
|
|
144
|
+
var accepts = ['application/json'];
|
|
145
|
+
var returnType = null;
|
|
146
|
+
|
|
147
|
+
return this.apiClient.callApi(
|
|
148
|
+
'/reseller/children/{childIdentifier}/ips/associate', 'POST',
|
|
149
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
150
|
+
authNames, contentTypes, accepts, returnType
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Associate a dedicated IP to the child
|
|
156
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
157
|
+
* @param {module:model/ManageIp} ip IP to associate
|
|
158
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
159
|
+
*/
|
|
160
|
+
this.associateIpToChild = function(childIdentifier, ip) {
|
|
161
|
+
return this.associateIpToChildWithHttpInfo(childIdentifier, ip)
|
|
162
|
+
.then(function(response_and_data) {
|
|
163
|
+
return response_and_data.data;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Create a domain for a child account
|
|
170
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
171
|
+
* @param {module:model/AddChildDomain} addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account.
|
|
172
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
173
|
+
*/
|
|
174
|
+
this.createChildDomainWithHttpInfo = function(childIdentifier, addChildDomain) {
|
|
175
|
+
var postBody = addChildDomain;
|
|
176
|
+
|
|
177
|
+
// verify the required parameter 'childIdentifier' is set
|
|
178
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
179
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling createChildDomain");
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// verify the required parameter 'addChildDomain' is set
|
|
183
|
+
if (addChildDomain === undefined || addChildDomain === null) {
|
|
184
|
+
throw new Error("Missing the required parameter 'addChildDomain' when calling createChildDomain");
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
var pathParams = {
|
|
189
|
+
'childIdentifier': childIdentifier
|
|
190
|
+
};
|
|
191
|
+
var queryParams = {
|
|
192
|
+
};
|
|
193
|
+
var collectionQueryParams = {
|
|
194
|
+
};
|
|
195
|
+
var headerParams = {
|
|
196
|
+
};
|
|
197
|
+
var formParams = {
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
var authNames = ['api-key', 'partner-key'];
|
|
201
|
+
var contentTypes = ['application/json'];
|
|
202
|
+
var accepts = ['application/json'];
|
|
203
|
+
var returnType = null;
|
|
204
|
+
|
|
205
|
+
return this.apiClient.callApi(
|
|
206
|
+
'/reseller/children/{childIdentifier}/domains', 'POST',
|
|
207
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
208
|
+
authNames, contentTypes, accepts, returnType
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Create a domain for a child account
|
|
214
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
215
|
+
* @param {module:model/AddChildDomain} addChildDomain Sender domain to add for a specific child account. This will not be displayed to the parent account.
|
|
216
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
217
|
+
*/
|
|
218
|
+
this.createChildDomain = function(childIdentifier, addChildDomain) {
|
|
219
|
+
return this.createChildDomainWithHttpInfo(childIdentifier, addChildDomain)
|
|
220
|
+
.then(function(response_and_data) {
|
|
221
|
+
return response_and_data.data;
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Creates a reseller child
|
|
228
|
+
* @param {Object} opts Optional parameters
|
|
229
|
+
* @param {module:model/CreateChild} opts.resellerChild reseller child to add
|
|
230
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateReseller} and HTTP response
|
|
231
|
+
*/
|
|
232
|
+
this.createResellerChildWithHttpInfo = function(opts) {
|
|
233
|
+
opts = opts || {};
|
|
234
|
+
var postBody = opts['resellerChild'];
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
var pathParams = {
|
|
238
|
+
};
|
|
239
|
+
var queryParams = {
|
|
240
|
+
};
|
|
241
|
+
var collectionQueryParams = {
|
|
242
|
+
};
|
|
243
|
+
var headerParams = {
|
|
244
|
+
};
|
|
245
|
+
var formParams = {
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
var authNames = ['api-key', 'partner-key'];
|
|
249
|
+
var contentTypes = ['application/json'];
|
|
250
|
+
var accepts = ['application/json'];
|
|
251
|
+
var returnType = CreateReseller;
|
|
252
|
+
|
|
253
|
+
return this.apiClient.callApi(
|
|
254
|
+
'/reseller/children', 'POST',
|
|
255
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
256
|
+
authNames, contentTypes, accepts, returnType
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Creates a reseller child
|
|
262
|
+
* @param {Object} opts Optional parameters
|
|
263
|
+
* @param {module:model/CreateChild} opts.resellerChild reseller child to add
|
|
264
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateReseller}
|
|
265
|
+
*/
|
|
266
|
+
this.createResellerChild = function(opts) {
|
|
267
|
+
return this.createResellerChildWithHttpInfo(opts)
|
|
268
|
+
.then(function(response_and_data) {
|
|
269
|
+
return response_and_data.data;
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Delete the sender domain of the reseller child based on the childIdentifier and domainName passed
|
|
276
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
277
|
+
* @param {String} domainName Pass the existing domain that needs to be deleted
|
|
278
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
279
|
+
*/
|
|
280
|
+
this.deleteChildDomainWithHttpInfo = function(childIdentifier, domainName) {
|
|
281
|
+
var postBody = null;
|
|
282
|
+
|
|
283
|
+
// verify the required parameter 'childIdentifier' is set
|
|
284
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
285
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling deleteChildDomain");
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// verify the required parameter 'domainName' is set
|
|
289
|
+
if (domainName === undefined || domainName === null) {
|
|
290
|
+
throw new Error("Missing the required parameter 'domainName' when calling deleteChildDomain");
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
var pathParams = {
|
|
295
|
+
'childIdentifier': childIdentifier,
|
|
296
|
+
'domainName': domainName
|
|
297
|
+
};
|
|
298
|
+
var queryParams = {
|
|
299
|
+
};
|
|
300
|
+
var collectionQueryParams = {
|
|
301
|
+
};
|
|
302
|
+
var headerParams = {
|
|
303
|
+
};
|
|
304
|
+
var formParams = {
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
var authNames = ['api-key', 'partner-key'];
|
|
308
|
+
var contentTypes = ['application/json'];
|
|
309
|
+
var accepts = ['application/json'];
|
|
310
|
+
var returnType = null;
|
|
311
|
+
|
|
312
|
+
return this.apiClient.callApi(
|
|
313
|
+
'/reseller/children/{childIdentifier}/domains/{domainName}', 'DELETE',
|
|
314
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
315
|
+
authNames, contentTypes, accepts, returnType
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Delete the sender domain of the reseller child based on the childIdentifier and domainName passed
|
|
321
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
322
|
+
* @param {String} domainName Pass the existing domain that needs to be deleted
|
|
323
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
324
|
+
*/
|
|
325
|
+
this.deleteChildDomain = function(childIdentifier, domainName) {
|
|
326
|
+
return this.deleteChildDomainWithHttpInfo(childIdentifier, domainName)
|
|
327
|
+
.then(function(response_and_data) {
|
|
328
|
+
return response_and_data.data;
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* Delete a single reseller child based on the child identifier supplied
|
|
335
|
+
* @param {String} childIdentifier Either auth key or child id of reseller's child
|
|
336
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
337
|
+
*/
|
|
338
|
+
this.deleteResellerChildWithHttpInfo = function(childIdentifier) {
|
|
339
|
+
var postBody = null;
|
|
340
|
+
|
|
341
|
+
// verify the required parameter 'childIdentifier' is set
|
|
342
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
343
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling deleteResellerChild");
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
var pathParams = {
|
|
348
|
+
'childIdentifier': childIdentifier
|
|
349
|
+
};
|
|
350
|
+
var queryParams = {
|
|
351
|
+
};
|
|
352
|
+
var collectionQueryParams = {
|
|
353
|
+
};
|
|
354
|
+
var headerParams = {
|
|
355
|
+
};
|
|
356
|
+
var formParams = {
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
var authNames = ['api-key', 'partner-key'];
|
|
360
|
+
var contentTypes = ['application/json'];
|
|
361
|
+
var accepts = ['application/json'];
|
|
362
|
+
var returnType = null;
|
|
363
|
+
|
|
364
|
+
return this.apiClient.callApi(
|
|
365
|
+
'/reseller/children/{childIdentifier}', 'DELETE',
|
|
366
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
367
|
+
authNames, contentTypes, accepts, returnType
|
|
368
|
+
);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Delete a single reseller child based on the child identifier supplied
|
|
373
|
+
* @param {String} childIdentifier Either auth key or child id of reseller's child
|
|
374
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
375
|
+
*/
|
|
376
|
+
this.deleteResellerChild = function(childIdentifier) {
|
|
377
|
+
return this.deleteResellerChildWithHttpInfo(childIdentifier)
|
|
378
|
+
.then(function(response_and_data) {
|
|
379
|
+
return response_and_data.data;
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Dissociate a dedicated IP to the child
|
|
386
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
387
|
+
* @param {module:model/ManageIp} ip IP to dissociate
|
|
388
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
389
|
+
*/
|
|
390
|
+
this.dissociateIpFromChildWithHttpInfo = function(childIdentifier, ip) {
|
|
391
|
+
var postBody = ip;
|
|
392
|
+
|
|
393
|
+
// verify the required parameter 'childIdentifier' is set
|
|
394
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
395
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling dissociateIpFromChild");
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
// verify the required parameter 'ip' is set
|
|
399
|
+
if (ip === undefined || ip === null) {
|
|
400
|
+
throw new Error("Missing the required parameter 'ip' when calling dissociateIpFromChild");
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
var pathParams = {
|
|
405
|
+
'childIdentifier': childIdentifier
|
|
406
|
+
};
|
|
407
|
+
var queryParams = {
|
|
408
|
+
};
|
|
409
|
+
var collectionQueryParams = {
|
|
410
|
+
};
|
|
411
|
+
var headerParams = {
|
|
412
|
+
};
|
|
413
|
+
var formParams = {
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
var authNames = ['api-key', 'partner-key'];
|
|
417
|
+
var contentTypes = ['application/json'];
|
|
418
|
+
var accepts = ['application/json'];
|
|
419
|
+
var returnType = null;
|
|
420
|
+
|
|
421
|
+
return this.apiClient.callApi(
|
|
422
|
+
'/reseller/children/{childIdentifier}/ips/dissociate', 'POST',
|
|
423
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
424
|
+
authNames, contentTypes, accepts, returnType
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Dissociate a dedicated IP to the child
|
|
430
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
431
|
+
* @param {module:model/ManageIp} ip IP to dissociate
|
|
432
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
433
|
+
*/
|
|
434
|
+
this.dissociateIpFromChild = function(childIdentifier, ip) {
|
|
435
|
+
return this.dissociateIpFromChildWithHttpInfo(childIdentifier, ip)
|
|
436
|
+
.then(function(response_and_data) {
|
|
437
|
+
return response_and_data.data;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied
|
|
444
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
445
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChildAccountCreationStatus} and HTTP response
|
|
446
|
+
*/
|
|
447
|
+
this.getChildAccountCreationStatusWithHttpInfo = function(childIdentifier) {
|
|
448
|
+
var postBody = null;
|
|
449
|
+
|
|
450
|
+
// verify the required parameter 'childIdentifier' is set
|
|
451
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
452
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling getChildAccountCreationStatus");
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
var pathParams = {
|
|
457
|
+
'childIdentifier': childIdentifier
|
|
458
|
+
};
|
|
459
|
+
var queryParams = {
|
|
460
|
+
};
|
|
461
|
+
var collectionQueryParams = {
|
|
462
|
+
};
|
|
463
|
+
var headerParams = {
|
|
464
|
+
};
|
|
465
|
+
var formParams = {
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
var authNames = ['api-key', 'partner-key'];
|
|
469
|
+
var contentTypes = ['application/json'];
|
|
470
|
+
var accepts = ['application/json'];
|
|
471
|
+
var returnType = GetChildAccountCreationStatus;
|
|
472
|
+
|
|
473
|
+
return this.apiClient.callApi(
|
|
474
|
+
'/reseller/children/{childIdentifier}/accountCreationStatus', 'GET',
|
|
475
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
476
|
+
authNames, contentTypes, accepts, returnType
|
|
477
|
+
);
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Get the status of a reseller's child account creation, whether it is successfully created (exists) or not based on the identifier supplied
|
|
482
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
483
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChildAccountCreationStatus}
|
|
484
|
+
*/
|
|
485
|
+
this.getChildAccountCreationStatus = function(childIdentifier) {
|
|
486
|
+
return this.getChildAccountCreationStatusWithHttpInfo(childIdentifier)
|
|
487
|
+
.then(function(response_and_data) {
|
|
488
|
+
return response_and_data.data;
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
/**
|
|
494
|
+
* Get all sender domains for a specific child account
|
|
495
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
496
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChildDomains} and HTTP response
|
|
497
|
+
*/
|
|
498
|
+
this.getChildDomainsWithHttpInfo = function(childIdentifier) {
|
|
499
|
+
var postBody = null;
|
|
500
|
+
|
|
501
|
+
// verify the required parameter 'childIdentifier' is set
|
|
502
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
503
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling getChildDomains");
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
var pathParams = {
|
|
508
|
+
'childIdentifier': childIdentifier
|
|
509
|
+
};
|
|
510
|
+
var queryParams = {
|
|
511
|
+
};
|
|
512
|
+
var collectionQueryParams = {
|
|
513
|
+
};
|
|
514
|
+
var headerParams = {
|
|
515
|
+
};
|
|
516
|
+
var formParams = {
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
var authNames = ['api-key', 'partner-key'];
|
|
520
|
+
var contentTypes = ['application/json'];
|
|
521
|
+
var accepts = ['application/json'];
|
|
522
|
+
var returnType = GetChildDomains;
|
|
523
|
+
|
|
524
|
+
return this.apiClient.callApi(
|
|
525
|
+
'/reseller/children/{childIdentifier}/domains', 'GET',
|
|
526
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
527
|
+
authNames, contentTypes, accepts, returnType
|
|
528
|
+
);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Get all sender domains for a specific child account
|
|
533
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
534
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChildDomains}
|
|
535
|
+
*/
|
|
536
|
+
this.getChildDomains = function(childIdentifier) {
|
|
537
|
+
return this.getChildDomainsWithHttpInfo(childIdentifier)
|
|
538
|
+
.then(function(response_and_data) {
|
|
539
|
+
return response_and_data.data;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Get a child account's details
|
|
546
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
547
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChildInfo} and HTTP response
|
|
548
|
+
*/
|
|
549
|
+
this.getChildInfoWithHttpInfo = function(childIdentifier) {
|
|
550
|
+
var postBody = null;
|
|
551
|
+
|
|
552
|
+
// verify the required parameter 'childIdentifier' is set
|
|
553
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
554
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling getChildInfo");
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
var pathParams = {
|
|
559
|
+
'childIdentifier': childIdentifier
|
|
560
|
+
};
|
|
561
|
+
var queryParams = {
|
|
562
|
+
};
|
|
563
|
+
var collectionQueryParams = {
|
|
564
|
+
};
|
|
565
|
+
var headerParams = {
|
|
566
|
+
};
|
|
567
|
+
var formParams = {
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
var authNames = ['api-key', 'partner-key'];
|
|
571
|
+
var contentTypes = ['application/json'];
|
|
572
|
+
var accepts = ['application/json'];
|
|
573
|
+
var returnType = GetChildInfo;
|
|
574
|
+
|
|
575
|
+
return this.apiClient.callApi(
|
|
576
|
+
'/reseller/children/{childIdentifier}', 'GET',
|
|
577
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
578
|
+
authNames, contentTypes, accepts, returnType
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Get a child account's details
|
|
584
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
585
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChildInfo}
|
|
586
|
+
*/
|
|
587
|
+
this.getChildInfo = function(childIdentifier) {
|
|
588
|
+
return this.getChildInfoWithHttpInfo(childIdentifier)
|
|
589
|
+
.then(function(response_and_data) {
|
|
590
|
+
return response_and_data.data;
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Get the list of all children accounts
|
|
597
|
+
* @param {Object} opts Optional parameters
|
|
598
|
+
* @param {Number} opts.limit Number of documents for child accounts information per page (default to 10)
|
|
599
|
+
* @param {Number} opts.offset Index of the first document in the page (default to 0)
|
|
600
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChildrenList} and HTTP response
|
|
601
|
+
*/
|
|
602
|
+
this.getResellerChildsWithHttpInfo = function(opts) {
|
|
603
|
+
opts = opts || {};
|
|
604
|
+
var postBody = null;
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
var pathParams = {
|
|
608
|
+
};
|
|
609
|
+
var queryParams = {
|
|
610
|
+
'limit': opts['limit'],
|
|
611
|
+
'offset': opts['offset'],
|
|
612
|
+
};
|
|
613
|
+
var collectionQueryParams = {
|
|
614
|
+
};
|
|
615
|
+
var headerParams = {
|
|
616
|
+
};
|
|
617
|
+
var formParams = {
|
|
618
|
+
};
|
|
619
|
+
|
|
620
|
+
var authNames = ['api-key', 'partner-key'];
|
|
621
|
+
var contentTypes = ['application/json'];
|
|
622
|
+
var accepts = ['application/json'];
|
|
623
|
+
var returnType = GetChildrenList;
|
|
624
|
+
|
|
625
|
+
return this.apiClient.callApi(
|
|
626
|
+
'/reseller/children', 'GET',
|
|
627
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
628
|
+
authNames, contentTypes, accepts, returnType
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Get the list of all children accounts
|
|
634
|
+
* @param {Object} opts Optional parameters
|
|
635
|
+
* @param {Number} opts.limit Number of documents for child accounts information per page (default to 10)
|
|
636
|
+
* @param {Number} opts.offset Index of the first document in the page (default to 0)
|
|
637
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChildrenList}
|
|
638
|
+
*/
|
|
639
|
+
this.getResellerChilds = function(opts) {
|
|
640
|
+
return this.getResellerChildsWithHttpInfo(opts)
|
|
641
|
+
.then(function(response_and_data) {
|
|
642
|
+
return response_and_data.data;
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* Get session token to access Brevo (SSO)
|
|
649
|
+
* It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]
|
|
650
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
651
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSsoToken} and HTTP response
|
|
652
|
+
*/
|
|
653
|
+
this.getSsoTokenWithHttpInfo = function(childIdentifier) {
|
|
654
|
+
var postBody = null;
|
|
655
|
+
|
|
656
|
+
// verify the required parameter 'childIdentifier' is set
|
|
657
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
658
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling getSsoToken");
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
var pathParams = {
|
|
663
|
+
'childIdentifier': childIdentifier
|
|
664
|
+
};
|
|
665
|
+
var queryParams = {
|
|
666
|
+
};
|
|
667
|
+
var collectionQueryParams = {
|
|
668
|
+
};
|
|
669
|
+
var headerParams = {
|
|
670
|
+
};
|
|
671
|
+
var formParams = {
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
var authNames = ['api-key', 'partner-key'];
|
|
675
|
+
var contentTypes = ['application/json'];
|
|
676
|
+
var accepts = ['application/json'];
|
|
677
|
+
var returnType = GetSsoToken;
|
|
678
|
+
|
|
679
|
+
return this.apiClient.callApi(
|
|
680
|
+
'/reseller/children/{childIdentifier}/auth', 'GET',
|
|
681
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
682
|
+
authNames, contentTypes, accepts, returnType
|
|
683
|
+
);
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Get session token to access Brevo (SSO)
|
|
688
|
+
* It returns a session [token] which will remain valid for a short period of time. A child account will be able to access a white-labeled section by using the following url pattern => https:/email.mydomain.com/login/sso?token=[token]
|
|
689
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
690
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSsoToken}
|
|
691
|
+
*/
|
|
692
|
+
this.getSsoToken = function(childIdentifier) {
|
|
693
|
+
return this.getSsoTokenWithHttpInfo(childIdentifier)
|
|
694
|
+
.then(function(response_and_data) {
|
|
695
|
+
return response_and_data.data;
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Remove Email and/or SMS credits from a specific child account
|
|
702
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
703
|
+
* @param {module:model/RemoveCredits} removeCredits Values to post to remove email or SMS credits from a specific child account
|
|
704
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemainingCreditModel} and HTTP response
|
|
705
|
+
*/
|
|
706
|
+
this.removeCreditsWithHttpInfo = function(childIdentifier, removeCredits) {
|
|
707
|
+
var postBody = removeCredits;
|
|
708
|
+
|
|
709
|
+
// verify the required parameter 'childIdentifier' is set
|
|
710
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
711
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling removeCredits");
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
// verify the required parameter 'removeCredits' is set
|
|
715
|
+
if (removeCredits === undefined || removeCredits === null) {
|
|
716
|
+
throw new Error("Missing the required parameter 'removeCredits' when calling removeCredits");
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
var pathParams = {
|
|
721
|
+
'childIdentifier': childIdentifier
|
|
722
|
+
};
|
|
723
|
+
var queryParams = {
|
|
724
|
+
};
|
|
725
|
+
var collectionQueryParams = {
|
|
726
|
+
};
|
|
727
|
+
var headerParams = {
|
|
728
|
+
};
|
|
729
|
+
var formParams = {
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
var authNames = ['api-key', 'partner-key'];
|
|
733
|
+
var contentTypes = ['application/json'];
|
|
734
|
+
var accepts = ['application/json'];
|
|
735
|
+
var returnType = RemainingCreditModel;
|
|
736
|
+
|
|
737
|
+
return this.apiClient.callApi(
|
|
738
|
+
'/reseller/children/{childIdentifier}/credits/remove', 'POST',
|
|
739
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
740
|
+
authNames, contentTypes, accepts, returnType
|
|
741
|
+
);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Remove Email and/or SMS credits from a specific child account
|
|
746
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
747
|
+
* @param {module:model/RemoveCredits} removeCredits Values to post to remove email or SMS credits from a specific child account
|
|
748
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemainingCreditModel}
|
|
749
|
+
*/
|
|
750
|
+
this.removeCredits = function(childIdentifier, removeCredits) {
|
|
751
|
+
return this.removeCreditsWithHttpInfo(childIdentifier, removeCredits)
|
|
752
|
+
.then(function(response_and_data) {
|
|
753
|
+
return response_and_data.data;
|
|
754
|
+
});
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Update info of reseller's child account status based on the childIdentifier supplied
|
|
760
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
761
|
+
* @param {module:model/UpdateChildAccountStatus} updateChildAccountStatus values to update in child account status
|
|
762
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
763
|
+
*/
|
|
764
|
+
this.updateChildAccountStatusWithHttpInfo = function(childIdentifier, updateChildAccountStatus) {
|
|
765
|
+
var postBody = updateChildAccountStatus;
|
|
766
|
+
|
|
767
|
+
// verify the required parameter 'childIdentifier' is set
|
|
768
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
769
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling updateChildAccountStatus");
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// verify the required parameter 'updateChildAccountStatus' is set
|
|
773
|
+
if (updateChildAccountStatus === undefined || updateChildAccountStatus === null) {
|
|
774
|
+
throw new Error("Missing the required parameter 'updateChildAccountStatus' when calling updateChildAccountStatus");
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
var pathParams = {
|
|
779
|
+
'childIdentifier': childIdentifier
|
|
780
|
+
};
|
|
781
|
+
var queryParams = {
|
|
782
|
+
};
|
|
783
|
+
var collectionQueryParams = {
|
|
784
|
+
};
|
|
785
|
+
var headerParams = {
|
|
786
|
+
};
|
|
787
|
+
var formParams = {
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
var authNames = ['api-key', 'partner-key'];
|
|
791
|
+
var contentTypes = ['application/json'];
|
|
792
|
+
var accepts = ['application/json'];
|
|
793
|
+
var returnType = null;
|
|
794
|
+
|
|
795
|
+
return this.apiClient.callApi(
|
|
796
|
+
'/reseller/children/{childIdentifier}/accountStatus', 'PUT',
|
|
797
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
798
|
+
authNames, contentTypes, accepts, returnType
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Update info of reseller's child account status based on the childIdentifier supplied
|
|
804
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
805
|
+
* @param {module:model/UpdateChildAccountStatus} updateChildAccountStatus values to update in child account status
|
|
806
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
807
|
+
*/
|
|
808
|
+
this.updateChildAccountStatus = function(childIdentifier, updateChildAccountStatus) {
|
|
809
|
+
return this.updateChildAccountStatusWithHttpInfo(childIdentifier, updateChildAccountStatus)
|
|
810
|
+
.then(function(response_and_data) {
|
|
811
|
+
return response_and_data.data;
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Update the sender domain of reseller's child based on the childIdentifier and domainName passed
|
|
818
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
819
|
+
* @param {String} domainName Pass the existing domain that needs to be updated
|
|
820
|
+
* @param {module:model/UpdateChildDomain} updateChildDomain value to update for sender domain
|
|
821
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
822
|
+
*/
|
|
823
|
+
this.updateChildDomainWithHttpInfo = function(childIdentifier, domainName, updateChildDomain) {
|
|
824
|
+
var postBody = updateChildDomain;
|
|
825
|
+
|
|
826
|
+
// verify the required parameter 'childIdentifier' is set
|
|
827
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
828
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling updateChildDomain");
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// verify the required parameter 'domainName' is set
|
|
832
|
+
if (domainName === undefined || domainName === null) {
|
|
833
|
+
throw new Error("Missing the required parameter 'domainName' when calling updateChildDomain");
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
// verify the required parameter 'updateChildDomain' is set
|
|
837
|
+
if (updateChildDomain === undefined || updateChildDomain === null) {
|
|
838
|
+
throw new Error("Missing the required parameter 'updateChildDomain' when calling updateChildDomain");
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
var pathParams = {
|
|
843
|
+
'childIdentifier': childIdentifier,
|
|
844
|
+
'domainName': domainName
|
|
845
|
+
};
|
|
846
|
+
var queryParams = {
|
|
847
|
+
};
|
|
848
|
+
var collectionQueryParams = {
|
|
849
|
+
};
|
|
850
|
+
var headerParams = {
|
|
851
|
+
};
|
|
852
|
+
var formParams = {
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
var authNames = ['api-key', 'partner-key'];
|
|
856
|
+
var contentTypes = ['application/json'];
|
|
857
|
+
var accepts = ['application/json'];
|
|
858
|
+
var returnType = null;
|
|
859
|
+
|
|
860
|
+
return this.apiClient.callApi(
|
|
861
|
+
'/reseller/children/{childIdentifier}/domains/{domainName}', 'PUT',
|
|
862
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
863
|
+
authNames, contentTypes, accepts, returnType
|
|
864
|
+
);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
/**
|
|
868
|
+
* Update the sender domain of reseller's child based on the childIdentifier and domainName passed
|
|
869
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
870
|
+
* @param {String} domainName Pass the existing domain that needs to be updated
|
|
871
|
+
* @param {module:model/UpdateChildDomain} updateChildDomain value to update for sender domain
|
|
872
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
873
|
+
*/
|
|
874
|
+
this.updateChildDomain = function(childIdentifier, domainName, updateChildDomain) {
|
|
875
|
+
return this.updateChildDomainWithHttpInfo(childIdentifier, domainName, updateChildDomain)
|
|
876
|
+
.then(function(response_and_data) {
|
|
877
|
+
return response_and_data.data;
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* Update info of reseller's child based on the child identifier supplied
|
|
884
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
885
|
+
* @param {module:model/UpdateChild} resellerChild values to update in child profile
|
|
886
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
887
|
+
*/
|
|
888
|
+
this.updateResellerChildWithHttpInfo = function(childIdentifier, resellerChild) {
|
|
889
|
+
var postBody = resellerChild;
|
|
890
|
+
|
|
891
|
+
// verify the required parameter 'childIdentifier' is set
|
|
892
|
+
if (childIdentifier === undefined || childIdentifier === null) {
|
|
893
|
+
throw new Error("Missing the required parameter 'childIdentifier' when calling updateResellerChild");
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// verify the required parameter 'resellerChild' is set
|
|
897
|
+
if (resellerChild === undefined || resellerChild === null) {
|
|
898
|
+
throw new Error("Missing the required parameter 'resellerChild' when calling updateResellerChild");
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
|
|
902
|
+
var pathParams = {
|
|
903
|
+
'childIdentifier': childIdentifier
|
|
904
|
+
};
|
|
905
|
+
var queryParams = {
|
|
906
|
+
};
|
|
907
|
+
var collectionQueryParams = {
|
|
908
|
+
};
|
|
909
|
+
var headerParams = {
|
|
910
|
+
};
|
|
911
|
+
var formParams = {
|
|
912
|
+
};
|
|
913
|
+
|
|
914
|
+
var authNames = ['api-key', 'partner-key'];
|
|
915
|
+
var contentTypes = ['application/json'];
|
|
916
|
+
var accepts = ['application/json'];
|
|
917
|
+
var returnType = null;
|
|
918
|
+
|
|
919
|
+
return this.apiClient.callApi(
|
|
920
|
+
'/reseller/children/{childIdentifier}', 'PUT',
|
|
921
|
+
pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
|
|
922
|
+
authNames, contentTypes, accepts, returnType
|
|
923
|
+
);
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
/**
|
|
927
|
+
* Update info of reseller's child based on the child identifier supplied
|
|
928
|
+
* @param {String} childIdentifier Either auth key or id of reseller's child
|
|
929
|
+
* @param {module:model/UpdateChild} resellerChild values to update in child profile
|
|
930
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
931
|
+
*/
|
|
932
|
+
this.updateResellerChild = function(childIdentifier, resellerChild) {
|
|
933
|
+
return this.updateResellerChildWithHttpInfo(childIdentifier, resellerChild)
|
|
934
|
+
.then(function(response_and_data) {
|
|
935
|
+
return response_and_data.data;
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
|
|
940
|
+
return exports;
|
|
941
|
+
}));
|