@getbrevo/brevo 2.1.1 → 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/transactionalEmailsApi.js +0 -1
- package/dist/api/transactionalEmailsApi.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/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 +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -66,6 +66,8 @@ model/corporateGroupDetailsResponseUsersInner.ts
|
|
|
66
66
|
model/corporateGroupPost201Response.ts
|
|
67
67
|
model/corporateGroupPostRequest.ts
|
|
68
68
|
model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts
|
|
69
|
+
model/corporateSubAccountIpAssociatePostRequest.ts
|
|
70
|
+
model/corporateSubAccountIpDissociatePutRequest.ts
|
|
69
71
|
model/corporateUserInvitationActionEmailPut200Response.ts
|
|
70
72
|
model/createApiKeyRequest.ts
|
|
71
73
|
model/createApiKeyResponse.ts
|
|
@@ -90,6 +92,7 @@ model/createExternalFeed201Response.ts
|
|
|
90
92
|
model/createList.ts
|
|
91
93
|
model/createModel.ts
|
|
92
94
|
model/createPaymentRequest.ts
|
|
95
|
+
model/createPaymentResponse.ts
|
|
93
96
|
model/createProductModel.ts
|
|
94
97
|
model/createReseller.ts
|
|
95
98
|
model/createSender.ts
|
|
@@ -129,6 +132,11 @@ model/deal.ts
|
|
|
129
132
|
model/dealAttributesInner.ts
|
|
130
133
|
model/dealsList.ts
|
|
131
134
|
model/deleteHardbounces.ts
|
|
135
|
+
model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts
|
|
136
|
+
model/ecommerceAttributionMetricsGet200Response.ts
|
|
137
|
+
model/ecommerceAttributionMetricsGet200ResponseTotals.ts
|
|
138
|
+
model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response.ts
|
|
139
|
+
model/ecommerceConfigDisplayCurrencyGet200Response.ts
|
|
132
140
|
model/emailExportRecipients.ts
|
|
133
141
|
model/errorModel.ts
|
|
134
142
|
model/event.ts
|
|
@@ -348,9 +356,12 @@ model/ssoTokenRequest.ts
|
|
|
348
356
|
model/ssoTokenRequestCorporate.ts
|
|
349
357
|
model/subAccountAppsToggleRequest.ts
|
|
350
358
|
model/subAccountDetailsResponse.ts
|
|
359
|
+
model/subAccountDetailsResponseGroupsInner.ts
|
|
351
360
|
model/subAccountDetailsResponsePlanInfo.ts
|
|
352
361
|
model/subAccountDetailsResponsePlanInfoCredits.ts
|
|
353
362
|
model/subAccountDetailsResponsePlanInfoCreditsEmails.ts
|
|
363
|
+
model/subAccountDetailsResponsePlanInfoCreditsSms.ts
|
|
364
|
+
model/subAccountDetailsResponsePlanInfoCreditsWpSubscribers.ts
|
|
354
365
|
model/subAccountDetailsResponsePlanInfoFeatures.ts
|
|
355
366
|
model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts
|
|
356
367
|
model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts
|
|
@@ -360,6 +371,7 @@ model/subAccountUpdatePlanRequestCredits.ts
|
|
|
360
371
|
model/subAccountUpdatePlanRequestFeatures.ts
|
|
361
372
|
model/subAccountsResponse.ts
|
|
362
373
|
model/subAccountsResponseSubAccountsInner.ts
|
|
374
|
+
model/subAccountsResponseSubAccountsInnerGroupsInner.ts
|
|
363
375
|
model/task.ts
|
|
364
376
|
model/taskList.ts
|
|
365
377
|
model/taskReminder.ts
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023, Brevo
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Brevo's API exposes the entire Brevo features via a standardized programmatic in
|
|
|
6
6
|
|
|
7
7
|
This is the wrapper for the API. It implements all the features of the API v3. It supports promises.
|
|
8
8
|
|
|
9
|
-
Brevo's API matches the [OpenAPI v2 definition](https://www.openapis.org/). The specification can be downloaded [here](https://api.brevo.com/v3/
|
|
9
|
+
Brevo's API matches the [OpenAPI v2 definition](https://www.openapis.org/). The specification can be downloaded [here](https://api.brevo.com/v3/swagger_definition_v3.yml).
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -26,44 +26,126 @@ yarn add @getbrevo/brevo
|
|
|
26
26
|
|
|
27
27
|
## Getting Started
|
|
28
28
|
|
|
29
|
-
Once you have [installed](#installation) the node module in your project, you can execute the following sample code JS code :
|
|
30
29
|
|
|
31
|
-
```javascript
|
|
32
|
-
const SibApiV3Sdk = require('@getbrevo/brevo');
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
# We have two options:
|
|
32
|
+
- First example is where **typescript is not supported** i.e. [v1.0.1]([url](https://www.npmjs.com/package/@getbrevo/brevo/v/1.0.1))
|
|
33
|
+
- Second example is where **typescript is supported** i.e. [v2.1.1]([url](https://www.npmjs.com/package/@getbrevo/brevo/v/2.1.1))
|
|
35
34
|
|
|
36
|
-
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY')
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
```shell
|
|
37
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
38
|
+
---------------------------------------------- Typescript not supported v1.0.1 ---------------------------------------
|
|
39
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
40
|
+
const brevo = require('@getbrevo/brevo');
|
|
41
|
+
let defaultClient = brevo.ApiClient.instance;
|
|
42
|
+
|
|
43
|
+
let apiKey = defaultClient.authentications['apiKey'];
|
|
44
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
45
|
+
|
|
46
|
+
let apiInstance = new brevo.TransactionalEmailsApi();
|
|
47
|
+
let sendSmtpEmail = new brevo.SendSmtpEmail();
|
|
48
|
+
|
|
49
|
+
sendSmtpEmail.subject = "My {{params.subject}}";
|
|
50
|
+
sendSmtpEmail.htmlContent = "<html><body><h1>Common: This is my first transactional email {{params.parameter}}</h1></body></html>";
|
|
51
|
+
sendSmtpEmail.sender = { "name": "John", "email": "example@example.com" };
|
|
52
|
+
sendSmtpEmail.to = [
|
|
53
|
+
{ "email": "example@brevo.com", "name": "sample-name" }
|
|
54
|
+
];
|
|
55
|
+
sendSmtpEmail.replyTo = { "email": "example@brevo.com", "name": "sample-name" };
|
|
56
|
+
sendSmtpEmail.headers = { "Some-Custom-Name": "unique-id-1234" };
|
|
57
|
+
sendSmtpEmail.params = { "parameter": "My param value", "subject": "common subject" };
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
apiInstance.sendTransacEmail(sendSmtpEmail).then(function (data) {
|
|
61
|
+
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
62
|
+
}, function (error) {
|
|
63
|
+
console.error(error);
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
68
|
+
## Typescript supported with version v2.1.1
|
|
69
|
+
|
|
70
|
+
```shell
|
|
71
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
72
|
+
---------------------------------------------- Typescript supported with v2.1.1 --------------------------------------
|
|
73
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
74
|
+
const brevo = require('@getbrevo/brevo');
|
|
75
|
+
let apiInstance = new brevo.TransactionalEmailsApi();
|
|
76
|
+
|
|
77
|
+
let apiKey = apiInstance.authentications['apiKey'];
|
|
78
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
79
|
+
|
|
80
|
+
let sendSmtpEmail = new brevo.SendSmtpEmail();
|
|
81
|
+
|
|
82
|
+
sendSmtpEmail.subject = "My {{params.subject}}";
|
|
83
|
+
sendSmtpEmail.htmlContent = "<html><body><h1>Common: This is my first transactional email {{params.parameter}}</h1></body></html>";
|
|
84
|
+
sendSmtpEmail.sender = { "name": "John", "email": "shubham.upadhyay@sendinblue.com" };
|
|
85
|
+
sendSmtpEmail.to = [
|
|
86
|
+
{ "email": "shubham.upadhyay@sendinblue.com", "name": "shubham upadhyay" }
|
|
87
|
+
];
|
|
88
|
+
sendSmtpEmail.replyTo = { "email": "shubham.upadhyay@sendinblue.com", "name": "Shubham Upadhyay" };
|
|
89
|
+
sendSmtpEmail.headers = { "Some-Custom-Name": "unique-id-1234" };
|
|
90
|
+
sendSmtpEmail.params = { "parameter": "My param value", "subject": "common subject" };
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
apiInstance.sendTransacEmail(sendSmtpEmail).then(function (data) {
|
|
94
|
+
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
95
|
+
}, function (error) {
|
|
96
|
+
console.error(error);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
101
|
+
## Get Contact attributes API example:
|
|
102
|
+
|
|
103
|
+
```shell
|
|
104
|
+
const brevo = require('@getbrevo/brevo');
|
|
105
|
+
|
|
106
|
+
let apiInstance = new brevo.ContactsApi()
|
|
107
|
+
|
|
108
|
+
let apiKey = apiInstance.authentications['apiKey'];
|
|
109
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
110
|
+
|
|
111
|
+
apiInstance.getAttributes().then(function(data) {
|
|
39
112
|
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
40
113
|
|
|
41
114
|
}, function(error) {
|
|
42
115
|
console.error(error);
|
|
43
116
|
});
|
|
117
|
+
|
|
44
118
|
```
|
|
119
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
120
|
+
## Get Account API example:
|
|
45
121
|
|
|
46
|
-
```
|
|
47
|
-
const
|
|
122
|
+
```shell
|
|
123
|
+
const brevo = require('@getbrevo/brevo');
|
|
48
124
|
|
|
49
|
-
let apiInstance = new
|
|
125
|
+
let apiInstance = new brevo.AccountApi()
|
|
50
126
|
|
|
51
127
|
let apiKey = apiInstance.authentications['apiKey'];
|
|
52
128
|
apiKey.apiKey = 'YOUR API KEY';
|
|
53
129
|
|
|
54
|
-
|
|
130
|
+
apiInstance.getAccount().then(function(data) {
|
|
131
|
+
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
132
|
+
|
|
133
|
+
}, function(error) {
|
|
134
|
+
console.error(error);
|
|
135
|
+
});
|
|
55
136
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
137
|
+
```
|
|
138
|
+
-------------------------------------------------------------------------------------------------------------------------
|
|
139
|
+
## Get Contacts API example:
|
|
140
|
+
```shell
|
|
141
|
+
const brevo = require('@getbrevo/brevo');
|
|
142
|
+
|
|
143
|
+
let apiInstance = new brevo.ContactsApi()
|
|
144
|
+
|
|
145
|
+
let apiKey = apiInstance.authentications['apiKey'];
|
|
146
|
+
apiKey.apiKey = 'YOUR API KEY';
|
|
147
|
+
|
|
148
|
+
apiInstance.getContacts().then(function(data) {
|
|
67
149
|
console.log('API called successfully. Returned data: ' + JSON.stringify(data));
|
|
68
150
|
|
|
69
151
|
}, function(error) {
|
|
@@ -71,4 +153,4 @@ apiInstance.sendTransacEmail(sendSmtpEmail).then(function(data) {
|
|
|
71
153
|
});
|
|
72
154
|
```
|
|
73
155
|
|
|
74
|
-
For more examples, refer the [Endpoints Guide](https://developers.brevo.com/reference)
|
|
156
|
+
For more examples, refer the [Endpoints Guide](https://developers.brevo.com/reference)
|
package/api/accountApi.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/companiesApi.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/contactsApi.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
|
|
@@ -1138,8 +1138,9 @@ export class ContactsApi {
|
|
|
1138
1138
|
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1139
1139
|
* @param segmentId Id of the segment. **Either listIds or segmentId can be passed.**
|
|
1140
1140
|
* @param listIds Ids of the list. **Either listIds or segmentId can be passed.**
|
|
1141
|
+
* @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals. (e.g. filter=equals(FIRSTNAME,\"Antoine\"), filter=equals(B1, true), filter=equals(DOB, \"1989-11-23\"))**
|
|
1141
1142
|
*/
|
|
1142
|
-
public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
|
|
1143
|
+
public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
|
|
1143
1144
|
const localVarPath = this.basePath + '/contacts';
|
|
1144
1145
|
let localVarQueryParameters: any = {};
|
|
1145
1146
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -1180,6 +1181,10 @@ export class ContactsApi {
|
|
|
1180
1181
|
localVarQueryParameters['listIds'] = ObjectSerializer.serialize(listIds, "Array<number>");
|
|
1181
1182
|
}
|
|
1182
1183
|
|
|
1184
|
+
if (filter !== undefined) {
|
|
1185
|
+
localVarQueryParameters['filter'] = ObjectSerializer.serialize(filter, "string");
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1183
1188
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1184
1189
|
|
|
1185
1190
|
let localVarUseFormData = false;
|
package/api/conversationsApi.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/couponsApi.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
|
|
@@ -329,7 +329,7 @@ export class CouponsApi {
|
|
|
329
329
|
* @param sort Sort the results by creation time in ascending/descending order
|
|
330
330
|
* @param sortBy The field used to sort coupon collections
|
|
331
331
|
*/
|
|
332
|
-
public async getCouponCollections (limit?: number, offset?: number, sort?: 'asc' | 'desc', sortBy?:
|
|
332
|
+
public async getCouponCollections (limit?: number, offset?: number, sort?: 'asc' | 'desc', sortBy?: 'createdAt' | 'remainingCoupons' | 'expirationDate', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetCouponCollection; }> {
|
|
333
333
|
const localVarPath = this.basePath + '/couponCollections';
|
|
334
334
|
let localVarQueryParameters: any = {};
|
|
335
335
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -355,7 +355,7 @@ export class CouponsApi {
|
|
|
355
355
|
}
|
|
356
356
|
|
|
357
357
|
if (sortBy !== undefined) {
|
|
358
|
-
localVarQueryParameters['sortBy'] = ObjectSerializer.serialize(sortBy, "
|
|
358
|
+
localVarQueryParameters['sortBy'] = ObjectSerializer.serialize(sortBy, "'createdAt' | 'remainingCoupons' | 'expirationDate'");
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
package/api/dealsApi.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/domainsApi.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/ecommerceApi.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
|
|
@@ -23,6 +23,10 @@ import { CreateUpdateBatchProducts } from '../model/createUpdateBatchProducts';
|
|
|
23
23
|
import { CreateUpdateBatchProductsModel } from '../model/createUpdateBatchProductsModel';
|
|
24
24
|
import { CreateUpdateCategory } from '../model/createUpdateCategory';
|
|
25
25
|
import { CreateUpdateProduct } from '../model/createUpdateProduct';
|
|
26
|
+
import { EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response } from '../model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response';
|
|
27
|
+
import { EcommerceAttributionMetricsGet200Response } from '../model/ecommerceAttributionMetricsGet200Response';
|
|
28
|
+
import { EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response } from '../model/ecommerceAttributionProductsConversionSourceConversionSourceIdGet200Response';
|
|
29
|
+
import { EcommerceConfigDisplayCurrencyGet200Response } from '../model/ecommerceConfigDisplayCurrencyGet200Response';
|
|
26
30
|
import { ErrorModel } from '../model/errorModel';
|
|
27
31
|
import { GetCategories } from '../model/getCategories';
|
|
28
32
|
import { GetCategoryDetails } from '../model/getCategoryDetails';
|
|
@@ -627,7 +631,7 @@ export class EcommerceApi {
|
|
|
627
631
|
* @param conversionSource The Brevo campaign type for which data will be retrieved
|
|
628
632
|
* @param conversionSourceId The Brevo campaign id for which data will be retrieved
|
|
629
633
|
*/
|
|
630
|
-
public async ecommerceAttributionMetricsConversionSourceConversionSourceIdGet (conversionSource:
|
|
634
|
+
public async ecommerceAttributionMetricsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response; }> {
|
|
631
635
|
const localVarPath = this.basePath + '/ecommerce/attribution/metrics/{conversionSource}/{conversionSourceId}'
|
|
632
636
|
.replace('{' + 'conversionSource' + '}', encodeURIComponent(String(conversionSource)))
|
|
633
637
|
.replace('{' + 'conversionSourceId' + '}', encodeURIComponent(String(conversionSourceId)));
|
|
@@ -687,12 +691,13 @@ export class EcommerceApi {
|
|
|
687
691
|
localVarRequestOptions.form = localVarFormParams;
|
|
688
692
|
}
|
|
689
693
|
}
|
|
690
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
694
|
+
return new Promise<{ response: http.IncomingMessage; body: EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response; }>((resolve, reject) => {
|
|
691
695
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
692
696
|
if (error) {
|
|
693
697
|
reject(error);
|
|
694
698
|
} else {
|
|
695
699
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
700
|
+
body = ObjectSerializer.deserialize(body, "EcommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response");
|
|
696
701
|
resolve({ response: response, body: body });
|
|
697
702
|
} else {
|
|
698
703
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -709,7 +714,7 @@ export class EcommerceApi {
|
|
|
709
714
|
* @param periodTo When getting metrics for a specific period, define the end datetime in RFC3339 format
|
|
710
715
|
* @param emailCampaignId The email campaign id(s) to get metrics for
|
|
711
716
|
*/
|
|
712
|
-
public async ecommerceAttributionMetricsGet (periodFrom?:
|
|
717
|
+
public async ecommerceAttributionMetricsGet (periodFrom?: Date, periodTo?: Date, emailCampaignId?: Array<number>, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: EcommerceAttributionMetricsGet200Response; }> {
|
|
713
718
|
const localVarPath = this.basePath + '/ecommerce/attribution/metrics';
|
|
714
719
|
let localVarQueryParameters: any = {};
|
|
715
720
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -723,15 +728,15 @@ export class EcommerceApi {
|
|
|
723
728
|
let localVarFormParams: any = {};
|
|
724
729
|
|
|
725
730
|
if (periodFrom !== undefined) {
|
|
726
|
-
localVarQueryParameters['periodFrom'] = ObjectSerializer.serialize(periodFrom, "
|
|
731
|
+
localVarQueryParameters['periodFrom'] = ObjectSerializer.serialize(periodFrom, "Date");
|
|
727
732
|
}
|
|
728
733
|
|
|
729
734
|
if (periodTo !== undefined) {
|
|
730
|
-
localVarQueryParameters['periodTo'] = ObjectSerializer.serialize(periodTo, "
|
|
735
|
+
localVarQueryParameters['periodTo'] = ObjectSerializer.serialize(periodTo, "Date");
|
|
731
736
|
}
|
|
732
737
|
|
|
733
738
|
if (emailCampaignId !== undefined) {
|
|
734
|
-
localVarQueryParameters['emailCampaignId[]'] = ObjectSerializer.serialize(emailCampaignId, "
|
|
739
|
+
localVarQueryParameters['emailCampaignId[]'] = ObjectSerializer.serialize(emailCampaignId, "Array<number>");
|
|
735
740
|
}
|
|
736
741
|
|
|
737
742
|
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
@@ -769,12 +774,13 @@ export class EcommerceApi {
|
|
|
769
774
|
localVarRequestOptions.form = localVarFormParams;
|
|
770
775
|
}
|
|
771
776
|
}
|
|
772
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
777
|
+
return new Promise<{ response: http.IncomingMessage; body: EcommerceAttributionMetricsGet200Response; }>((resolve, reject) => {
|
|
773
778
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
774
779
|
if (error) {
|
|
775
780
|
reject(error);
|
|
776
781
|
} else {
|
|
777
782
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
783
|
+
body = ObjectSerializer.deserialize(body, "EcommerceAttributionMetricsGet200Response");
|
|
778
784
|
resolve({ response: response, body: body });
|
|
779
785
|
} else {
|
|
780
786
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -790,7 +796,7 @@ export class EcommerceApi {
|
|
|
790
796
|
* @param conversionSource The Brevo campaign type for which data will be retrieved
|
|
791
797
|
* @param conversionSourceId The Brevo campaign id for which data will be retrieved
|
|
792
798
|
*/
|
|
793
|
-
public async ecommerceAttributionProductsConversionSourceConversionSourceIdGet (conversionSource:
|
|
799
|
+
public async ecommerceAttributionProductsConversionSourceConversionSourceIdGet (conversionSource: 'email_campaign', conversionSourceId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response; }> {
|
|
794
800
|
const localVarPath = this.basePath + '/ecommerce/attribution/products/{conversionSource}/{conversionSourceId}'
|
|
795
801
|
.replace('{' + 'conversionSource' + '}', encodeURIComponent(String(conversionSource)))
|
|
796
802
|
.replace('{' + 'conversionSourceId' + '}', encodeURIComponent(String(conversionSourceId)));
|
|
@@ -850,12 +856,81 @@ export class EcommerceApi {
|
|
|
850
856
|
localVarRequestOptions.form = localVarFormParams;
|
|
851
857
|
}
|
|
852
858
|
}
|
|
853
|
-
return new Promise<{ response: http.IncomingMessage; body
|
|
859
|
+
return new Promise<{ response: http.IncomingMessage; body: EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response; }>((resolve, reject) => {
|
|
860
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
861
|
+
if (error) {
|
|
862
|
+
reject(error);
|
|
863
|
+
} else {
|
|
864
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
865
|
+
body = ObjectSerializer.deserialize(body, "EcommerceAttributionProductsConversionSourceConversionSourceIdGet200Response");
|
|
866
|
+
resolve({ response: response, body: body });
|
|
867
|
+
} else {
|
|
868
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
});
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @summary Get the ISO 4217 compliant display currency code for your Brevo account
|
|
878
|
+
*/
|
|
879
|
+
public async ecommerceConfigDisplayCurrencyGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }> {
|
|
880
|
+
const localVarPath = this.basePath + '/ecommerce/config/displayCurrency';
|
|
881
|
+
let localVarQueryParameters: any = {};
|
|
882
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
883
|
+
const produces = ['application/json'];
|
|
884
|
+
// give precedence to 'application/json'
|
|
885
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
886
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
887
|
+
} else {
|
|
888
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
889
|
+
}
|
|
890
|
+
let localVarFormParams: any = {};
|
|
891
|
+
|
|
892
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
893
|
+
|
|
894
|
+
let localVarUseFormData = false;
|
|
895
|
+
|
|
896
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
897
|
+
method: 'GET',
|
|
898
|
+
qs: localVarQueryParameters,
|
|
899
|
+
headers: localVarHeaderParams,
|
|
900
|
+
uri: localVarPath,
|
|
901
|
+
useQuerystring: this._useQuerystring,
|
|
902
|
+
json: true,
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
let authenticationPromise = Promise.resolve();
|
|
906
|
+
if (this.authentications.apiKey.apiKey) {
|
|
907
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
908
|
+
}
|
|
909
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
910
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
911
|
+
}
|
|
912
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
913
|
+
|
|
914
|
+
let interceptorPromise = authenticationPromise;
|
|
915
|
+
for (const interceptor of this.interceptors) {
|
|
916
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
return interceptorPromise.then(() => {
|
|
920
|
+
if (Object.keys(localVarFormParams).length) {
|
|
921
|
+
if (localVarUseFormData) {
|
|
922
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
923
|
+
} else {
|
|
924
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
return new Promise<{ response: http.IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }>((resolve, reject) => {
|
|
854
928
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
855
929
|
if (error) {
|
|
856
930
|
reject(error);
|
|
857
931
|
} else {
|
|
858
932
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
933
|
+
body = ObjectSerializer.deserialize(body, "EcommerceConfigDisplayCurrencyGet200Response");
|
|
859
934
|
resolve({ response: response, body: body });
|
|
860
935
|
} else {
|
|
861
936
|
reject(new HttpError(response, body, response.statusCode));
|
|
@@ -1349,4 +1424,79 @@ export class EcommerceApi {
|
|
|
1349
1424
|
});
|
|
1350
1425
|
});
|
|
1351
1426
|
}
|
|
1427
|
+
/**
|
|
1428
|
+
*
|
|
1429
|
+
* @summary Set the ISO 4217 compliant display currency code for your Brevo account
|
|
1430
|
+
* @param setConfigDisplayCurrency set ISO 4217 compliant display currency code payload
|
|
1431
|
+
*/
|
|
1432
|
+
public async setConfigDisplayCurrency (setConfigDisplayCurrency: EcommerceConfigDisplayCurrencyGet200Response, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }> {
|
|
1433
|
+
const localVarPath = this.basePath + '/ecommerce/config/displayCurrency';
|
|
1434
|
+
let localVarQueryParameters: any = {};
|
|
1435
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1436
|
+
const produces = ['application/json'];
|
|
1437
|
+
// give precedence to 'application/json'
|
|
1438
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1439
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1440
|
+
} else {
|
|
1441
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1442
|
+
}
|
|
1443
|
+
let localVarFormParams: any = {};
|
|
1444
|
+
|
|
1445
|
+
// verify required parameter 'setConfigDisplayCurrency' is not null or undefined
|
|
1446
|
+
if (setConfigDisplayCurrency === null || setConfigDisplayCurrency === undefined) {
|
|
1447
|
+
throw new Error('Required parameter setConfigDisplayCurrency was null or undefined when calling setConfigDisplayCurrency.');
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1451
|
+
|
|
1452
|
+
let localVarUseFormData = false;
|
|
1453
|
+
|
|
1454
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1455
|
+
method: 'POST',
|
|
1456
|
+
qs: localVarQueryParameters,
|
|
1457
|
+
headers: localVarHeaderParams,
|
|
1458
|
+
uri: localVarPath,
|
|
1459
|
+
useQuerystring: this._useQuerystring,
|
|
1460
|
+
json: true,
|
|
1461
|
+
body: ObjectSerializer.serialize(setConfigDisplayCurrency, "EcommerceConfigDisplayCurrencyGet200Response")
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
let authenticationPromise = Promise.resolve();
|
|
1465
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1466
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1467
|
+
}
|
|
1468
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1469
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1470
|
+
}
|
|
1471
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1472
|
+
|
|
1473
|
+
let interceptorPromise = authenticationPromise;
|
|
1474
|
+
for (const interceptor of this.interceptors) {
|
|
1475
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1476
|
+
}
|
|
1477
|
+
|
|
1478
|
+
return interceptorPromise.then(() => {
|
|
1479
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1480
|
+
if (localVarUseFormData) {
|
|
1481
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1482
|
+
} else {
|
|
1483
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
return new Promise<{ response: http.IncomingMessage; body: EcommerceConfigDisplayCurrencyGet200Response; }>((resolve, reject) => {
|
|
1487
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1488
|
+
if (error) {
|
|
1489
|
+
reject(error);
|
|
1490
|
+
} else {
|
|
1491
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1492
|
+
body = ObjectSerializer.deserialize(body, "EcommerceConfigDisplayCurrencyGet200Response");
|
|
1493
|
+
resolve({ response: response, body: body });
|
|
1494
|
+
} else {
|
|
1495
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
});
|
|
1499
|
+
});
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1352
1502
|
}
|
package/api/emailCampaignsApi.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
|
|
@@ -492,7 +492,7 @@ export class EmailCampaignsApi {
|
|
|
492
492
|
* @summary Return all your created email campaigns
|
|
493
493
|
* @param type Filter on the type of the campaigns
|
|
494
494
|
* @param status Filter on the status of the campaign
|
|
495
|
-
* @param statistics Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response.
|
|
495
|
+
* @param statistics Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response.This option only returns data for events occurred in the last 6 months.For older campaigns, it’s advisable to use the **Get Campaign Report** endpoint.
|
|
496
496
|
* @param startDate Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either \'status\' not passed and if passed is set to \'sent\' )
|
|
497
497
|
* @param endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either \'status\' not passed and if passed is set to \'sent\' )
|
|
498
498
|
* @param limit Number of documents per page
|