@getbrevo/brevo 2.1.0 → 2.2.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/.openapi-generator/FILES +12 -0
- package/LICENSE.md +15 -0
- package/README.md +105 -23
- package/api/accountApi.ts +1 -1
- package/api/companiesApi.ts +1 -1
- package/api/contactsApi.ts +7 -2
- package/api/conversationsApi.ts +1 -1
- package/api/couponsApi.ts +3 -3
- package/api/dealsApi.ts +1 -1
- package/api/domainsApi.ts +1 -1
- package/api/ecommerceApi.ts +160 -10
- package/api/emailCampaignsApi.ts +2 -2
- package/api/eventsApi.ts +1 -1
- package/api/externalFeedsApi.ts +1 -1
- package/api/filesApi.ts +1 -1
- package/api/inboundParsingApi.ts +1 -1
- package/api/masterAccountApi.ts +153 -2
- package/api/notesApi.ts +1 -1
- package/api/paymentsApi.ts +5 -5
- package/api/processApi.ts +1 -1
- package/api/resellerApi.ts +1 -1
- package/api/sMSCampaignsApi.ts +1 -1
- package/api/sendersApi.ts +1 -1
- package/api/tasksApi.ts +1 -1
- package/api/transactionalEmailsApi.ts +1 -1
- package/api/transactionalSMSApi.ts +3 -3
- package/api/transactionalWhatsAppApi.ts +1 -1
- package/api/userApi.ts +1 -1
- package/api/webhooksApi.ts +1 -1
- package/api/whatsAppCampaignsApi.ts +1 -1
- package/dist/api/contactsApi.d.ts +1 -1
- package/dist/api/contactsApi.js +4 -1
- package/dist/api/contactsApi.js.map +1 -1
- package/dist/api/couponsApi.d.ts +1 -1
- package/dist/api/couponsApi.js +1 -1
- package/dist/api/couponsApi.js.map +1 -1
- package/dist/api/ecommerceApi.d.ts +26 -6
- package/dist/api/ecommerceApi.js +136 -3
- package/dist/api/ecommerceApi.js.map +1 -1
- package/dist/api/masterAccountApi.d.ts +18 -0
- package/dist/api/masterAccountApi.js +133 -0
- package/dist/api/masterAccountApi.js.map +1 -1
- package/dist/api/paymentsApi.d.ts +2 -2
- package/dist/api/paymentsApi.js +1 -1
- package/dist/api/paymentsApi.js.map +1 -1
- package/dist/api/transactionalSMSApi.d.ts +1 -1
- package/dist/api/transactionalSMSApi.js +1 -1
- package/dist/api/transactionalSMSApi.js.map +1 -1
- package/dist/api.js +0 -1
- package/dist/model/companiesPostRequest.d.ts +2 -0
- package/dist/model/companiesPostRequest.js +10 -0
- package/dist/model/companiesPostRequest.js.map +1 -1
- package/dist/model/corporateSubAccountIpAssociatePostRequest.d.ts +15 -0
- package/dist/model/corporateSubAccountIpAssociatePostRequest.js +23 -0
- package/dist/model/corporateSubAccountIpAssociatePostRequest.js.map +1 -0
- package/dist/model/corporateSubAccountIpDissociatePutRequest.d.ts +15 -0
- package/dist/model/corporateSubAccountIpDissociatePutRequest.js +23 -0
- package/dist/model/corporateSubAccountIpDissociatePutRequest.js.map +1 -0
- package/dist/model/createPaymentRequest.d.ts +2 -1
- package/dist/model/createPaymentRequest.js +5 -0
- package/dist/model/createPaymentRequest.js.map +1 -1
- package/dist/model/createPaymentResponse.d.ts +15 -0
- package/dist/model/createPaymentResponse.js +23 -0
- package/dist/model/createPaymentResponse.js.map +1 -0
- package/dist/model/createSubAccount.d.ts +1 -0
- package/dist/model/createSubAccount.js +5 -0
- package/dist/model/createSubAccount.js.map +1 -1
- package/dist/model/createUpdateCategories.d.ts +1 -0
- package/dist/model/createUpdateCategories.js +5 -0
- package/dist/model/createUpdateCategories.js.map +1 -1
- package/dist/model/createUpdateCategory.d.ts +1 -0
- package/dist/model/createUpdateCategory.js +5 -0
- package/dist/model/createUpdateCategory.js.map +1 -1
- package/dist/model/createUpdateProduct.d.ts +1 -0
- package/dist/model/createUpdateProduct.js +5 -0
- package/dist/model/createUpdateProduct.js.map +1 -1
- package/dist/model/createUpdateProducts.d.ts +1 -0
- package/dist/model/createUpdateProducts.js +5 -0
- package/dist/model/createUpdateProducts.js.map +1 -1
- package/dist/model/crmDealsPostRequest.d.ts +2 -0
- package/dist/model/crmDealsPostRequest.js +10 -0
- package/dist/model/crmDealsPostRequest.js.map +1 -1
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +24 -0
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +49 -0
- package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -0
- package/dist/model/ecommerceAttributionMetricsGet200Response.d.ts +17 -0
- package/dist/model/ecommerceAttributionMetricsGet200Response.js +23 -0
- package/dist/model/ecommerceAttributionMetricsGet200Response.js.map +1 -0
- package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.d.ts +16 -0
- package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.js +28 -0
- package/dist/model/ecommerceAttributionMetricsGet200ResponseTotals.js.map +1 -0
- package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.d.ts +15 -0
- package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.js +18 -0
- package/dist/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.js.map +1 -0
- package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.d.ts +14 -0
- package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.js +18 -0
- package/dist/model/ecommerceConfigDisplayCurrencyGet200Response.js.map +1 -0
- package/dist/model/errorModel.d.ts +2 -1
- package/dist/model/errorModel.js +1 -0
- package/dist/model/errorModel.js.map +1 -1
- package/dist/model/eventIdentifiers.d.ts +3 -3
- package/dist/model/eventIdentifiers.js +6 -6
- package/dist/model/eventIdentifiers.js.map +1 -1
- package/dist/model/getEmailCampaign.d.ts +4 -0
- package/dist/model/getEmailCampaign.js +20 -0
- package/dist/model/getEmailCampaign.js.map +1 -1
- package/dist/model/getEmailCampaignsCampaignsInner.d.ts +4 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js +20 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
- package/dist/model/getExtendedCampaignOverview.d.ts +4 -0
- package/dist/model/getExtendedCampaignOverview.js +20 -0
- package/dist/model/getExtendedCampaignOverview.js.map +1 -1
- package/dist/model/getPaymentRequest.d.ts +1 -0
- package/dist/model/getPaymentRequest.js +5 -0
- package/dist/model/getPaymentRequest.js.map +1 -1
- package/dist/model/getSmsEventReportEventsInner.d.ts +2 -1
- package/dist/model/getSmsEventReportEventsInner.js +1 -0
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
- package/dist/model/getTransacAggregatedSmsReport.d.ts +1 -0
- package/dist/model/getTransacAggregatedSmsReport.js +5 -0
- package/dist/model/getTransacAggregatedSmsReport.js.map +1 -1
- package/dist/model/getTransacSmsReportReportsInner.d.ts +1 -0
- package/dist/model/getTransacSmsReportReportsInner.js +5 -0
- package/dist/model/getTransacSmsReportReportsInner.js.map +1 -1
- package/dist/model/models.d.ts +12 -0
- package/dist/model/models.js +37 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/orderBilling.d.ts +1 -0
- package/dist/model/orderBilling.js +5 -0
- package/dist/model/orderBilling.js.map +1 -1
- package/dist/model/subAccountDetailsResponse.d.ts +2 -0
- package/dist/model/subAccountDetailsResponse.js +5 -0
- package/dist/model/subAccountDetailsResponse.js.map +1 -1
- package/dist/model/subAccountDetailsResponseGroupsInner.d.ts +15 -0
- package/dist/model/subAccountDetailsResponseGroupsInner.js +23 -0
- package/dist/model/subAccountDetailsResponseGroupsInner.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +4 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +9 -4
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsSms.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +2 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js +10 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
- package/dist/model/subAccountsResponseSubAccountsInner.d.ts +2 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js +5 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js.map +1 -1
- package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.d.ts +15 -0
- package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.js +23 -0
- package/dist/model/subAccountsResponseSubAccountsInnerGroupsInner.js.map +1 -0
- package/model/abTestCampaignResult.ts +1 -1
- package/model/abTestCampaignResultClickedLinks.ts +1 -1
- package/model/abTestCampaignResultStatistics.ts +1 -1
- package/model/abTestVersionClicksInner.ts +1 -1
- package/model/abTestVersionStats.ts +1 -1
- package/model/addChildDomain.ts +1 -1
- package/model/addContactToList.ts +1 -1
- package/model/addCredits.ts +1 -1
- package/model/authenticateDomainModel.ts +1 -1
- package/model/blockDomain.ts +1 -1
- package/model/cart.ts +1 -1
- package/model/companiesIdPatchRequest.ts +1 -1
- package/model/companiesLinkUnlinkIdPatchRequest.ts +1 -1
- package/model/companiesList.ts +1 -1
- package/model/companiesPost200Response.ts +1 -1
- package/model/companiesPostRequest.ts +19 -1
- package/model/company.ts +1 -1
- package/model/companyAttributesInner.ts +1 -1
- package/model/componentItems.ts +1 -1
- package/model/configuration.ts +1 -1
- package/model/conversationsAgentOnlinePingPostRequest.ts +1 -1
- package/model/conversationsMessage.ts +1 -1
- package/model/conversationsMessageFile.ts +1 -1
- package/model/conversationsMessageFileImageInfo.ts +1 -1
- package/model/conversationsMessagesIdPutRequest.ts +1 -1
- package/model/conversationsMessagesPostRequest.ts +1 -1
- package/model/conversationsPushedMessagesIdPutRequest.ts +1 -1
- package/model/conversationsPushedMessagesPostRequest.ts +1 -1
- package/model/conversionSourceMetrics.ts +1 -1
- package/model/conversionSourceProduct.ts +1 -1
- package/model/corporateGroupDetailsResponse.ts +1 -1
- package/model/corporateGroupDetailsResponseGroup.ts +1 -1
- package/model/corporateGroupDetailsResponseSubAccountsInner.ts +1 -1
- package/model/corporateGroupDetailsResponseUsersInner.ts +1 -1
- package/model/corporateGroupPost201Response.ts +1 -1
- package/model/corporateGroupPostRequest.ts +1 -1
- package/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts +1 -1
- package/model/corporateSubAccountIpAssociatePostRequest.ts +43 -0
- package/model/corporateSubAccountIpDissociatePutRequest.ts +43 -0
- package/model/corporateUserInvitationActionEmailPut200Response.ts +1 -1
- package/model/createApiKeyRequest.ts +1 -1
- package/model/createApiKeyResponse.ts +1 -1
- package/model/createAttribute.ts +1 -1
- package/model/createAttributeEnumerationInner.ts +1 -1
- package/model/createCategoryModel.ts +1 -1
- package/model/createChild.ts +1 -1
- package/model/createContact.ts +1 -1
- package/model/createCouponCollection201Response.ts +1 -1
- package/model/createCouponCollectionRequest.ts +1 -1
- package/model/createCouponsRequest.ts +1 -1
- package/model/createDoiContact.ts +1 -1
- package/model/createDomain.ts +1 -1
- package/model/createDomainModel.ts +1 -1
- package/model/createDomainModelDnsRecords.ts +1 -1
- package/model/createDomainModelDnsRecordsDkimRecord.ts +1 -1
- package/model/createEmailCampaign.ts +1 -1
- package/model/createEmailCampaignRecipients.ts +1 -1
- package/model/createEmailCampaignSender.ts +1 -1
- package/model/createExternalFeed.ts +1 -1
- package/model/createExternalFeed201Response.ts +1 -1
- package/model/createList.ts +1 -1
- package/model/createModel.ts +1 -1
- package/model/createPaymentRequest.ts +11 -2
- package/model/createPaymentResponse.ts +43 -0
- package/model/createProductModel.ts +1 -1
- package/model/createReseller.ts +1 -1
- package/model/createSender.ts +1 -1
- package/model/createSenderIpsInner.ts +1 -1
- package/model/createSenderModel.ts +1 -1
- package/model/createSmsCampaign.ts +1 -1
- package/model/createSmsCampaignRecipients.ts +1 -1
- package/model/createSmtpEmail.ts +1 -1
- package/model/createSmtpTemplate.ts +1 -1
- package/model/createSmtpTemplateSender.ts +1 -1
- package/model/createSubAccount.ts +10 -1
- package/model/createSubAccountResponse.ts +1 -1
- package/model/createUpdateBatchCategory.ts +1 -1
- package/model/createUpdateBatchCategoryModel.ts +1 -1
- package/model/createUpdateBatchProducts.ts +1 -1
- package/model/createUpdateBatchProductsModel.ts +1 -1
- package/model/createUpdateCategories.ts +10 -1
- package/model/createUpdateCategory.ts +10 -1
- package/model/createUpdateContactModel.ts +1 -1
- package/model/createUpdateFolder.ts +1 -1
- package/model/createUpdateProduct.ts +10 -1
- package/model/createUpdateProducts.ts +10 -1
- package/model/createWebhook.ts +1 -1
- package/model/createWhatsAppCampaign.ts +1 -1
- package/model/createWhatsAppCampaignRecipients.ts +1 -1
- package/model/createWhatsAppTemplate.ts +1 -1
- package/model/createdBatchId.ts +1 -1
- package/model/createdProcessId.ts +1 -1
- package/model/crmDealsIdPatchRequest.ts +1 -1
- package/model/crmDealsLinkUnlinkIdPatchRequest.ts +1 -1
- package/model/crmDealsPost201Response.ts +1 -1
- package/model/crmDealsPostRequest.ts +19 -1
- package/model/crmTasksIdPatchRequest.ts +1 -1
- package/model/crmTasksPost201Response.ts +1 -1
- package/model/crmTasksPostRequest.ts +1 -1
- package/model/deal.ts +1 -1
- package/model/dealAttributesInner.ts +1 -1
- package/model/dealsList.ts +1 -1
- package/model/deleteHardbounces.ts +1 -1
- package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +66 -0
- package/model/ecommerceAttributionMetricsGet200Response.ts +42 -0
- package/model/ecommerceAttributionMetricsGet200ResponseTotals.ts +46 -0
- package/model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.ts +35 -0
- package/model/ecommerceConfigDisplayCurrencyGet200Response.ts +34 -0
- package/model/emailExportRecipients.ts +1 -1
- package/model/errorModel.ts +3 -2
- package/model/event.ts +1 -1
- package/model/eventIdentifiers.ts +10 -10
- package/model/exportWebhooksHistory.ts +1 -1
- package/model/fileData.ts +1 -1
- package/model/fileDownloadableLink.ts +1 -1
- package/model/getAccount.ts +1 -1
- package/model/getAccountActivity.ts +1 -1
- package/model/getAccountActivityLogsInner.ts +1 -1
- package/model/getAccountAllOfMarketingAutomation.ts +1 -1
- package/model/getAccountAllOfPlan.ts +1 -1
- package/model/getAccountAllOfRelay.ts +1 -1
- package/model/getAccountAllOfRelayData.ts +1 -1
- package/model/getAggregatedReport.ts +1 -1
- package/model/getAllExternalFeeds.ts +1 -1
- package/model/getAllExternalFeedsFeedsInner.ts +1 -1
- package/model/getAttributes.ts +1 -1
- package/model/getAttributesAttributesInner.ts +1 -1
- package/model/getAttributesAttributesInnerEnumerationInner.ts +1 -1
- package/model/getBlockedDomains.ts +1 -1
- package/model/getCampaignOverview.ts +1 -1
- package/model/getCampaignRecipients.ts +1 -1
- package/model/getCampaignStats.ts +1 -1
- package/model/getCategories.ts +1 -1
- package/model/getCategoryDetails.ts +1 -1
- package/model/getChildAccountCreationStatus.ts +1 -1
- package/model/getChildDomain.ts +1 -1
- package/model/getChildInfo.ts +1 -1
- package/model/getChildInfoAllOfApiKeys.ts +1 -1
- package/model/getChildInfoAllOfApiKeysV2.ts +1 -1
- package/model/getChildInfoAllOfApiKeysV3.ts +1 -1
- package/model/getChildInfoAllOfCredits.ts +1 -1
- package/model/getChildInfoAllOfStatistics.ts +1 -1
- package/model/getChildrenList.ts +1 -1
- package/model/getChildrenListChildrenInner.ts +1 -1
- package/model/getClient.ts +1 -1
- package/model/getContactCampaignStats.ts +1 -1
- package/model/getContactCampaignStatsClickedInner.ts +1 -1
- package/model/getContactCampaignStatsClickedInnerLinksInner.ts +1 -1
- package/model/getContactCampaignStatsMessagesSentInner.ts +1 -1
- package/model/getContactCampaignStatsOpenedInner.ts +1 -1
- package/model/getContactCampaignStatsTransacAttributesInner.ts +1 -1
- package/model/getContactCampaignStatsUnsubscriptions.ts +1 -1
- package/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.ts +1 -1
- package/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.ts +1 -1
- package/model/getContactDetails.ts +1 -1
- package/model/getContacts.ts +1 -1
- package/model/getCorporateInvitedUsersList.ts +1 -1
- package/model/getCorporateInvitedUsersListUsersInner.ts +1 -1
- package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +1 -1
- package/model/getCorporateInvitedUsersListUsersInnerGroups.ts +1 -1
- package/model/getCorporateUserPermission.ts +1 -1
- package/model/getCorporateUserPermissionFeatureAccess.ts +1 -1
- package/model/getCorporateUserPermissionGroupsInner.ts +1 -1
- package/model/getCouponCollection.ts +1 -1
- package/model/getDeviceBrowserStats.ts +1 -1
- package/model/getDomainConfigurationModel.ts +1 -1
- package/model/getDomainsList.ts +1 -1
- package/model/getDomainsListDomainsInner.ts +1 -1
- package/model/getEmailCampaign.ts +37 -1
- package/model/getEmailCampaigns.ts +1 -1
- package/model/getEmailCampaignsCampaignsInner.ts +37 -1
- package/model/getEmailEventReport.ts +1 -1
- package/model/getEmailEventReportEventsInner.ts +1 -1
- package/model/getExtendedCampaignOverview.ts +37 -1
- package/model/getExtendedCampaignOverviewAllOfSender.ts +1 -1
- package/model/getExtendedCampaignStats.ts +1 -1
- package/model/getExtendedClient.ts +1 -1
- package/model/getExtendedClientAllOfAddress.ts +1 -1
- package/model/getExtendedContactDetails.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatistics.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsClicked.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsLinks.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsOpened.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.ts +1 -1
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.ts +1 -1
- package/model/getExtendedList.ts +1 -1
- package/model/getExtendedListAllOfCampaignStats.ts +1 -1
- package/model/getExternalFeedByUUID.ts +1 -1
- package/model/getExternalFeedByUUIDHeadersInner.ts +1 -1
- package/model/getFolder.ts +1 -1
- package/model/getFolderLists.ts +1 -1
- package/model/getFolders.ts +1 -1
- package/model/getInboundEmailEvents.ts +1 -1
- package/model/getInboundEmailEventsByUuid.ts +1 -1
- package/model/getInboundEmailEventsByUuidAttachmentsInner.ts +1 -1
- package/model/getInboundEmailEventsByUuidLogsInner.ts +1 -1
- package/model/getInboundEmailEventsEventsInner.ts +1 -1
- package/model/getInvitedUsersList.ts +1 -1
- package/model/getInvitedUsersListUsersInner.ts +1 -1
- package/model/getInvitedUsersListUsersInnerFeatureAccess.ts +1 -1
- package/model/getIp.ts +1 -1
- package/model/getIpFromSender.ts +1 -1
- package/model/getIps.ts +1 -1
- package/model/getIpsFromSender.ts +1 -1
- package/model/getList.ts +1 -1
- package/model/getLists.ts +1 -1
- package/model/getListsListsInner.ts +1 -1
- package/model/getOrders.ts +1 -1
- package/model/getOrdersOrdersInner.ts +1 -1
- package/model/getPaymentRequest.ts +10 -1
- package/model/getProcess.ts +1 -1
- package/model/getProcesses.ts +1 -1
- package/model/getProductDetails.ts +1 -1
- package/model/getProducts.ts +1 -1
- package/model/getReports.ts +1 -1
- package/model/getReportsReportsInner.ts +1 -1
- package/model/getScheduledEmailByBatchId.ts +1 -1
- package/model/getScheduledEmailByBatchIdBatchesInner.ts +1 -1
- package/model/getScheduledEmailByMessageId.ts +1 -1
- package/model/getSegments.ts +1 -1
- package/model/getSegmentsSegments.ts +1 -1
- package/model/getSendersList.ts +1 -1
- package/model/getSendersListSendersInner.ts +1 -1
- package/model/getSendersListSendersInnerIpsInner.ts +1 -1
- package/model/getSharedTemplateUrl.ts +1 -1
- package/model/getSmsCampaign.ts +1 -1
- package/model/getSmsCampaignOverview.ts +1 -1
- package/model/getSmsCampaignStats.ts +1 -1
- package/model/getSmsCampaigns.ts +1 -1
- package/model/getSmsCampaignsCampaignsInner.ts +1 -1
- package/model/getSmsEventReport.ts +1 -1
- package/model/getSmsEventReportEventsInner.ts +3 -2
- package/model/getSmtpTemplateOverview.ts +1 -1
- package/model/getSmtpTemplateOverviewSender.ts +1 -1
- package/model/getSmtpTemplates.ts +1 -1
- package/model/getSsoToken.ts +1 -1
- package/model/getStatsByDevice.ts +1 -1
- package/model/getSubAccountGroups200ResponseInner.ts +1 -1
- package/model/getTransacAggregatedSmsReport.ts +12 -3
- package/model/getTransacBlockedContacts.ts +1 -1
- package/model/getTransacBlockedContactsContactsInner.ts +1 -1
- package/model/getTransacBlockedContactsContactsInnerReason.ts +1 -1
- package/model/getTransacEmailContent.ts +1 -1
- package/model/getTransacEmailContentEventsInner.ts +1 -1
- package/model/getTransacEmailsList.ts +1 -1
- package/model/getTransacEmailsListTransactionalEmailsInner.ts +1 -1
- package/model/getTransacSmsReport.ts +1 -1
- package/model/getTransacSmsReportReportsInner.ts +12 -3
- package/model/getUserPermission.ts +1 -1
- package/model/getUserPermissionPrivilegesInner.ts +1 -1
- package/model/getWATemplates.ts +1 -1
- package/model/getWATemplatesTemplatesInner.ts +1 -1
- package/model/getWebhook.ts +1 -1
- package/model/getWebhookAuth.ts +1 -1
- package/model/getWebhookHeadersInner.ts +1 -1
- package/model/getWebhooks.ts +1 -1
- package/model/getWhatsAppConfig.ts +1 -1
- package/model/getWhatsappCampaignOverview.ts +1 -1
- package/model/getWhatsappCampaigns.ts +1 -1
- package/model/getWhatsappCampaignsCampaignsInner.ts +1 -1
- package/model/getWhatsappEventReport.ts +1 -1
- package/model/getWhatsappEventReportEventsInner.ts +1 -1
- package/model/inviteAdminUser.ts +1 -1
- package/model/inviteAdminUserPrivilegesInner.ts +1 -1
- package/model/inviteuser.ts +1 -1
- package/model/inviteuserPrivilegesInner.ts +1 -1
- package/model/manageIp.ts +1 -1
- package/model/masterDetailsResponse.ts +1 -1
- package/model/masterDetailsResponseBillingInfo.ts +1 -1
- package/model/masterDetailsResponseBillingInfoAddress.ts +1 -1
- package/model/masterDetailsResponseBillingInfoName.ts +1 -1
- package/model/masterDetailsResponsePlanInfo.ts +1 -1
- package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +1 -1
- package/model/models.ts +37 -0
- package/model/note.ts +1 -1
- package/model/noteData.ts +1 -1
- package/model/noteId.ts +1 -1
- package/model/notification.ts +1 -1
- package/model/order.ts +1 -1
- package/model/orderBatch.ts +1 -1
- package/model/orderBilling.ts +10 -1
- package/model/orderProductsInner.ts +1 -1
- package/model/otp.ts +1 -1
- package/model/pipeline.ts +1 -1
- package/model/pipelineStage.ts +1 -1
- package/model/postContactInfo.ts +1 -1
- package/model/postContactInfoContacts.ts +1 -1
- package/model/postSendFailed.ts +1 -1
- package/model/postSendSmsTestFailed.ts +1 -1
- package/model/putRevokeUserPermission.ts +1 -1
- package/model/putresendcancelinvitation.ts +1 -1
- package/model/remainingCreditModel.ts +1 -1
- package/model/remainingCreditModelChild.ts +1 -1
- package/model/remainingCreditModelReseller.ts +1 -1
- package/model/removeContactFromList.ts +1 -1
- package/model/removeCredits.ts +1 -1
- package/model/requestContactExport.ts +1 -1
- package/model/requestContactExportCustomContactFilter.ts +1 -1
- package/model/requestContactImport.ts +1 -1
- package/model/requestContactImportJsonBodyInner.ts +1 -1
- package/model/requestContactImportNewList.ts +1 -1
- package/model/requestSmsRecipientExport.ts +1 -1
- package/model/scheduleSmtpEmail.ts +1 -1
- package/model/sendReport.ts +1 -1
- package/model/sendReportEmail.ts +1 -1
- package/model/sendSms.ts +1 -1
- package/model/sendSmtpEmail.ts +1 -1
- package/model/sendSmtpEmailAttachmentInner.ts +1 -1
- package/model/sendSmtpEmailBccInner.ts +1 -1
- package/model/sendSmtpEmailCcInner.ts +1 -1
- package/model/sendSmtpEmailMessageVersionsInner.ts +1 -1
- package/model/sendSmtpEmailMessageVersionsInnerReplyTo.ts +1 -1
- package/model/sendSmtpEmailMessageVersionsInnerToInner.ts +1 -1
- package/model/sendSmtpEmailReplyTo.ts +1 -1
- package/model/sendSmtpEmailSender.ts +1 -1
- package/model/sendSmtpEmailToInner.ts +1 -1
- package/model/sendTestEmail.ts +1 -1
- package/model/sendTestSms.ts +1 -1
- package/model/sendTransacSms.ts +1 -1
- package/model/sendWhatsappMessage.ts +1 -1
- package/model/sendWhatsappMessage201Response.ts +1 -1
- package/model/ssoTokenRequest.ts +1 -1
- package/model/ssoTokenRequestCorporate.ts +1 -1
- package/model/subAccountAppsToggleRequest.ts +1 -1
- package/model/subAccountDetailsResponse.ts +11 -1
- package/model/subAccountDetailsResponseGroupsInner.ts +43 -0
- package/model/subAccountDetailsResponsePlanInfo.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +14 -9
- package/model/subAccountDetailsResponsePlanInfoCreditsEmails.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoCreditsSms.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +1 -1
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +1 -1
- package/model/subAccountUpdatePlanRequest.ts +1 -1
- package/model/subAccountUpdatePlanRequestCredits.ts +19 -1
- package/model/subAccountUpdatePlanRequestFeatures.ts +1 -1
- package/model/subAccountsResponse.ts +1 -1
- package/model/subAccountsResponseSubAccountsInner.ts +11 -1
- package/model/subAccountsResponseSubAccountsInnerGroupsInner.ts +43 -0
- package/model/task.ts +1 -1
- package/model/taskList.ts +1 -1
- package/model/taskReminder.ts +1 -1
- package/model/taskTypes.ts +1 -1
- package/model/updateAttribute.ts +1 -1
- package/model/updateAttributeEnumerationInner.ts +1 -1
- package/model/updateBatchContacts.ts +1 -1
- package/model/updateBatchContactsContactsInner.ts +1 -1
- package/model/updateBatchContactsModel.ts +1 -1
- package/model/updateCampaignStatus.ts +1 -1
- package/model/updateChild.ts +1 -1
- package/model/updateChildAccountStatus.ts +1 -1
- package/model/updateChildDomain.ts +1 -1
- package/model/updateContact.ts +1 -1
- package/model/updateCouponCollection200Response.ts +1 -1
- package/model/updateCouponCollectionRequest.ts +1 -1
- package/model/updateEmailCampaign.ts +1 -1
- package/model/updateEmailCampaignRecipients.ts +1 -1
- package/model/updateEmailCampaignSender.ts +1 -1
- package/model/updateExternalFeed.ts +1 -1
- package/model/updateList.ts +1 -1
- package/model/updateSender.ts +1 -1
- package/model/updateSmsCampaign.ts +1 -1
- package/model/updateSmtpTemplate.ts +1 -1
- package/model/updateSmtpTemplateSender.ts +1 -1
- package/model/updateWebhook.ts +1 -1
- package/model/updateWhatsAppCampaign.ts +1 -1
- package/model/uploadImageModel.ts +1 -1
- package/model/uploadImageToGallery.ts +1 -1
- package/model/variablesItems.ts +1 -1
- package/model/whatsappCampStats.ts +1 -1
- package/model/whatsappCampTemplate.ts +1 -1
- package/package.json +4 -4
package/api/eventsApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/externalFeedsApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/filesApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/inboundParsingApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/masterAccountApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -19,6 +19,8 @@ import { CorporateGroupDetailsResponse } from '../model/corporateGroupDetailsRes
|
|
|
19
19
|
import { CorporateGroupPost201Response } from '../model/corporateGroupPost201Response';
|
|
20
20
|
import { CorporateGroupPostRequest } from '../model/corporateGroupPostRequest';
|
|
21
21
|
import { CorporateGroupUnlinkGroupIdSubAccountsPutRequest } from '../model/corporateGroupUnlinkGroupIdSubAccountsPutRequest';
|
|
22
|
+
import { CorporateSubAccountIpAssociatePostRequest } from '../model/corporateSubAccountIpAssociatePostRequest';
|
|
23
|
+
import { CorporateSubAccountIpDissociatePutRequest } from '../model/corporateSubAccountIpDissociatePutRequest';
|
|
22
24
|
import { CorporateUserInvitationActionEmailPut200Response } from '../model/corporateUserInvitationActionEmailPut200Response';
|
|
23
25
|
import { CreateApiKeyRequest } from '../model/createApiKeyRequest';
|
|
24
26
|
import { CreateApiKeyResponse } from '../model/createApiKeyResponse';
|
|
@@ -961,7 +963,7 @@ export class MasterAccountApi {
|
|
|
961
963
|
});
|
|
962
964
|
}
|
|
963
965
|
/**
|
|
964
|
-
* This endpoint will update the sub-account plan
|
|
966
|
+
* This endpoint will update the sub-account plan. On the Corporate solution new version v2, you can set an unlimited number of credits in your sub-organization. Please pass the value “-1\" to set the consumable in unlimited mode.
|
|
965
967
|
* @summary Update sub-account plan
|
|
966
968
|
* @param id Id of the sub-account organization
|
|
967
969
|
* @param updatePlanDetails Values to update a sub-account plan
|
|
@@ -1041,6 +1043,155 @@ export class MasterAccountApi {
|
|
|
1041
1043
|
});
|
|
1042
1044
|
});
|
|
1043
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* This endpoint allows to associate an IP to sub-accounts
|
|
1048
|
+
* @summary Associate an IP to sub-accounts
|
|
1049
|
+
* @param body Ip address association details
|
|
1050
|
+
*/
|
|
1051
|
+
public async corporateSubAccountIpAssociatePost (body: CorporateSubAccountIpAssociatePostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: object; }> {
|
|
1052
|
+
const localVarPath = this.basePath + '/corporate/subAccount/ip/associate';
|
|
1053
|
+
let localVarQueryParameters: any = {};
|
|
1054
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1055
|
+
const produces = ['application/json'];
|
|
1056
|
+
// give precedence to 'application/json'
|
|
1057
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1058
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1059
|
+
} else {
|
|
1060
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1061
|
+
}
|
|
1062
|
+
let localVarFormParams: any = {};
|
|
1063
|
+
|
|
1064
|
+
// verify required parameter 'body' is not null or undefined
|
|
1065
|
+
if (body === null || body === undefined) {
|
|
1066
|
+
throw new Error('Required parameter body was null or undefined when calling corporateSubAccountIpAssociatePost.');
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1070
|
+
|
|
1071
|
+
let localVarUseFormData = false;
|
|
1072
|
+
|
|
1073
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1074
|
+
method: 'POST',
|
|
1075
|
+
qs: localVarQueryParameters,
|
|
1076
|
+
headers: localVarHeaderParams,
|
|
1077
|
+
uri: localVarPath,
|
|
1078
|
+
useQuerystring: this._useQuerystring,
|
|
1079
|
+
json: true,
|
|
1080
|
+
body: ObjectSerializer.serialize(body, "CorporateSubAccountIpAssociatePostRequest")
|
|
1081
|
+
};
|
|
1082
|
+
|
|
1083
|
+
let authenticationPromise = Promise.resolve();
|
|
1084
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1085
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1086
|
+
}
|
|
1087
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1088
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1089
|
+
}
|
|
1090
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1091
|
+
|
|
1092
|
+
let interceptorPromise = authenticationPromise;
|
|
1093
|
+
for (const interceptor of this.interceptors) {
|
|
1094
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
return interceptorPromise.then(() => {
|
|
1098
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1099
|
+
if (localVarUseFormData) {
|
|
1100
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1101
|
+
} else {
|
|
1102
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
return new Promise<{ response: http.IncomingMessage; body: object; }>((resolve, reject) => {
|
|
1106
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1107
|
+
if (error) {
|
|
1108
|
+
reject(error);
|
|
1109
|
+
} else {
|
|
1110
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1111
|
+
body = ObjectSerializer.deserialize(body, "object");
|
|
1112
|
+
resolve({ response: response, body: body });
|
|
1113
|
+
} else {
|
|
1114
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
});
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
/**
|
|
1122
|
+
* This endpoint allows to dissociate an IP from sub-accounts
|
|
1123
|
+
* @summary Dissociate an IP from sub-accounts
|
|
1124
|
+
* @param body Ip address dissociation details
|
|
1125
|
+
*/
|
|
1126
|
+
public async corporateSubAccountIpDissociatePut (body: CorporateSubAccountIpDissociatePutRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1127
|
+
const localVarPath = this.basePath + '/corporate/subAccount/ip/dissociate';
|
|
1128
|
+
let localVarQueryParameters: any = {};
|
|
1129
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1130
|
+
const produces = ['application/json'];
|
|
1131
|
+
// give precedence to 'application/json'
|
|
1132
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1133
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1134
|
+
} else {
|
|
1135
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1136
|
+
}
|
|
1137
|
+
let localVarFormParams: any = {};
|
|
1138
|
+
|
|
1139
|
+
// verify required parameter 'body' is not null or undefined
|
|
1140
|
+
if (body === null || body === undefined) {
|
|
1141
|
+
throw new Error('Required parameter body was null or undefined when calling corporateSubAccountIpDissociatePut.');
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1145
|
+
|
|
1146
|
+
let localVarUseFormData = false;
|
|
1147
|
+
|
|
1148
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1149
|
+
method: 'PUT',
|
|
1150
|
+
qs: localVarQueryParameters,
|
|
1151
|
+
headers: localVarHeaderParams,
|
|
1152
|
+
uri: localVarPath,
|
|
1153
|
+
useQuerystring: this._useQuerystring,
|
|
1154
|
+
json: true,
|
|
1155
|
+
body: ObjectSerializer.serialize(body, "CorporateSubAccountIpDissociatePutRequest")
|
|
1156
|
+
};
|
|
1157
|
+
|
|
1158
|
+
let authenticationPromise = Promise.resolve();
|
|
1159
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1160
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1161
|
+
}
|
|
1162
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1163
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1164
|
+
}
|
|
1165
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1166
|
+
|
|
1167
|
+
let interceptorPromise = authenticationPromise;
|
|
1168
|
+
for (const interceptor of this.interceptors) {
|
|
1169
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
return interceptorPromise.then(() => {
|
|
1173
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1174
|
+
if (localVarUseFormData) {
|
|
1175
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1176
|
+
} else {
|
|
1177
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1181
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1182
|
+
if (error) {
|
|
1183
|
+
reject(error);
|
|
1184
|
+
} else {
|
|
1185
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1186
|
+
resolve({ response: response, body: body });
|
|
1187
|
+
} else {
|
|
1188
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
});
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1044
1195
|
/**
|
|
1045
1196
|
* This endpoint will generate an API v3 key for a sub account
|
|
1046
1197
|
* @summary Create an API key for a sub-account
|
package/api/notesApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/paymentsApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -15,8 +15,8 @@ import localVarRequest from 'request';
|
|
|
15
15
|
import http from 'http';
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
|
-
import { CreateModel } from '../model/createModel';
|
|
19
18
|
import { CreatePaymentRequest } from '../model/createPaymentRequest';
|
|
19
|
+
import { CreatePaymentResponse } from '../model/createPaymentResponse';
|
|
20
20
|
import { ErrorModel } from '../model/errorModel';
|
|
21
21
|
import { GetPaymentRequest } from '../model/getPaymentRequest';
|
|
22
22
|
|
|
@@ -99,7 +99,7 @@ export class PaymentsApi {
|
|
|
99
99
|
* @summary Create a payment request
|
|
100
100
|
* @param createPaymentRquest Create a payment request
|
|
101
101
|
*/
|
|
102
|
-
public async createPaymentRequest (createPaymentRquest: CreatePaymentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body:
|
|
102
|
+
public async createPaymentRequest (createPaymentRquest: CreatePaymentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreatePaymentResponse; }> {
|
|
103
103
|
const localVarPath = this.basePath + '/payments/requests';
|
|
104
104
|
let localVarQueryParameters: any = {};
|
|
105
105
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -153,13 +153,13 @@ export class PaymentsApi {
|
|
|
153
153
|
localVarRequestOptions.form = localVarFormParams;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
|
-
return new Promise<{ response: http.IncomingMessage; body:
|
|
156
|
+
return new Promise<{ response: http.IncomingMessage; body: CreatePaymentResponse; }>((resolve, reject) => {
|
|
157
157
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
158
158
|
if (error) {
|
|
159
159
|
reject(error);
|
|
160
160
|
} else {
|
|
161
161
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
162
|
-
body = ObjectSerializer.deserialize(body, "
|
|
162
|
+
body = ObjectSerializer.deserialize(body, "CreatePaymentResponse");
|
|
163
163
|
resolve({ response: response, body: body });
|
|
164
164
|
} else {
|
|
165
165
|
reject(new HttpError(response, body, response.statusCode));
|
package/api/processApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/resellerApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/sMSCampaignsApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/sendersApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/tasksApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -109,7 +109,7 @@ export class TransactionalSMSApi {
|
|
|
109
109
|
* @param tags Filter the report for specific tags passed as a serialized urlencoded array
|
|
110
110
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
111
111
|
*/
|
|
112
|
-
public async getSmsEvents (limit?: number, startDate?: string, endDate?: string, offset?: number, days?: number, phoneNumber?: string, event?: 'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected', tags?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmsEventReport; }> {
|
|
112
|
+
public async getSmsEvents (limit?: number, startDate?: string, endDate?: string, offset?: number, days?: number, phoneNumber?: string, event?: 'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected' | 'skipped', tags?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmsEventReport; }> {
|
|
113
113
|
const localVarPath = this.basePath + '/transactionalSMS/statistics/events';
|
|
114
114
|
let localVarQueryParameters: any = {};
|
|
115
115
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -147,7 +147,7 @@ export class TransactionalSMSApi {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
if (event !== undefined) {
|
|
150
|
-
localVarQueryParameters['event'] = ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected'");
|
|
150
|
+
localVarQueryParameters['event'] = ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'sent' | 'accepted' | 'unsubscription' | 'replies' | 'blocked' | 'rejected' | 'skipped'");
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
if (tags !== undefined) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/userApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
package/api/webhooksApi.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
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 |
|
|
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 | | 422 | Error. Unprocessable Entity |
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 3.0.0
|
|
6
6
|
* Contact: contact@brevo.com
|
|
@@ -156,7 +156,7 @@ export declare class ContactsApi {
|
|
|
156
156
|
response: http.IncomingMessage;
|
|
157
157
|
body: GetContactCampaignStats;
|
|
158
158
|
}>;
|
|
159
|
-
getContacts(limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, options?: {
|
|
159
|
+
getContacts(limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options?: {
|
|
160
160
|
headers: {
|
|
161
161
|
[name: string]: string;
|
|
162
162
|
};
|
package/dist/api/contactsApi.js
CHANGED
|
@@ -958,7 +958,7 @@ class ContactsApi {
|
|
|
958
958
|
});
|
|
959
959
|
});
|
|
960
960
|
}
|
|
961
|
-
getContacts(limit, offset, modifiedSince, createdSince, sort, segmentId, listIds, options = { headers: {} }) {
|
|
961
|
+
getContacts(limit, offset, modifiedSince, createdSince, sort, segmentId, listIds, filter, options = { headers: {} }) {
|
|
962
962
|
return __awaiter(this, void 0, void 0, function* () {
|
|
963
963
|
const localVarPath = this.basePath + '/contacts';
|
|
964
964
|
let localVarQueryParameters = {};
|
|
@@ -992,6 +992,9 @@ class ContactsApi {
|
|
|
992
992
|
if (listIds !== undefined) {
|
|
993
993
|
localVarQueryParameters['listIds'] = models_1.ObjectSerializer.serialize(listIds, "Array<number>");
|
|
994
994
|
}
|
|
995
|
+
if (filter !== undefined) {
|
|
996
|
+
localVarQueryParameters['filter'] = models_1.ObjectSerializer.serialize(filter, "string");
|
|
997
|
+
}
|
|
995
998
|
Object.assign(localVarHeaderParams, options.headers);
|
|
996
999
|
let localVarUseFormData = false;
|
|
997
1000
|
let localVarRequestOptions = {
|