@getbrevo/brevo 1.0.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +21 -11
- package/api/accountApi.ts +252 -0
- package/api/apis.ts +64 -0
- package/api/companiesApi.ts +659 -0
- package/api/contactsApi.ts +2475 -0
- package/api/conversationsApi.ts +781 -0
- package/api/couponsApi.ts +489 -0
- package/api/dealsApi.ts +870 -0
- package/api/domainsApi.ts +461 -0
- package/api/ecommerceApi.ts +994 -0
- package/api/emailCampaignsApi.ts +1151 -0
- package/api/externalFeedsApi.ts +507 -0
- package/api/filesApi.ts +517 -0
- package/api/inboundParsingApi.ts +344 -0
- package/api/masterAccountApi.ts +886 -0
- package/api/notesApi.ts +505 -0
- package/api/processApi.ts +254 -0
- package/api/resellerApi.ts +1369 -0
- package/api/sMSCampaignsApi.ts +902 -0
- package/api/sendersApi.ts +618 -0
- package/api/tasksApi.ts +606 -0
- package/api/transactionalEmailsApi.ts +1956 -0
- package/api/transactionalSMSApi.ts +468 -0
- package/api/transactionalWhatsAppApi.ts +280 -0
- package/api/userApi.ts +549 -0
- package/api/webhooksApi.ts +559 -0
- package/api/whatsAppCampaignsApi.ts +805 -0
- package/api.ts +3 -0
- package/git_push.sh +13 -8
- package/model/abTestCampaignResult.ts +106 -0
- package/model/abTestCampaignResultClickedLinks.ts +44 -0
- package/model/abTestCampaignResultStatistics.ts +62 -0
- package/model/abTestVersionClicksInner.ts +52 -0
- package/model/abTestVersionStats.ts +46 -0
- package/model/addChildDomain.ts +34 -0
- package/model/addContactToList.ts +43 -0
- package/model/addCredits.ts +43 -0
- package/model/authenticateDomainModel.ts +43 -0
- package/model/blockDomain.ts +34 -0
- package/model/companiesIdPatchRequest.ts +52 -0
- package/model/companiesLinkUnlinkIdPatchRequest.ts +61 -0
- package/model/companiesList.ts +38 -0
- package/model/companiesPost200Response.ts +37 -0
- package/model/companiesPostRequest.ts +52 -0
- package/model/company.ts +64 -0
- package/model/companyAttributesInner.ts +58 -0
- package/model/componentItems.ts +37 -0
- package/model/conversationsAgentOnlinePingPostRequest.ts +61 -0
- package/model/conversationsMessage.ts +122 -0
- package/model/conversationsMessageFile.ts +68 -0
- package/model/conversationsMessageFileImageInfo.ts +55 -0
- package/model/conversationsMessagesIdPutRequest.ts +34 -0
- package/model/conversationsMessagesPostRequest.ts +79 -0
- package/model/conversationsPushedMessagesIdPutRequest.ts +34 -0
- package/model/conversationsPushedMessagesPostRequest.ts +61 -0
- package/model/createApiKeyRequest.ts +43 -0
- package/model/createApiKeyResponse.ts +43 -0
- package/model/createAttribute.ts +72 -0
- package/model/createAttributeEnumerationInner.ts +43 -0
- package/model/createCategoryModel.ts +34 -0
- package/model/createChild.ts +89 -0
- package/model/createContact.ts +97 -0
- package/model/createCouponCollection201Response.ts +34 -0
- package/model/createCouponCollectionRequest.ts +43 -0
- package/model/createCouponsRequest.ts +40 -0
- package/model/createDoiContact.ts +79 -0
- package/model/createDomain.ts +34 -0
- package/model/createDomainModel.ts +59 -0
- package/model/createDomainModelDnsRecords.ts +38 -0
- package/model/createDomainModelDnsRecordsDkimRecord.ts +49 -0
- package/model/createEmailCampaign.ts +306 -0
- package/model/createEmailCampaignRecipients.ts +55 -0
- package/model/createEmailCampaignSender.ts +55 -0
- package/model/createExternalFeed.ts +114 -0
- package/model/createExternalFeed201Response.ts +34 -0
- package/model/createList.ts +43 -0
- package/model/createModel.ts +34 -0
- package/model/createProductModel.ts +34 -0
- package/model/createReseller.ts +43 -0
- package/model/createSender.ts +53 -0
- package/model/createSenderIpsInner.ts +52 -0
- package/model/createSenderModel.ts +52 -0
- package/model/createSmsCampaign.ts +95 -0
- package/model/createSmsCampaignRecipients.ts +43 -0
- package/model/createSmtpEmail.ts +40 -0
- package/model/createSmtpTemplate.ts +113 -0
- package/model/createSmtpTemplateSender.ts +55 -0
- package/model/createSubAccount.ts +71 -0
- package/model/createSubAccountResponse.ts +34 -0
- package/model/createUpdateBatchCategory.ts +44 -0
- package/model/createUpdateBatchCategoryModel.ts +43 -0
- package/model/createUpdateBatchProducts.ts +44 -0
- package/model/createUpdateBatchProductsModel.ts +43 -0
- package/model/createUpdateCategories.ts +61 -0
- package/model/createUpdateCategory.ts +70 -0
- package/model/createUpdateContactModel.ts +34 -0
- package/model/createUpdateFolder.ts +34 -0
- package/model/createUpdateProduct.ts +124 -0
- package/model/createUpdateProducts.ts +115 -0
- package/model/createWebhook.ts +96 -0
- package/model/createWhatsAppCampaign.ts +59 -0
- package/model/createWhatsAppCampaignRecipients.ts +55 -0
- package/model/createWhatsAppTemplate.ts +98 -0
- package/model/createdBatchId.ts +34 -0
- package/model/createdProcessId.ts +34 -0
- package/model/crmDealsIdPatchRequest.ts +43 -0
- package/model/crmDealsLinkUnlinkIdPatchRequest.ts +61 -0
- package/model/crmDealsPost201Response.ts +37 -0
- package/model/crmDealsPostRequest.ts +43 -0
- package/model/crmTasksIdPatchRequest.ts +115 -0
- package/model/crmTasksPost201Response.ts +37 -0
- package/model/crmTasksPostRequest.ts +122 -0
- package/model/deal.ts +64 -0
- package/model/dealAttributesInner.ts +58 -0
- package/model/dealsList.ts +38 -0
- package/model/deleteHardbounces.ts +52 -0
- package/model/emailExportRecipients.ts +55 -0
- package/model/errorModel.ts +63 -0
- package/model/exportWebhooksHistory.ts +140 -0
- package/model/fileData.ts +91 -0
- package/model/fileDownloadableLink.ts +34 -0
- package/model/getAccount.ts +92 -0
- package/model/getAccountActivity.ts +35 -0
- package/model/getAccountActivityLogsInner.ts +70 -0
- package/model/getAccountAllOfMarketingAutomation.ts +43 -0
- package/model/getAccountAllOfPlan.ts +91 -0
- package/model/getAccountAllOfRelay.ts +44 -0
- package/model/getAccountAllOfRelayData.ts +55 -0
- package/model/getAggregatedReport.ts +142 -0
- package/model/getAllExternalFeeds.ts +41 -0
- package/model/getAllExternalFeedsFeedsInner.ts +141 -0
- package/model/getAttributes.ts +35 -0
- package/model/getAttributesAttributesInner.ts +87 -0
- package/model/getAttributesAttributesInnerEnumerationInner.ts +43 -0
- package/model/getBlockedDomains.ts +37 -0
- package/model/getCampaignOverview.ts +165 -0
- package/model/getCampaignRecipients.ts +37 -0
- package/model/getCampaignStats.ts +169 -0
- package/model/getCategories.ts +41 -0
- package/model/getCategoryDetails.ts +79 -0
- package/model/getChildAccountCreationStatus.ts +34 -0
- package/model/getChildDomain.ts +43 -0
- package/model/getChildInfo.ts +100 -0
- package/model/getChildInfoAllOfApiKeys.ts +42 -0
- package/model/getChildInfoAllOfApiKeysV2.ts +43 -0
- package/model/getChildInfoAllOfApiKeysV3.ts +43 -0
- package/model/getChildInfoAllOfCredits.ts +46 -0
- package/model/getChildInfoAllOfStatistics.ts +55 -0
- package/model/getChildrenList.ts +44 -0
- package/model/getChildrenListChildrenInner.ts +109 -0
- package/model/getClient.ts +61 -0
- package/model/getContactCampaignStats.ts +87 -0
- package/model/getContactCampaignStatsClickedInner.ts +41 -0
- package/model/getContactCampaignStatsClickedInnerLinksInner.ts +61 -0
- package/model/getContactCampaignStatsMessagesSentInner.ts +43 -0
- package/model/getContactCampaignStatsOpenedInner.ts +61 -0
- package/model/getContactCampaignStatsTransacAttributesInner.ts +52 -0
- package/model/getContactCampaignStatsUnsubscriptions.ts +45 -0
- package/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.ts +43 -0
- package/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.ts +52 -0
- package/model/getContactDetails.ts +100 -0
- package/model/getContacts.ts +41 -0
- package/model/getCouponCollection.ts +79 -0
- package/model/getDeviceBrowserStats.ts +61 -0
- package/model/getDomainConfigurationModel.ts +59 -0
- package/model/getDomainsList.ts +35 -0
- package/model/getDomainsListDomainsInner.ts +70 -0
- package/model/getEmailCampaign.ts +321 -0
- package/model/getEmailCampaigns.ts +41 -0
- package/model/getEmailCampaignsCampaignsInner.ts +321 -0
- package/model/getEmailEventReport.ts +32 -0
- package/model/getEmailEventReportEventsInner.ts +142 -0
- package/model/getExtendedCampaignOverview.ts +307 -0
- package/model/getExtendedCampaignOverviewAllOfSender.ts +52 -0
- package/model/getExtendedCampaignStats.ts +88 -0
- package/model/getExtendedClient.ts +68 -0
- package/model/getExtendedClientAllOfAddress.ts +64 -0
- package/model/getExtendedContactDetails.ts +107 -0
- package/model/getExtendedContactDetailsAllOfStatistics.ts +110 -0
- package/model/getExtendedContactDetailsAllOfStatisticsClicked.ts +44 -0
- package/model/getExtendedContactDetailsAllOfStatisticsLinks.ts +61 -0
- package/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.ts +43 -0
- package/model/getExtendedContactDetailsAllOfStatisticsOpened.ts +61 -0
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.ts +48 -0
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.ts +43 -0
- package/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.ts +52 -0
- package/model/getExtendedList.ts +104 -0
- package/model/getExtendedListAllOfCampaignStats.ts +41 -0
- package/model/getExternalFeedByUUID.ts +141 -0
- package/model/getExternalFeedByUUIDHeadersInner.ts +43 -0
- package/model/getFolder.ts +70 -0
- package/model/getFolderLists.ts +41 -0
- package/model/getFolders.ts +41 -0
- package/model/getInboundEmailEvents.ts +32 -0
- package/model/getInboundEmailEventsByUuid.ts +99 -0
- package/model/getInboundEmailEventsByUuidAttachmentsInner.ts +61 -0
- package/model/getInboundEmailEventsByUuidLogsInner.ts +51 -0
- package/model/getInboundEmailEventsEventsInner.ts +61 -0
- package/model/getInvitedUsersList.ts +35 -0
- package/model/getInvitedUsersListUsersInner.ts +59 -0
- package/model/getInvitedUsersListUsersInnerFeatureAccess.ts +55 -0
- package/model/getIp.ts +61 -0
- package/model/getIpFromSender.ts +61 -0
- package/model/getIps.ts +35 -0
- package/model/getIpsFromSender.ts +35 -0
- package/model/getList.ts +70 -0
- package/model/getLists.ts +44 -0
- package/model/getListsListsInner.ts +79 -0
- package/model/getProcess.ts +68 -0
- package/model/getProcesses.ts +44 -0
- package/model/getProductDetails.ts +160 -0
- package/model/getProducts.ts +41 -0
- package/model/getReports.ts +32 -0
- package/model/getReportsReportsInner.ts +142 -0
- package/model/getScheduledEmailByBatchId.ts +41 -0
- package/model/getScheduledEmailByBatchIdBatchesInner.ts +60 -0
- package/model/getScheduledEmailByMessageId.ts +60 -0
- package/model/getSegments.ts +41 -0
- package/model/getSegmentsSegments.ts +61 -0
- package/model/getSendersList.ts +35 -0
- package/model/getSendersListSendersInner.ts +71 -0
- package/model/getSendersListSendersInnerIpsInner.ts +52 -0
- package/model/getSharedTemplateUrl.ts +34 -0
- package/model/getSmsCampaign.ts +121 -0
- package/model/getSmsCampaignOverview.ts +107 -0
- package/model/getSmsCampaignStats.ts +88 -0
- package/model/getSmsCampaigns.ts +41 -0
- package/model/getSmsCampaignsCampaignsInner.ts +121 -0
- package/model/getSmsEventReport.ts +32 -0
- package/model/getSmsEventReportEventsInner.ts +99 -0
- package/model/getSmtpTemplateOverview.ts +140 -0
- package/model/getSmtpTemplateOverviewSender.ts +52 -0
- package/model/getSmtpTemplates.ts +41 -0
- package/model/getSsoToken.ts +34 -0
- package/model/getStatsByDevice.ts +62 -0
- package/model/getTransacAggregatedSmsReport.ts +115 -0
- package/model/getTransacBlockedContacts.ts +41 -0
- package/model/getTransacBlockedContactsContactsInner.ts +59 -0
- package/model/getTransacBlockedContactsContactsInnerReason.ts +56 -0
- package/model/getTransacEmailContent.ts +89 -0
- package/model/getTransacEmailContentEventsInner.ts +43 -0
- package/model/getTransacEmailsList.ts +41 -0
- package/model/getTransacEmailsListTransactionalEmailsInner.ts +97 -0
- package/model/getTransacSmsReport.ts +32 -0
- package/model/getTransacSmsReportReportsInner.ts +115 -0
- package/model/getUserPermission.ts +56 -0
- package/model/getUserPermissionPrivilegesInner.ts +37 -0
- package/model/getWATemplates.ts +41 -0
- package/model/getWATemplatesTemplatesInner.ts +97 -0
- package/model/getWebhook.ts +91 -0
- package/model/getWebhooks.ts +32 -0
- package/model/getWhatsAppConfig.ts +91 -0
- package/model/getWhatsappCampaignOverview.ts +114 -0
- package/model/getWhatsappCampaigns.ts +41 -0
- package/model/getWhatsappCampaignsCampaignsInner.ts +134 -0
- package/model/getWhatsappEventReport.ts +32 -0
- package/model/getWhatsappEventReportEventsInner.ts +108 -0
- package/model/inviteuser.ts +50 -0
- package/model/inviteuserPrivilegesInner.ts +82 -0
- package/model/manageIp.ts +34 -0
- package/model/masterDetailsResponse.ts +84 -0
- package/model/masterDetailsResponseBillingInfo.ts +60 -0
- package/model/masterDetailsResponseBillingInfoAddress.ts +73 -0
- package/model/masterDetailsResponseBillingInfoName.ts +46 -0
- package/model/masterDetailsResponsePlanInfo.ts +89 -0
- package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +70 -0
- package/model/models.ts +1271 -0
- package/model/note.ts +91 -0
- package/model/noteData.ts +64 -0
- package/model/noteId.ts +37 -0
- package/model/order.ts +102 -0
- package/model/orderBatch.ts +44 -0
- package/model/orderBilling.ts +91 -0
- package/model/orderProductsInner.ts +64 -0
- package/model/otp.ts +34 -0
- package/model/pipeline.ts +56 -0
- package/model/pipelineStage.ts +46 -0
- package/model/postContactInfo.ts +32 -0
- package/model/postContactInfoContacts.ts +55 -0
- package/model/postSendFailed.ts +61 -0
- package/model/postSendSmsTestFailed.ts +55 -0
- package/model/putRevokeUserPermission.ts +37 -0
- package/model/putresendcancelinvitation.ts +37 -0
- package/model/remainingCreditModel.ts +39 -0
- package/model/remainingCreditModelChild.ts +46 -0
- package/model/remainingCreditModelReseller.ts +43 -0
- package/model/removeContactFromList.ts +52 -0
- package/model/removeCredits.ts +43 -0
- package/model/requestContactExport.ts +50 -0
- package/model/requestContactExportCustomContactFilter.ts +104 -0
- package/model/requestContactImport.ts +123 -0
- package/model/requestContactImportJsonBodyInner.ts +40 -0
- package/model/requestContactImportNewList.ts +46 -0
- package/model/requestSmsRecipientExport.ts +53 -0
- package/model/scheduleSmtpEmail.ts +49 -0
- package/model/sendReport.ts +51 -0
- package/model/sendReportEmail.ts +46 -0
- package/model/sendSms.ts +64 -0
- package/model/sendSmtpEmail.ts +170 -0
- package/model/sendSmtpEmailAttachmentInner.ts +52 -0
- package/model/sendSmtpEmailBccInner.ts +43 -0
- package/model/sendSmtpEmailCcInner.ts +43 -0
- package/model/sendSmtpEmailMessageVersionsInner.ts +80 -0
- package/model/sendSmtpEmailMessageVersionsInnerReplyTo.ts +46 -0
- package/model/sendSmtpEmailMessageVersionsInnerToInner.ts +43 -0
- package/model/sendSmtpEmailReplyTo.ts +46 -0
- package/model/sendSmtpEmailSender.ts +55 -0
- package/model/sendSmtpEmailToInner.ts +43 -0
- package/model/sendTestEmail.ts +34 -0
- package/model/sendTestSms.ts +34 -0
- package/model/sendTransacSms.ts +103 -0
- package/model/sendWhatsappMessage.ts +61 -0
- package/model/sendWhatsappMessage201Response.ts +34 -0
- package/model/ssoTokenRequest.ts +73 -0
- package/model/subAccountAppsToggleRequest.ts +145 -0
- package/model/subAccountDetailsResponse.ts +59 -0
- package/model/subAccountDetailsResponsePlanInfo.ts +51 -0
- package/model/subAccountDetailsResponsePlanInfoCredits.ts +44 -0
- package/model/subAccountDetailsResponsePlanInfoCreditsEmails.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeatures.ts +49 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +46 -0
- package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +46 -0
- package/model/subAccountUpdatePlanRequest.ts +42 -0
- package/model/subAccountUpdatePlanRequestCredits.ts +37 -0
- package/model/subAccountUpdatePlanRequestFeatures.ts +55 -0
- package/model/subAccountsResponse.ts +41 -0
- package/model/subAccountsResponseSubAccountsInner.ts +61 -0
- package/model/task.ts +82 -0
- package/model/taskList.ts +38 -0
- package/model/taskReminder.ts +63 -0
- package/model/taskTypes.ts +46 -0
- package/model/updateAttribute.ts +44 -0
- package/model/updateAttributeEnumerationInner.ts +43 -0
- package/model/updateBatchContacts.ts +35 -0
- package/model/updateBatchContactsContactsInner.ts +115 -0
- package/model/updateBatchContactsModel.ts +37 -0
- package/model/updateCampaignStatus.ts +49 -0
- package/model/updateChild.ts +70 -0
- package/model/updateChildAccountStatus.ts +61 -0
- package/model/updateChildDomain.ts +34 -0
- package/model/updateContact.ts +88 -0
- package/model/updateCouponCollection200Response.ts +52 -0
- package/model/updateCouponCollectionRequest.ts +34 -0
- package/model/updateEmailCampaign.ts +306 -0
- package/model/updateEmailCampaignRecipients.ts +55 -0
- package/model/updateEmailCampaignSender.ts +55 -0
- package/model/updateExternalFeed.ts +114 -0
- package/model/updateList.ts +43 -0
- package/model/updateSender.ts +53 -0
- package/model/updateSmsCampaign.ts +95 -0
- package/model/updateSmtpTemplate.ts +113 -0
- package/model/updateSmtpTemplateSender.ts +55 -0
- package/model/updateWebhook.ts +82 -0
- package/model/updateWhatsAppCampaign.ts +65 -0
- package/model/uploadImageModel.ts +34 -0
- package/model/uploadImageToGallery.ts +43 -0
- package/model/variablesItems.ts +43 -0
- package/model/whatsappCampStats.ts +55 -0
- package/model/whatsappCampTemplate.ts +114 -0
- package/package.json +27 -33
- package/tsconfig.json +25 -0
- package/.travis.yml +0 -5
- package/LICENSE.md +0 -15
- package/docs/AbTestCampaignResult.md +0 -43
- package/docs/AbTestCampaignResultClickedLinks.md +0 -9
- package/docs/AbTestCampaignResultStatistics.md +0 -13
- package/docs/AbTestVersionClicks.md +0 -7
- package/docs/AbTestVersionClicksInner.md +0 -10
- package/docs/AbTestVersionStats.md +0 -9
- package/docs/AccountApi.md +0 -119
- package/docs/AddChildDomain.md +0 -8
- package/docs/AddContactToList.md +0 -9
- package/docs/AddCredits.md +0 -9
- package/docs/AuthenticateDomainModel.md +0 -9
- package/docs/BlockDomain.md +0 -8
- package/docs/Body.md +0 -10
- package/docs/Body1.md +0 -10
- package/docs/Body10.md +0 -11
- package/docs/Body11.md +0 -8
- package/docs/Body12.md +0 -11
- package/docs/Body2.md +0 -11
- package/docs/Body3.md +0 -9
- package/docs/Body4.md +0 -9
- package/docs/Body5.md +0 -11
- package/docs/Body6.md +0 -18
- package/docs/Body7.md +0 -17
- package/docs/Body8.md +0 -13
- package/docs/Body9.md +0 -8
- package/docs/BodyVariablesItems.md +0 -7
- package/docs/CompaniesApi.md +0 -406
- package/docs/CompaniesList.md +0 -8
- package/docs/Company.md +0 -11
- package/docs/CompanyAttributes.md +0 -7
- package/docs/CompanyAttributesInner.md +0 -12
- package/docs/ComponentItems.md +0 -9
- package/docs/ContactsApi.md +0 -1691
- package/docs/ConversationsApi.md +0 -518
- package/docs/ConversationsMessage.md +0 -28
- package/docs/ConversationsMessageFile.md +0 -12
- package/docs/ConversationsMessageFileImageInfo.md +0 -10
- package/docs/CouponsApi.md +0 -291
- package/docs/CreateApiKeyRequest.md +0 -9
- package/docs/CreateApiKeyResponse.md +0 -9
- package/docs/CreateAttribute.md +0 -30
- package/docs/CreateAttributeEnumeration.md +0 -9
- package/docs/CreateCategoryModel.md +0 -8
- package/docs/CreateChild.md +0 -32
- package/docs/CreateContact.md +0 -15
- package/docs/CreateCouponCollection.md +0 -9
- package/docs/CreateCoupons.md +0 -9
- package/docs/CreateDoiContact.md +0 -13
- package/docs/CreateDomain.md +0 -8
- package/docs/CreateDomainModel.md +0 -11
- package/docs/CreateDomainModelDnsRecords.md +0 -9
- package/docs/CreateDomainModelDnsRecordsDkimRecord.md +0 -11
- package/docs/CreateEmailCampaign.md +0 -49
- package/docs/CreateEmailCampaignRecipients.md +0 -10
- package/docs/CreateEmailCampaignSender.md +0 -10
- package/docs/CreateExternalFeed.md +0 -29
- package/docs/CreateList.md +0 -9
- package/docs/CreateModel.md +0 -8
- package/docs/CreateProductModel.md +0 -8
- package/docs/CreateReseller.md +0 -9
- package/docs/CreateSender.md +0 -10
- package/docs/CreateSenderIps.md +0 -10
- package/docs/CreateSenderModel.md +0 -10
- package/docs/CreateSmsCampaign.md +0 -15
- package/docs/CreateSmsCampaignRecipients.md +0 -9
- package/docs/CreateSmtpEmail.md +0 -9
- package/docs/CreateSmtpTemplate.md +0 -17
- package/docs/CreateSmtpTemplateSender.md +0 -10
- package/docs/CreateSubAccount.md +0 -30
- package/docs/CreateSubAccountResponse.md +0 -8
- package/docs/CreateUpdateBatchCategory.md +0 -9
- package/docs/CreateUpdateBatchCategoryModel.md +0 -9
- package/docs/CreateUpdateBatchProducts.md +0 -9
- package/docs/CreateUpdateBatchProductsModel.md +0 -9
- package/docs/CreateUpdateCategories.md +0 -11
- package/docs/CreateUpdateCategory.md +0 -12
- package/docs/CreateUpdateContactModel.md +0 -8
- package/docs/CreateUpdateFolder.md +0 -8
- package/docs/CreateUpdateProduct.md +0 -18
- package/docs/CreateUpdateProducts.md +0 -17
- package/docs/CreateWebhook.md +0 -66
- package/docs/CreateWhatsAppCampaign.md +0 -11
- package/docs/CreateWhatsAppCampaignRecipients.md +0 -10
- package/docs/CreateWhatsAppTemplate.md +0 -24
- package/docs/CreatedBatchId.md +0 -8
- package/docs/CreatedProcessId.md +0 -8
- package/docs/Deal.md +0 -11
- package/docs/DealAttributes.md +0 -7
- package/docs/DealAttributesInner.md +0 -12
- package/docs/DealsApi.md +0 -512
- package/docs/DealsList.md +0 -8
- package/docs/DeleteHardbounces.md +0 -10
- package/docs/DomainsApi.md +0 -278
- package/docs/EcommerceApi.md +0 -645
- package/docs/EmailCampaignsApi.md +0 -766
- package/docs/EmailExportRecipients.md +0 -32
- package/docs/ErrorModel.md +0 -48
- package/docs/ExportWebhooksHistory.md +0 -57
- package/docs/ExternalFeedsApi.md +0 -309
- package/docs/FileData.md +0 -14
- package/docs/FileDownloadableLink.md +0 -8
- package/docs/FileList.md +0 -7
- package/docs/FilesApi.md +0 -304
- package/docs/GetAccount.md +0 -10
- package/docs/GetAccountActivity.md +0 -8
- package/docs/GetAccountActivityLogs.md +0 -12
- package/docs/GetAccountMarketingAutomation.md +0 -9
- package/docs/GetAccountPlan.md +0 -39
- package/docs/GetAccountRelay.md +0 -9
- package/docs/GetAccountRelayData.md +0 -10
- package/docs/GetAggregatedReport.md +0 -20
- package/docs/GetAllExternalFeeds.md +0 -9
- package/docs/GetAllExternalFeedsFeeds.md +0 -32
- package/docs/GetAttributes.md +0 -8
- package/docs/GetAttributesAttributes.md +0 -46
- package/docs/GetAttributesEnumeration.md +0 -9
- package/docs/GetBlockedDomains.md +0 -8
- package/docs/GetCampaignOverview.md +0 -51
- package/docs/GetCampaignRecipients.md +0 -9
- package/docs/GetCampaignStats.md +0 -23
- package/docs/GetCategories.md +0 -9
- package/docs/GetCategoryDetails.md +0 -13
- package/docs/GetChildAccountCreationStatus.md +0 -8
- package/docs/GetChildDomain.md +0 -9
- package/docs/GetChildDomains.md +0 -7
- package/docs/GetChildInfo.md +0 -12
- package/docs/GetChildInfoApiKeys.md +0 -9
- package/docs/GetChildInfoApiKeysV2.md +0 -9
- package/docs/GetChildInfoApiKeysV3.md +0 -9
- package/docs/GetChildInfoCredits.md +0 -9
- package/docs/GetChildInfoStatistics.md +0 -10
- package/docs/GetChildrenList.md +0 -9
- package/docs/GetClient.md +0 -11
- package/docs/GetContactCampaignStats.md +0 -16
- package/docs/GetContactCampaignStatsClicked.md +0 -9
- package/docs/GetContactCampaignStatsOpened.md +0 -11
- package/docs/GetContactCampaignStatsTransacAttributes.md +0 -10
- package/docs/GetContactCampaignStatsUnsubscriptions.md +0 -9
- package/docs/GetContactDetails.md +0 -16
- package/docs/GetContacts.md +0 -9
- package/docs/GetCouponCollection.md +0 -13
- package/docs/GetDeviceBrowserStats.md +0 -11
- package/docs/GetDomainConfigurationModel.md +0 -11
- package/docs/GetDomainsList.md +0 -8
- package/docs/GetDomainsListDomains.md +0 -12
- package/docs/GetEmailCampaign.md +0 -9
- package/docs/GetEmailCampaigns.md +0 -9
- package/docs/GetEmailEventReport.md +0 -8
- package/docs/GetEmailEventReportEvents.md +0 -53
- package/docs/GetExtendedCampaignOverview.md +0 -23
- package/docs/GetExtendedCampaignOverviewSender.md +0 -10
- package/docs/GetExtendedCampaignStats.md +0 -15
- package/docs/GetExtendedCampaignStatsGlobalStats.md +0 -7
- package/docs/GetExtendedClient.md +0 -8
- package/docs/GetExtendedClientAddress.md +0 -11
- package/docs/GetExtendedContactDetails.md +0 -8
- package/docs/GetExtendedContactDetailsStatistics.md +0 -16
- package/docs/GetExtendedContactDetailsStatisticsClicked.md +0 -9
- package/docs/GetExtendedContactDetailsStatisticsLinks.md +0 -11
- package/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +0 -9
- package/docs/GetExtendedContactDetailsStatisticsOpened.md +0 -11
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptions.md +0 -9
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +0 -9
- package/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +0 -10
- package/docs/GetExtendedList.md +0 -11
- package/docs/GetExtendedListCampaignStats.md +0 -9
- package/docs/GetExternalFeedByUUID.md +0 -32
- package/docs/GetExternalFeedByUUIDHeaders.md +0 -9
- package/docs/GetFolder.md +0 -12
- package/docs/GetFolderLists.md +0 -9
- package/docs/GetFolders.md +0 -9
- package/docs/GetInboundEmailEvents.md +0 -8
- package/docs/GetInboundEmailEventsByUuid.md +0 -15
- package/docs/GetInboundEmailEventsByUuidAttachments.md +0 -11
- package/docs/GetInboundEmailEventsByUuidLogs.md +0 -24
- package/docs/GetInboundEmailEventsEvents.md +0 -11
- package/docs/GetInvitedUsersList.md +0 -8
- package/docs/GetInvitedUsersListFeatureAccess.md +0 -10
- package/docs/GetInvitedUsersListUsers.md +0 -11
- package/docs/GetIp.md +0 -11
- package/docs/GetIpFromSender.md +0 -11
- package/docs/GetIps.md +0 -8
- package/docs/GetIpsFromSender.md +0 -8
- package/docs/GetList.md +0 -12
- package/docs/GetLists.md +0 -9
- package/docs/GetProcess.md +0 -24
- package/docs/GetProcesses.md +0 -9
- package/docs/GetProductDetails.md +0 -22
- package/docs/GetProducts.md +0 -9
- package/docs/GetReports.md +0 -8
- package/docs/GetReportsReports.md +0 -20
- package/docs/GetScheduledEmailByBatchId.md +0 -9
- package/docs/GetScheduledEmailByBatchIdBatches.md +0 -25
- package/docs/GetScheduledEmailByMessageId.md +0 -25
- package/docs/GetSegments.md +0 -9
- package/docs/GetSegmentsSegments.md +0 -11
- package/docs/GetSendersList.md +0 -8
- package/docs/GetSendersListIps.md +0 -10
- package/docs/GetSendersListSenders.md +0 -12
- package/docs/GetSharedTemplateUrl.md +0 -8
- package/docs/GetSmsCampaign.md +0 -9
- package/docs/GetSmsCampaignOverview.md +0 -34
- package/docs/GetSmsCampaignRecipients.md +0 -7
- package/docs/GetSmsCampaignStats.md +0 -14
- package/docs/GetSmsCampaigns.md +0 -9
- package/docs/GetSmsEventReport.md +0 -8
- package/docs/GetSmsEventReportEvents.md +0 -41
- package/docs/GetSmtpTemplateOverview.md +0 -20
- package/docs/GetSmtpTemplateOverviewSender.md +0 -10
- package/docs/GetSmtpTemplates.md +0 -9
- package/docs/GetSsoToken.md +0 -8
- package/docs/GetStatsByBrowser.md +0 -7
- package/docs/GetStatsByDevice.md +0 -11
- package/docs/GetStatsByDomain.md +0 -7
- package/docs/GetTransacAggregatedSmsReport.md +0 -17
- package/docs/GetTransacBlockedContacts.md +0 -9
- package/docs/GetTransacBlockedContactsContacts.md +0 -11
- package/docs/GetTransacBlockedContactsReason.md +0 -28
- package/docs/GetTransacEmailContent.md +0 -14
- package/docs/GetTransacEmailContentEvents.md +0 -9
- package/docs/GetTransacEmailsList.md +0 -9
- package/docs/GetTransacEmailsListTransactionalEmails.md +0 -15
- package/docs/GetTransacSmsReport.md +0 -8
- package/docs/GetTransacSmsReportReports.md +0 -17
- package/docs/GetUserPermission.md +0 -10
- package/docs/GetUserPermissionPrivileges.md +0 -9
- package/docs/GetWATemplates.md +0 -9
- package/docs/GetWATemplatesTemplates.md +0 -15
- package/docs/GetWebhook.md +0 -25
- package/docs/GetWebhooks.md +0 -8
- package/docs/GetWhatsAppConfig.md +0 -39
- package/docs/GetWhatsappCampaignOverview.md +0 -39
- package/docs/GetWhatsappCampaigns.md +0 -9
- package/docs/GetWhatsappCampaignsCampaigns.md +0 -41
- package/docs/GetWhatsappEventReport.md +0 -8
- package/docs/GetWhatsappEventReportEvents.md +0 -36
- package/docs/InboundParsingApi.md +0 -190
- package/docs/InlineResponse200.md +0 -8
- package/docs/InlineResponse2001.md +0 -10
- package/docs/InlineResponse201.md +0 -8
- package/docs/InlineResponse2011.md +0 -8
- package/docs/InlineResponse2012.md +0 -8
- package/docs/InlineResponse2013.md +0 -8
- package/docs/InlineResponse2014.md +0 -8
- package/docs/ManageIp.md +0 -8
- package/docs/MasterAccountApi.md +0 -524
- package/docs/MasterDetailsResponse.md +0 -14
- package/docs/MasterDetailsResponseBillingInfo.md +0 -11
- package/docs/MasterDetailsResponseBillingInfoAddress.md +0 -12
- package/docs/MasterDetailsResponseBillingInfoName.md +0 -9
- package/docs/MasterDetailsResponsePlanInfo.md +0 -24
- package/docs/MasterDetailsResponsePlanInfoFeatures.md +0 -12
- package/docs/Note.md +0 -14
- package/docs/NoteData.md +0 -11
- package/docs/NoteId.md +0 -8
- package/docs/NoteList.md +0 -7
- package/docs/NotesApi.md +0 -299
- package/docs/Order.md +0 -16
- package/docs/OrderBatch.md +0 -9
- package/docs/OrderBilling.md +0 -14
- package/docs/OrderProducts.md +0 -11
- package/docs/Otp.md +0 -8
- package/docs/Pipeline.md +0 -10
- package/docs/PipelineStage.md +0 -9
- package/docs/Pipelines.md +0 -7
- package/docs/PostContactInfo.md +0 -8
- package/docs/PostContactInfoContacts.md +0 -11
- package/docs/PostSendFailed.md +0 -12
- package/docs/PostSendSmsTestFailed.md +0 -11
- package/docs/ProcessApi.md +0 -123
- package/docs/RemainingCreditModel.md +0 -9
- package/docs/RemainingCreditModelChild.md +0 -9
- package/docs/RemainingCreditModelReseller.md +0 -9
- package/docs/RemoveContactFromList.md +0 -10
- package/docs/RemoveCredits.md +0 -9
- package/docs/RequestContactExport.md +0 -10
- package/docs/RequestContactExportCustomContactFilter.md +0 -62
- package/docs/RequestContactImport.md +0 -17
- package/docs/RequestContactImportNewList.md +0 -9
- package/docs/RequestSmsRecipientExport.md +0 -28
- package/docs/ResellerApi.md +0 -924
- package/docs/SMSCampaignsApi.md +0 -589
- package/docs/ScheduleSmtpEmail.md +0 -10
- package/docs/SendReport.md +0 -28
- package/docs/SendReportEmail.md +0 -9
- package/docs/SendSms.md +0 -12
- package/docs/SendSmtpEmail.md +0 -23
- package/docs/SendSmtpEmailAttachment.md +0 -10
- package/docs/SendSmtpEmailBcc.md +0 -9
- package/docs/SendSmtpEmailCc.md +0 -9
- package/docs/SendSmtpEmailMessageVersions.md +0 -13
- package/docs/SendSmtpEmailReplyTo.md +0 -9
- package/docs/SendSmtpEmailReplyTo1.md +0 -9
- package/docs/SendSmtpEmailSender.md +0 -10
- package/docs/SendSmtpEmailTo.md +0 -9
- package/docs/SendSmtpEmailTo1.md +0 -9
- package/docs/SendTestEmail.md +0 -8
- package/docs/SendTestSms.md +0 -8
- package/docs/SendTransacSms.md +0 -26
- package/docs/SendWhatsappMessage.md +0 -11
- package/docs/SendersApi.md +0 -399
- package/docs/SsoTokenRequest.md +0 -33
- package/docs/SubAccountDetailsResponse.md +0 -11
- package/docs/SubAccountDetailsResponsePlanInfo.md +0 -10
- package/docs/SubAccountDetailsResponsePlanInfoCredits.md +0 -9
- package/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +0 -9
- package/docs/SubAccountDetailsResponsePlanInfoFeatures.md +0 -10
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +0 -9
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +0 -9
- package/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +0 -9
- package/docs/SubAccountUpdatePlanRequest.md +0 -9
- package/docs/SubAccountUpdatePlanRequestCredits.md +0 -8
- package/docs/SubAccountUpdatePlanRequestFeatures.md +0 -10
- package/docs/SubAccountsResponse.md +0 -9
- package/docs/SubAccountsResponseSubAccounts.md +0 -11
- package/docs/Task.md +0 -13
- package/docs/TaskList.md +0 -8
- package/docs/TaskReminder.md +0 -25
- package/docs/TaskTypes.md +0 -9
- package/docs/TasksApi.md +0 -360
- package/docs/TransactionalEmailsApi.md +0 -1333
- package/docs/TransactionalSMSApi.md +0 -261
- package/docs/TransactionalWhatsAppApi.md +0 -137
- package/docs/UpdateAttribute.md +0 -9
- package/docs/UpdateAttributeEnumeration.md +0 -9
- package/docs/UpdateBatchContacts.md +0 -8
- package/docs/UpdateBatchContactsContacts.md +0 -17
- package/docs/UpdateBatchContactsModel.md +0 -9
- package/docs/UpdateCampaignStatus.md +0 -31
- package/docs/UpdateChild.md +0 -12
- package/docs/UpdateChildAccountStatus.md +0 -11
- package/docs/UpdateChildDomain.md +0 -8
- package/docs/UpdateContact.md +0 -14
- package/docs/UpdateCouponCollection.md +0 -8
- package/docs/UpdateEmailCampaign.md +0 -49
- package/docs/UpdateEmailCampaignRecipients.md +0 -10
- package/docs/UpdateEmailCampaignSender.md +0 -10
- package/docs/UpdateExternalFeed.md +0 -29
- package/docs/UpdateList.md +0 -9
- package/docs/UpdateSender.md +0 -10
- package/docs/UpdateSmsCampaign.md +0 -15
- package/docs/UpdateSmtpTemplate.md +0 -17
- package/docs/UpdateSmtpTemplateSender.md +0 -10
- package/docs/UpdateWebhook.md +0 -52
- package/docs/UpdateWhatsAppCampaign.md +0 -22
- package/docs/UploadImageModel.md +0 -8
- package/docs/UploadImageToGallery.md +0 -9
- package/docs/UserApi.md +0 -112
- package/docs/VariablesItems.md +0 -10
- package/docs/WebhooksApi.md +0 -346
- package/docs/WhatsAppCampaignsApi.md +0 -519
- package/docs/WhatsappCampStats.md +0 -12
- package/docs/WhatsappCampTemplate.md +0 -18
- package/mocha.opts +0 -1
- package/src/ApiClient.js +0 -601
- package/src/api/AccountApi.js +0 -154
- package/src/api/CompaniesApi.js +0 -431
- package/src/api/ContactsApi.js +0 -1683
- package/src/api/ConversationsApi.js +0 -529
- package/src/api/CouponsApi.js +0 -317
- package/src/api/DealsApi.js +0 -527
- package/src/api/DomainsApi.js +0 -297
- package/src/api/EcommerceApi.js +0 -656
- package/src/api/EmailCampaignsApi.js +0 -781
- package/src/api/ExternalFeedsApi.js +0 -340
- package/src/api/FilesApi.js +0 -336
- package/src/api/InboundParsingApi.js +0 -225
- package/src/api/MasterAccountApi.js +0 -537
- package/src/api/NotesApi.js +0 -330
- package/src/api/ProcessApi.js +0 -159
- package/src/api/ResellerApi.js +0 -941
- package/src/api/SMSCampaignsApi.js +0 -612
- package/src/api/SendersApi.js +0 -410
- package/src/api/TasksApi.js +0 -391
- package/src/api/TransactionalEmailsApi.js +0 -1318
- package/src/api/TransactionalSMSApi.js +0 -295
- package/src/api/TransactionalWhatsAppApi.js +0 -177
- package/src/api/UserApi.js +0 -147
- package/src/api/WebhooksApi.js +0 -367
- package/src/api/WhatsAppCampaignsApi.js +0 -527
- package/src/index.js +0 -1833
- package/src/model/AbTestCampaignResult.js +0 -185
- package/src/model/AbTestCampaignResultClickedLinks.js +0 -83
- package/src/model/AbTestCampaignResultStatistics.js +0 -119
- package/src/model/AbTestVersionClicks.js +0 -69
- package/src/model/AbTestVersionClicksInner.js +0 -95
- package/src/model/AbTestVersionStats.js +0 -86
- package/src/model/AddChildDomain.js +0 -73
- package/src/model/AddContactToList.js +0 -81
- package/src/model/AddCredits.js +0 -81
- package/src/model/AuthenticateDomainModel.js +0 -85
- package/src/model/BlockDomain.js +0 -75
- package/src/model/Body.js +0 -91
- package/src/model/Body1.js +0 -89
- package/src/model/Body10.js +0 -101
- package/src/model/Body11.js +0 -75
- package/src/model/Body12.js +0 -97
- package/src/model/Body2.js +0 -97
- package/src/model/Body3.js +0 -83
- package/src/model/Body4.js +0 -81
- package/src/model/Body5.js +0 -97
- package/src/model/Body6.js +0 -158
- package/src/model/Body7.js +0 -145
- package/src/model/Body8.js +0 -117
- package/src/model/Body9.js +0 -75
- package/src/model/BodyVariablesItems.js +0 -65
- package/src/model/CompaniesList.js +0 -74
- package/src/model/Company.js +0 -98
- package/src/model/CompanyAttributes.js +0 -69
- package/src/model/CompanyAttributesInner.js +0 -101
- package/src/model/ComponentItems.js +0 -79
- package/src/model/ConversationsMessage.js +0 -165
- package/src/model/ConversationsMessageFile.js +0 -104
- package/src/model/ConversationsMessageFileImageInfo.js +0 -90
- package/src/model/CreateApiKeyRequest.js +0 -83
- package/src/model/CreateApiKeyResponse.js +0 -81
- package/src/model/CreateAttribute.js +0 -141
- package/src/model/CreateAttributeEnumeration.js +0 -85
- package/src/model/CreateCategoryModel.js +0 -73
- package/src/model/CreateChild.js +0 -167
- package/src/model/CreateContact.js +0 -130
- package/src/model/CreateCouponCollection.js +0 -85
- package/src/model/CreateCoupons.js +0 -84
- package/src/model/CreateDoiContact.js +0 -121
- package/src/model/CreateDomain.js +0 -75
- package/src/model/CreateDomainModel.js +0 -98
- package/src/model/CreateDomainModelDnsRecords.js +0 -79
- package/src/model/CreateDomainModelDnsRecordsDkimRecord.js +0 -93
- package/src/model/CreateEmailCampaign.js +0 -339
- package/src/model/CreateEmailCampaignRecipients.js +0 -90
- package/src/model/CreateEmailCampaignSender.js +0 -92
- package/src/model/CreateExternalFeed.js +0 -169
- package/src/model/CreateList.js +0 -85
- package/src/model/CreateModel.js +0 -75
- package/src/model/CreateProductModel.js +0 -73
- package/src/model/CreateReseller.js +0 -83
- package/src/model/CreateSender.js +0 -93
- package/src/model/CreateSenderIps.js +0 -93
- package/src/model/CreateSenderModel.js +0 -91
- package/src/model/CreateSmsCampaign.js +0 -135
- package/src/model/CreateSmsCampaignRecipients.js +0 -83
- package/src/model/CreateSmtpEmail.js +0 -80
- package/src/model/CreateSmtpTemplate.js +0 -150
- package/src/model/CreateSmtpTemplateSender.js +0 -90
- package/src/model/CreateSubAccount.js +0 -145
- package/src/model/CreateSubAccountResponse.js +0 -75
- package/src/model/CreateUpdateBatchCategory.js +0 -83
- package/src/model/CreateUpdateBatchCategoryModel.js +0 -81
- package/src/model/CreateUpdateBatchProducts.js +0 -83
- package/src/model/CreateUpdateBatchProductsModel.js +0 -81
- package/src/model/CreateUpdateCategories.js +0 -99
- package/src/model/CreateUpdateCategory.js +0 -108
- package/src/model/CreateUpdateContactModel.js +0 -73
- package/src/model/CreateUpdateFolder.js +0 -73
- package/src/model/CreateUpdateProduct.js +0 -158
- package/src/model/CreateUpdateProducts.js +0 -149
- package/src/model/CreateWebhook.js +0 -246
- package/src/model/CreateWhatsAppCampaign.js +0 -104
- package/src/model/CreateWhatsAppCampaignRecipients.js +0 -90
- package/src/model/CreateWhatsAppTemplate.js +0 -141
- package/src/model/CreatedBatchId.js +0 -75
- package/src/model/CreatedProcessId.js +0 -75
- package/src/model/Deal.js +0 -98
- package/src/model/DealAttributes.js +0 -69
- package/src/model/DealAttributesInner.js +0 -101
- package/src/model/DealsList.js +0 -74
- package/src/model/DeleteHardbounces.js +0 -89
- package/src/model/EmailExportRecipients.js +0 -139
- package/src/model/ErrorModel.js +0 -189
- package/src/model/ExportWebhooksHistory.js +0 -251
- package/src/model/FileData.js +0 -122
- package/src/model/FileDownloadableLink.js +0 -75
- package/src/model/FileList.js +0 -69
- package/src/model/GetAccount.js +0 -101
- package/src/model/GetAccountActivity.js +0 -73
- package/src/model/GetAccountActivityLogs.js +0 -115
- package/src/model/GetAccountMarketingAutomation.js +0 -83
- package/src/model/GetAccountPlan.js +0 -171
- package/src/model/GetAccountRelay.js +0 -85
- package/src/model/GetAccountRelayData.js +0 -96
- package/src/model/GetAggregatedReport.js +0 -169
- package/src/model/GetAllExternalFeeds.js +0 -80
- package/src/model/GetAllExternalFeedsFeeds.js +0 -205
- package/src/model/GetAttributes.js +0 -75
- package/src/model/GetAttributesAttributes.js +0 -185
- package/src/model/GetAttributesEnumeration.js +0 -85
- package/src/model/GetBlockedDomains.js +0 -76
- package/src/model/GetCampaignOverview.js +0 -249
- package/src/model/GetCampaignRecipients.js +0 -83
- package/src/model/GetCampaignStats.js +0 -215
- package/src/model/GetCategories.js +0 -84
- package/src/model/GetCategoryDetails.js +0 -121
- package/src/model/GetChildAccountCreationStatus.js +0 -75
- package/src/model/GetChildDomain.js +0 -81
- package/src/model/GetChildDomains.js +0 -68
- package/src/model/GetChildInfo.js +0 -113
- package/src/model/GetChildInfoApiKeys.js +0 -82
- package/src/model/GetChildInfoApiKeysV2.js +0 -85
- package/src/model/GetChildInfoApiKeysV3.js +0 -85
- package/src/model/GetChildInfoCredits.js +0 -82
- package/src/model/GetChildInfoStatistics.js +0 -90
- package/src/model/GetChildrenList.js +0 -81
- package/src/model/GetClient.js +0 -105
- package/src/model/GetContactCampaignStats.js +0 -129
- package/src/model/GetContactCampaignStatsClicked.js +0 -84
- package/src/model/GetContactCampaignStatsOpened.js +0 -105
- package/src/model/GetContactCampaignStatsTransacAttributes.js +0 -95
- package/src/model/GetContactCampaignStatsUnsubscriptions.js +0 -85
- package/src/model/GetContactDetails.js +0 -151
- package/src/model/GetContacts.js +0 -84
- package/src/model/GetCouponCollection.js +0 -125
- package/src/model/GetDeviceBrowserStats.js +0 -105
- package/src/model/GetDomainConfigurationModel.js +0 -104
- package/src/model/GetDomainsList.js +0 -73
- package/src/model/GetDomainsListDomains.js +0 -113
- package/src/model/GetEmailCampaign.js +0 -100
- package/src/model/GetEmailCampaigns.js +0 -80
- package/src/model/GetEmailEventReport.js +0 -72
- package/src/model/GetEmailEventReportEvents.js +0 -253
- package/src/model/GetExtendedCampaignOverview.js +0 -217
- package/src/model/GetExtendedCampaignOverviewSender.js +0 -89
- package/src/model/GetExtendedCampaignStats.js +0 -143
- package/src/model/GetExtendedCampaignStatsGlobalStats.js +0 -66
- package/src/model/GetExtendedClient.js +0 -83
- package/src/model/GetExtendedClientAddress.js +0 -106
- package/src/model/GetExtendedContactDetails.js +0 -87
- package/src/model/GetExtendedContactDetailsStatistics.js +0 -137
- package/src/model/GetExtendedContactDetailsStatisticsClicked.js +0 -85
- package/src/model/GetExtendedContactDetailsStatisticsLinks.js +0 -105
- package/src/model/GetExtendedContactDetailsStatisticsMessagesSent.js +0 -85
- package/src/model/GetExtendedContactDetailsStatisticsOpened.js +0 -105
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptions.js +0 -86
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.js +0 -83
- package/src/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.js +0 -93
- package/src/model/GetExtendedList.js +0 -110
- package/src/model/GetExtendedListCampaignStats.js +0 -84
- package/src/model/GetExternalFeedByUUID.js +0 -205
- package/src/model/GetExternalFeedByUUIDHeaders.js +0 -81
- package/src/model/GetFolder.js +0 -115
- package/src/model/GetFolderLists.js +0 -80
- package/src/model/GetFolders.js +0 -80
- package/src/model/GetInboundEmailEvents.js +0 -72
- package/src/model/GetInboundEmailEventsByUuid.js +0 -129
- package/src/model/GetInboundEmailEventsByUuidAttachments.js +0 -97
- package/src/model/GetInboundEmailEventsByUuidLogs.js +0 -113
- package/src/model/GetInboundEmailEventsEvents.js +0 -105
- package/src/model/GetInvitedUsersList.js +0 -73
- package/src/model/GetInvitedUsersListFeatureAccess.js +0 -90
- package/src/model/GetInvitedUsersListUsers.js +0 -104
- package/src/model/GetIp.js +0 -105
- package/src/model/GetIpFromSender.js +0 -105
- package/src/model/GetIps.js +0 -75
- package/src/model/GetIpsFromSender.js +0 -75
- package/src/model/GetList.js +0 -115
- package/src/model/GetLists.js +0 -81
- package/src/model/GetProcess.js +0 -129
- package/src/model/GetProcesses.js +0 -81
- package/src/model/GetProductDetails.js +0 -197
- package/src/model/GetProducts.js +0 -84
- package/src/model/GetReports.js +0 -72
- package/src/model/GetReportsReports.js +0 -195
- package/src/model/GetScheduledEmailByBatchId.js +0 -80
- package/src/model/GetScheduledEmailByBatchIdBatches.js +0 -127
- package/src/model/GetScheduledEmailByMessageId.js +0 -127
- package/src/model/GetSegments.js +0 -80
- package/src/model/GetSegmentsSegments.js +0 -97
- package/src/model/GetSendersList.js +0 -73
- package/src/model/GetSendersListIps.js +0 -95
- package/src/model/GetSendersListSenders.js +0 -113
- package/src/model/GetSharedTemplateUrl.js +0 -75
- package/src/model/GetSmsCampaign.js +0 -95
- package/src/model/GetSmsCampaignOverview.js +0 -187
- package/src/model/GetSmsCampaignRecipients.js +0 -65
- package/src/model/GetSmsCampaignStats.js +0 -135
- package/src/model/GetSmsCampaigns.js +0 -80
- package/src/model/GetSmsEventReport.js +0 -72
- package/src/model/GetSmsEventReportEvents.js +0 -188
- package/src/model/GetSmtpTemplateOverview.js +0 -192
- package/src/model/GetSmtpTemplateOverviewSender.js +0 -89
- package/src/model/GetSmtpTemplates.js +0 -80
- package/src/model/GetSsoToken.js +0 -75
- package/src/model/GetStatsByBrowser.js +0 -68
- package/src/model/GetStatsByDevice.js +0 -97
- package/src/model/GetStatsByDomain.js +0 -68
- package/src/model/GetTransacAggregatedSmsReport.js +0 -145
- package/src/model/GetTransacBlockedContacts.js +0 -80
- package/src/model/GetTransacBlockedContactsContacts.js +0 -104
- package/src/model/GetTransacBlockedContactsReason.js +0 -126
- package/src/model/GetTransacEmailContent.js +0 -133
- package/src/model/GetTransacEmailContentEvents.js +0 -85
- package/src/model/GetTransacEmailsList.js +0 -80
- package/src/model/GetTransacEmailsListTransactionalEmails.js +0 -139
- package/src/model/GetTransacSmsReport.js +0 -72
- package/src/model/GetTransacSmsReportReports.js +0 -145
- package/src/model/GetUserPermission.js +0 -96
- package/src/model/GetUserPermissionPrivileges.js +0 -83
- package/src/model/GetWATemplates.js +0 -84
- package/src/model/GetWATemplatesTemplates.js +0 -143
- package/src/model/GetWebhook.js +0 -154
- package/src/model/GetWebhooks.js +0 -74
- package/src/model/GetWhatsAppConfig.js +0 -165
- package/src/model/GetWhatsappCampaignOverview.js +0 -205
- package/src/model/GetWhatsappCampaigns.js +0 -80
- package/src/model/GetWhatsappCampaignsCampaigns.js +0 -222
- package/src/model/GetWhatsappEventReport.js +0 -72
- package/src/model/GetWhatsappEventReportEvents.js +0 -189
- package/src/model/InlineResponse200.js +0 -76
- package/src/model/InlineResponse2001.js +0 -95
- package/src/model/InlineResponse201.js +0 -76
- package/src/model/InlineResponse2011.js +0 -76
- package/src/model/InlineResponse2012.js +0 -75
- package/src/model/InlineResponse2013.js +0 -75
- package/src/model/InlineResponse2014.js +0 -75
- package/src/model/ManageIp.js +0 -73
- package/src/model/MasterDetailsResponse.js +0 -119
- package/src/model/MasterDetailsResponseBillingInfo.js +0 -96
- package/src/model/MasterDetailsResponseBillingInfoAddress.js +0 -106
- package/src/model/MasterDetailsResponseBillingInfoName.js +0 -82
- package/src/model/MasterDetailsResponsePlanInfo.js +0 -134
- package/src/model/MasterDetailsResponsePlanInfoFeatures.js +0 -105
- package/src/model/Note.js +0 -124
- package/src/model/NoteData.js +0 -100
- package/src/model/NoteId.js +0 -74
- package/src/model/NoteList.js +0 -69
- package/src/model/Order.js +0 -147
- package/src/model/OrderBatch.js +0 -83
- package/src/model/OrderBilling.js +0 -122
- package/src/model/OrderProducts.js +0 -104
- package/src/model/Otp.js +0 -73
- package/src/model/Pipeline.js +0 -90
- package/src/model/PipelineStage.js +0 -82
- package/src/model/Pipelines.js +0 -69
- package/src/model/PostContactInfo.js +0 -74
- package/src/model/PostContactInfoContacts.js +0 -95
- package/src/model/PostSendFailed.js +0 -106
- package/src/model/PostSendSmsTestFailed.js +0 -99
- package/src/model/RemainingCreditModel.js +0 -83
- package/src/model/RemainingCreditModelChild.js +0 -86
- package/src/model/RemainingCreditModelReseller.js +0 -85
- package/src/model/RemoveContactFromList.js +0 -89
- package/src/model/RemoveCredits.js +0 -81
- package/src/model/RequestContactExport.js +0 -90
- package/src/model/RequestContactExportCustomContactFilter.js +0 -222
- package/src/model/RequestContactImport.js +0 -148
- package/src/model/RequestContactImportNewList.js +0 -82
- package/src/model/RequestSmsRecipientExport.js +0 -127
- package/src/model/ScheduleSmtpEmail.js +0 -88
- package/src/model/SendReport.js +0 -127
- package/src/model/SendReportEmail.js +0 -86
- package/src/model/SendSms.js +0 -107
- package/src/model/SendSmtpEmail.js +0 -191
- package/src/model/SendSmtpEmailAttachment.js +0 -89
- package/src/model/SendSmtpEmailBcc.js +0 -83
- package/src/model/SendSmtpEmailCc.js +0 -83
- package/src/model/SendSmtpEmailMessageVersions.js +0 -114
- package/src/model/SendSmtpEmailReplyTo.js +0 -84
- package/src/model/SendSmtpEmailReplyTo1.js +0 -84
- package/src/model/SendSmtpEmailSender.js +0 -90
- package/src/model/SendSmtpEmailTo.js +0 -83
- package/src/model/SendSmtpEmailTo1.js +0 -83
- package/src/model/SendTestEmail.js +0 -73
- package/src/model/SendTestSms.js +0 -73
- package/src/model/SendTransacSms.js +0 -157
- package/src/model/SendWhatsappMessage.js +0 -101
- package/src/model/SsoTokenRequest.js +0 -147
- package/src/model/SubAccountDetailsResponse.js +0 -96
- package/src/model/SubAccountDetailsResponsePlanInfo.js +0 -88
- package/src/model/SubAccountDetailsResponsePlanInfoCredits.js +0 -81
- package/src/model/SubAccountDetailsResponsePlanInfoCreditsEmails.js +0 -82
- package/src/model/SubAccountDetailsResponsePlanInfoFeatures.js +0 -87
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesInbox.js +0 -82
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.js +0 -82
- package/src/model/SubAccountDetailsResponsePlanInfoFeaturesUsers.js +0 -82
- package/src/model/SubAccountUpdatePlanRequest.js +0 -80
- package/src/model/SubAccountUpdatePlanRequestCredits.js +0 -74
- package/src/model/SubAccountUpdatePlanRequestFeatures.js +0 -90
- package/src/model/SubAccountsResponse.js +0 -80
- package/src/model/SubAccountsResponseSubAccounts.js +0 -105
- package/src/model/Task.js +0 -118
- package/src/model/TaskList.js +0 -74
- package/src/model/TaskReminder.js +0 -128
- package/src/model/TaskTypes.js +0 -82
- package/src/model/UpdateAttribute.js +0 -81
- package/src/model/UpdateAttributeEnumeration.js +0 -85
- package/src/model/UpdateBatchContacts.js +0 -73
- package/src/model/UpdateBatchContactsContacts.js +0 -145
- package/src/model/UpdateBatchContactsModel.js +0 -79
- package/src/model/UpdateCampaignStatus.js +0 -130
- package/src/model/UpdateChild.js +0 -105
- package/src/model/UpdateChildAccountStatus.js +0 -97
- package/src/model/UpdateChildDomain.js +0 -73
- package/src/model/UpdateContact.js +0 -121
- package/src/model/UpdateCouponCollection.js +0 -75
- package/src/model/UpdateEmailCampaign.js +0 -335
- package/src/model/UpdateEmailCampaignRecipients.js +0 -90
- package/src/model/UpdateEmailCampaignSender.js +0 -90
- package/src/model/UpdateExternalFeed.js +0 -164
- package/src/model/UpdateList.js +0 -81
- package/src/model/UpdateSender.js +0 -89
- package/src/model/UpdateSmsCampaign.js +0 -129
- package/src/model/UpdateSmtpTemplate.js +0 -144
- package/src/model/UpdateSmtpTemplateSender.js +0 -90
- package/src/model/UpdateWebhook.js +0 -207
- package/src/model/UpdateWhatsAppCampaign.js +0 -117
- package/src/model/UploadImageModel.js +0 -75
- package/src/model/UploadImageToGallery.js +0 -83
- package/src/model/VariablesItems.js +0 -86
- package/src/model/WhatsappCampStats.js +0 -110
- package/src/model/WhatsappCampTemplate.js +0 -149
- package/test/api/AccountApi.spec.js +0 -157
- package/test/api/CompaniesApi.spec.js +0 -273
- package/test/api/ContactsApi.spec.js +0 -1278
- package/test/api/ConversationsApi.spec.js +0 -430
- package/test/api/CouponsApi.spec.js +0 -176
- package/test/api/DealsApi.spec.js +0 -300
- package/test/api/DomainsApi.spec.js +0 -210
- package/test/api/EcommerceApi.spec.js +0 -423
- package/test/api/EmailCampaignsApi.spec.js +0 -512
- package/test/api/ExternalFeedsApi.spec.js +0 -249
- package/test/api/FilesApi.spec.js +0 -176
- package/test/api/InboundParsingApi.spec.js +0 -168
- package/test/api/MasterAccountApi.spec.js +0 -372
- package/test/api/NotesApi.spec.js +0 -181
- package/test/api/ProcessApi.spec.js +0 -111
- package/test/api/ResellerApi.spec.js +0 -467
- package/test/api/SMSCampaignsApi.spec.js +0 -294
- package/test/api/SendersApi.spec.js +0 -264
- package/test/api/TasksApi.spec.js +0 -277
- package/test/api/TransactionalEmailsApi.spec.js +0 -870
- package/test/api/TransactionalSMSApi.spec.js +0 -228
- package/test/api/TransactionalWhatsAppApi.spec.js +0 -120
- package/test/api/UserApi.spec.js +0 -128
- package/test/api/WebhooksApi.spec.js +0 -209
- package/test/api/WhatsAppCampaignsApi.spec.js +0 -413
- package/test/assert-equals.js +0 -81
- package/test/model/AbTestCampaignResult.spec.js +0 -95
- package/test/model/AbTestCampaignResultClickedLinks.spec.js +0 -59
- package/test/model/AbTestCampaignResultStatistics.spec.js +0 -83
- package/test/model/AbTestVersionClicks.spec.js +0 -47
- package/test/model/AbTestVersionClicksInner.spec.js +0 -65
- package/test/model/AbTestVersionStats.spec.js +0 -59
- package/test/model/AddChildDomain.spec.js +0 -53
- package/test/model/AddContactToList.spec.js +0 -59
- package/test/model/AddCredits.spec.js +0 -59
- package/test/model/AuthenticateDomainModel.spec.js +0 -59
- package/test/model/BlockDomain.spec.js +0 -53
- package/test/model/Body.spec.js +0 -65
- package/test/model/Body1.spec.js +0 -65
- package/test/model/Body10.spec.js +0 -71
- package/test/model/Body11.spec.js +0 -53
- package/test/model/Body12.spec.js +0 -71
- package/test/model/Body2.spec.js +0 -71
- package/test/model/Body3.spec.js +0 -59
- package/test/model/Body4.spec.js +0 -59
- package/test/model/Body5.spec.js +0 -71
- package/test/model/Body6.spec.js +0 -113
- package/test/model/Body7.spec.js +0 -107
- package/test/model/Body8.spec.js +0 -83
- package/test/model/Body9.spec.js +0 -53
- package/test/model/BodyVariablesItems.spec.js +0 -47
- package/test/model/CompaniesList.spec.js +0 -53
- package/test/model/Company.spec.js +0 -71
- package/test/model/CompanyAttributes.spec.js +0 -47
- package/test/model/CompanyAttributesInner.spec.js +0 -77
- package/test/model/ComponentItems.spec.js +0 -59
- package/test/model/ConversationsMessage.spec.js +0 -107
- package/test/model/ConversationsMessageFile.spec.js +0 -77
- package/test/model/ConversationsMessageFileImageInfo.spec.js +0 -65
- package/test/model/CreateApiKeyRequest.spec.js +0 -59
- package/test/model/CreateApiKeyResponse.spec.js +0 -59
- package/test/model/CreateAttribute.spec.js +0 -71
- package/test/model/CreateAttributeEnumeration.spec.js +0 -59
- package/test/model/CreateCategoryModel.spec.js +0 -53
- package/test/model/CreateChild.spec.js +0 -83
- package/test/model/CreateContact.spec.js +0 -95
- package/test/model/CreateCouponCollection.spec.js +0 -59
- package/test/model/CreateCoupons.spec.js +0 -59
- package/test/model/CreateDoiContact.spec.js +0 -83
- package/test/model/CreateDomain.spec.js +0 -53
- package/test/model/CreateDomainModel.spec.js +0 -71
- package/test/model/CreateDomainModelDnsRecords.spec.js +0 -59
- package/test/model/CreateDomainModelDnsRecordsDkimRecord.spec.js +0 -71
- package/test/model/CreateEmailCampaign.spec.js +0 -233
- package/test/model/CreateEmailCampaignRecipients.spec.js +0 -65
- package/test/model/CreateEmailCampaignSender.spec.js +0 -65
- package/test/model/CreateExternalFeed.spec.js +0 -101
- package/test/model/CreateList.spec.js +0 -59
- package/test/model/CreateModel.spec.js +0 -53
- package/test/model/CreateProductModel.spec.js +0 -53
- package/test/model/CreateReseller.spec.js +0 -59
- package/test/model/CreateSender.spec.js +0 -65
- package/test/model/CreateSenderIps.spec.js +0 -65
- package/test/model/CreateSenderModel.spec.js +0 -65
- package/test/model/CreateSmsCampaign.spec.js +0 -95
- package/test/model/CreateSmsCampaignRecipients.spec.js +0 -59
- package/test/model/CreateSmtpEmail.spec.js +0 -59
- package/test/model/CreateSmtpTemplate.spec.js +0 -107
- package/test/model/CreateSmtpTemplateSender.spec.js +0 -65
- package/test/model/CreateSubAccount.spec.js +0 -71
- package/test/model/CreateSubAccountResponse.spec.js +0 -53
- package/test/model/CreateUpdateBatchCategory.spec.js +0 -59
- package/test/model/CreateUpdateBatchCategoryModel.spec.js +0 -59
- package/test/model/CreateUpdateBatchProducts.spec.js +0 -59
- package/test/model/CreateUpdateBatchProductsModel.spec.js +0 -59
- package/test/model/CreateUpdateCategories.spec.js +0 -71
- package/test/model/CreateUpdateCategory.spec.js +0 -77
- package/test/model/CreateUpdateContactModel.spec.js +0 -53
- package/test/model/CreateUpdateFolder.spec.js +0 -53
- package/test/model/CreateUpdateProduct.spec.js +0 -113
- package/test/model/CreateUpdateProducts.spec.js +0 -107
- package/test/model/CreateWebhook.spec.js +0 -77
- package/test/model/CreateWhatsAppCampaign.spec.js +0 -71
- package/test/model/CreateWhatsAppCampaignRecipients.spec.js +0 -65
- package/test/model/CreateWhatsAppTemplate.spec.js +0 -83
- package/test/model/CreatedBatchId.spec.js +0 -53
- package/test/model/CreatedProcessId.spec.js +0 -53
- package/test/model/Deal.spec.js +0 -71
- package/test/model/DealAttributes.spec.js +0 -47
- package/test/model/DealAttributesInner.spec.js +0 -77
- package/test/model/DealsList.spec.js +0 -53
- package/test/model/DeleteHardbounces.spec.js +0 -65
- package/test/model/EmailExportRecipients.spec.js +0 -59
- package/test/model/ErrorModel.spec.js +0 -59
- package/test/model/ExportWebhooksHistory.spec.js +0 -101
- package/test/model/FileData.spec.js +0 -89
- package/test/model/FileDownloadableLink.spec.js +0 -53
- package/test/model/FileList.spec.js +0 -47
- package/test/model/GetAccount.spec.js +0 -65
- package/test/model/GetAccountActivity.spec.js +0 -53
- package/test/model/GetAccountActivityLogs.spec.js +0 -77
- package/test/model/GetAccountMarketingAutomation.spec.js +0 -59
- package/test/model/GetAccountPlan.spec.js +0 -83
- package/test/model/GetAccountRelay.spec.js +0 -59
- package/test/model/GetAccountRelayData.spec.js +0 -65
- package/test/model/GetAggregatedReport.spec.js +0 -125
- package/test/model/GetAllExternalFeeds.spec.js +0 -59
- package/test/model/GetAllExternalFeedsFeeds.spec.js +0 -119
- package/test/model/GetAttributes.spec.js +0 -53
- package/test/model/GetAttributesAttributes.spec.js +0 -77
- package/test/model/GetAttributesEnumeration.spec.js +0 -59
- package/test/model/GetBlockedDomains.spec.js +0 -53
- package/test/model/GetCampaignOverview.spec.js +0 -131
- package/test/model/GetCampaignRecipients.spec.js +0 -59
- package/test/model/GetCampaignStats.spec.js +0 -143
- package/test/model/GetCategories.spec.js +0 -59
- package/test/model/GetCategoryDetails.spec.js +0 -83
- package/test/model/GetChildAccountCreationStatus.spec.js +0 -53
- package/test/model/GetChildDomain.spec.js +0 -59
- package/test/model/GetChildDomains.spec.js +0 -47
- package/test/model/GetChildInfo.spec.js +0 -77
- package/test/model/GetChildInfoApiKeys.spec.js +0 -59
- package/test/model/GetChildInfoApiKeysV2.spec.js +0 -59
- package/test/model/GetChildInfoApiKeysV3.spec.js +0 -59
- package/test/model/GetChildInfoCredits.spec.js +0 -59
- package/test/model/GetChildInfoStatistics.spec.js +0 -65
- package/test/model/GetChildrenList.spec.js +0 -59
- package/test/model/GetClient.spec.js +0 -71
- package/test/model/GetContactCampaignStats.spec.js +0 -101
- package/test/model/GetContactCampaignStatsClicked.spec.js +0 -59
- package/test/model/GetContactCampaignStatsOpened.spec.js +0 -71
- package/test/model/GetContactCampaignStatsTransacAttributes.spec.js +0 -65
- package/test/model/GetContactCampaignStatsUnsubscriptions.spec.js +0 -59
- package/test/model/GetContactDetails.spec.js +0 -101
- package/test/model/GetContacts.spec.js +0 -59
- package/test/model/GetCouponCollection.spec.js +0 -83
- package/test/model/GetDeviceBrowserStats.spec.js +0 -71
- package/test/model/GetDomainConfigurationModel.spec.js +0 -71
- package/test/model/GetDomainsList.spec.js +0 -53
- package/test/model/GetDomainsListDomains.spec.js +0 -77
- package/test/model/GetEmailCampaign.spec.js +0 -59
- package/test/model/GetEmailCampaigns.spec.js +0 -59
- package/test/model/GetEmailEventReport.spec.js +0 -53
- package/test/model/GetEmailEventReportEvents.spec.js +0 -113
- package/test/model/GetExtendedCampaignOverview.spec.js +0 -143
- package/test/model/GetExtendedCampaignOverviewSender.spec.js +0 -65
- package/test/model/GetExtendedCampaignStats.spec.js +0 -95
- package/test/model/GetExtendedCampaignStatsGlobalStats.spec.js +0 -47
- package/test/model/GetExtendedClient.spec.js +0 -53
- package/test/model/GetExtendedClientAddress.spec.js +0 -71
- package/test/model/GetExtendedContactDetails.spec.js +0 -53
- package/test/model/GetExtendedContactDetailsStatistics.spec.js +0 -101
- package/test/model/GetExtendedContactDetailsStatisticsClicked.spec.js +0 -59
- package/test/model/GetExtendedContactDetailsStatisticsLinks.spec.js +0 -71
- package/test/model/GetExtendedContactDetailsStatisticsMessagesSent.spec.js +0 -59
- package/test/model/GetExtendedContactDetailsStatisticsOpened.spec.js +0 -71
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptions.spec.js +0 -59
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.spec.js +0 -59
- package/test/model/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.spec.js +0 -65
- package/test/model/GetExtendedList.spec.js +0 -71
- package/test/model/GetExtendedListCampaignStats.spec.js +0 -59
- package/test/model/GetExternalFeedByUUID.spec.js +0 -119
- package/test/model/GetExternalFeedByUUIDHeaders.spec.js +0 -59
- package/test/model/GetFolder.spec.js +0 -77
- package/test/model/GetFolderLists.spec.js +0 -59
- package/test/model/GetFolders.spec.js +0 -59
- package/test/model/GetInboundEmailEvents.spec.js +0 -53
- package/test/model/GetInboundEmailEventsByUuid.spec.js +0 -95
- package/test/model/GetInboundEmailEventsByUuidAttachments.spec.js +0 -71
- package/test/model/GetInboundEmailEventsByUuidLogs.spec.js +0 -59
- package/test/model/GetInboundEmailEventsEvents.spec.js +0 -71
- package/test/model/GetInvitedUsersList.spec.js +0 -53
- package/test/model/GetInvitedUsersListFeatureAccess.spec.js +0 -65
- package/test/model/GetInvitedUsersListUsers.spec.js +0 -71
- package/test/model/GetIp.spec.js +0 -71
- package/test/model/GetIpFromSender.spec.js +0 -71
- package/test/model/GetIps.spec.js +0 -53
- package/test/model/GetIpsFromSender.spec.js +0 -53
- package/test/model/GetList.spec.js +0 -77
- package/test/model/GetLists.spec.js +0 -59
- package/test/model/GetProcess.spec.js +0 -71
- package/test/model/GetProcesses.spec.js +0 -59
- package/test/model/GetProductDetails.spec.js +0 -137
- package/test/model/GetProducts.spec.js +0 -59
- package/test/model/GetReports.spec.js +0 -53
- package/test/model/GetReportsReports.spec.js +0 -125
- package/test/model/GetScheduledEmailByBatchId.spec.js +0 -59
- package/test/model/GetScheduledEmailByBatchIdBatches.spec.js +0 -65
- package/test/model/GetScheduledEmailByMessageId.spec.js +0 -65
- package/test/model/GetSegments.spec.js +0 -59
- package/test/model/GetSegmentsSegments.spec.js +0 -71
- package/test/model/GetSendersList.spec.js +0 -53
- package/test/model/GetSendersListIps.spec.js +0 -65
- package/test/model/GetSendersListSenders.spec.js +0 -77
- package/test/model/GetSharedTemplateUrl.spec.js +0 -53
- package/test/model/GetSmsCampaign.spec.js +0 -59
- package/test/model/GetSmsCampaignOverview.spec.js +0 -95
- package/test/model/GetSmsCampaignRecipients.spec.js +0 -47
- package/test/model/GetSmsCampaignStats.spec.js +0 -89
- package/test/model/GetSmsCampaigns.spec.js +0 -59
- package/test/model/GetSmsEventReport.spec.js +0 -53
- package/test/model/GetSmsEventReportEvents.spec.js +0 -89
- package/test/model/GetSmtpTemplateOverview.spec.js +0 -125
- package/test/model/GetSmtpTemplateOverviewSender.spec.js +0 -65
- package/test/model/GetSmtpTemplates.spec.js +0 -59
- package/test/model/GetSsoToken.spec.js +0 -53
- package/test/model/GetStatsByBrowser.spec.js +0 -47
- package/test/model/GetStatsByDevice.spec.js +0 -71
- package/test/model/GetStatsByDomain.spec.js +0 -47
- package/test/model/GetTransacAggregatedSmsReport.spec.js +0 -107
- package/test/model/GetTransacBlockedContacts.spec.js +0 -59
- package/test/model/GetTransacBlockedContactsContacts.spec.js +0 -71
- package/test/model/GetTransacBlockedContactsReason.spec.js +0 -59
- package/test/model/GetTransacEmailContent.spec.js +0 -89
- package/test/model/GetTransacEmailContentEvents.spec.js +0 -59
- package/test/model/GetTransacEmailsList.spec.js +0 -59
- package/test/model/GetTransacEmailsListTransactionalEmails.spec.js +0 -95
- package/test/model/GetTransacSmsReport.spec.js +0 -53
- package/test/model/GetTransacSmsReportReports.spec.js +0 -107
- package/test/model/GetUserPermission.spec.js +0 -65
- package/test/model/GetUserPermissionPrivileges.spec.js +0 -59
- package/test/model/GetWATemplates.spec.js +0 -59
- package/test/model/GetWATemplatesTemplates.spec.js +0 -95
- package/test/model/GetWebhook.spec.js +0 -89
- package/test/model/GetWebhooks.spec.js +0 -53
- package/test/model/GetWhatsAppConfig.spec.js +0 -83
- package/test/model/GetWhatsappCampaignOverview.spec.js +0 -101
- package/test/model/GetWhatsappCampaigns.spec.js +0 -59
- package/test/model/GetWhatsappCampaignsCampaigns.spec.js +0 -113
- package/test/model/GetWhatsappEventReport.spec.js +0 -53
- package/test/model/GetWhatsappEventReportEvents.spec.js +0 -95
- package/test/model/InlineResponse200.spec.js +0 -53
- package/test/model/InlineResponse2001.spec.js +0 -65
- package/test/model/InlineResponse201.spec.js +0 -53
- package/test/model/InlineResponse2011.spec.js +0 -53
- package/test/model/InlineResponse2012.spec.js +0 -53
- package/test/model/InlineResponse2013.spec.js +0 -53
- package/test/model/InlineResponse2014.spec.js +0 -53
- package/test/model/ManageIp.spec.js +0 -53
- package/test/model/MasterDetailsResponse.spec.js +0 -89
- package/test/model/MasterDetailsResponseBillingInfo.spec.js +0 -71
- package/test/model/MasterDetailsResponseBillingInfoAddress.spec.js +0 -77
- package/test/model/MasterDetailsResponseBillingInfoName.spec.js +0 -59
- package/test/model/MasterDetailsResponsePlanInfo.spec.js +0 -83
- package/test/model/MasterDetailsResponsePlanInfoFeatures.spec.js +0 -77
- package/test/model/Note.spec.js +0 -89
- package/test/model/NoteData.spec.js +0 -71
- package/test/model/NoteId.spec.js +0 -53
- package/test/model/NoteList.spec.js +0 -47
- package/test/model/Order.spec.js +0 -101
- package/test/model/OrderBatch.spec.js +0 -59
- package/test/model/OrderBilling.spec.js +0 -89
- package/test/model/OrderProducts.spec.js +0 -71
- package/test/model/Otp.spec.js +0 -53
- package/test/model/Pipeline.spec.js +0 -65
- package/test/model/PipelineStage.spec.js +0 -59
- package/test/model/Pipelines.spec.js +0 -47
- package/test/model/PostContactInfo.spec.js +0 -53
- package/test/model/PostContactInfoContacts.spec.js +0 -71
- package/test/model/PostSendFailed.spec.js +0 -77
- package/test/model/PostSendSmsTestFailed.spec.js +0 -71
- package/test/model/RemainingCreditModel.spec.js +0 -59
- package/test/model/RemainingCreditModelChild.spec.js +0 -59
- package/test/model/RemainingCreditModelReseller.spec.js +0 -59
- package/test/model/RemoveContactFromList.spec.js +0 -65
- package/test/model/RemoveCredits.spec.js +0 -59
- package/test/model/RequestContactExport.spec.js +0 -65
- package/test/model/RequestContactExportCustomContactFilter.spec.js +0 -83
- package/test/model/RequestContactImport.spec.js +0 -107
- package/test/model/RequestContactImportNewList.spec.js +0 -59
- package/test/model/RequestSmsRecipientExport.spec.js +0 -59
- package/test/model/ScheduleSmtpEmail.spec.js +0 -65
- package/test/model/SendReport.spec.js +0 -59
- package/test/model/SendReportEmail.spec.js +0 -59
- package/test/model/SendSms.spec.js +0 -77
- package/test/model/SendSmtpEmail.spec.js +0 -143
- package/test/model/SendSmtpEmailAttachment.spec.js +0 -65
- package/test/model/SendSmtpEmailBcc.spec.js +0 -59
- package/test/model/SendSmtpEmailCc.spec.js +0 -59
- package/test/model/SendSmtpEmailMessageVersions.spec.js +0 -83
- package/test/model/SendSmtpEmailReplyTo.spec.js +0 -59
- package/test/model/SendSmtpEmailReplyTo1.spec.js +0 -59
- package/test/model/SendSmtpEmailSender.spec.js +0 -65
- package/test/model/SendSmtpEmailTo.spec.js +0 -59
- package/test/model/SendSmtpEmailTo1.spec.js +0 -59
- package/test/model/SendTestEmail.spec.js +0 -53
- package/test/model/SendTestSms.spec.js +0 -53
- package/test/model/SendTransacSms.spec.js +0 -95
- package/test/model/SendWhatsappMessage.spec.js +0 -71
- package/test/model/SsoTokenRequest.spec.js +0 -65
- package/test/model/SubAccountDetailsResponse.spec.js +0 -71
- package/test/model/SubAccountDetailsResponsePlanInfo.spec.js +0 -65
- package/test/model/SubAccountDetailsResponsePlanInfoCredits.spec.js +0 -59
- package/test/model/SubAccountDetailsResponsePlanInfoCreditsEmails.spec.js +0 -59
- package/test/model/SubAccountDetailsResponsePlanInfoFeatures.spec.js +0 -65
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesInbox.spec.js +0 -59
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.spec.js +0 -59
- package/test/model/SubAccountDetailsResponsePlanInfoFeaturesUsers.spec.js +0 -59
- package/test/model/SubAccountUpdatePlanRequest.spec.js +0 -59
- package/test/model/SubAccountUpdatePlanRequestCredits.spec.js +0 -53
- package/test/model/SubAccountUpdatePlanRequestFeatures.spec.js +0 -65
- package/test/model/SubAccountsResponse.spec.js +0 -59
- package/test/model/SubAccountsResponseSubAccounts.spec.js +0 -71
- package/test/model/Task.spec.js +0 -83
- package/test/model/TaskList.spec.js +0 -53
- package/test/model/TaskReminder.spec.js +0 -65
- package/test/model/TaskTypes.spec.js +0 -59
- package/test/model/UpdateAttribute.spec.js +0 -59
- package/test/model/UpdateAttributeEnumeration.spec.js +0 -59
- package/test/model/UpdateBatchContacts.spec.js +0 -53
- package/test/model/UpdateBatchContactsContacts.spec.js +0 -107
- package/test/model/UpdateBatchContactsModel.spec.js +0 -59
- package/test/model/UpdateCampaignStatus.spec.js +0 -53
- package/test/model/UpdateChild.spec.js +0 -77
- package/test/model/UpdateChildAccountStatus.spec.js +0 -71
- package/test/model/UpdateChildDomain.spec.js +0 -53
- package/test/model/UpdateContact.spec.js +0 -89
- package/test/model/UpdateCouponCollection.spec.js +0 -53
- package/test/model/UpdateEmailCampaign.spec.js +0 -233
- package/test/model/UpdateEmailCampaignRecipients.spec.js +0 -65
- package/test/model/UpdateEmailCampaignSender.spec.js +0 -65
- package/test/model/UpdateExternalFeed.spec.js +0 -101
- package/test/model/UpdateList.spec.js +0 -59
- package/test/model/UpdateSender.spec.js +0 -65
- package/test/model/UpdateSmsCampaign.spec.js +0 -95
- package/test/model/UpdateSmtpTemplate.spec.js +0 -107
- package/test/model/UpdateSmtpTemplateSender.spec.js +0 -65
- package/test/model/UpdateWebhook.spec.js +0 -71
- package/test/model/UpdateWhatsAppCampaign.spec.js +0 -71
- package/test/model/UploadImageModel.spec.js +0 -53
- package/test/model/UploadImageToGallery.spec.js +0 -59
- package/test/model/VariablesItems.spec.js +0 -65
- package/test/model/WhatsappCampStats.spec.js +0 -77
- package/test/model/WhatsappCampTemplate.spec.js +0 -113
|
@@ -0,0 +1,1956 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Brevo API
|
|
3
|
+
* Brevo provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/brevo **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 3.0.0
|
|
6
|
+
* Contact: contact@brevo.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import localVarRequest from 'request';
|
|
15
|
+
import http from 'http';
|
|
16
|
+
|
|
17
|
+
/* tslint:disable:no-unused-locals */
|
|
18
|
+
import { BlockDomain } from '../model/blockDomain';
|
|
19
|
+
import { CreateModel } from '../model/createModel';
|
|
20
|
+
import { CreateSmtpEmail } from '../model/createSmtpEmail';
|
|
21
|
+
import { CreateSmtpTemplate } from '../model/createSmtpTemplate';
|
|
22
|
+
import { DeleteHardbounces } from '../model/deleteHardbounces';
|
|
23
|
+
import { ErrorModel } from '../model/errorModel';
|
|
24
|
+
import { GetAggregatedReport } from '../model/getAggregatedReport';
|
|
25
|
+
import { GetBlockedDomains } from '../model/getBlockedDomains';
|
|
26
|
+
import { GetEmailEventReport } from '../model/getEmailEventReport';
|
|
27
|
+
import { GetReports } from '../model/getReports';
|
|
28
|
+
import { GetScheduledEmailByBatchId } from '../model/getScheduledEmailByBatchId';
|
|
29
|
+
import { GetScheduledEmailByMessageId } from '../model/getScheduledEmailByMessageId';
|
|
30
|
+
import { GetSmtpTemplateOverview } from '../model/getSmtpTemplateOverview';
|
|
31
|
+
import { GetSmtpTemplates } from '../model/getSmtpTemplates';
|
|
32
|
+
import { GetTransacBlockedContacts } from '../model/getTransacBlockedContacts';
|
|
33
|
+
import { GetTransacEmailContent } from '../model/getTransacEmailContent';
|
|
34
|
+
import { GetTransacEmailsList } from '../model/getTransacEmailsList';
|
|
35
|
+
import { PostSendFailed } from '../model/postSendFailed';
|
|
36
|
+
import { ScheduleSmtpEmail } from '../model/scheduleSmtpEmail';
|
|
37
|
+
import { SendSmtpEmail } from '../model/sendSmtpEmail';
|
|
38
|
+
import { SendTestEmail } from '../model/sendTestEmail';
|
|
39
|
+
import { UpdateSmtpTemplate } from '../model/updateSmtpTemplate';
|
|
40
|
+
|
|
41
|
+
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
42
|
+
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth } from '../model/models';
|
|
43
|
+
|
|
44
|
+
import { HttpError, RequestFile } from './apis';
|
|
45
|
+
|
|
46
|
+
let defaultBasePath = 'https://api.brevo.com/v3';
|
|
47
|
+
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
|
|
52
|
+
export enum TransactionalEmailsApiApiKeys {
|
|
53
|
+
apiKey,
|
|
54
|
+
partnerKey,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export class TransactionalEmailsApi {
|
|
58
|
+
protected _basePath = defaultBasePath;
|
|
59
|
+
protected _defaultHeaders : any = {};
|
|
60
|
+
protected _useQuerystring : boolean = false;
|
|
61
|
+
|
|
62
|
+
protected authentications = {
|
|
63
|
+
'default': <Authentication>new VoidAuth(),
|
|
64
|
+
'apiKey': new ApiKeyAuth('header', 'api-key'),
|
|
65
|
+
'partnerKey': new ApiKeyAuth('header', 'partner-key'),
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
protected interceptors: Interceptor[] = [];
|
|
69
|
+
|
|
70
|
+
constructor(basePath?: string);
|
|
71
|
+
constructor(basePathOrUsername: string, password?: string, basePath?: string) {
|
|
72
|
+
if (password) {
|
|
73
|
+
if (basePath) {
|
|
74
|
+
this.basePath = basePath;
|
|
75
|
+
}
|
|
76
|
+
} else {
|
|
77
|
+
if (basePathOrUsername) {
|
|
78
|
+
this.basePath = basePathOrUsername
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
set useQuerystring(value: boolean) {
|
|
84
|
+
this._useQuerystring = value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
set basePath(basePath: string) {
|
|
88
|
+
this._basePath = basePath;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
set defaultHeaders(defaultHeaders: any) {
|
|
92
|
+
this._defaultHeaders = defaultHeaders;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
get defaultHeaders() {
|
|
96
|
+
return this._defaultHeaders;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
get basePath() {
|
|
100
|
+
return this._basePath;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
public setDefaultAuthentication(auth: Authentication) {
|
|
104
|
+
this.authentications.default = auth;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public setApiKey(key: TransactionalEmailsApiApiKeys, value: string) {
|
|
108
|
+
(this.authentications as any)[TransactionalEmailsApiApiKeys[key]].apiKey = value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
public addInterceptor(interceptor: Interceptor) {
|
|
112
|
+
this.interceptors.push(interceptor);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Blocks a new domain in order to avoid messages being sent to the same
|
|
117
|
+
* @summary Add a new domain to the list of blocked domains
|
|
118
|
+
* @param blockDomain
|
|
119
|
+
*/
|
|
120
|
+
public async blockNewDomain (blockDomain: BlockDomain, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
121
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains';
|
|
122
|
+
let localVarQueryParameters: any = {};
|
|
123
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
124
|
+
const produces = ['application/json'];
|
|
125
|
+
// give precedence to 'application/json'
|
|
126
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
127
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
128
|
+
} else {
|
|
129
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
130
|
+
}
|
|
131
|
+
let localVarFormParams: any = {};
|
|
132
|
+
|
|
133
|
+
// verify required parameter 'blockDomain' is not null or undefined
|
|
134
|
+
if (blockDomain === null || blockDomain === undefined) {
|
|
135
|
+
throw new Error('Required parameter blockDomain was null or undefined when calling blockNewDomain.');
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
139
|
+
|
|
140
|
+
let localVarUseFormData = false;
|
|
141
|
+
|
|
142
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
143
|
+
method: 'POST',
|
|
144
|
+
qs: localVarQueryParameters,
|
|
145
|
+
headers: localVarHeaderParams,
|
|
146
|
+
uri: localVarPath,
|
|
147
|
+
useQuerystring: this._useQuerystring,
|
|
148
|
+
json: true,
|
|
149
|
+
body: ObjectSerializer.serialize(blockDomain, "BlockDomain")
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
let authenticationPromise = Promise.resolve();
|
|
153
|
+
if (this.authentications.apiKey.apiKey) {
|
|
154
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
155
|
+
}
|
|
156
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
157
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
158
|
+
}
|
|
159
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
160
|
+
|
|
161
|
+
let interceptorPromise = authenticationPromise;
|
|
162
|
+
for (const interceptor of this.interceptors) {
|
|
163
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return interceptorPromise.then(() => {
|
|
167
|
+
if (Object.keys(localVarFormParams).length) {
|
|
168
|
+
if (localVarUseFormData) {
|
|
169
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
170
|
+
} else {
|
|
171
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
175
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
176
|
+
if (error) {
|
|
177
|
+
reject(error);
|
|
178
|
+
} else {
|
|
179
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
180
|
+
resolve({ response: response, body: body });
|
|
181
|
+
} else {
|
|
182
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary Create an email template
|
|
192
|
+
* @param smtpTemplate values to update in transactional email template
|
|
193
|
+
*/
|
|
194
|
+
public async createSmtpTemplate (smtpTemplate: CreateSmtpTemplate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateModel; }> {
|
|
195
|
+
const localVarPath = this.basePath + '/smtp/templates';
|
|
196
|
+
let localVarQueryParameters: any = {};
|
|
197
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
198
|
+
const produces = ['application/json'];
|
|
199
|
+
// give precedence to 'application/json'
|
|
200
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
201
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
202
|
+
} else {
|
|
203
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
204
|
+
}
|
|
205
|
+
let localVarFormParams: any = {};
|
|
206
|
+
|
|
207
|
+
// verify required parameter 'smtpTemplate' is not null or undefined
|
|
208
|
+
if (smtpTemplate === null || smtpTemplate === undefined) {
|
|
209
|
+
throw new Error('Required parameter smtpTemplate was null or undefined when calling createSmtpTemplate.');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
213
|
+
|
|
214
|
+
let localVarUseFormData = false;
|
|
215
|
+
|
|
216
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
217
|
+
method: 'POST',
|
|
218
|
+
qs: localVarQueryParameters,
|
|
219
|
+
headers: localVarHeaderParams,
|
|
220
|
+
uri: localVarPath,
|
|
221
|
+
useQuerystring: this._useQuerystring,
|
|
222
|
+
json: true,
|
|
223
|
+
body: ObjectSerializer.serialize(smtpTemplate, "CreateSmtpTemplate")
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
let authenticationPromise = Promise.resolve();
|
|
227
|
+
if (this.authentications.apiKey.apiKey) {
|
|
228
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
229
|
+
}
|
|
230
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
231
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
232
|
+
}
|
|
233
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
234
|
+
|
|
235
|
+
let interceptorPromise = authenticationPromise;
|
|
236
|
+
for (const interceptor of this.interceptors) {
|
|
237
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return interceptorPromise.then(() => {
|
|
241
|
+
if (Object.keys(localVarFormParams).length) {
|
|
242
|
+
if (localVarUseFormData) {
|
|
243
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
244
|
+
} else {
|
|
245
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
return new Promise<{ response: http.IncomingMessage; body: CreateModel; }>((resolve, reject) => {
|
|
249
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
250
|
+
if (error) {
|
|
251
|
+
reject(error);
|
|
252
|
+
} else {
|
|
253
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
254
|
+
body = ObjectSerializer.deserialize(body, "CreateModel");
|
|
255
|
+
resolve({ response: response, body: body });
|
|
256
|
+
} else {
|
|
257
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* Unblocks an existing domain from the list of blocked domains
|
|
266
|
+
* @summary Unblock an existing domain from the list of blocked domains
|
|
267
|
+
* @param domain The name of the domain to be deleted
|
|
268
|
+
*/
|
|
269
|
+
public async deleteBlockedDomain (domain: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
270
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains/{domain}'
|
|
271
|
+
.replace('{' + 'domain' + '}', encodeURIComponent(String(domain)));
|
|
272
|
+
let localVarQueryParameters: any = {};
|
|
273
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
274
|
+
const produces = ['application/json'];
|
|
275
|
+
// give precedence to 'application/json'
|
|
276
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
277
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
278
|
+
} else {
|
|
279
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
280
|
+
}
|
|
281
|
+
let localVarFormParams: any = {};
|
|
282
|
+
|
|
283
|
+
// verify required parameter 'domain' is not null or undefined
|
|
284
|
+
if (domain === null || domain === undefined) {
|
|
285
|
+
throw new Error('Required parameter domain was null or undefined when calling deleteBlockedDomain.');
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
289
|
+
|
|
290
|
+
let localVarUseFormData = false;
|
|
291
|
+
|
|
292
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
293
|
+
method: 'DELETE',
|
|
294
|
+
qs: localVarQueryParameters,
|
|
295
|
+
headers: localVarHeaderParams,
|
|
296
|
+
uri: localVarPath,
|
|
297
|
+
useQuerystring: this._useQuerystring,
|
|
298
|
+
json: true,
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
let authenticationPromise = Promise.resolve();
|
|
302
|
+
if (this.authentications.apiKey.apiKey) {
|
|
303
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
304
|
+
}
|
|
305
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
306
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
307
|
+
}
|
|
308
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
309
|
+
|
|
310
|
+
let interceptorPromise = authenticationPromise;
|
|
311
|
+
for (const interceptor of this.interceptors) {
|
|
312
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return interceptorPromise.then(() => {
|
|
316
|
+
if (Object.keys(localVarFormParams).length) {
|
|
317
|
+
if (localVarUseFormData) {
|
|
318
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
319
|
+
} else {
|
|
320
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
324
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
325
|
+
if (error) {
|
|
326
|
+
reject(error);
|
|
327
|
+
} else {
|
|
328
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
329
|
+
resolve({ response: response, body: body });
|
|
330
|
+
} else {
|
|
331
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)
|
|
340
|
+
* @summary Delete hardbounces
|
|
341
|
+
* @param deleteHardbounces values to delete hardbounces
|
|
342
|
+
*/
|
|
343
|
+
public async deleteHardbounces (deleteHardbounces?: DeleteHardbounces, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
344
|
+
const localVarPath = this.basePath + '/smtp/deleteHardbounces';
|
|
345
|
+
let localVarQueryParameters: any = {};
|
|
346
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
347
|
+
const produces = ['application/json'];
|
|
348
|
+
// give precedence to 'application/json'
|
|
349
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
350
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
351
|
+
} else {
|
|
352
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
353
|
+
}
|
|
354
|
+
let localVarFormParams: any = {};
|
|
355
|
+
|
|
356
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
357
|
+
|
|
358
|
+
let localVarUseFormData = false;
|
|
359
|
+
|
|
360
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
361
|
+
method: 'POST',
|
|
362
|
+
qs: localVarQueryParameters,
|
|
363
|
+
headers: localVarHeaderParams,
|
|
364
|
+
uri: localVarPath,
|
|
365
|
+
useQuerystring: this._useQuerystring,
|
|
366
|
+
json: true,
|
|
367
|
+
body: ObjectSerializer.serialize(deleteHardbounces, "DeleteHardbounces")
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
let authenticationPromise = Promise.resolve();
|
|
371
|
+
if (this.authentications.apiKey.apiKey) {
|
|
372
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
373
|
+
}
|
|
374
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
375
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
376
|
+
}
|
|
377
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
378
|
+
|
|
379
|
+
let interceptorPromise = authenticationPromise;
|
|
380
|
+
for (const interceptor of this.interceptors) {
|
|
381
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
return interceptorPromise.then(() => {
|
|
385
|
+
if (Object.keys(localVarFormParams).length) {
|
|
386
|
+
if (localVarUseFormData) {
|
|
387
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
388
|
+
} else {
|
|
389
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
393
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
394
|
+
if (error) {
|
|
395
|
+
reject(error);
|
|
396
|
+
} else {
|
|
397
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
398
|
+
resolve({ response: response, body: body });
|
|
399
|
+
} else {
|
|
400
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
});
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Delete scheduled batch of emails by batchId or single scheduled email by messageId
|
|
409
|
+
* @summary Delete scheduled emails by batchId or messageId
|
|
410
|
+
* @param identifier The `batchId` of scheduled emails batch (Should be a valid UUIDv4) or the `messageId` of scheduled email.
|
|
411
|
+
*/
|
|
412
|
+
public async deleteScheduledEmailById (identifier: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
413
|
+
const localVarPath = this.basePath + '/smtp/email/{identifier}'
|
|
414
|
+
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
415
|
+
let localVarQueryParameters: any = {};
|
|
416
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
417
|
+
const produces = ['application/json'];
|
|
418
|
+
// give precedence to 'application/json'
|
|
419
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
420
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
421
|
+
} else {
|
|
422
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
423
|
+
}
|
|
424
|
+
let localVarFormParams: any = {};
|
|
425
|
+
|
|
426
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
427
|
+
if (identifier === null || identifier === undefined) {
|
|
428
|
+
throw new Error('Required parameter identifier was null or undefined when calling deleteScheduledEmailById.');
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
432
|
+
|
|
433
|
+
let localVarUseFormData = false;
|
|
434
|
+
|
|
435
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
436
|
+
method: 'DELETE',
|
|
437
|
+
qs: localVarQueryParameters,
|
|
438
|
+
headers: localVarHeaderParams,
|
|
439
|
+
uri: localVarPath,
|
|
440
|
+
useQuerystring: this._useQuerystring,
|
|
441
|
+
json: true,
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
let authenticationPromise = Promise.resolve();
|
|
445
|
+
if (this.authentications.apiKey.apiKey) {
|
|
446
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
447
|
+
}
|
|
448
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
449
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
450
|
+
}
|
|
451
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
452
|
+
|
|
453
|
+
let interceptorPromise = authenticationPromise;
|
|
454
|
+
for (const interceptor of this.interceptors) {
|
|
455
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
return interceptorPromise.then(() => {
|
|
459
|
+
if (Object.keys(localVarFormParams).length) {
|
|
460
|
+
if (localVarUseFormData) {
|
|
461
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
462
|
+
} else {
|
|
463
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
467
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
468
|
+
if (error) {
|
|
469
|
+
reject(error);
|
|
470
|
+
} else {
|
|
471
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
472
|
+
resolve({ response: response, body: body });
|
|
473
|
+
} else {
|
|
474
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Delete an inactive email template
|
|
484
|
+
* @param templateId id of the template
|
|
485
|
+
*/
|
|
486
|
+
public async deleteSmtpTemplate (templateId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
487
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
488
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
489
|
+
let localVarQueryParameters: any = {};
|
|
490
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
491
|
+
const produces = ['application/json'];
|
|
492
|
+
// give precedence to 'application/json'
|
|
493
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
494
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
495
|
+
} else {
|
|
496
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
497
|
+
}
|
|
498
|
+
let localVarFormParams: any = {};
|
|
499
|
+
|
|
500
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
501
|
+
if (templateId === null || templateId === undefined) {
|
|
502
|
+
throw new Error('Required parameter templateId was null or undefined when calling deleteSmtpTemplate.');
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
506
|
+
|
|
507
|
+
let localVarUseFormData = false;
|
|
508
|
+
|
|
509
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
510
|
+
method: 'DELETE',
|
|
511
|
+
qs: localVarQueryParameters,
|
|
512
|
+
headers: localVarHeaderParams,
|
|
513
|
+
uri: localVarPath,
|
|
514
|
+
useQuerystring: this._useQuerystring,
|
|
515
|
+
json: true,
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
let authenticationPromise = Promise.resolve();
|
|
519
|
+
if (this.authentications.apiKey.apiKey) {
|
|
520
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
521
|
+
}
|
|
522
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
523
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
524
|
+
}
|
|
525
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
526
|
+
|
|
527
|
+
let interceptorPromise = authenticationPromise;
|
|
528
|
+
for (const interceptor of this.interceptors) {
|
|
529
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
return interceptorPromise.then(() => {
|
|
533
|
+
if (Object.keys(localVarFormParams).length) {
|
|
534
|
+
if (localVarUseFormData) {
|
|
535
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
536
|
+
} else {
|
|
537
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
541
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
542
|
+
if (error) {
|
|
543
|
+
reject(error);
|
|
544
|
+
} else {
|
|
545
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
546
|
+
resolve({ response: response, body: body });
|
|
547
|
+
} else {
|
|
548
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
});
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* This endpoint will show the aggregated stats for past 90 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
|
|
557
|
+
* @summary Get your transactional email activity aggregated over a period of time
|
|
558
|
+
* @param startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
|
|
559
|
+
* @param endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
|
|
560
|
+
* @param days Number of days in the past including today (positive integer). Not compatible with \'startDate\' and \'endDate\'
|
|
561
|
+
* @param tag Tag of the emails
|
|
562
|
+
*/
|
|
563
|
+
public async getAggregatedSmtpReport (startDate?: string, endDate?: string, days?: number, tag?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAggregatedReport; }> {
|
|
564
|
+
const localVarPath = this.basePath + '/smtp/statistics/aggregatedReport';
|
|
565
|
+
let localVarQueryParameters: any = {};
|
|
566
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
567
|
+
const produces = ['application/json'];
|
|
568
|
+
// give precedence to 'application/json'
|
|
569
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
570
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
571
|
+
} else {
|
|
572
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
573
|
+
}
|
|
574
|
+
let localVarFormParams: any = {};
|
|
575
|
+
|
|
576
|
+
if (startDate !== undefined) {
|
|
577
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
if (endDate !== undefined) {
|
|
581
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
if (days !== undefined) {
|
|
585
|
+
localVarQueryParameters['days'] = ObjectSerializer.serialize(days, "number");
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
if (tag !== undefined) {
|
|
589
|
+
localVarQueryParameters['tag'] = ObjectSerializer.serialize(tag, "string");
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
593
|
+
|
|
594
|
+
let localVarUseFormData = false;
|
|
595
|
+
|
|
596
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
597
|
+
method: 'GET',
|
|
598
|
+
qs: localVarQueryParameters,
|
|
599
|
+
headers: localVarHeaderParams,
|
|
600
|
+
uri: localVarPath,
|
|
601
|
+
useQuerystring: this._useQuerystring,
|
|
602
|
+
json: true,
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
let authenticationPromise = Promise.resolve();
|
|
606
|
+
if (this.authentications.apiKey.apiKey) {
|
|
607
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
608
|
+
}
|
|
609
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
610
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
611
|
+
}
|
|
612
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
613
|
+
|
|
614
|
+
let interceptorPromise = authenticationPromise;
|
|
615
|
+
for (const interceptor of this.interceptors) {
|
|
616
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
return interceptorPromise.then(() => {
|
|
620
|
+
if (Object.keys(localVarFormParams).length) {
|
|
621
|
+
if (localVarUseFormData) {
|
|
622
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
623
|
+
} else {
|
|
624
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
return new Promise<{ response: http.IncomingMessage; body: GetAggregatedReport; }>((resolve, reject) => {
|
|
628
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
629
|
+
if (error) {
|
|
630
|
+
reject(error);
|
|
631
|
+
} else {
|
|
632
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
633
|
+
body = ObjectSerializer.deserialize(body, "GetAggregatedReport");
|
|
634
|
+
resolve({ response: response, body: body });
|
|
635
|
+
} else {
|
|
636
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
});
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Get the list of blocked domains
|
|
645
|
+
* @summary Get the list of blocked domains
|
|
646
|
+
*/
|
|
647
|
+
public async getBlockedDomains (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetBlockedDomains; }> {
|
|
648
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains';
|
|
649
|
+
let localVarQueryParameters: any = {};
|
|
650
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
651
|
+
const produces = ['application/json'];
|
|
652
|
+
// give precedence to 'application/json'
|
|
653
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
654
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
655
|
+
} else {
|
|
656
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
657
|
+
}
|
|
658
|
+
let localVarFormParams: any = {};
|
|
659
|
+
|
|
660
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
661
|
+
|
|
662
|
+
let localVarUseFormData = false;
|
|
663
|
+
|
|
664
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
665
|
+
method: 'GET',
|
|
666
|
+
qs: localVarQueryParameters,
|
|
667
|
+
headers: localVarHeaderParams,
|
|
668
|
+
uri: localVarPath,
|
|
669
|
+
useQuerystring: this._useQuerystring,
|
|
670
|
+
json: true,
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
let authenticationPromise = Promise.resolve();
|
|
674
|
+
if (this.authentications.apiKey.apiKey) {
|
|
675
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
676
|
+
}
|
|
677
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
678
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
679
|
+
}
|
|
680
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
681
|
+
|
|
682
|
+
let interceptorPromise = authenticationPromise;
|
|
683
|
+
for (const interceptor of this.interceptors) {
|
|
684
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
return interceptorPromise.then(() => {
|
|
688
|
+
if (Object.keys(localVarFormParams).length) {
|
|
689
|
+
if (localVarUseFormData) {
|
|
690
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
691
|
+
} else {
|
|
692
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
return new Promise<{ response: http.IncomingMessage; body: GetBlockedDomains; }>((resolve, reject) => {
|
|
696
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
697
|
+
if (error) {
|
|
698
|
+
reject(error);
|
|
699
|
+
} else {
|
|
700
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
701
|
+
body = ObjectSerializer.deserialize(body, "GetBlockedDomains");
|
|
702
|
+
resolve({ response: response, body: body });
|
|
703
|
+
} else {
|
|
704
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
});
|
|
708
|
+
});
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* This endpoint will show the aggregated stats for past 30 days by default if `startDate` and `endDate` OR `days` is not passed. The date range can not exceed 90 days
|
|
713
|
+
* @summary Get all your transactional email activity (unaggregated events)
|
|
714
|
+
* @param limit Number limitation for the result returned
|
|
715
|
+
* @param offset Beginning point in the list to retrieve from.
|
|
716
|
+
* @param startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
|
|
717
|
+
* @param endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
|
|
718
|
+
* @param days Number of days in the past including today (positive integer). Not compatible with \'startDate\' and \'endDate\'
|
|
719
|
+
* @param email Filter the report for a specific email addresses
|
|
720
|
+
* @param event Filter the report for a specific event type
|
|
721
|
+
* @param tags Filter the report for tags (serialized and urlencoded array)
|
|
722
|
+
* @param messageId Filter on a specific message id
|
|
723
|
+
* @param templateId Filter on a specific template id
|
|
724
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
725
|
+
*/
|
|
726
|
+
public async getEmailEventReport (limit?: number, offset?: number, startDate?: string, endDate?: string, days?: number, email?: string, event?: 'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'spam' | 'requests' | 'opened' | 'clicks' | 'invalid' | 'deferred' | 'blocked' | 'unsubscribed' | 'error' | 'loadedByProxy', tags?: string, messageId?: string, templateId?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetEmailEventReport; }> {
|
|
727
|
+
const localVarPath = this.basePath + '/smtp/statistics/events';
|
|
728
|
+
let localVarQueryParameters: any = {};
|
|
729
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
730
|
+
const produces = ['application/json'];
|
|
731
|
+
// give precedence to 'application/json'
|
|
732
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
733
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
734
|
+
} else {
|
|
735
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
736
|
+
}
|
|
737
|
+
let localVarFormParams: any = {};
|
|
738
|
+
|
|
739
|
+
if (limit !== undefined) {
|
|
740
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
if (offset !== undefined) {
|
|
744
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
if (startDate !== undefined) {
|
|
748
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (endDate !== undefined) {
|
|
752
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (days !== undefined) {
|
|
756
|
+
localVarQueryParameters['days'] = ObjectSerializer.serialize(days, "number");
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
if (email !== undefined) {
|
|
760
|
+
localVarQueryParameters['email'] = ObjectSerializer.serialize(email, "string");
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if (event !== undefined) {
|
|
764
|
+
localVarQueryParameters['event'] = ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'spam' | 'requests' | 'opened' | 'clicks' | 'invalid' | 'deferred' | 'blocked' | 'unsubscribed' | 'error' | 'loadedByProxy'");
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (tags !== undefined) {
|
|
768
|
+
localVarQueryParameters['tags'] = ObjectSerializer.serialize(tags, "string");
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
if (messageId !== undefined) {
|
|
772
|
+
localVarQueryParameters['messageId'] = ObjectSerializer.serialize(messageId, "string");
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (templateId !== undefined) {
|
|
776
|
+
localVarQueryParameters['templateId'] = ObjectSerializer.serialize(templateId, "number");
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
if (sort !== undefined) {
|
|
780
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
784
|
+
|
|
785
|
+
let localVarUseFormData = false;
|
|
786
|
+
|
|
787
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
788
|
+
method: 'GET',
|
|
789
|
+
qs: localVarQueryParameters,
|
|
790
|
+
headers: localVarHeaderParams,
|
|
791
|
+
uri: localVarPath,
|
|
792
|
+
useQuerystring: this._useQuerystring,
|
|
793
|
+
json: true,
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
let authenticationPromise = Promise.resolve();
|
|
797
|
+
if (this.authentications.apiKey.apiKey) {
|
|
798
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
799
|
+
}
|
|
800
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
801
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
802
|
+
}
|
|
803
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
804
|
+
|
|
805
|
+
let interceptorPromise = authenticationPromise;
|
|
806
|
+
for (const interceptor of this.interceptors) {
|
|
807
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
return interceptorPromise.then(() => {
|
|
811
|
+
if (Object.keys(localVarFormParams).length) {
|
|
812
|
+
if (localVarUseFormData) {
|
|
813
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
814
|
+
} else {
|
|
815
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return new Promise<{ response: http.IncomingMessage; body: GetEmailEventReport; }>((resolve, reject) => {
|
|
819
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
820
|
+
if (error) {
|
|
821
|
+
reject(error);
|
|
822
|
+
} else {
|
|
823
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
824
|
+
body = ObjectSerializer.deserialize(body, "GetEmailEventReport");
|
|
825
|
+
resolve({ response: response, body: body });
|
|
826
|
+
} else {
|
|
827
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Fetch scheduled batch of emails by batchId (Can retrieve data upto 30 days old)
|
|
836
|
+
* @summary Fetch scheduled emails by batchId
|
|
837
|
+
* @param batchId The batchId of scheduled emails batch (Should be a valid UUIDv4)
|
|
838
|
+
* @param startDate Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
|
|
839
|
+
* @param endDate Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
|
|
840
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
841
|
+
* @param status Filter the records by `status` of the scheduled email batch or message.
|
|
842
|
+
* @param limit Number of documents returned per page
|
|
843
|
+
* @param offset Index of the first document on the page
|
|
844
|
+
*/
|
|
845
|
+
public async getScheduledEmailByBatchId (batchId: string, startDate?: string, endDate?: string, sort?: 'asc' | 'desc', status?: 'processed' | 'inProgress' | 'queued', limit?: number, offset?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetScheduledEmailByBatchId; }> {
|
|
846
|
+
const localVarPath = this.basePath + '/smtp/emailStatus/{batchId}'
|
|
847
|
+
.replace('{' + 'batchId' + '}', encodeURIComponent(String(batchId)));
|
|
848
|
+
let localVarQueryParameters: any = {};
|
|
849
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
850
|
+
const produces = ['application/json'];
|
|
851
|
+
// give precedence to 'application/json'
|
|
852
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
853
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
854
|
+
} else {
|
|
855
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
856
|
+
}
|
|
857
|
+
let localVarFormParams: any = {};
|
|
858
|
+
|
|
859
|
+
// verify required parameter 'batchId' is not null or undefined
|
|
860
|
+
if (batchId === null || batchId === undefined) {
|
|
861
|
+
throw new Error('Required parameter batchId was null or undefined when calling getScheduledEmailByBatchId.');
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
if (startDate !== undefined) {
|
|
865
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
if (endDate !== undefined) {
|
|
869
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
if (sort !== undefined) {
|
|
873
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
if (status !== undefined) {
|
|
877
|
+
localVarQueryParameters['status'] = ObjectSerializer.serialize(status, "'processed' | 'inProgress' | 'queued'");
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
if (limit !== undefined) {
|
|
881
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
if (offset !== undefined) {
|
|
885
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
889
|
+
|
|
890
|
+
let localVarUseFormData = false;
|
|
891
|
+
|
|
892
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
893
|
+
method: 'GET',
|
|
894
|
+
qs: localVarQueryParameters,
|
|
895
|
+
headers: localVarHeaderParams,
|
|
896
|
+
uri: localVarPath,
|
|
897
|
+
useQuerystring: this._useQuerystring,
|
|
898
|
+
json: true,
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
let authenticationPromise = Promise.resolve();
|
|
902
|
+
if (this.authentications.apiKey.apiKey) {
|
|
903
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
904
|
+
}
|
|
905
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
906
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
907
|
+
}
|
|
908
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
909
|
+
|
|
910
|
+
let interceptorPromise = authenticationPromise;
|
|
911
|
+
for (const interceptor of this.interceptors) {
|
|
912
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
return interceptorPromise.then(() => {
|
|
916
|
+
if (Object.keys(localVarFormParams).length) {
|
|
917
|
+
if (localVarUseFormData) {
|
|
918
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
919
|
+
} else {
|
|
920
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
return new Promise<{ response: http.IncomingMessage; body: GetScheduledEmailByBatchId; }>((resolve, reject) => {
|
|
924
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
925
|
+
if (error) {
|
|
926
|
+
reject(error);
|
|
927
|
+
} else {
|
|
928
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
929
|
+
body = ObjectSerializer.deserialize(body, "GetScheduledEmailByBatchId");
|
|
930
|
+
resolve({ response: response, body: body });
|
|
931
|
+
} else {
|
|
932
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
});
|
|
936
|
+
});
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
/**
|
|
940
|
+
* Fetch scheduled email by messageId (Can retrieve data upto 30 days old)
|
|
941
|
+
* @summary Fetch scheduled email by messageId
|
|
942
|
+
* @param messageId The messageId of scheduled email
|
|
943
|
+
* @param startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older tha current date.
|
|
944
|
+
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
|
|
945
|
+
*/
|
|
946
|
+
public async getScheduledEmailByMessageId (messageId: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetScheduledEmailByMessageId; }> {
|
|
947
|
+
const localVarPath = this.basePath + '/smtp/emailStatus/{messageId}'
|
|
948
|
+
.replace('{' + 'messageId' + '}', encodeURIComponent(String(messageId)));
|
|
949
|
+
let localVarQueryParameters: any = {};
|
|
950
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
951
|
+
const produces = ['application/json'];
|
|
952
|
+
// give precedence to 'application/json'
|
|
953
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
954
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
955
|
+
} else {
|
|
956
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
957
|
+
}
|
|
958
|
+
let localVarFormParams: any = {};
|
|
959
|
+
|
|
960
|
+
// verify required parameter 'messageId' is not null or undefined
|
|
961
|
+
if (messageId === null || messageId === undefined) {
|
|
962
|
+
throw new Error('Required parameter messageId was null or undefined when calling getScheduledEmailByMessageId.');
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
if (startDate !== undefined) {
|
|
966
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
if (endDate !== undefined) {
|
|
970
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
974
|
+
|
|
975
|
+
let localVarUseFormData = false;
|
|
976
|
+
|
|
977
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
978
|
+
method: 'GET',
|
|
979
|
+
qs: localVarQueryParameters,
|
|
980
|
+
headers: localVarHeaderParams,
|
|
981
|
+
uri: localVarPath,
|
|
982
|
+
useQuerystring: this._useQuerystring,
|
|
983
|
+
json: true,
|
|
984
|
+
};
|
|
985
|
+
|
|
986
|
+
let authenticationPromise = Promise.resolve();
|
|
987
|
+
if (this.authentications.apiKey.apiKey) {
|
|
988
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
989
|
+
}
|
|
990
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
991
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
992
|
+
}
|
|
993
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
994
|
+
|
|
995
|
+
let interceptorPromise = authenticationPromise;
|
|
996
|
+
for (const interceptor of this.interceptors) {
|
|
997
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
return interceptorPromise.then(() => {
|
|
1001
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1002
|
+
if (localVarUseFormData) {
|
|
1003
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1004
|
+
} else {
|
|
1005
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
return new Promise<{ response: http.IncomingMessage; body: GetScheduledEmailByMessageId; }>((resolve, reject) => {
|
|
1009
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1010
|
+
if (error) {
|
|
1011
|
+
reject(error);
|
|
1012
|
+
} else {
|
|
1013
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1014
|
+
body = ObjectSerializer.deserialize(body, "GetScheduledEmailByMessageId");
|
|
1015
|
+
resolve({ response: response, body: body });
|
|
1016
|
+
} else {
|
|
1017
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
});
|
|
1022
|
+
});
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
*
|
|
1026
|
+
* @summary Get your transactional email activity aggregated per day
|
|
1027
|
+
* @param limit Number of documents returned per page
|
|
1028
|
+
* @param offset Index of the first document on the page
|
|
1029
|
+
* @param startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)
|
|
1030
|
+
* @param endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
|
|
1031
|
+
* @param days Number of days in the past including today (positive integer). Not compatible with \'startDate\' and \'endDate\'
|
|
1032
|
+
* @param tag Tag of the emails
|
|
1033
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1034
|
+
*/
|
|
1035
|
+
public async getSmtpReport (limit?: number, offset?: number, startDate?: string, endDate?: string, days?: number, tag?: string, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetReports; }> {
|
|
1036
|
+
const localVarPath = this.basePath + '/smtp/statistics/reports';
|
|
1037
|
+
let localVarQueryParameters: any = {};
|
|
1038
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1039
|
+
const produces = ['application/json'];
|
|
1040
|
+
// give precedence to 'application/json'
|
|
1041
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1042
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1043
|
+
} else {
|
|
1044
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1045
|
+
}
|
|
1046
|
+
let localVarFormParams: any = {};
|
|
1047
|
+
|
|
1048
|
+
if (limit !== undefined) {
|
|
1049
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
if (offset !== undefined) {
|
|
1053
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
if (startDate !== undefined) {
|
|
1057
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
if (endDate !== undefined) {
|
|
1061
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
if (days !== undefined) {
|
|
1065
|
+
localVarQueryParameters['days'] = ObjectSerializer.serialize(days, "number");
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
if (tag !== undefined) {
|
|
1069
|
+
localVarQueryParameters['tag'] = ObjectSerializer.serialize(tag, "string");
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
if (sort !== undefined) {
|
|
1073
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1077
|
+
|
|
1078
|
+
let localVarUseFormData = false;
|
|
1079
|
+
|
|
1080
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1081
|
+
method: 'GET',
|
|
1082
|
+
qs: localVarQueryParameters,
|
|
1083
|
+
headers: localVarHeaderParams,
|
|
1084
|
+
uri: localVarPath,
|
|
1085
|
+
useQuerystring: this._useQuerystring,
|
|
1086
|
+
json: true,
|
|
1087
|
+
};
|
|
1088
|
+
|
|
1089
|
+
let authenticationPromise = Promise.resolve();
|
|
1090
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1091
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1092
|
+
}
|
|
1093
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1094
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1095
|
+
}
|
|
1096
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1097
|
+
|
|
1098
|
+
let interceptorPromise = authenticationPromise;
|
|
1099
|
+
for (const interceptor of this.interceptors) {
|
|
1100
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
return interceptorPromise.then(() => {
|
|
1104
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1105
|
+
if (localVarUseFormData) {
|
|
1106
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1107
|
+
} else {
|
|
1108
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
return new Promise<{ response: http.IncomingMessage; body: GetReports; }>((resolve, reject) => {
|
|
1112
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1113
|
+
if (error) {
|
|
1114
|
+
reject(error);
|
|
1115
|
+
} else {
|
|
1116
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1117
|
+
body = ObjectSerializer.deserialize(body, "GetReports");
|
|
1118
|
+
resolve({ response: response, body: body });
|
|
1119
|
+
} else {
|
|
1120
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
});
|
|
1124
|
+
});
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
*
|
|
1129
|
+
* @summary Returns the template information
|
|
1130
|
+
* @param templateId id of the template
|
|
1131
|
+
*/
|
|
1132
|
+
public async getSmtpTemplate (templateId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmtpTemplateOverview; }> {
|
|
1133
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
1134
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
1135
|
+
let localVarQueryParameters: any = {};
|
|
1136
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1137
|
+
const produces = ['application/json'];
|
|
1138
|
+
// give precedence to 'application/json'
|
|
1139
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1140
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1141
|
+
} else {
|
|
1142
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1143
|
+
}
|
|
1144
|
+
let localVarFormParams: any = {};
|
|
1145
|
+
|
|
1146
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
1147
|
+
if (templateId === null || templateId === undefined) {
|
|
1148
|
+
throw new Error('Required parameter templateId was null or undefined when calling getSmtpTemplate.');
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1152
|
+
|
|
1153
|
+
let localVarUseFormData = false;
|
|
1154
|
+
|
|
1155
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1156
|
+
method: 'GET',
|
|
1157
|
+
qs: localVarQueryParameters,
|
|
1158
|
+
headers: localVarHeaderParams,
|
|
1159
|
+
uri: localVarPath,
|
|
1160
|
+
useQuerystring: this._useQuerystring,
|
|
1161
|
+
json: true,
|
|
1162
|
+
};
|
|
1163
|
+
|
|
1164
|
+
let authenticationPromise = Promise.resolve();
|
|
1165
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1166
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1167
|
+
}
|
|
1168
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1169
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1170
|
+
}
|
|
1171
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1172
|
+
|
|
1173
|
+
let interceptorPromise = authenticationPromise;
|
|
1174
|
+
for (const interceptor of this.interceptors) {
|
|
1175
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
return interceptorPromise.then(() => {
|
|
1179
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1180
|
+
if (localVarUseFormData) {
|
|
1181
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1182
|
+
} else {
|
|
1183
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
return new Promise<{ response: http.IncomingMessage; body: GetSmtpTemplateOverview; }>((resolve, reject) => {
|
|
1187
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1188
|
+
if (error) {
|
|
1189
|
+
reject(error);
|
|
1190
|
+
} else {
|
|
1191
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1192
|
+
body = ObjectSerializer.deserialize(body, "GetSmtpTemplateOverview");
|
|
1193
|
+
resolve({ response: response, body: body });
|
|
1194
|
+
} else {
|
|
1195
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
});
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
/**
|
|
1203
|
+
*
|
|
1204
|
+
* @summary Get the list of email templates
|
|
1205
|
+
* @param templateStatus Filter on the status of the template. Active = true, inactive = false
|
|
1206
|
+
* @param limit Number of documents returned per page
|
|
1207
|
+
* @param offset Index of the first document in the page
|
|
1208
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1209
|
+
*/
|
|
1210
|
+
public async getSmtpTemplates (templateStatus?: boolean, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSmtpTemplates; }> {
|
|
1211
|
+
const localVarPath = this.basePath + '/smtp/templates';
|
|
1212
|
+
let localVarQueryParameters: any = {};
|
|
1213
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1214
|
+
const produces = ['application/json'];
|
|
1215
|
+
// give precedence to 'application/json'
|
|
1216
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1217
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1218
|
+
} else {
|
|
1219
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1220
|
+
}
|
|
1221
|
+
let localVarFormParams: any = {};
|
|
1222
|
+
|
|
1223
|
+
if (templateStatus !== undefined) {
|
|
1224
|
+
localVarQueryParameters['templateStatus'] = ObjectSerializer.serialize(templateStatus, "boolean");
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
if (limit !== undefined) {
|
|
1228
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (offset !== undefined) {
|
|
1232
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
if (sort !== undefined) {
|
|
1236
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1240
|
+
|
|
1241
|
+
let localVarUseFormData = false;
|
|
1242
|
+
|
|
1243
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1244
|
+
method: 'GET',
|
|
1245
|
+
qs: localVarQueryParameters,
|
|
1246
|
+
headers: localVarHeaderParams,
|
|
1247
|
+
uri: localVarPath,
|
|
1248
|
+
useQuerystring: this._useQuerystring,
|
|
1249
|
+
json: true,
|
|
1250
|
+
};
|
|
1251
|
+
|
|
1252
|
+
let authenticationPromise = Promise.resolve();
|
|
1253
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1254
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1255
|
+
}
|
|
1256
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1257
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1258
|
+
}
|
|
1259
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1260
|
+
|
|
1261
|
+
let interceptorPromise = authenticationPromise;
|
|
1262
|
+
for (const interceptor of this.interceptors) {
|
|
1263
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
return interceptorPromise.then(() => {
|
|
1267
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1268
|
+
if (localVarUseFormData) {
|
|
1269
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1270
|
+
} else {
|
|
1271
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
return new Promise<{ response: http.IncomingMessage; body: GetSmtpTemplates; }>((resolve, reject) => {
|
|
1275
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1276
|
+
if (error) {
|
|
1277
|
+
reject(error);
|
|
1278
|
+
} else {
|
|
1279
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1280
|
+
body = ObjectSerializer.deserialize(body, "GetSmtpTemplates");
|
|
1281
|
+
resolve({ response: response, body: body });
|
|
1282
|
+
} else {
|
|
1283
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
});
|
|
1287
|
+
});
|
|
1288
|
+
});
|
|
1289
|
+
}
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @summary Get the list of blocked or unsubscribed transactional contacts
|
|
1293
|
+
* @param startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts
|
|
1294
|
+
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts
|
|
1295
|
+
* @param limit Number of documents returned per page
|
|
1296
|
+
* @param offset Index of the first document on the page
|
|
1297
|
+
* @param senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
|
|
1298
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1299
|
+
*/
|
|
1300
|
+
public async getTransacBlockedContacts (startDate?: string, endDate?: string, limit?: number, offset?: number, senders?: Array<string>, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetTransacBlockedContacts; }> {
|
|
1301
|
+
const localVarPath = this.basePath + '/smtp/blockedContacts';
|
|
1302
|
+
let localVarQueryParameters: any = {};
|
|
1303
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1304
|
+
const produces = ['application/json'];
|
|
1305
|
+
// give precedence to 'application/json'
|
|
1306
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1307
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1308
|
+
} else {
|
|
1309
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1310
|
+
}
|
|
1311
|
+
let localVarFormParams: any = {};
|
|
1312
|
+
|
|
1313
|
+
if (startDate !== undefined) {
|
|
1314
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
if (endDate !== undefined) {
|
|
1318
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
if (limit !== undefined) {
|
|
1322
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
if (offset !== undefined) {
|
|
1326
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
if (senders !== undefined) {
|
|
1330
|
+
localVarQueryParameters['senders'] = ObjectSerializer.serialize(senders, "Array<string>");
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
if (sort !== undefined) {
|
|
1334
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1338
|
+
|
|
1339
|
+
let localVarUseFormData = false;
|
|
1340
|
+
|
|
1341
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1342
|
+
method: 'GET',
|
|
1343
|
+
qs: localVarQueryParameters,
|
|
1344
|
+
headers: localVarHeaderParams,
|
|
1345
|
+
uri: localVarPath,
|
|
1346
|
+
useQuerystring: this._useQuerystring,
|
|
1347
|
+
json: true,
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
let authenticationPromise = Promise.resolve();
|
|
1351
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1352
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1353
|
+
}
|
|
1354
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1355
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1356
|
+
}
|
|
1357
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1358
|
+
|
|
1359
|
+
let interceptorPromise = authenticationPromise;
|
|
1360
|
+
for (const interceptor of this.interceptors) {
|
|
1361
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
return interceptorPromise.then(() => {
|
|
1365
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1366
|
+
if (localVarUseFormData) {
|
|
1367
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1368
|
+
} else {
|
|
1369
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
return new Promise<{ response: http.IncomingMessage; body: GetTransacBlockedContacts; }>((resolve, reject) => {
|
|
1373
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1374
|
+
if (error) {
|
|
1375
|
+
reject(error);
|
|
1376
|
+
} else {
|
|
1377
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1378
|
+
body = ObjectSerializer.deserialize(body, "GetTransacBlockedContacts");
|
|
1379
|
+
resolve({ response: response, body: body });
|
|
1380
|
+
} else {
|
|
1381
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
*
|
|
1390
|
+
* @summary Get the personalized content of a sent transactional email
|
|
1391
|
+
* @param uuid Unique id of the transactional email that has been sent to a particular contact
|
|
1392
|
+
*/
|
|
1393
|
+
public async getTransacEmailContent (uuid: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetTransacEmailContent; }> {
|
|
1394
|
+
const localVarPath = this.basePath + '/smtp/emails/{uuid}'
|
|
1395
|
+
.replace('{' + 'uuid' + '}', encodeURIComponent(String(uuid)));
|
|
1396
|
+
let localVarQueryParameters: any = {};
|
|
1397
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1398
|
+
const produces = ['application/json'];
|
|
1399
|
+
// give precedence to 'application/json'
|
|
1400
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1401
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1402
|
+
} else {
|
|
1403
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1404
|
+
}
|
|
1405
|
+
let localVarFormParams: any = {};
|
|
1406
|
+
|
|
1407
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
1408
|
+
if (uuid === null || uuid === undefined) {
|
|
1409
|
+
throw new Error('Required parameter uuid was null or undefined when calling getTransacEmailContent.');
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1413
|
+
|
|
1414
|
+
let localVarUseFormData = false;
|
|
1415
|
+
|
|
1416
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1417
|
+
method: 'GET',
|
|
1418
|
+
qs: localVarQueryParameters,
|
|
1419
|
+
headers: localVarHeaderParams,
|
|
1420
|
+
uri: localVarPath,
|
|
1421
|
+
useQuerystring: this._useQuerystring,
|
|
1422
|
+
json: true,
|
|
1423
|
+
};
|
|
1424
|
+
|
|
1425
|
+
let authenticationPromise = Promise.resolve();
|
|
1426
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1427
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1428
|
+
}
|
|
1429
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1430
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1431
|
+
}
|
|
1432
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1433
|
+
|
|
1434
|
+
let interceptorPromise = authenticationPromise;
|
|
1435
|
+
for (const interceptor of this.interceptors) {
|
|
1436
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
return interceptorPromise.then(() => {
|
|
1440
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1441
|
+
if (localVarUseFormData) {
|
|
1442
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1443
|
+
} else {
|
|
1444
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
return new Promise<{ response: http.IncomingMessage; body: GetTransacEmailContent; }>((resolve, reject) => {
|
|
1448
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1449
|
+
if (error) {
|
|
1450
|
+
reject(error);
|
|
1451
|
+
} else {
|
|
1452
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1453
|
+
body = ObjectSerializer.deserialize(body, "GetTransacEmailContent");
|
|
1454
|
+
resolve({ response: response, body: body });
|
|
1455
|
+
} else {
|
|
1456
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
});
|
|
1460
|
+
});
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters.
|
|
1465
|
+
* @summary Get the list of transactional emails on the basis of allowed filters
|
|
1466
|
+
* @param email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent.
|
|
1467
|
+
* @param templateId Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email.
|
|
1468
|
+
* @param messageId Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
|
|
1469
|
+
* @param startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month.
|
|
1470
|
+
* @param endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
|
|
1471
|
+
* @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
|
1472
|
+
* @param limit Number of documents returned per page
|
|
1473
|
+
* @param offset Index of the first document in the page
|
|
1474
|
+
*/
|
|
1475
|
+
public async getTransacEmailsList (email?: string, templateId?: number, messageId?: string, startDate?: string, endDate?: string, sort?: 'asc' | 'desc', limit?: number, offset?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetTransacEmailsList; }> {
|
|
1476
|
+
const localVarPath = this.basePath + '/smtp/emails';
|
|
1477
|
+
let localVarQueryParameters: any = {};
|
|
1478
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1479
|
+
const produces = ['application/json'];
|
|
1480
|
+
// give precedence to 'application/json'
|
|
1481
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1482
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1483
|
+
} else {
|
|
1484
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1485
|
+
}
|
|
1486
|
+
let localVarFormParams: any = {};
|
|
1487
|
+
|
|
1488
|
+
if (email !== undefined) {
|
|
1489
|
+
localVarQueryParameters['email'] = ObjectSerializer.serialize(email, "string");
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
if (templateId !== undefined) {
|
|
1493
|
+
localVarQueryParameters['templateId'] = ObjectSerializer.serialize(templateId, "number");
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
if (messageId !== undefined) {
|
|
1497
|
+
localVarQueryParameters['messageId'] = ObjectSerializer.serialize(messageId, "string");
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
if (startDate !== undefined) {
|
|
1501
|
+
localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
if (endDate !== undefined) {
|
|
1505
|
+
localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
if (sort !== undefined) {
|
|
1509
|
+
localVarQueryParameters['sort'] = ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
if (limit !== undefined) {
|
|
1513
|
+
localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
if (offset !== undefined) {
|
|
1517
|
+
localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1521
|
+
|
|
1522
|
+
let localVarUseFormData = false;
|
|
1523
|
+
|
|
1524
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1525
|
+
method: 'GET',
|
|
1526
|
+
qs: localVarQueryParameters,
|
|
1527
|
+
headers: localVarHeaderParams,
|
|
1528
|
+
uri: localVarPath,
|
|
1529
|
+
useQuerystring: this._useQuerystring,
|
|
1530
|
+
json: true,
|
|
1531
|
+
};
|
|
1532
|
+
|
|
1533
|
+
let authenticationPromise = Promise.resolve();
|
|
1534
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1535
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1536
|
+
}
|
|
1537
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1538
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1539
|
+
}
|
|
1540
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1541
|
+
|
|
1542
|
+
let interceptorPromise = authenticationPromise;
|
|
1543
|
+
for (const interceptor of this.interceptors) {
|
|
1544
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
return interceptorPromise.then(() => {
|
|
1548
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1549
|
+
if (localVarUseFormData) {
|
|
1550
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1551
|
+
} else {
|
|
1552
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
return new Promise<{ response: http.IncomingMessage; body: GetTransacEmailsList; }>((resolve, reject) => {
|
|
1556
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1557
|
+
if (error) {
|
|
1558
|
+
reject(error);
|
|
1559
|
+
} else {
|
|
1560
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1561
|
+
body = ObjectSerializer.deserialize(body, "GetTransacEmailsList");
|
|
1562
|
+
resolve({ response: response, body: body });
|
|
1563
|
+
} else {
|
|
1564
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
});
|
|
1568
|
+
});
|
|
1569
|
+
});
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @summary Send a template to your test list
|
|
1574
|
+
* @param templateId Id of the template
|
|
1575
|
+
* @param sendTestEmail
|
|
1576
|
+
*/
|
|
1577
|
+
public async sendTestTemplate (templateId: number, sendTestEmail: SendTestEmail, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1578
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}/sendTest'
|
|
1579
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
1580
|
+
let localVarQueryParameters: any = {};
|
|
1581
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1582
|
+
const produces = ['application/json'];
|
|
1583
|
+
// give precedence to 'application/json'
|
|
1584
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1585
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1586
|
+
} else {
|
|
1587
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1588
|
+
}
|
|
1589
|
+
let localVarFormParams: any = {};
|
|
1590
|
+
|
|
1591
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
1592
|
+
if (templateId === null || templateId === undefined) {
|
|
1593
|
+
throw new Error('Required parameter templateId was null or undefined when calling sendTestTemplate.');
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
// verify required parameter 'sendTestEmail' is not null or undefined
|
|
1597
|
+
if (sendTestEmail === null || sendTestEmail === undefined) {
|
|
1598
|
+
throw new Error('Required parameter sendTestEmail was null or undefined when calling sendTestTemplate.');
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1602
|
+
|
|
1603
|
+
let localVarUseFormData = false;
|
|
1604
|
+
|
|
1605
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1606
|
+
method: 'POST',
|
|
1607
|
+
qs: localVarQueryParameters,
|
|
1608
|
+
headers: localVarHeaderParams,
|
|
1609
|
+
uri: localVarPath,
|
|
1610
|
+
useQuerystring: this._useQuerystring,
|
|
1611
|
+
json: true,
|
|
1612
|
+
body: ObjectSerializer.serialize(sendTestEmail, "SendTestEmail")
|
|
1613
|
+
};
|
|
1614
|
+
|
|
1615
|
+
let authenticationPromise = Promise.resolve();
|
|
1616
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1617
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1618
|
+
}
|
|
1619
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1620
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1621
|
+
}
|
|
1622
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1623
|
+
|
|
1624
|
+
let interceptorPromise = authenticationPromise;
|
|
1625
|
+
for (const interceptor of this.interceptors) {
|
|
1626
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1629
|
+
return interceptorPromise.then(() => {
|
|
1630
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1631
|
+
if (localVarUseFormData) {
|
|
1632
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1633
|
+
} else {
|
|
1634
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1638
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1639
|
+
if (error) {
|
|
1640
|
+
reject(error);
|
|
1641
|
+
} else {
|
|
1642
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1643
|
+
resolve({ response: response, body: body });
|
|
1644
|
+
} else {
|
|
1645
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
});
|
|
1650
|
+
});
|
|
1651
|
+
}
|
|
1652
|
+
/**
|
|
1653
|
+
*
|
|
1654
|
+
* @summary Send a transactional email
|
|
1655
|
+
* @param sendSmtpEmail Values to send a transactional email
|
|
1656
|
+
*/
|
|
1657
|
+
public async sendTransacEmail (sendSmtpEmail: SendSmtpEmail, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateSmtpEmail; }> {
|
|
1658
|
+
const localVarPath = this.basePath + '/smtp/email';
|
|
1659
|
+
let localVarQueryParameters: any = {};
|
|
1660
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1661
|
+
const produces = ['application/json'];
|
|
1662
|
+
// give precedence to 'application/json'
|
|
1663
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1664
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1665
|
+
} else {
|
|
1666
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1667
|
+
}
|
|
1668
|
+
let localVarFormParams: any = {};
|
|
1669
|
+
|
|
1670
|
+
// verify required parameter 'sendSmtpEmail' is not null or undefined
|
|
1671
|
+
if (sendSmtpEmail === null || sendSmtpEmail === undefined) {
|
|
1672
|
+
throw new Error('Required parameter sendSmtpEmail was null or undefined when calling sendTransacEmail.');
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1676
|
+
|
|
1677
|
+
let localVarUseFormData = false;
|
|
1678
|
+
|
|
1679
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1680
|
+
method: 'POST',
|
|
1681
|
+
qs: localVarQueryParameters,
|
|
1682
|
+
headers: localVarHeaderParams,
|
|
1683
|
+
uri: localVarPath,
|
|
1684
|
+
useQuerystring: this._useQuerystring,
|
|
1685
|
+
json: true,
|
|
1686
|
+
body: ObjectSerializer.serialize(sendSmtpEmail, "SendSmtpEmail")
|
|
1687
|
+
};
|
|
1688
|
+
|
|
1689
|
+
let authenticationPromise = Promise.resolve();
|
|
1690
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1691
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1692
|
+
}
|
|
1693
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1694
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1695
|
+
}
|
|
1696
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1697
|
+
|
|
1698
|
+
let interceptorPromise = authenticationPromise;
|
|
1699
|
+
for (const interceptor of this.interceptors) {
|
|
1700
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
return interceptorPromise.then(() => {
|
|
1704
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1705
|
+
if (localVarUseFormData) {
|
|
1706
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1707
|
+
} else {
|
|
1708
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1709
|
+
}
|
|
1710
|
+
}
|
|
1711
|
+
return new Promise<{ response: http.IncomingMessage; body: CreateSmtpEmail; }>((resolve, reject) => {
|
|
1712
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1713
|
+
if (error) {
|
|
1714
|
+
reject(error);
|
|
1715
|
+
} else {
|
|
1716
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1717
|
+
body = ObjectSerializer.deserialize(body, "CreateSmtpEmail");
|
|
1718
|
+
resolve({ response: response, body: body });
|
|
1719
|
+
} else {
|
|
1720
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
});
|
|
1724
|
+
});
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
*
|
|
1729
|
+
* @summary Unblock or resubscribe a transactional contact
|
|
1730
|
+
* @param email contact email (urlencoded) to unblock.
|
|
1731
|
+
*/
|
|
1732
|
+
public async smtpBlockedContactsEmailDelete (email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1733
|
+
const localVarPath = this.basePath + '/smtp/blockedContacts/{email}'
|
|
1734
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1735
|
+
let localVarQueryParameters: any = {};
|
|
1736
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1737
|
+
const produces = ['application/json'];
|
|
1738
|
+
// give precedence to 'application/json'
|
|
1739
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1740
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1741
|
+
} else {
|
|
1742
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1743
|
+
}
|
|
1744
|
+
let localVarFormParams: any = {};
|
|
1745
|
+
|
|
1746
|
+
// verify required parameter 'email' is not null or undefined
|
|
1747
|
+
if (email === null || email === undefined) {
|
|
1748
|
+
throw new Error('Required parameter email was null or undefined when calling smtpBlockedContactsEmailDelete.');
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1752
|
+
|
|
1753
|
+
let localVarUseFormData = false;
|
|
1754
|
+
|
|
1755
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1756
|
+
method: 'DELETE',
|
|
1757
|
+
qs: localVarQueryParameters,
|
|
1758
|
+
headers: localVarHeaderParams,
|
|
1759
|
+
uri: localVarPath,
|
|
1760
|
+
useQuerystring: this._useQuerystring,
|
|
1761
|
+
json: true,
|
|
1762
|
+
};
|
|
1763
|
+
|
|
1764
|
+
let authenticationPromise = Promise.resolve();
|
|
1765
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1766
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1767
|
+
}
|
|
1768
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1769
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1770
|
+
}
|
|
1771
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1772
|
+
|
|
1773
|
+
let interceptorPromise = authenticationPromise;
|
|
1774
|
+
for (const interceptor of this.interceptors) {
|
|
1775
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
return interceptorPromise.then(() => {
|
|
1779
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1780
|
+
if (localVarUseFormData) {
|
|
1781
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1782
|
+
} else {
|
|
1783
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1787
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1788
|
+
if (error) {
|
|
1789
|
+
reject(error);
|
|
1790
|
+
} else {
|
|
1791
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1792
|
+
resolve({ response: response, body: body });
|
|
1793
|
+
} else {
|
|
1794
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1795
|
+
}
|
|
1796
|
+
}
|
|
1797
|
+
});
|
|
1798
|
+
});
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
*
|
|
1803
|
+
* @summary Delete an SMTP transactional log
|
|
1804
|
+
* @param identifier MessageId or Email of the transactional log(s) to delete
|
|
1805
|
+
*/
|
|
1806
|
+
public async smtpLogIdentifierDelete (identifier: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1807
|
+
const localVarPath = this.basePath + '/smtp/log/{identifier}'
|
|
1808
|
+
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
1809
|
+
let localVarQueryParameters: any = {};
|
|
1810
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1811
|
+
const produces = ['application/json'];
|
|
1812
|
+
// give precedence to 'application/json'
|
|
1813
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1814
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1815
|
+
} else {
|
|
1816
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1817
|
+
}
|
|
1818
|
+
let localVarFormParams: any = {};
|
|
1819
|
+
|
|
1820
|
+
// verify required parameter 'identifier' is not null or undefined
|
|
1821
|
+
if (identifier === null || identifier === undefined) {
|
|
1822
|
+
throw new Error('Required parameter identifier was null or undefined when calling smtpLogIdentifierDelete.');
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1826
|
+
|
|
1827
|
+
let localVarUseFormData = false;
|
|
1828
|
+
|
|
1829
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1830
|
+
method: 'DELETE',
|
|
1831
|
+
qs: localVarQueryParameters,
|
|
1832
|
+
headers: localVarHeaderParams,
|
|
1833
|
+
uri: localVarPath,
|
|
1834
|
+
useQuerystring: this._useQuerystring,
|
|
1835
|
+
json: true,
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
let authenticationPromise = Promise.resolve();
|
|
1839
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1840
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1841
|
+
}
|
|
1842
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1843
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1844
|
+
}
|
|
1845
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1846
|
+
|
|
1847
|
+
let interceptorPromise = authenticationPromise;
|
|
1848
|
+
for (const interceptor of this.interceptors) {
|
|
1849
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
return interceptorPromise.then(() => {
|
|
1853
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1854
|
+
if (localVarUseFormData) {
|
|
1855
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1856
|
+
} else {
|
|
1857
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1861
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1862
|
+
if (error) {
|
|
1863
|
+
reject(error);
|
|
1864
|
+
} else {
|
|
1865
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1866
|
+
resolve({ response: response, body: body });
|
|
1867
|
+
} else {
|
|
1868
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1869
|
+
}
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
});
|
|
1873
|
+
});
|
|
1874
|
+
}
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @summary Update an email template
|
|
1878
|
+
* @param templateId id of the template
|
|
1879
|
+
* @param smtpTemplate values to update in transactional email template
|
|
1880
|
+
*/
|
|
1881
|
+
public async updateSmtpTemplate (templateId: number, smtpTemplate: UpdateSmtpTemplate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
|
|
1882
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
1883
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
1884
|
+
let localVarQueryParameters: any = {};
|
|
1885
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
1886
|
+
const produces = ['application/json'];
|
|
1887
|
+
// give precedence to 'application/json'
|
|
1888
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1889
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1890
|
+
} else {
|
|
1891
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1892
|
+
}
|
|
1893
|
+
let localVarFormParams: any = {};
|
|
1894
|
+
|
|
1895
|
+
// verify required parameter 'templateId' is not null or undefined
|
|
1896
|
+
if (templateId === null || templateId === undefined) {
|
|
1897
|
+
throw new Error('Required parameter templateId was null or undefined when calling updateSmtpTemplate.');
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1900
|
+
// verify required parameter 'smtpTemplate' is not null or undefined
|
|
1901
|
+
if (smtpTemplate === null || smtpTemplate === undefined) {
|
|
1902
|
+
throw new Error('Required parameter smtpTemplate was null or undefined when calling updateSmtpTemplate.');
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
1906
|
+
|
|
1907
|
+
let localVarUseFormData = false;
|
|
1908
|
+
|
|
1909
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
1910
|
+
method: 'PUT',
|
|
1911
|
+
qs: localVarQueryParameters,
|
|
1912
|
+
headers: localVarHeaderParams,
|
|
1913
|
+
uri: localVarPath,
|
|
1914
|
+
useQuerystring: this._useQuerystring,
|
|
1915
|
+
json: true,
|
|
1916
|
+
body: ObjectSerializer.serialize(smtpTemplate, "UpdateSmtpTemplate")
|
|
1917
|
+
};
|
|
1918
|
+
|
|
1919
|
+
let authenticationPromise = Promise.resolve();
|
|
1920
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1921
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1922
|
+
}
|
|
1923
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1924
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1925
|
+
}
|
|
1926
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1927
|
+
|
|
1928
|
+
let interceptorPromise = authenticationPromise;
|
|
1929
|
+
for (const interceptor of this.interceptors) {
|
|
1930
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
return interceptorPromise.then(() => {
|
|
1934
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1935
|
+
if (localVarUseFormData) {
|
|
1936
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
1937
|
+
} else {
|
|
1938
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
|
|
1942
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1943
|
+
if (error) {
|
|
1944
|
+
reject(error);
|
|
1945
|
+
} else {
|
|
1946
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1947
|
+
resolve({ response: response, body: body });
|
|
1948
|
+
} else {
|
|
1949
|
+
reject(new HttpError(response, body, response.statusCode));
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
});
|
|
1953
|
+
});
|
|
1954
|
+
});
|
|
1955
|
+
}
|
|
1956
|
+
}
|