@getbrevo/brevo 2.0.0-beta.2 → 2.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -646
- package/api/apis.ts +0 -2
- package/dist/api/accountApi.d.ts +46 -0
- package/dist/api/accountApi.js +212 -0
- package/dist/api/accountApi.js.map +1 -0
- package/dist/api/apis.d.ts +60 -0
- package/dist/api/apis.js +79 -0
- package/dist/api/apis.js.map +1 -0
- package/dist/api/companiesApi.d.ts +91 -0
- package/dist/api/companiesApi.js +562 -0
- package/dist/api/companiesApi.js.map +1 -0
- package/dist/api/contactsApi.d.ts +287 -0
- package/dist/api/contactsApi.js +2119 -0
- package/dist/api/contactsApi.js.map +1 -0
- package/dist/api/conversationsApi.d.ts +106 -0
- package/dist/api/conversationsApi.js +679 -0
- package/dist/api/conversationsApi.js.map +1 -0
- package/dist/api/couponsApi.d.ts +74 -0
- package/dist/api/couponsApi.js +417 -0
- package/dist/api/couponsApi.js.map +1 -0
- package/dist/api/dealsApi.d.ts +116 -0
- package/dist/api/dealsApi.js +754 -0
- package/dist/api/dealsApi.js.map +1 -0
- package/dist/api/domainsApi.d.ts +73 -0
- package/dist/api/domainsApi.js +401 -0
- package/dist/api/domainsApi.js.map +1 -0
- package/dist/api/ecommerceApi.d.ts +130 -0
- package/dist/api/ecommerceApi.js +847 -0
- package/dist/api/ecommerceApi.js.map +1 -0
- package/dist/api/emailCampaignsApi.d.ts +146 -0
- package/dist/api/emailCampaignsApi.js +982 -0
- package/dist/api/emailCampaignsApi.js.map +1 -0
- package/dist/api/externalFeedsApi.d.ts +73 -0
- package/dist/api/externalFeedsApi.js +428 -0
- package/dist/api/externalFeedsApi.js.map +1 -0
- package/dist/api/filesApi.d.ts +71 -0
- package/dist/api/filesApi.js +437 -0
- package/dist/api/filesApi.js.map +1 -0
- package/dist/api/inboundParsingApi.d.ts +55 -0
- package/dist/api/inboundParsingApi.js +289 -0
- package/dist/api/inboundParsingApi.js.map +1 -0
- package/dist/api/masterAccountApi.d.ts +120 -0
- package/dist/api/masterAccountApi.js +761 -0
- package/dist/api/masterAccountApi.js.map +1 -0
- package/dist/api/notesApi.d.ts +71 -0
- package/dist/api/notesApi.js +428 -0
- package/dist/api/notesApi.js.map +1 -0
- package/dist/api/processApi.d.ts +46 -0
- package/dist/api/processApi.js +213 -0
- package/dist/api/processApi.js.map +1 -0
- package/dist/api/resellerApi.d.ts +171 -0
- package/dist/api/resellerApi.js +1177 -0
- package/dist/api/resellerApi.js.map +1 -0
- package/dist/api/sMSCampaignsApi.d.ts +118 -0
- package/dist/api/sMSCampaignsApi.js +769 -0
- package/dist/api/sMSCampaignsApi.js.map +1 -0
- package/dist/api/sendersApi.d.ts +91 -0
- package/dist/api/sendersApi.js +537 -0
- package/dist/api/sendersApi.js.map +1 -0
- package/dist/api/tasksApi.d.ts +82 -0
- package/dist/api/tasksApi.js +509 -0
- package/dist/api/tasksApi.js.map +1 -0
- package/dist/api/transactionalEmailsApi.d.ts +223 -0
- package/dist/api/transactionalEmailsApi.js +1660 -0
- package/dist/api/transactionalEmailsApi.js.map +1 -0
- package/dist/api/transactionalSMSApi.d.ts +65 -0
- package/dist/api/transactionalSMSApi.js +384 -0
- package/dist/api/transactionalSMSApi.js.map +1 -0
- package/dist/api/transactionalWhatsAppApi.d.ts +47 -0
- package/dist/api/transactionalWhatsAppApi.js +228 -0
- package/dist/api/transactionalWhatsAppApi.js.map +1 -0
- package/dist/api/userApi.d.ts +81 -0
- package/dist/api/userApi.js +476 -0
- package/dist/api/userApi.js.map +1 -0
- package/dist/api/webhooksApi.d.ts +83 -0
- package/dist/api/webhooksApi.js +480 -0
- package/dist/api/webhooksApi.js.map +1 -0
- package/dist/api/whatsAppCampaignsApi.d.ts +108 -0
- package/dist/api/whatsAppCampaignsApi.js +693 -0
- package/dist/api/whatsAppCampaignsApi.js.map +1 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +19 -0
- package/dist/api.js.map +1 -0
- package/dist/model/abTestCampaignResult.d.ts +36 -0
- package/dist/model/abTestCampaignResult.js +68 -0
- package/dist/model/abTestCampaignResult.js.map +1 -0
- package/dist/model/abTestCampaignResultClickedLinks.d.ts +16 -0
- package/dist/model/abTestCampaignResultClickedLinks.js +23 -0
- package/dist/model/abTestCampaignResultClickedLinks.js.map +1 -0
- package/dist/model/abTestCampaignResultStatistics.d.ts +20 -0
- package/dist/model/abTestCampaignResultStatistics.js +43 -0
- package/dist/model/abTestCampaignResultStatistics.js.map +1 -0
- package/dist/model/abTestVersionClicksInner.d.ts +16 -0
- package/dist/model/abTestVersionClicksInner.js +28 -0
- package/dist/model/abTestVersionClicksInner.js.map +1 -0
- package/dist/model/abTestVersionStats.d.ts +15 -0
- package/dist/model/abTestVersionStats.js +23 -0
- package/dist/model/abTestVersionStats.js.map +1 -0
- package/dist/model/addChildDomain.d.ts +14 -0
- package/dist/model/addChildDomain.js +18 -0
- package/dist/model/addChildDomain.js.map +1 -0
- package/dist/model/addContactToList.d.ts +15 -0
- package/dist/model/addContactToList.js +23 -0
- package/dist/model/addContactToList.js.map +1 -0
- package/dist/model/addCredits.d.ts +15 -0
- package/dist/model/addCredits.js +23 -0
- package/dist/model/addCredits.js.map +1 -0
- package/dist/model/authenticateDomainModel.d.ts +15 -0
- package/dist/model/authenticateDomainModel.js +23 -0
- package/dist/model/authenticateDomainModel.js.map +1 -0
- package/dist/model/blockDomain.d.ts +14 -0
- package/dist/model/blockDomain.js +18 -0
- package/dist/model/blockDomain.js.map +1 -0
- package/dist/model/companiesIdPatchRequest.d.ts +16 -0
- package/dist/model/companiesIdPatchRequest.js +28 -0
- package/dist/model/companiesIdPatchRequest.js.map +1 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.d.ts +17 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.js +33 -0
- package/dist/model/companiesLinkUnlinkIdPatchRequest.js.map +1 -0
- package/dist/model/companiesList.d.ts +15 -0
- package/dist/model/companiesList.js +18 -0
- package/dist/model/companiesList.js.map +1 -0
- package/dist/model/companiesPost200Response.d.ts +14 -0
- package/dist/model/companiesPost200Response.js +18 -0
- package/dist/model/companiesPost200Response.js.map +1 -0
- package/dist/model/companiesPostRequest.d.ts +16 -0
- package/dist/model/companiesPostRequest.js +28 -0
- package/dist/model/companiesPostRequest.js.map +1 -0
- package/dist/model/company.d.ts +17 -0
- package/dist/model/company.js +33 -0
- package/dist/model/company.js.map +1 -0
- package/dist/model/companyAttributesInner.d.ts +18 -0
- package/dist/model/companyAttributesInner.js +38 -0
- package/dist/model/companyAttributesInner.js.map +1 -0
- package/dist/model/componentItems.d.ts +15 -0
- package/dist/model/componentItems.js +23 -0
- package/dist/model/componentItems.js.map +1 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.d.ts +17 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.js +33 -0
- package/dist/model/conversationsAgentOnlinePingPostRequest.js.map +1 -0
- package/dist/model/conversationsMessage.d.ts +30 -0
- package/dist/model/conversationsMessage.js +70 -0
- package/dist/model/conversationsMessage.js.map +1 -0
- package/dist/model/conversationsMessageFile.d.ts +19 -0
- package/dist/model/conversationsMessageFile.js +38 -0
- package/dist/model/conversationsMessageFile.js.map +1 -0
- package/dist/model/conversationsMessageFileImageInfo.d.ts +16 -0
- package/dist/model/conversationsMessageFileImageInfo.js +28 -0
- package/dist/model/conversationsMessageFileImageInfo.js.map +1 -0
- package/dist/model/conversationsMessagesIdPutRequest.d.ts +14 -0
- package/dist/model/conversationsMessagesIdPutRequest.js +18 -0
- package/dist/model/conversationsMessagesIdPutRequest.js.map +1 -0
- package/dist/model/conversationsMessagesPostRequest.d.ts +19 -0
- package/dist/model/conversationsMessagesPostRequest.js +43 -0
- package/dist/model/conversationsMessagesPostRequest.js.map +1 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.d.ts +14 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.js +18 -0
- package/dist/model/conversationsPushedMessagesIdPutRequest.js.map +1 -0
- package/dist/model/conversationsPushedMessagesPostRequest.d.ts +17 -0
- package/dist/model/conversationsPushedMessagesPostRequest.js +33 -0
- package/dist/model/conversationsPushedMessagesPostRequest.js.map +1 -0
- package/dist/model/createApiKeyRequest.d.ts +15 -0
- package/dist/model/createApiKeyRequest.js +23 -0
- package/dist/model/createApiKeyRequest.js.map +1 -0
- package/dist/model/createApiKeyResponse.d.ts +15 -0
- package/dist/model/createApiKeyResponse.js +23 -0
- package/dist/model/createApiKeyResponse.js.map +1 -0
- package/dist/model/createAttribute.d.ts +28 -0
- package/dist/model/createAttribute.js +44 -0
- package/dist/model/createAttribute.js.map +1 -0
- package/dist/model/createAttributeEnumerationInner.d.ts +15 -0
- package/dist/model/createAttributeEnumerationInner.js +23 -0
- package/dist/model/createAttributeEnumerationInner.js.map +1 -0
- package/dist/model/createCategoryModel.d.ts +14 -0
- package/dist/model/createCategoryModel.js +18 -0
- package/dist/model/createCategoryModel.js.map +1 -0
- package/dist/model/createChild.d.ts +29 -0
- package/dist/model/createChild.js +54 -0
- package/dist/model/createChild.js.map +1 -0
- package/dist/model/createContact.d.ts +21 -0
- package/dist/model/createContact.js +56 -0
- package/dist/model/createContact.js.map +1 -0
- package/dist/model/createCouponCollection201Response.d.ts +14 -0
- package/dist/model/createCouponCollection201Response.js +18 -0
- package/dist/model/createCouponCollection201Response.js.map +1 -0
- package/dist/model/createCouponCollectionRequest.d.ts +15 -0
- package/dist/model/createCouponCollectionRequest.js +23 -0
- package/dist/model/createCouponCollectionRequest.js.map +1 -0
- package/dist/model/createCouponsRequest.d.ts +15 -0
- package/dist/model/createCouponsRequest.js +23 -0
- package/dist/model/createCouponsRequest.js.map +1 -0
- package/dist/model/createDoiContact.d.ts +19 -0
- package/dist/model/createDoiContact.js +43 -0
- package/dist/model/createDoiContact.js.map +1 -0
- package/dist/model/createDomain.d.ts +14 -0
- package/dist/model/createDomain.js +18 -0
- package/dist/model/createDomain.js.map +1 -0
- package/dist/model/createDomainModel.d.ts +18 -0
- package/dist/model/createDomainModel.js +33 -0
- package/dist/model/createDomainModel.js.map +1 -0
- package/dist/model/createDomainModelDnsRecords.d.ts +16 -0
- package/dist/model/createDomainModelDnsRecords.js +23 -0
- package/dist/model/createDomainModelDnsRecords.js.map +1 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.d.ts +17 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.js +33 -0
- package/dist/model/createDomainModelDnsRecordsDkimRecord.js.map +1 -0
- package/dist/model/createEmailCampaign.d.ts +52 -0
- package/dist/model/createEmailCampaign.js +181 -0
- package/dist/model/createEmailCampaign.js.map +1 -0
- package/dist/model/createEmailCampaignRecipients.d.ts +16 -0
- package/dist/model/createEmailCampaignRecipients.js +28 -0
- package/dist/model/createEmailCampaignRecipients.js.map +1 -0
- package/dist/model/createEmailCampaignSender.d.ts +16 -0
- package/dist/model/createEmailCampaignSender.js +28 -0
- package/dist/model/createEmailCampaignSender.js.map +1 -0
- package/dist/model/createExternalFeed.d.ts +30 -0
- package/dist/model/createExternalFeed.js +70 -0
- package/dist/model/createExternalFeed.js.map +1 -0
- package/dist/model/createExternalFeed201Response.d.ts +14 -0
- package/dist/model/createExternalFeed201Response.js +18 -0
- package/dist/model/createExternalFeed201Response.js.map +1 -0
- package/dist/model/createList.d.ts +15 -0
- package/dist/model/createList.js +23 -0
- package/dist/model/createList.js.map +1 -0
- package/dist/model/createModel.d.ts +14 -0
- package/dist/model/createModel.js +18 -0
- package/dist/model/createModel.js.map +1 -0
- package/dist/model/createProductModel.d.ts +14 -0
- package/dist/model/createProductModel.js +18 -0
- package/dist/model/createProductModel.js.map +1 -0
- package/dist/model/createReseller.d.ts +15 -0
- package/dist/model/createReseller.js +23 -0
- package/dist/model/createReseller.js.map +1 -0
- package/dist/model/createSender.d.ts +17 -0
- package/dist/model/createSender.js +28 -0
- package/dist/model/createSender.js.map +1 -0
- package/dist/model/createSenderIpsInner.d.ts +16 -0
- package/dist/model/createSenderIpsInner.js +28 -0
- package/dist/model/createSenderIpsInner.js.map +1 -0
- package/dist/model/createSenderModel.d.ts +16 -0
- package/dist/model/createSenderModel.js +28 -0
- package/dist/model/createSenderModel.js.map +1 -0
- package/dist/model/createSmsCampaign.d.ts +22 -0
- package/dist/model/createSmsCampaign.js +56 -0
- package/dist/model/createSmsCampaign.js.map +1 -0
- package/dist/model/createSmsCampaignRecipients.d.ts +15 -0
- package/dist/model/createSmsCampaignRecipients.js +23 -0
- package/dist/model/createSmsCampaignRecipients.js.map +1 -0
- package/dist/model/createSmtpEmail.d.ts +15 -0
- package/dist/model/createSmtpEmail.js +23 -0
- package/dist/model/createSmtpEmail.js.map +1 -0
- package/dist/model/createSmtpTemplate.d.ts +24 -0
- package/dist/model/createSmtpTemplate.js +63 -0
- package/dist/model/createSmtpTemplate.js.map +1 -0
- package/dist/model/createSmtpTemplateSender.d.ts +16 -0
- package/dist/model/createSmtpTemplateSender.js +28 -0
- package/dist/model/createSmtpTemplateSender.js.map +1 -0
- package/dist/model/createSubAccount.d.ts +27 -0
- package/dist/model/createSubAccount.js +44 -0
- package/dist/model/createSubAccount.js.map +1 -0
- package/dist/model/createSubAccountResponse.d.ts +14 -0
- package/dist/model/createSubAccountResponse.js +18 -0
- package/dist/model/createSubAccountResponse.js.map +1 -0
- package/dist/model/createUpdateBatchCategory.d.ts +16 -0
- package/dist/model/createUpdateBatchCategory.js +23 -0
- package/dist/model/createUpdateBatchCategory.js.map +1 -0
- package/dist/model/createUpdateBatchCategoryModel.d.ts +15 -0
- package/dist/model/createUpdateBatchCategoryModel.js +23 -0
- package/dist/model/createUpdateBatchCategoryModel.js.map +1 -0
- package/dist/model/createUpdateBatchProducts.d.ts +16 -0
- package/dist/model/createUpdateBatchProducts.js +23 -0
- package/dist/model/createUpdateBatchProducts.js.map +1 -0
- package/dist/model/createUpdateBatchProductsModel.d.ts +15 -0
- package/dist/model/createUpdateBatchProductsModel.js +23 -0
- package/dist/model/createUpdateBatchProductsModel.js.map +1 -0
- package/dist/model/createUpdateCategories.d.ts +17 -0
- package/dist/model/createUpdateCategories.js +33 -0
- package/dist/model/createUpdateCategories.js.map +1 -0
- package/dist/model/createUpdateCategory.d.ts +18 -0
- package/dist/model/createUpdateCategory.js +41 -0
- package/dist/model/createUpdateCategory.js.map +1 -0
- package/dist/model/createUpdateContactModel.d.ts +14 -0
- package/dist/model/createUpdateContactModel.js +18 -0
- package/dist/model/createUpdateContactModel.js.map +1 -0
- package/dist/model/createUpdateFolder.d.ts +14 -0
- package/dist/model/createUpdateFolder.js +18 -0
- package/dist/model/createUpdateFolder.js.map +1 -0
- package/dist/model/createUpdateProduct.d.ts +26 -0
- package/dist/model/createUpdateProduct.js +71 -0
- package/dist/model/createUpdateProduct.js.map +1 -0
- package/dist/model/createUpdateProducts.d.ts +25 -0
- package/dist/model/createUpdateProducts.js +63 -0
- package/dist/model/createUpdateProducts.js.map +1 -0
- package/dist/model/createWebhook.d.ts +44 -0
- package/dist/model/createWebhook.js +69 -0
- package/dist/model/createWebhook.js.map +1 -0
- package/dist/model/createWhatsAppCampaign.d.ts +18 -0
- package/dist/model/createWhatsAppCampaign.js +33 -0
- package/dist/model/createWhatsAppCampaign.js.map +1 -0
- package/dist/model/createWhatsAppCampaignRecipients.d.ts +16 -0
- package/dist/model/createWhatsAppCampaignRecipients.js +28 -0
- package/dist/model/createWhatsAppCampaignRecipients.js.map +1 -0
- package/dist/model/createWhatsAppTemplate.d.ts +30 -0
- package/dist/model/createWhatsAppTemplate.js +60 -0
- package/dist/model/createWhatsAppTemplate.js.map +1 -0
- package/dist/model/createdBatchId.d.ts +14 -0
- package/dist/model/createdBatchId.js +18 -0
- package/dist/model/createdBatchId.js.map +1 -0
- package/dist/model/createdProcessId.d.ts +14 -0
- package/dist/model/createdProcessId.js +18 -0
- package/dist/model/createdProcessId.js.map +1 -0
- package/dist/model/crmDealsIdPatchRequest.d.ts +15 -0
- package/dist/model/crmDealsIdPatchRequest.js +23 -0
- package/dist/model/crmDealsIdPatchRequest.js.map +1 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.d.ts +17 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js +33 -0
- package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js.map +1 -0
- package/dist/model/crmDealsPost201Response.d.ts +14 -0
- package/dist/model/crmDealsPost201Response.js +18 -0
- package/dist/model/crmDealsPost201Response.js.map +1 -0
- package/dist/model/crmDealsPostRequest.d.ts +15 -0
- package/dist/model/crmDealsPostRequest.js +23 -0
- package/dist/model/crmDealsPostRequest.js.map +1 -0
- package/dist/model/crmTasksIdPatchRequest.d.ts +23 -0
- package/dist/model/crmTasksIdPatchRequest.js +63 -0
- package/dist/model/crmTasksIdPatchRequest.js.map +1 -0
- package/dist/model/crmTasksPost201Response.d.ts +14 -0
- package/dist/model/crmTasksPost201Response.js +18 -0
- package/dist/model/crmTasksPost201Response.js.map +1 -0
- package/dist/model/crmTasksPostRequest.d.ts +25 -0
- package/dist/model/crmTasksPostRequest.js +68 -0
- package/dist/model/crmTasksPostRequest.js.map +1 -0
- package/dist/model/deal.d.ts +17 -0
- package/dist/model/deal.js +33 -0
- package/dist/model/deal.js.map +1 -0
- package/dist/model/dealAttributesInner.d.ts +18 -0
- package/dist/model/dealAttributesInner.js +38 -0
- package/dist/model/dealAttributesInner.js.map +1 -0
- package/dist/model/dealsList.d.ts +15 -0
- package/dist/model/dealsList.js +18 -0
- package/dist/model/dealsList.js.map +1 -0
- package/dist/model/deleteHardbounces.d.ts +16 -0
- package/dist/model/deleteHardbounces.js +28 -0
- package/dist/model/deleteHardbounces.js.map +1 -0
- package/dist/model/emailExportRecipients.d.ts +27 -0
- package/dist/model/emailExportRecipients.js +36 -0
- package/dist/model/emailExportRecipients.js.map +1 -0
- package/dist/model/errorModel.d.ts +35 -0
- package/dist/model/errorModel.js +44 -0
- package/dist/model/errorModel.js.map +1 -0
- package/dist/model/exportWebhooksHistory.d.ts +48 -0
- package/dist/model/exportWebhooksHistory.js +90 -0
- package/dist/model/exportWebhooksHistory.js.map +1 -0
- package/dist/model/fileData.d.ts +20 -0
- package/dist/model/fileData.js +48 -0
- package/dist/model/fileData.js.map +1 -0
- package/dist/model/fileDownloadableLink.d.ts +14 -0
- package/dist/model/fileDownloadableLink.js +18 -0
- package/dist/model/fileDownloadableLink.js.map +1 -0
- package/dist/model/getAccount.d.ts +25 -0
- package/dist/model/getAccount.js +53 -0
- package/dist/model/getAccount.js.map +1 -0
- package/dist/model/getAccountActivity.d.ts +15 -0
- package/dist/model/getAccountActivity.js +18 -0
- package/dist/model/getAccountActivity.js.map +1 -0
- package/dist/model/getAccountActivityLogsInner.d.ts +18 -0
- package/dist/model/getAccountActivityLogsInner.js +38 -0
- package/dist/model/getAccountActivityLogsInner.js.map +1 -0
- package/dist/model/getAccountAllOfMarketingAutomation.d.ts +15 -0
- package/dist/model/getAccountAllOfMarketingAutomation.js +23 -0
- package/dist/model/getAccountAllOfMarketingAutomation.js.map +1 -0
- package/dist/model/getAccountAllOfPlan.d.ts +31 -0
- package/dist/model/getAccountAllOfPlan.js +57 -0
- package/dist/model/getAccountAllOfPlan.js.map +1 -0
- package/dist/model/getAccountAllOfRelay.d.ts +16 -0
- package/dist/model/getAccountAllOfRelay.js +23 -0
- package/dist/model/getAccountAllOfRelay.js.map +1 -0
- package/dist/model/getAccountAllOfRelayData.d.ts +16 -0
- package/dist/model/getAccountAllOfRelayData.js +28 -0
- package/dist/model/getAccountAllOfRelayData.js.map +1 -0
- package/dist/model/getAggregatedReport.d.ts +26 -0
- package/dist/model/getAggregatedReport.js +78 -0
- package/dist/model/getAggregatedReport.js.map +1 -0
- package/dist/model/getAllExternalFeeds.d.ts +16 -0
- package/dist/model/getAllExternalFeeds.js +23 -0
- package/dist/model/getAllExternalFeeds.js.map +1 -0
- package/dist/model/getAllExternalFeedsFeedsInner.d.ts +33 -0
- package/dist/model/getAllExternalFeedsFeedsInner.js +81 -0
- package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -0
- package/dist/model/getAttributes.d.ts +15 -0
- package/dist/model/getAttributes.js +18 -0
- package/dist/model/getAttributes.js.map +1 -0
- package/dist/model/getAttributesAttributesInner.d.ts +35 -0
- package/dist/model/getAttributesAttributesInner.js +56 -0
- package/dist/model/getAttributesAttributesInner.js.map +1 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.d.ts +15 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.js +23 -0
- package/dist/model/getAttributesAttributesInnerEnumerationInner.js.map +1 -0
- package/dist/model/getBlockedDomains.d.ts +14 -0
- package/dist/model/getBlockedDomains.js +18 -0
- package/dist/model/getBlockedDomains.js.map +1 -0
- package/dist/model/getCampaignOverview.d.ts +41 -0
- package/dist/model/getCampaignOverview.js +99 -0
- package/dist/model/getCampaignOverview.js.map +1 -0
- package/dist/model/getCampaignRecipients.d.ts +15 -0
- package/dist/model/getCampaignRecipients.js +23 -0
- package/dist/model/getCampaignRecipients.js.map +1 -0
- package/dist/model/getCampaignStats.d.ts +29 -0
- package/dist/model/getCampaignStats.js +93 -0
- package/dist/model/getCampaignStats.js.map +1 -0
- package/dist/model/getCategories.d.ts +16 -0
- package/dist/model/getCategories.js +23 -0
- package/dist/model/getCategories.js.map +1 -0
- package/dist/model/getCategoryDetails.d.ts +19 -0
- package/dist/model/getCategoryDetails.js +43 -0
- package/dist/model/getCategoryDetails.js.map +1 -0
- package/dist/model/getChildAccountCreationStatus.d.ts +14 -0
- package/dist/model/getChildAccountCreationStatus.js +18 -0
- package/dist/model/getChildAccountCreationStatus.js.map +1 -0
- package/dist/model/getChildDomain.d.ts +15 -0
- package/dist/model/getChildDomain.js +23 -0
- package/dist/model/getChildDomain.js.map +1 -0
- package/dist/model/getChildInfo.d.ts +25 -0
- package/dist/model/getChildInfo.js +58 -0
- package/dist/model/getChildInfo.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeys.d.ts +17 -0
- package/dist/model/getChildInfoAllOfApiKeys.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeys.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.d.ts +15 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeysV2.js.map +1 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.d.ts +15 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.js +23 -0
- package/dist/model/getChildInfoAllOfApiKeysV3.js.map +1 -0
- package/dist/model/getChildInfoAllOfCredits.d.ts +15 -0
- package/dist/model/getChildInfoAllOfCredits.js +23 -0
- package/dist/model/getChildInfoAllOfCredits.js.map +1 -0
- package/dist/model/getChildInfoAllOfStatistics.d.ts +16 -0
- package/dist/model/getChildInfoAllOfStatistics.js +28 -0
- package/dist/model/getChildInfoAllOfStatistics.js.map +1 -0
- package/dist/model/getChildrenList.d.ts +16 -0
- package/dist/model/getChildrenList.js +23 -0
- package/dist/model/getChildrenList.js.map +1 -0
- package/dist/model/getChildrenListChildrenInner.d.ts +26 -0
- package/dist/model/getChildrenListChildrenInner.js +63 -0
- package/dist/model/getChildrenListChildrenInner.js.map +1 -0
- package/dist/model/getClient.d.ts +17 -0
- package/dist/model/getClient.js +33 -0
- package/dist/model/getClient.js.map +1 -0
- package/dist/model/getContactCampaignStats.d.ts +27 -0
- package/dist/model/getContactCampaignStats.js +58 -0
- package/dist/model/getContactCampaignStats.js.map +1 -0
- package/dist/model/getContactCampaignStatsClickedInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsClickedInner.js +23 -0
- package/dist/model/getContactCampaignStatsClickedInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.d.ts +17 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js +33 -0
- package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.d.ts +15 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.js +23 -0
- package/dist/model/getContactCampaignStatsMessagesSentInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsOpenedInner.d.ts +17 -0
- package/dist/model/getContactCampaignStatsOpenedInner.js +33 -0
- package/dist/model/getContactCampaignStatsOpenedInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.js +28 -0
- package/dist/model/getContactCampaignStatsTransacAttributesInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +17 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.js +23 -0
- package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.d.ts +15 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js +23 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js.map +1 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.d.ts +16 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js +28 -0
- package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js.map +1 -0
- package/dist/model/getContactDetails.d.ts +22 -0
- package/dist/model/getContactDetails.js +58 -0
- package/dist/model/getContactDetails.js.map +1 -0
- package/dist/model/getContacts.d.ts +16 -0
- package/dist/model/getContacts.js +23 -0
- package/dist/model/getContacts.js.map +1 -0
- package/dist/model/getCouponCollection.d.ts +19 -0
- package/dist/model/getCouponCollection.js +43 -0
- package/dist/model/getCouponCollection.js.map +1 -0
- package/dist/model/getDeviceBrowserStats.d.ts +17 -0
- package/dist/model/getDeviceBrowserStats.js +33 -0
- package/dist/model/getDeviceBrowserStats.js.map +1 -0
- package/dist/model/getDomainConfigurationModel.d.ts +18 -0
- package/dist/model/getDomainConfigurationModel.js +33 -0
- package/dist/model/getDomainConfigurationModel.js.map +1 -0
- package/dist/model/getDomainsList.d.ts +15 -0
- package/dist/model/getDomainsList.js +18 -0
- package/dist/model/getDomainsList.js.map +1 -0
- package/dist/model/getDomainsListDomainsInner.d.ts +18 -0
- package/dist/model/getDomainsListDomainsInner.js +38 -0
- package/dist/model/getDomainsListDomainsInner.js.map +1 -0
- package/dist/model/getEmailCampaign.d.ts +62 -0
- package/dist/model/getEmailCampaign.js +189 -0
- package/dist/model/getEmailCampaign.js.map +1 -0
- package/dist/model/getEmailCampaigns.d.ts +16 -0
- package/dist/model/getEmailCampaigns.js +23 -0
- package/dist/model/getEmailCampaigns.js.map +1 -0
- package/dist/model/getEmailCampaignsCampaignsInner.d.ts +62 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js +189 -0
- package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getEmailEventReport.d.ts +15 -0
- package/dist/model/getEmailEventReport.js +18 -0
- package/dist/model/getEmailEventReport.js.map +1 -0
- package/dist/model/getEmailEventReportEventsInner.d.ts +42 -0
- package/dist/model/getEmailEventReportEventsInner.js +87 -0
- package/dist/model/getEmailEventReportEventsInner.js.map +1 -0
- package/dist/model/getExtendedCampaignOverview.d.ts +58 -0
- package/dist/model/getExtendedCampaignOverview.js +179 -0
- package/dist/model/getExtendedCampaignOverview.js.map +1 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.d.ts +16 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.js +28 -0
- package/dist/model/getExtendedCampaignOverviewAllOfSender.js.map +1 -0
- package/dist/model/getExtendedCampaignStats.d.ts +28 -0
- package/dist/model/getExtendedCampaignStats.js +53 -0
- package/dist/model/getExtendedCampaignStats.js.map +1 -0
- package/dist/model/getExtendedClient.d.ts +19 -0
- package/dist/model/getExtendedClient.js +38 -0
- package/dist/model/getExtendedClient.js.map +1 -0
- package/dist/model/getExtendedClientAllOfAddress.d.ts +17 -0
- package/dist/model/getExtendedClientAllOfAddress.js +33 -0
- package/dist/model/getExtendedClientAllOfAddress.js.map +1 -0
- package/dist/model/getExtendedContactDetails.d.ts +24 -0
- package/dist/model/getExtendedContactDetails.js +63 -0
- package/dist/model/getExtendedContactDetails.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.d.ts +26 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.js +58 -0
- package/dist/model/getExtendedContactDetailsAllOfStatistics.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.d.ts +16 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js +33 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.d.ts +15 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js +33 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.d.ts +17 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.d.ts +15 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js +23 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js.map +1 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.d.ts +16 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js +28 -0
- package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js.map +1 -0
- package/dist/model/getExtendedList.d.ts +23 -0
- package/dist/model/getExtendedList.js +58 -0
- package/dist/model/getExtendedList.js.map +1 -0
- package/dist/model/getExtendedListAllOfCampaignStats.d.ts +16 -0
- package/dist/model/getExtendedListAllOfCampaignStats.js +23 -0
- package/dist/model/getExtendedListAllOfCampaignStats.js.map +1 -0
- package/dist/model/getExternalFeedByUUID.d.ts +33 -0
- package/dist/model/getExternalFeedByUUID.js +81 -0
- package/dist/model/getExternalFeedByUUID.js.map +1 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.d.ts +15 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.js +23 -0
- package/dist/model/getExternalFeedByUUIDHeadersInner.js.map +1 -0
- package/dist/model/getFolder.d.ts +18 -0
- package/dist/model/getFolder.js +38 -0
- package/dist/model/getFolder.js.map +1 -0
- package/dist/model/getFolderLists.d.ts +16 -0
- package/dist/model/getFolderLists.js +23 -0
- package/dist/model/getFolderLists.js.map +1 -0
- package/dist/model/getFolders.d.ts +16 -0
- package/dist/model/getFolders.js +23 -0
- package/dist/model/getFolders.js.map +1 -0
- package/dist/model/getInboundEmailEvents.d.ts +15 -0
- package/dist/model/getInboundEmailEvents.js +18 -0
- package/dist/model/getInboundEmailEvents.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuid.d.ts +23 -0
- package/dist/model/getInboundEmailEventsByUuid.js +53 -0
- package/dist/model/getInboundEmailEventsByUuid.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.d.ts +17 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js +33 -0
- package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js.map +1 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.d.ts +23 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js +32 -0
- package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -0
- package/dist/model/getInboundEmailEventsEventsInner.d.ts +17 -0
- package/dist/model/getInboundEmailEventsEventsInner.js +33 -0
- package/dist/model/getInboundEmailEventsEventsInner.js.map +1 -0
- package/dist/model/getInvitedUsersList.d.ts +15 -0
- package/dist/model/getInvitedUsersList.js +18 -0
- package/dist/model/getInvitedUsersList.js.map +1 -0
- package/dist/model/getInvitedUsersListUsersInner.d.ts +18 -0
- package/dist/model/getInvitedUsersListUsersInner.js +33 -0
- package/dist/model/getInvitedUsersListUsersInner.js.map +1 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.d.ts +16 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js +28 -0
- package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
- package/dist/model/getIp.d.ts +17 -0
- package/dist/model/getIp.js +33 -0
- package/dist/model/getIp.js.map +1 -0
- package/dist/model/getIpFromSender.d.ts +17 -0
- package/dist/model/getIpFromSender.js +33 -0
- package/dist/model/getIpFromSender.js.map +1 -0
- package/dist/model/getIps.d.ts +15 -0
- package/dist/model/getIps.js +18 -0
- package/dist/model/getIps.js.map +1 -0
- package/dist/model/getIpsFromSender.d.ts +15 -0
- package/dist/model/getIpsFromSender.js +18 -0
- package/dist/model/getIpsFromSender.js.map +1 -0
- package/dist/model/getList.d.ts +18 -0
- package/dist/model/getList.js +38 -0
- package/dist/model/getList.js.map +1 -0
- package/dist/model/getLists.d.ts +16 -0
- package/dist/model/getLists.js +23 -0
- package/dist/model/getLists.js.map +1 -0
- package/dist/model/getListsListsInner.d.ts +19 -0
- package/dist/model/getListsListsInner.js +43 -0
- package/dist/model/getListsListsInner.js.map +1 -0
- package/dist/model/getProcess.d.ts +24 -0
- package/dist/model/getProcess.js +41 -0
- package/dist/model/getProcess.js.map +1 -0
- package/dist/model/getProcesses.d.ts +16 -0
- package/dist/model/getProcesses.js +23 -0
- package/dist/model/getProcesses.js.map +1 -0
- package/dist/model/getProductDetails.d.ts +28 -0
- package/dist/model/getProductDetails.js +88 -0
- package/dist/model/getProductDetails.js.map +1 -0
- package/dist/model/getProducts.d.ts +16 -0
- package/dist/model/getProducts.js +23 -0
- package/dist/model/getProducts.js.map +1 -0
- package/dist/model/getReports.d.ts +15 -0
- package/dist/model/getReports.js +18 -0
- package/dist/model/getReports.js.map +1 -0
- package/dist/model/getReportsReportsInner.d.ts +26 -0
- package/dist/model/getReportsReportsInner.js +78 -0
- package/dist/model/getReportsReportsInner.js.map +1 -0
- package/dist/model/getScheduledEmailByBatchId.d.ts +16 -0
- package/dist/model/getScheduledEmailByBatchId.js +23 -0
- package/dist/model/getScheduledEmailByBatchId.js.map +1 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.d.ts +24 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +37 -0
- package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -0
- package/dist/model/getScheduledEmailByMessageId.d.ts +24 -0
- package/dist/model/getScheduledEmailByMessageId.js +37 -0
- package/dist/model/getScheduledEmailByMessageId.js.map +1 -0
- package/dist/model/getSegments.d.ts +16 -0
- package/dist/model/getSegments.js +23 -0
- package/dist/model/getSegments.js.map +1 -0
- package/dist/model/getSegmentsSegments.d.ts +17 -0
- package/dist/model/getSegmentsSegments.js +33 -0
- package/dist/model/getSegmentsSegments.js.map +1 -0
- package/dist/model/getSendersList.d.ts +15 -0
- package/dist/model/getSendersList.js +18 -0
- package/dist/model/getSendersList.js.map +1 -0
- package/dist/model/getSendersListSendersInner.d.ts +19 -0
- package/dist/model/getSendersListSendersInner.js +38 -0
- package/dist/model/getSendersListSendersInner.js.map +1 -0
- package/dist/model/getSendersListSendersInnerIpsInner.d.ts +16 -0
- package/dist/model/getSendersListSendersInnerIpsInner.js +28 -0
- package/dist/model/getSendersListSendersInnerIpsInner.js.map +1 -0
- package/dist/model/getSharedTemplateUrl.d.ts +14 -0
- package/dist/model/getSharedTemplateUrl.js +18 -0
- package/dist/model/getSharedTemplateUrl.js.map +1 -0
- package/dist/model/getSmsCampaign.d.ts +35 -0
- package/dist/model/getSmsCampaign.js +74 -0
- package/dist/model/getSmsCampaign.js.map +1 -0
- package/dist/model/getSmsCampaignOverview.d.ts +31 -0
- package/dist/model/getSmsCampaignOverview.js +64 -0
- package/dist/model/getSmsCampaignOverview.js.map +1 -0
- package/dist/model/getSmsCampaignStats.d.ts +20 -0
- package/dist/model/getSmsCampaignStats.js +48 -0
- package/dist/model/getSmsCampaignStats.js.map +1 -0
- package/dist/model/getSmsCampaigns.d.ts +16 -0
- package/dist/model/getSmsCampaigns.js +23 -0
- package/dist/model/getSmsCampaigns.js.map +1 -0
- package/dist/model/getSmsCampaignsCampaignsInner.d.ts +35 -0
- package/dist/model/getSmsCampaignsCampaignsInner.js +74 -0
- package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getSmsEventReport.d.ts +15 -0
- package/dist/model/getSmsEventReport.js +18 -0
- package/dist/model/getSmsEventReport.js.map +1 -0
- package/dist/model/getSmsEventReportEventsInner.d.ts +34 -0
- package/dist/model/getSmsEventReportEventsInner.js +63 -0
- package/dist/model/getSmsEventReportEventsInner.js.map +1 -0
- package/dist/model/getSmtpTemplateOverview.d.ts +27 -0
- package/dist/model/getSmtpTemplateOverview.js +78 -0
- package/dist/model/getSmtpTemplateOverview.js.map +1 -0
- package/dist/model/getSmtpTemplateOverviewSender.d.ts +16 -0
- package/dist/model/getSmtpTemplateOverviewSender.js +28 -0
- package/dist/model/getSmtpTemplateOverviewSender.js.map +1 -0
- package/dist/model/getSmtpTemplates.d.ts +16 -0
- package/dist/model/getSmtpTemplates.js +23 -0
- package/dist/model/getSmtpTemplates.js.map +1 -0
- package/dist/model/getSsoToken.d.ts +14 -0
- package/dist/model/getSsoToken.js +18 -0
- package/dist/model/getSsoToken.js.map +1 -0
- package/dist/model/getStatsByDevice.d.ts +26 -0
- package/dist/model/getStatsByDevice.js +33 -0
- package/dist/model/getStatsByDevice.js.map +1 -0
- package/dist/model/getTransacAggregatedSmsReport.d.ts +23 -0
- package/dist/model/getTransacAggregatedSmsReport.js +63 -0
- package/dist/model/getTransacAggregatedSmsReport.js.map +1 -0
- package/dist/model/getTransacBlockedContacts.d.ts +16 -0
- package/dist/model/getTransacBlockedContacts.js +23 -0
- package/dist/model/getTransacBlockedContacts.js.map +1 -0
- package/dist/model/getTransacBlockedContactsContactsInner.d.ts +18 -0
- package/dist/model/getTransacBlockedContactsContactsInner.js +33 -0
- package/dist/model/getTransacBlockedContactsContactsInner.js.map +1 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.d.ts +25 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js +34 -0
- package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -0
- package/dist/model/getTransacEmailContent.d.ts +21 -0
- package/dist/model/getTransacEmailContent.js +48 -0
- package/dist/model/getTransacEmailContent.js.map +1 -0
- package/dist/model/getTransacEmailContentEventsInner.d.ts +15 -0
- package/dist/model/getTransacEmailContentEventsInner.js +23 -0
- package/dist/model/getTransacEmailContentEventsInner.js.map +1 -0
- package/dist/model/getTransacEmailsList.d.ts +16 -0
- package/dist/model/getTransacEmailsList.js +23 -0
- package/dist/model/getTransacEmailsList.js.map +1 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.d.ts +21 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.js +53 -0
- package/dist/model/getTransacEmailsListTransactionalEmailsInner.js.map +1 -0
- package/dist/model/getTransacSmsReport.d.ts +15 -0
- package/dist/model/getTransacSmsReport.js +18 -0
- package/dist/model/getTransacSmsReport.js.map +1 -0
- package/dist/model/getTransacSmsReportReportsInner.d.ts +23 -0
- package/dist/model/getTransacSmsReportReportsInner.js +63 -0
- package/dist/model/getTransacSmsReportReportsInner.js.map +1 -0
- package/dist/model/getUserPermission.d.ts +17 -0
- package/dist/model/getUserPermission.js +28 -0
- package/dist/model/getUserPermission.js.map +1 -0
- package/dist/model/getUserPermissionPrivilegesInner.d.ts +15 -0
- package/dist/model/getUserPermissionPrivilegesInner.js +23 -0
- package/dist/model/getUserPermissionPrivilegesInner.js.map +1 -0
- package/dist/model/getWATemplates.d.ts +16 -0
- package/dist/model/getWATemplates.js +23 -0
- package/dist/model/getWATemplates.js.map +1 -0
- package/dist/model/getWATemplatesTemplatesInner.d.ts +21 -0
- package/dist/model/getWATemplatesTemplatesInner.js +53 -0
- package/dist/model/getWATemplatesTemplatesInner.js.map +1 -0
- package/dist/model/getWebhook.d.ts +26 -0
- package/dist/model/getWebhook.js +55 -0
- package/dist/model/getWebhook.js.map +1 -0
- package/dist/model/getWebhooks.d.ts +15 -0
- package/dist/model/getWebhooks.js +18 -0
- package/dist/model/getWebhooks.js.map +1 -0
- package/dist/model/getWhatsAppConfig.d.ts +31 -0
- package/dist/model/getWhatsAppConfig.js +57 -0
- package/dist/model/getWhatsAppConfig.js.map +1 -0
- package/dist/model/getWhatsappCampaignOverview.d.ts +36 -0
- package/dist/model/getWhatsappCampaignOverview.js +71 -0
- package/dist/model/getWhatsappCampaignOverview.js.map +1 -0
- package/dist/model/getWhatsappCampaigns.d.ts +16 -0
- package/dist/model/getWhatsappCampaigns.js +23 -0
- package/dist/model/getWhatsappCampaigns.js.map +1 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.d.ts +37 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.js +81 -0
- package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -0
- package/dist/model/getWhatsappEventReport.d.ts +15 -0
- package/dist/model/getWhatsappEventReport.js +18 -0
- package/dist/model/getWhatsappEventReport.js.map +1 -0
- package/dist/model/getWhatsappEventReportEventsInner.d.ts +32 -0
- package/dist/model/getWhatsappEventReportEventsInner.js +65 -0
- package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -0
- package/dist/model/inviteuser.d.ts +17 -0
- package/dist/model/inviteuser.js +28 -0
- package/dist/model/inviteuser.js.map +1 -0
- package/dist/model/inviteuserPrivilegesInner.d.ts +51 -0
- package/dist/model/inviteuserPrivilegesInner.js +61 -0
- package/dist/model/inviteuserPrivilegesInner.js.map +1 -0
- package/dist/model/manageIp.d.ts +14 -0
- package/dist/model/manageIp.js +18 -0
- package/dist/model/manageIp.js.map +1 -0
- package/dist/model/masterDetailsResponse.d.ts +22 -0
- package/dist/model/masterDetailsResponse.js +48 -0
- package/dist/model/masterDetailsResponse.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfo.d.ts +19 -0
- package/dist/model/masterDetailsResponseBillingInfo.js +33 -0
- package/dist/model/masterDetailsResponseBillingInfo.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.d.ts +18 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.js +38 -0
- package/dist/model/masterDetailsResponseBillingInfoAddress.js.map +1 -0
- package/dist/model/masterDetailsResponseBillingInfoName.d.ts +15 -0
- package/dist/model/masterDetailsResponseBillingInfoName.js +23 -0
- package/dist/model/masterDetailsResponseBillingInfoName.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfo.d.ts +26 -0
- package/dist/model/masterDetailsResponsePlanInfo.js +50 -0
- package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.d.ts +18 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js +38 -0
- package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js.map +1 -0
- package/dist/model/models.d.ts +376 -0
- package/dist/model/models.js +1268 -0
- package/dist/model/models.js.map +1 -0
- package/dist/model/note.d.ts +20 -0
- package/dist/model/note.js +48 -0
- package/dist/model/note.js.map +1 -0
- package/dist/model/noteData.d.ts +17 -0
- package/dist/model/noteData.js +33 -0
- package/dist/model/noteData.js.map +1 -0
- package/dist/model/noteId.d.ts +14 -0
- package/dist/model/noteId.js +18 -0
- package/dist/model/noteId.js.map +1 -0
- package/dist/model/order.d.ts +24 -0
- package/dist/model/order.js +58 -0
- package/dist/model/order.js.map +1 -0
- package/dist/model/orderBatch.d.ts +16 -0
- package/dist/model/orderBatch.js +23 -0
- package/dist/model/orderBatch.js.map +1 -0
- package/dist/model/orderBilling.d.ts +20 -0
- package/dist/model/orderBilling.js +48 -0
- package/dist/model/orderBilling.js.map +1 -0
- package/dist/model/orderProductsInner.d.ts +17 -0
- package/dist/model/orderProductsInner.js +33 -0
- package/dist/model/orderProductsInner.js.map +1 -0
- package/dist/model/otp.d.ts +14 -0
- package/dist/model/otp.js +18 -0
- package/dist/model/otp.js.map +1 -0
- package/dist/model/pipeline.d.ts +17 -0
- package/dist/model/pipeline.js +28 -0
- package/dist/model/pipeline.js.map +1 -0
- package/dist/model/pipelineStage.d.ts +15 -0
- package/dist/model/pipelineStage.js +23 -0
- package/dist/model/pipelineStage.js.map +1 -0
- package/dist/model/postContactInfo.d.ts +15 -0
- package/dist/model/postContactInfo.js +18 -0
- package/dist/model/postContactInfo.js.map +1 -0
- package/dist/model/postContactInfoContacts.d.ts +17 -0
- package/dist/model/postContactInfoContacts.js +33 -0
- package/dist/model/postContactInfoContacts.js.map +1 -0
- package/dist/model/postSendFailed.d.ts +18 -0
- package/dist/model/postSendFailed.js +38 -0
- package/dist/model/postSendFailed.js.map +1 -0
- package/dist/model/postSendSmsTestFailed.d.ts +17 -0
- package/dist/model/postSendSmsTestFailed.js +33 -0
- package/dist/model/postSendSmsTestFailed.js.map +1 -0
- package/dist/model/putRevokeUserPermission.d.ts +14 -0
- package/dist/model/putRevokeUserPermission.js +18 -0
- package/dist/model/putRevokeUserPermission.js.map +1 -0
- package/dist/model/putresendcancelinvitation.d.ts +14 -0
- package/dist/model/putresendcancelinvitation.js +18 -0
- package/dist/model/putresendcancelinvitation.js.map +1 -0
- package/dist/model/remainingCreditModel.d.ts +17 -0
- package/dist/model/remainingCreditModel.js +23 -0
- package/dist/model/remainingCreditModel.js.map +1 -0
- package/dist/model/remainingCreditModelChild.d.ts +15 -0
- package/dist/model/remainingCreditModelChild.js +23 -0
- package/dist/model/remainingCreditModelChild.js.map +1 -0
- package/dist/model/remainingCreditModelReseller.d.ts +15 -0
- package/dist/model/remainingCreditModelReseller.js +23 -0
- package/dist/model/remainingCreditModelReseller.js.map +1 -0
- package/dist/model/removeContactFromList.d.ts +16 -0
- package/dist/model/removeContactFromList.js +28 -0
- package/dist/model/removeContactFromList.js.map +1 -0
- package/dist/model/removeCredits.d.ts +15 -0
- package/dist/model/removeCredits.js +23 -0
- package/dist/model/removeCredits.js.map +1 -0
- package/dist/model/requestContactExport.d.ts +17 -0
- package/dist/model/requestContactExport.js +28 -0
- package/dist/model/requestContactExport.js.map +1 -0
- package/dist/model/requestContactExportCustomContactFilter.d.ts +41 -0
- package/dist/model/requestContactExportCustomContactFilter.js +68 -0
- package/dist/model/requestContactExportCustomContactFilter.js.map +1 -0
- package/dist/model/requestContactImport.d.ts +26 -0
- package/dist/model/requestContactImport.js +75 -0
- package/dist/model/requestContactImport.js.map +1 -0
- package/dist/model/requestContactImportJsonBodyInner.d.ts +17 -0
- package/dist/model/requestContactImportJsonBodyInner.js +23 -0
- package/dist/model/requestContactImportJsonBodyInner.js.map +1 -0
- package/dist/model/requestContactImportNewList.d.ts +15 -0
- package/dist/model/requestContactImportNewList.js +23 -0
- package/dist/model/requestContactImportNewList.js.map +1 -0
- package/dist/model/requestSmsRecipientExport.d.ts +25 -0
- package/dist/model/requestSmsRecipientExport.js +34 -0
- package/dist/model/requestSmsRecipientExport.js.map +1 -0
- package/dist/model/scheduleSmtpEmail.d.ts +16 -0
- package/dist/model/scheduleSmtpEmail.js +28 -0
- package/dist/model/scheduleSmtpEmail.js.map +1 -0
- package/dist/model/sendReport.d.ts +26 -0
- package/dist/model/sendReport.js +37 -0
- package/dist/model/sendReport.js.map +1 -0
- package/dist/model/sendReportEmail.d.ts +15 -0
- package/dist/model/sendReportEmail.js +23 -0
- package/dist/model/sendReportEmail.js.map +1 -0
- package/dist/model/sendSms.d.ts +18 -0
- package/dist/model/sendSms.js +38 -0
- package/dist/model/sendSms.js.map +1 -0
- package/dist/model/sendSmtpEmail.d.ts +36 -0
- package/dist/model/sendSmtpEmail.js +93 -0
- package/dist/model/sendSmtpEmail.js.map +1 -0
- package/dist/model/sendSmtpEmailAttachmentInner.d.ts +16 -0
- package/dist/model/sendSmtpEmailAttachmentInner.js +28 -0
- package/dist/model/sendSmtpEmailAttachmentInner.js.map +1 -0
- package/dist/model/sendSmtpEmailBccInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailBccInner.js +23 -0
- package/dist/model/sendSmtpEmailBccInner.js.map +1 -0
- package/dist/model/sendSmtpEmailCcInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailCcInner.js +23 -0
- package/dist/model/sendSmtpEmailCcInner.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.d.ts +25 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js +43 -0
- package/dist/model/sendSmtpEmailMessageVersionsInner.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.d.ts +15 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js +23 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js.map +1 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js +23 -0
- package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js.map +1 -0
- package/dist/model/sendSmtpEmailReplyTo.d.ts +15 -0
- package/dist/model/sendSmtpEmailReplyTo.js +23 -0
- package/dist/model/sendSmtpEmailReplyTo.js.map +1 -0
- package/dist/model/sendSmtpEmailSender.d.ts +16 -0
- package/dist/model/sendSmtpEmailSender.js +28 -0
- package/dist/model/sendSmtpEmailSender.js.map +1 -0
- package/dist/model/sendSmtpEmailToInner.d.ts +15 -0
- package/dist/model/sendSmtpEmailToInner.js +23 -0
- package/dist/model/sendSmtpEmailToInner.js.map +1 -0
- package/dist/model/sendTestEmail.d.ts +14 -0
- package/dist/model/sendTestEmail.js +18 -0
- package/dist/model/sendTestEmail.js.map +1 -0
- package/dist/model/sendTestSms.d.ts +14 -0
- package/dist/model/sendTestSms.js +18 -0
- package/dist/model/sendTestSms.js.map +1 -0
- package/dist/model/sendTransacSms.d.ts +27 -0
- package/dist/model/sendTransacSms.js +64 -0
- package/dist/model/sendTransacSms.js.map +1 -0
- package/dist/model/sendWhatsappMessage.d.ts +17 -0
- package/dist/model/sendWhatsappMessage.js +33 -0
- package/dist/model/sendWhatsappMessage.js.map +1 -0
- package/dist/model/sendWhatsappMessage201Response.d.ts +14 -0
- package/dist/model/sendWhatsappMessage201Response.js +18 -0
- package/dist/model/sendWhatsappMessage201Response.js.map +1 -0
- package/dist/model/ssoTokenRequest.d.ts +29 -0
- package/dist/model/ssoTokenRequest.js +46 -0
- package/dist/model/ssoTokenRequest.js.map +1 -0
- package/dist/model/subAccountAppsToggleRequest.d.ts +26 -0
- package/dist/model/subAccountAppsToggleRequest.js +78 -0
- package/dist/model/subAccountAppsToggleRequest.js.map +1 -0
- package/dist/model/subAccountDetailsResponse.d.ts +18 -0
- package/dist/model/subAccountDetailsResponse.js +33 -0
- package/dist/model/subAccountDetailsResponse.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.d.ts +18 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.js +28 -0
- package/dist/model/subAccountDetailsResponsePlanInfo.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +16 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +19 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +28 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js.map +1 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.d.ts +15 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js +23 -0
- package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequest.d.ts +17 -0
- package/dist/model/subAccountUpdatePlanRequest.js +23 -0
- package/dist/model/subAccountUpdatePlanRequest.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +14 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js +18 -0
- package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +16 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js +28 -0
- package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -0
- package/dist/model/subAccountsResponse.d.ts +16 -0
- package/dist/model/subAccountsResponse.js +23 -0
- package/dist/model/subAccountsResponse.js.map +1 -0
- package/dist/model/subAccountsResponseSubAccountsInner.d.ts +17 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js +33 -0
- package/dist/model/subAccountsResponseSubAccountsInner.js.map +1 -0
- package/dist/model/task.d.ts +19 -0
- package/dist/model/task.js +43 -0
- package/dist/model/task.js.map +1 -0
- package/dist/model/taskList.d.ts +15 -0
- package/dist/model/taskList.js +18 -0
- package/dist/model/taskList.js.map +1 -0
- package/dist/model/taskReminder.d.ts +24 -0
- package/dist/model/taskReminder.js +37 -0
- package/dist/model/taskReminder.js.map +1 -0
- package/dist/model/taskTypes.d.ts +15 -0
- package/dist/model/taskTypes.js +23 -0
- package/dist/model/taskTypes.js.map +1 -0
- package/dist/model/updateAttribute.d.ts +16 -0
- package/dist/model/updateAttribute.js +23 -0
- package/dist/model/updateAttribute.js.map +1 -0
- package/dist/model/updateAttributeEnumerationInner.d.ts +15 -0
- package/dist/model/updateAttributeEnumerationInner.js +23 -0
- package/dist/model/updateAttributeEnumerationInner.js.map +1 -0
- package/dist/model/updateBatchContacts.d.ts +15 -0
- package/dist/model/updateBatchContacts.js +18 -0
- package/dist/model/updateBatchContacts.js.map +1 -0
- package/dist/model/updateBatchContactsContactsInner.d.ts +25 -0
- package/dist/model/updateBatchContactsContactsInner.js +63 -0
- package/dist/model/updateBatchContactsContactsInner.js.map +1 -0
- package/dist/model/updateBatchContactsModel.d.ts +15 -0
- package/dist/model/updateBatchContactsModel.js +23 -0
- package/dist/model/updateBatchContactsModel.js.map +1 -0
- package/dist/model/updateCampaignStatus.d.ts +26 -0
- package/dist/model/updateCampaignStatus.js +31 -0
- package/dist/model/updateCampaignStatus.js.map +1 -0
- package/dist/model/updateChild.d.ts +18 -0
- package/dist/model/updateChild.js +38 -0
- package/dist/model/updateChild.js.map +1 -0
- package/dist/model/updateChildAccountStatus.d.ts +17 -0
- package/dist/model/updateChildAccountStatus.js +33 -0
- package/dist/model/updateChildAccountStatus.js.map +1 -0
- package/dist/model/updateChildDomain.d.ts +14 -0
- package/dist/model/updateChildDomain.js +18 -0
- package/dist/model/updateChildDomain.js.map +1 -0
- package/dist/model/updateContact.d.ts +20 -0
- package/dist/model/updateContact.js +48 -0
- package/dist/model/updateContact.js.map +1 -0
- package/dist/model/updateCouponCollection200Response.d.ts +16 -0
- package/dist/model/updateCouponCollection200Response.js +28 -0
- package/dist/model/updateCouponCollection200Response.js.map +1 -0
- package/dist/model/updateCouponCollectionRequest.d.ts +14 -0
- package/dist/model/updateCouponCollectionRequest.js +18 -0
- package/dist/model/updateCouponCollectionRequest.js.map +1 -0
- package/dist/model/updateEmailCampaign.d.ts +52 -0
- package/dist/model/updateEmailCampaign.js +181 -0
- package/dist/model/updateEmailCampaign.js.map +1 -0
- package/dist/model/updateEmailCampaignRecipients.d.ts +16 -0
- package/dist/model/updateEmailCampaignRecipients.js +28 -0
- package/dist/model/updateEmailCampaignRecipients.js.map +1 -0
- package/dist/model/updateEmailCampaignSender.d.ts +16 -0
- package/dist/model/updateEmailCampaignSender.js +28 -0
- package/dist/model/updateEmailCampaignSender.js.map +1 -0
- package/dist/model/updateExternalFeed.d.ts +30 -0
- package/dist/model/updateExternalFeed.js +69 -0
- package/dist/model/updateExternalFeed.js.map +1 -0
- package/dist/model/updateList.d.ts +15 -0
- package/dist/model/updateList.js +23 -0
- package/dist/model/updateList.js.map +1 -0
- package/dist/model/updateSender.d.ts +17 -0
- package/dist/model/updateSender.js +28 -0
- package/dist/model/updateSender.js.map +1 -0
- package/dist/model/updateSmsCampaign.d.ts +22 -0
- package/dist/model/updateSmsCampaign.js +56 -0
- package/dist/model/updateSmsCampaign.js.map +1 -0
- package/dist/model/updateSmtpTemplate.d.ts +24 -0
- package/dist/model/updateSmtpTemplate.js +63 -0
- package/dist/model/updateSmtpTemplate.js.map +1 -0
- package/dist/model/updateSmtpTemplateSender.d.ts +16 -0
- package/dist/model/updateSmtpTemplateSender.js +28 -0
- package/dist/model/updateSmtpTemplateSender.js.map +1 -0
- package/dist/model/updateWebhook.d.ts +38 -0
- package/dist/model/updateWebhook.js +55 -0
- package/dist/model/updateWebhook.js.map +1 -0
- package/dist/model/updateWhatsAppCampaign.d.ts +24 -0
- package/dist/model/updateWhatsAppCampaign.js +43 -0
- package/dist/model/updateWhatsAppCampaign.js.map +1 -0
- package/dist/model/uploadImageModel.d.ts +14 -0
- package/dist/model/uploadImageModel.js +18 -0
- package/dist/model/uploadImageModel.js.map +1 -0
- package/dist/model/uploadImageToGallery.d.ts +15 -0
- package/dist/model/uploadImageToGallery.js +23 -0
- package/dist/model/uploadImageToGallery.js.map +1 -0
- package/dist/model/variablesItems.d.ts +16 -0
- package/dist/model/variablesItems.js +28 -0
- package/dist/model/variablesItems.js.map +1 -0
- package/dist/model/whatsappCampStats.d.ts +18 -0
- package/dist/model/whatsappCampStats.js +38 -0
- package/dist/model/whatsappCampStats.js.map +1 -0
- package/dist/model/whatsappCampTemplate.d.ts +26 -0
- package/dist/model/whatsappCampTemplate.js +68 -0
- package/dist/model/whatsappCampTemplate.js.map +1 -0
- package/package.json +3 -4
|
@@ -0,0 +1,1660 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.TransactionalEmailsApi = exports.TransactionalEmailsApiApiKeys = void 0;
|
|
16
|
+
const request_1 = __importDefault(require("request"));
|
|
17
|
+
const models_1 = require("../model/models");
|
|
18
|
+
const models_2 = require("../model/models");
|
|
19
|
+
const apis_1 = require("./apis");
|
|
20
|
+
let defaultBasePath = 'https://api.brevo.com/v3';
|
|
21
|
+
var TransactionalEmailsApiApiKeys;
|
|
22
|
+
(function (TransactionalEmailsApiApiKeys) {
|
|
23
|
+
TransactionalEmailsApiApiKeys[TransactionalEmailsApiApiKeys["apiKey"] = 0] = "apiKey";
|
|
24
|
+
TransactionalEmailsApiApiKeys[TransactionalEmailsApiApiKeys["partnerKey"] = 1] = "partnerKey";
|
|
25
|
+
})(TransactionalEmailsApiApiKeys = exports.TransactionalEmailsApiApiKeys || (exports.TransactionalEmailsApiApiKeys = {}));
|
|
26
|
+
class TransactionalEmailsApi {
|
|
27
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
28
|
+
this._basePath = defaultBasePath;
|
|
29
|
+
this._defaultHeaders = {};
|
|
30
|
+
this._useQuerystring = false;
|
|
31
|
+
this.authentications = {
|
|
32
|
+
'default': new models_1.VoidAuth(),
|
|
33
|
+
'apiKey': new models_2.ApiKeyAuth('header', 'api-key'),
|
|
34
|
+
'partnerKey': new models_2.ApiKeyAuth('header', 'partner-key'),
|
|
35
|
+
};
|
|
36
|
+
this.interceptors = [];
|
|
37
|
+
if (password) {
|
|
38
|
+
if (basePath) {
|
|
39
|
+
this.basePath = basePath;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
if (basePathOrUsername) {
|
|
44
|
+
this.basePath = basePathOrUsername;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
set useQuerystring(value) {
|
|
49
|
+
this._useQuerystring = value;
|
|
50
|
+
}
|
|
51
|
+
set basePath(basePath) {
|
|
52
|
+
this._basePath = basePath;
|
|
53
|
+
}
|
|
54
|
+
set defaultHeaders(defaultHeaders) {
|
|
55
|
+
this._defaultHeaders = defaultHeaders;
|
|
56
|
+
}
|
|
57
|
+
get defaultHeaders() {
|
|
58
|
+
return this._defaultHeaders;
|
|
59
|
+
}
|
|
60
|
+
get basePath() {
|
|
61
|
+
return this._basePath;
|
|
62
|
+
}
|
|
63
|
+
setDefaultAuthentication(auth) {
|
|
64
|
+
this.authentications.default = auth;
|
|
65
|
+
}
|
|
66
|
+
setApiKey(key, value) {
|
|
67
|
+
this.authentications[TransactionalEmailsApiApiKeys[key]].apiKey = value;
|
|
68
|
+
}
|
|
69
|
+
addInterceptor(interceptor) {
|
|
70
|
+
this.interceptors.push(interceptor);
|
|
71
|
+
}
|
|
72
|
+
blockNewDomain(blockDomain, options = { headers: {} }) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains';
|
|
75
|
+
let localVarQueryParameters = {};
|
|
76
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
77
|
+
const produces = ['application/json'];
|
|
78
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
79
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
83
|
+
}
|
|
84
|
+
let localVarFormParams = {};
|
|
85
|
+
if (blockDomain === null || blockDomain === undefined) {
|
|
86
|
+
throw new Error('Required parameter blockDomain was null or undefined when calling blockNewDomain.');
|
|
87
|
+
}
|
|
88
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
89
|
+
let localVarUseFormData = false;
|
|
90
|
+
let localVarRequestOptions = {
|
|
91
|
+
method: 'POST',
|
|
92
|
+
qs: localVarQueryParameters,
|
|
93
|
+
headers: localVarHeaderParams,
|
|
94
|
+
uri: localVarPath,
|
|
95
|
+
useQuerystring: this._useQuerystring,
|
|
96
|
+
json: true,
|
|
97
|
+
body: models_1.ObjectSerializer.serialize(blockDomain, "BlockDomain")
|
|
98
|
+
};
|
|
99
|
+
let authenticationPromise = Promise.resolve();
|
|
100
|
+
if (this.authentications.apiKey.apiKey) {
|
|
101
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
102
|
+
}
|
|
103
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
104
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
105
|
+
}
|
|
106
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
107
|
+
let interceptorPromise = authenticationPromise;
|
|
108
|
+
for (const interceptor of this.interceptors) {
|
|
109
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
110
|
+
}
|
|
111
|
+
return interceptorPromise.then(() => {
|
|
112
|
+
if (Object.keys(localVarFormParams).length) {
|
|
113
|
+
if (localVarUseFormData) {
|
|
114
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return new Promise((resolve, reject) => {
|
|
121
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
122
|
+
if (error) {
|
|
123
|
+
reject(error);
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
127
|
+
resolve({ response: response, body: body });
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
createSmtpTemplate(smtpTemplate, options = { headers: {} }) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const localVarPath = this.basePath + '/smtp/templates';
|
|
141
|
+
let localVarQueryParameters = {};
|
|
142
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
143
|
+
const produces = ['application/json'];
|
|
144
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
145
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
149
|
+
}
|
|
150
|
+
let localVarFormParams = {};
|
|
151
|
+
if (smtpTemplate === null || smtpTemplate === undefined) {
|
|
152
|
+
throw new Error('Required parameter smtpTemplate was null or undefined when calling createSmtpTemplate.');
|
|
153
|
+
}
|
|
154
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
155
|
+
let localVarUseFormData = false;
|
|
156
|
+
let localVarRequestOptions = {
|
|
157
|
+
method: 'POST',
|
|
158
|
+
qs: localVarQueryParameters,
|
|
159
|
+
headers: localVarHeaderParams,
|
|
160
|
+
uri: localVarPath,
|
|
161
|
+
useQuerystring: this._useQuerystring,
|
|
162
|
+
json: true,
|
|
163
|
+
body: models_1.ObjectSerializer.serialize(smtpTemplate, "CreateSmtpTemplate")
|
|
164
|
+
};
|
|
165
|
+
let authenticationPromise = Promise.resolve();
|
|
166
|
+
if (this.authentications.apiKey.apiKey) {
|
|
167
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
168
|
+
}
|
|
169
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
170
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
171
|
+
}
|
|
172
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
173
|
+
let interceptorPromise = authenticationPromise;
|
|
174
|
+
for (const interceptor of this.interceptors) {
|
|
175
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
176
|
+
}
|
|
177
|
+
return interceptorPromise.then(() => {
|
|
178
|
+
if (Object.keys(localVarFormParams).length) {
|
|
179
|
+
if (localVarUseFormData) {
|
|
180
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return new Promise((resolve, reject) => {
|
|
187
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
188
|
+
if (error) {
|
|
189
|
+
reject(error);
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
192
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
193
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateModel");
|
|
194
|
+
resolve({ response: response, body: body });
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
deleteBlockedDomain(domain, options = { headers: {} }) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains/{domain}'
|
|
208
|
+
.replace('{' + 'domain' + '}', encodeURIComponent(String(domain)));
|
|
209
|
+
let localVarQueryParameters = {};
|
|
210
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
211
|
+
const produces = ['application/json'];
|
|
212
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
213
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
217
|
+
}
|
|
218
|
+
let localVarFormParams = {};
|
|
219
|
+
if (domain === null || domain === undefined) {
|
|
220
|
+
throw new Error('Required parameter domain was null or undefined when calling deleteBlockedDomain.');
|
|
221
|
+
}
|
|
222
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
223
|
+
let localVarUseFormData = false;
|
|
224
|
+
let localVarRequestOptions = {
|
|
225
|
+
method: 'DELETE',
|
|
226
|
+
qs: localVarQueryParameters,
|
|
227
|
+
headers: localVarHeaderParams,
|
|
228
|
+
uri: localVarPath,
|
|
229
|
+
useQuerystring: this._useQuerystring,
|
|
230
|
+
json: true,
|
|
231
|
+
};
|
|
232
|
+
let authenticationPromise = Promise.resolve();
|
|
233
|
+
if (this.authentications.apiKey.apiKey) {
|
|
234
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
235
|
+
}
|
|
236
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
237
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
238
|
+
}
|
|
239
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
240
|
+
let interceptorPromise = authenticationPromise;
|
|
241
|
+
for (const interceptor of this.interceptors) {
|
|
242
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
243
|
+
}
|
|
244
|
+
return interceptorPromise.then(() => {
|
|
245
|
+
if (Object.keys(localVarFormParams).length) {
|
|
246
|
+
if (localVarUseFormData) {
|
|
247
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
248
|
+
}
|
|
249
|
+
else {
|
|
250
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
return new Promise((resolve, reject) => {
|
|
254
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
255
|
+
if (error) {
|
|
256
|
+
reject(error);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
260
|
+
resolve({ response: response, body: body });
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
deleteHardbounces(deleteHardbounces, options = { headers: {} }) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
const localVarPath = this.basePath + '/smtp/deleteHardbounces';
|
|
274
|
+
let localVarQueryParameters = {};
|
|
275
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
276
|
+
const produces = ['application/json'];
|
|
277
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
278
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
282
|
+
}
|
|
283
|
+
let localVarFormParams = {};
|
|
284
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
285
|
+
let localVarUseFormData = false;
|
|
286
|
+
let localVarRequestOptions = {
|
|
287
|
+
method: 'POST',
|
|
288
|
+
qs: localVarQueryParameters,
|
|
289
|
+
headers: localVarHeaderParams,
|
|
290
|
+
uri: localVarPath,
|
|
291
|
+
useQuerystring: this._useQuerystring,
|
|
292
|
+
json: true,
|
|
293
|
+
body: models_1.ObjectSerializer.serialize(deleteHardbounces, "DeleteHardbounces")
|
|
294
|
+
};
|
|
295
|
+
let authenticationPromise = Promise.resolve();
|
|
296
|
+
if (this.authentications.apiKey.apiKey) {
|
|
297
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
298
|
+
}
|
|
299
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
300
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
301
|
+
}
|
|
302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
303
|
+
let interceptorPromise = authenticationPromise;
|
|
304
|
+
for (const interceptor of this.interceptors) {
|
|
305
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
306
|
+
}
|
|
307
|
+
return interceptorPromise.then(() => {
|
|
308
|
+
if (Object.keys(localVarFormParams).length) {
|
|
309
|
+
if (localVarUseFormData) {
|
|
310
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
return new Promise((resolve, reject) => {
|
|
317
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
318
|
+
if (error) {
|
|
319
|
+
reject(error);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
323
|
+
resolve({ response: response, body: body });
|
|
324
|
+
}
|
|
325
|
+
else {
|
|
326
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
deleteScheduledEmailById(identifier, options = { headers: {} }) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
const localVarPath = this.basePath + '/smtp/email/{identifier}'
|
|
337
|
+
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
338
|
+
let localVarQueryParameters = {};
|
|
339
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
340
|
+
const produces = ['application/json'];
|
|
341
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
342
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
343
|
+
}
|
|
344
|
+
else {
|
|
345
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
346
|
+
}
|
|
347
|
+
let localVarFormParams = {};
|
|
348
|
+
if (identifier === null || identifier === undefined) {
|
|
349
|
+
throw new Error('Required parameter identifier was null or undefined when calling deleteScheduledEmailById.');
|
|
350
|
+
}
|
|
351
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
352
|
+
let localVarUseFormData = false;
|
|
353
|
+
let localVarRequestOptions = {
|
|
354
|
+
method: 'DELETE',
|
|
355
|
+
qs: localVarQueryParameters,
|
|
356
|
+
headers: localVarHeaderParams,
|
|
357
|
+
uri: localVarPath,
|
|
358
|
+
useQuerystring: this._useQuerystring,
|
|
359
|
+
json: true,
|
|
360
|
+
};
|
|
361
|
+
let authenticationPromise = Promise.resolve();
|
|
362
|
+
if (this.authentications.apiKey.apiKey) {
|
|
363
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
364
|
+
}
|
|
365
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
366
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
367
|
+
}
|
|
368
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
369
|
+
let interceptorPromise = authenticationPromise;
|
|
370
|
+
for (const interceptor of this.interceptors) {
|
|
371
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
372
|
+
}
|
|
373
|
+
return interceptorPromise.then(() => {
|
|
374
|
+
if (Object.keys(localVarFormParams).length) {
|
|
375
|
+
if (localVarUseFormData) {
|
|
376
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
377
|
+
}
|
|
378
|
+
else {
|
|
379
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
return new Promise((resolve, reject) => {
|
|
383
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
384
|
+
if (error) {
|
|
385
|
+
reject(error);
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
389
|
+
resolve({ response: response, body: body });
|
|
390
|
+
}
|
|
391
|
+
else {
|
|
392
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
});
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
deleteSmtpTemplate(templateId, options = { headers: {} }) {
|
|
401
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
402
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
403
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
404
|
+
let localVarQueryParameters = {};
|
|
405
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
406
|
+
const produces = ['application/json'];
|
|
407
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
408
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
409
|
+
}
|
|
410
|
+
else {
|
|
411
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
412
|
+
}
|
|
413
|
+
let localVarFormParams = {};
|
|
414
|
+
if (templateId === null || templateId === undefined) {
|
|
415
|
+
throw new Error('Required parameter templateId was null or undefined when calling deleteSmtpTemplate.');
|
|
416
|
+
}
|
|
417
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
418
|
+
let localVarUseFormData = false;
|
|
419
|
+
let localVarRequestOptions = {
|
|
420
|
+
method: 'DELETE',
|
|
421
|
+
qs: localVarQueryParameters,
|
|
422
|
+
headers: localVarHeaderParams,
|
|
423
|
+
uri: localVarPath,
|
|
424
|
+
useQuerystring: this._useQuerystring,
|
|
425
|
+
json: true,
|
|
426
|
+
};
|
|
427
|
+
let authenticationPromise = Promise.resolve();
|
|
428
|
+
if (this.authentications.apiKey.apiKey) {
|
|
429
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
430
|
+
}
|
|
431
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
432
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
433
|
+
}
|
|
434
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
435
|
+
let interceptorPromise = authenticationPromise;
|
|
436
|
+
for (const interceptor of this.interceptors) {
|
|
437
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
438
|
+
}
|
|
439
|
+
return interceptorPromise.then(() => {
|
|
440
|
+
if (Object.keys(localVarFormParams).length) {
|
|
441
|
+
if (localVarUseFormData) {
|
|
442
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
443
|
+
}
|
|
444
|
+
else {
|
|
445
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
return new Promise((resolve, reject) => {
|
|
449
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
450
|
+
if (error) {
|
|
451
|
+
reject(error);
|
|
452
|
+
}
|
|
453
|
+
else {
|
|
454
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
455
|
+
resolve({ response: response, body: body });
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
});
|
|
462
|
+
});
|
|
463
|
+
});
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
getAggregatedSmtpReport(startDate, endDate, days, tag, options = { headers: {} }) {
|
|
467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
+
const localVarPath = this.basePath + '/smtp/statistics/aggregatedReport';
|
|
469
|
+
let localVarQueryParameters = {};
|
|
470
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
471
|
+
const produces = ['application/json'];
|
|
472
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
473
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
477
|
+
}
|
|
478
|
+
let localVarFormParams = {};
|
|
479
|
+
if (startDate !== undefined) {
|
|
480
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
481
|
+
}
|
|
482
|
+
if (endDate !== undefined) {
|
|
483
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
484
|
+
}
|
|
485
|
+
if (days !== undefined) {
|
|
486
|
+
localVarQueryParameters['days'] = models_1.ObjectSerializer.serialize(days, "number");
|
|
487
|
+
}
|
|
488
|
+
if (tag !== undefined) {
|
|
489
|
+
localVarQueryParameters['tag'] = models_1.ObjectSerializer.serialize(tag, "string");
|
|
490
|
+
}
|
|
491
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
492
|
+
let localVarUseFormData = false;
|
|
493
|
+
let localVarRequestOptions = {
|
|
494
|
+
method: 'GET',
|
|
495
|
+
qs: localVarQueryParameters,
|
|
496
|
+
headers: localVarHeaderParams,
|
|
497
|
+
uri: localVarPath,
|
|
498
|
+
useQuerystring: this._useQuerystring,
|
|
499
|
+
json: true,
|
|
500
|
+
};
|
|
501
|
+
let authenticationPromise = Promise.resolve();
|
|
502
|
+
if (this.authentications.apiKey.apiKey) {
|
|
503
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
504
|
+
}
|
|
505
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
506
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
507
|
+
}
|
|
508
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
509
|
+
let interceptorPromise = authenticationPromise;
|
|
510
|
+
for (const interceptor of this.interceptors) {
|
|
511
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
512
|
+
}
|
|
513
|
+
return interceptorPromise.then(() => {
|
|
514
|
+
if (Object.keys(localVarFormParams).length) {
|
|
515
|
+
if (localVarUseFormData) {
|
|
516
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return new Promise((resolve, reject) => {
|
|
523
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
524
|
+
if (error) {
|
|
525
|
+
reject(error);
|
|
526
|
+
}
|
|
527
|
+
else {
|
|
528
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
529
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetAggregatedReport");
|
|
530
|
+
resolve({ response: response, body: body });
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
getBlockedDomains(options = { headers: {} }) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
const localVarPath = this.basePath + '/smtp/blockedDomains';
|
|
544
|
+
let localVarQueryParameters = {};
|
|
545
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
546
|
+
const produces = ['application/json'];
|
|
547
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
548
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
549
|
+
}
|
|
550
|
+
else {
|
|
551
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
552
|
+
}
|
|
553
|
+
let localVarFormParams = {};
|
|
554
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
555
|
+
let localVarUseFormData = false;
|
|
556
|
+
let localVarRequestOptions = {
|
|
557
|
+
method: 'GET',
|
|
558
|
+
qs: localVarQueryParameters,
|
|
559
|
+
headers: localVarHeaderParams,
|
|
560
|
+
uri: localVarPath,
|
|
561
|
+
useQuerystring: this._useQuerystring,
|
|
562
|
+
json: true,
|
|
563
|
+
};
|
|
564
|
+
let authenticationPromise = Promise.resolve();
|
|
565
|
+
if (this.authentications.apiKey.apiKey) {
|
|
566
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
567
|
+
}
|
|
568
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
569
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
570
|
+
}
|
|
571
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
572
|
+
let interceptorPromise = authenticationPromise;
|
|
573
|
+
for (const interceptor of this.interceptors) {
|
|
574
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
575
|
+
}
|
|
576
|
+
return interceptorPromise.then(() => {
|
|
577
|
+
if (Object.keys(localVarFormParams).length) {
|
|
578
|
+
if (localVarUseFormData) {
|
|
579
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
580
|
+
}
|
|
581
|
+
else {
|
|
582
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return new Promise((resolve, reject) => {
|
|
586
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
587
|
+
if (error) {
|
|
588
|
+
reject(error);
|
|
589
|
+
}
|
|
590
|
+
else {
|
|
591
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
592
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetBlockedDomains");
|
|
593
|
+
resolve({ response: response, body: body });
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
});
|
|
601
|
+
});
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
getEmailEventReport(limit, offset, startDate, endDate, days, email, event, tags, messageId, templateId, sort, options = { headers: {} }) {
|
|
605
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
606
|
+
const localVarPath = this.basePath + '/smtp/statistics/events';
|
|
607
|
+
let localVarQueryParameters = {};
|
|
608
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
609
|
+
const produces = ['application/json'];
|
|
610
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
611
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
612
|
+
}
|
|
613
|
+
else {
|
|
614
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
615
|
+
}
|
|
616
|
+
let localVarFormParams = {};
|
|
617
|
+
if (limit !== undefined) {
|
|
618
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
619
|
+
}
|
|
620
|
+
if (offset !== undefined) {
|
|
621
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
622
|
+
}
|
|
623
|
+
if (startDate !== undefined) {
|
|
624
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
625
|
+
}
|
|
626
|
+
if (endDate !== undefined) {
|
|
627
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
628
|
+
}
|
|
629
|
+
if (days !== undefined) {
|
|
630
|
+
localVarQueryParameters['days'] = models_1.ObjectSerializer.serialize(days, "number");
|
|
631
|
+
}
|
|
632
|
+
if (email !== undefined) {
|
|
633
|
+
localVarQueryParameters['email'] = models_1.ObjectSerializer.serialize(email, "string");
|
|
634
|
+
}
|
|
635
|
+
if (event !== undefined) {
|
|
636
|
+
localVarQueryParameters['event'] = models_1.ObjectSerializer.serialize(event, "'bounces' | 'hardBounces' | 'softBounces' | 'delivered' | 'spam' | 'requests' | 'opened' | 'clicks' | 'invalid' | 'deferred' | 'blocked' | 'unsubscribed' | 'error' | 'loadedByProxy'");
|
|
637
|
+
}
|
|
638
|
+
if (tags !== undefined) {
|
|
639
|
+
localVarQueryParameters['tags'] = models_1.ObjectSerializer.serialize(tags, "string");
|
|
640
|
+
}
|
|
641
|
+
if (messageId !== undefined) {
|
|
642
|
+
localVarQueryParameters['messageId'] = models_1.ObjectSerializer.serialize(messageId, "string");
|
|
643
|
+
}
|
|
644
|
+
if (templateId !== undefined) {
|
|
645
|
+
localVarQueryParameters['templateId'] = models_1.ObjectSerializer.serialize(templateId, "number");
|
|
646
|
+
}
|
|
647
|
+
if (sort !== undefined) {
|
|
648
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
649
|
+
}
|
|
650
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
651
|
+
let localVarUseFormData = false;
|
|
652
|
+
let localVarRequestOptions = {
|
|
653
|
+
method: 'GET',
|
|
654
|
+
qs: localVarQueryParameters,
|
|
655
|
+
headers: localVarHeaderParams,
|
|
656
|
+
uri: localVarPath,
|
|
657
|
+
useQuerystring: this._useQuerystring,
|
|
658
|
+
json: true,
|
|
659
|
+
};
|
|
660
|
+
let authenticationPromise = Promise.resolve();
|
|
661
|
+
if (this.authentications.apiKey.apiKey) {
|
|
662
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
663
|
+
}
|
|
664
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
665
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
666
|
+
}
|
|
667
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
668
|
+
let interceptorPromise = authenticationPromise;
|
|
669
|
+
for (const interceptor of this.interceptors) {
|
|
670
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
671
|
+
}
|
|
672
|
+
return interceptorPromise.then(() => {
|
|
673
|
+
if (Object.keys(localVarFormParams).length) {
|
|
674
|
+
if (localVarUseFormData) {
|
|
675
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
return new Promise((resolve, reject) => {
|
|
682
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
683
|
+
if (error) {
|
|
684
|
+
reject(error);
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
688
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetEmailEventReport");
|
|
689
|
+
resolve({ response: response, body: body });
|
|
690
|
+
}
|
|
691
|
+
else {
|
|
692
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
});
|
|
697
|
+
});
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
getScheduledEmailByBatchId(batchId, startDate, endDate, sort, status, limit, offset, options = { headers: {} }) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
const localVarPath = this.basePath + '/smtp/emailStatus/{batchId}'
|
|
703
|
+
.replace('{' + 'batchId' + '}', encodeURIComponent(String(batchId)));
|
|
704
|
+
let localVarQueryParameters = {};
|
|
705
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
706
|
+
const produces = ['application/json'];
|
|
707
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
708
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
711
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
712
|
+
}
|
|
713
|
+
let localVarFormParams = {};
|
|
714
|
+
if (batchId === null || batchId === undefined) {
|
|
715
|
+
throw new Error('Required parameter batchId was null or undefined when calling getScheduledEmailByBatchId.');
|
|
716
|
+
}
|
|
717
|
+
if (startDate !== undefined) {
|
|
718
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
719
|
+
}
|
|
720
|
+
if (endDate !== undefined) {
|
|
721
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
722
|
+
}
|
|
723
|
+
if (sort !== undefined) {
|
|
724
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
725
|
+
}
|
|
726
|
+
if (status !== undefined) {
|
|
727
|
+
localVarQueryParameters['status'] = models_1.ObjectSerializer.serialize(status, "'processed' | 'inProgress' | 'queued'");
|
|
728
|
+
}
|
|
729
|
+
if (limit !== undefined) {
|
|
730
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
731
|
+
}
|
|
732
|
+
if (offset !== undefined) {
|
|
733
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
734
|
+
}
|
|
735
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
736
|
+
let localVarUseFormData = false;
|
|
737
|
+
let localVarRequestOptions = {
|
|
738
|
+
method: 'GET',
|
|
739
|
+
qs: localVarQueryParameters,
|
|
740
|
+
headers: localVarHeaderParams,
|
|
741
|
+
uri: localVarPath,
|
|
742
|
+
useQuerystring: this._useQuerystring,
|
|
743
|
+
json: true,
|
|
744
|
+
};
|
|
745
|
+
let authenticationPromise = Promise.resolve();
|
|
746
|
+
if (this.authentications.apiKey.apiKey) {
|
|
747
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
748
|
+
}
|
|
749
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
750
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
751
|
+
}
|
|
752
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
753
|
+
let interceptorPromise = authenticationPromise;
|
|
754
|
+
for (const interceptor of this.interceptors) {
|
|
755
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
756
|
+
}
|
|
757
|
+
return interceptorPromise.then(() => {
|
|
758
|
+
if (Object.keys(localVarFormParams).length) {
|
|
759
|
+
if (localVarUseFormData) {
|
|
760
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
761
|
+
}
|
|
762
|
+
else {
|
|
763
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return new Promise((resolve, reject) => {
|
|
767
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
768
|
+
if (error) {
|
|
769
|
+
reject(error);
|
|
770
|
+
}
|
|
771
|
+
else {
|
|
772
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
773
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetScheduledEmailByBatchId");
|
|
774
|
+
resolve({ response: response, body: body });
|
|
775
|
+
}
|
|
776
|
+
else {
|
|
777
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
});
|
|
784
|
+
}
|
|
785
|
+
getScheduledEmailByMessageId(messageId, startDate, endDate, options = { headers: {} }) {
|
|
786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
787
|
+
const localVarPath = this.basePath + '/smtp/emailStatus/{messageId}'
|
|
788
|
+
.replace('{' + 'messageId' + '}', encodeURIComponent(String(messageId)));
|
|
789
|
+
let localVarQueryParameters = {};
|
|
790
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
791
|
+
const produces = ['application/json'];
|
|
792
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
793
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
794
|
+
}
|
|
795
|
+
else {
|
|
796
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
797
|
+
}
|
|
798
|
+
let localVarFormParams = {};
|
|
799
|
+
if (messageId === null || messageId === undefined) {
|
|
800
|
+
throw new Error('Required parameter messageId was null or undefined when calling getScheduledEmailByMessageId.');
|
|
801
|
+
}
|
|
802
|
+
if (startDate !== undefined) {
|
|
803
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
804
|
+
}
|
|
805
|
+
if (endDate !== undefined) {
|
|
806
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
807
|
+
}
|
|
808
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
809
|
+
let localVarUseFormData = false;
|
|
810
|
+
let localVarRequestOptions = {
|
|
811
|
+
method: 'GET',
|
|
812
|
+
qs: localVarQueryParameters,
|
|
813
|
+
headers: localVarHeaderParams,
|
|
814
|
+
uri: localVarPath,
|
|
815
|
+
useQuerystring: this._useQuerystring,
|
|
816
|
+
json: true,
|
|
817
|
+
};
|
|
818
|
+
let authenticationPromise = Promise.resolve();
|
|
819
|
+
if (this.authentications.apiKey.apiKey) {
|
|
820
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
821
|
+
}
|
|
822
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
823
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
824
|
+
}
|
|
825
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
826
|
+
let interceptorPromise = authenticationPromise;
|
|
827
|
+
for (const interceptor of this.interceptors) {
|
|
828
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
829
|
+
}
|
|
830
|
+
return interceptorPromise.then(() => {
|
|
831
|
+
if (Object.keys(localVarFormParams).length) {
|
|
832
|
+
if (localVarUseFormData) {
|
|
833
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
834
|
+
}
|
|
835
|
+
else {
|
|
836
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
return new Promise((resolve, reject) => {
|
|
840
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
841
|
+
if (error) {
|
|
842
|
+
reject(error);
|
|
843
|
+
}
|
|
844
|
+
else {
|
|
845
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
846
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetScheduledEmailByMessageId");
|
|
847
|
+
resolve({ response: response, body: body });
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
});
|
|
854
|
+
});
|
|
855
|
+
});
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
getSmtpReport(limit, offset, startDate, endDate, days, tag, sort, options = { headers: {} }) {
|
|
859
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
860
|
+
const localVarPath = this.basePath + '/smtp/statistics/reports';
|
|
861
|
+
let localVarQueryParameters = {};
|
|
862
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
863
|
+
const produces = ['application/json'];
|
|
864
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
865
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
866
|
+
}
|
|
867
|
+
else {
|
|
868
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
869
|
+
}
|
|
870
|
+
let localVarFormParams = {};
|
|
871
|
+
if (limit !== undefined) {
|
|
872
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
873
|
+
}
|
|
874
|
+
if (offset !== undefined) {
|
|
875
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
876
|
+
}
|
|
877
|
+
if (startDate !== undefined) {
|
|
878
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
879
|
+
}
|
|
880
|
+
if (endDate !== undefined) {
|
|
881
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
882
|
+
}
|
|
883
|
+
if (days !== undefined) {
|
|
884
|
+
localVarQueryParameters['days'] = models_1.ObjectSerializer.serialize(days, "number");
|
|
885
|
+
}
|
|
886
|
+
if (tag !== undefined) {
|
|
887
|
+
localVarQueryParameters['tag'] = models_1.ObjectSerializer.serialize(tag, "string");
|
|
888
|
+
}
|
|
889
|
+
if (sort !== undefined) {
|
|
890
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
891
|
+
}
|
|
892
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
893
|
+
let localVarUseFormData = false;
|
|
894
|
+
let localVarRequestOptions = {
|
|
895
|
+
method: 'GET',
|
|
896
|
+
qs: localVarQueryParameters,
|
|
897
|
+
headers: localVarHeaderParams,
|
|
898
|
+
uri: localVarPath,
|
|
899
|
+
useQuerystring: this._useQuerystring,
|
|
900
|
+
json: true,
|
|
901
|
+
};
|
|
902
|
+
let authenticationPromise = Promise.resolve();
|
|
903
|
+
if (this.authentications.apiKey.apiKey) {
|
|
904
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
905
|
+
}
|
|
906
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
907
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
908
|
+
}
|
|
909
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
910
|
+
let interceptorPromise = authenticationPromise;
|
|
911
|
+
for (const interceptor of this.interceptors) {
|
|
912
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
913
|
+
}
|
|
914
|
+
return interceptorPromise.then(() => {
|
|
915
|
+
if (Object.keys(localVarFormParams).length) {
|
|
916
|
+
if (localVarUseFormData) {
|
|
917
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
return new Promise((resolve, reject) => {
|
|
924
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
925
|
+
if (error) {
|
|
926
|
+
reject(error);
|
|
927
|
+
}
|
|
928
|
+
else {
|
|
929
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
930
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetReports");
|
|
931
|
+
resolve({ response: response, body: body });
|
|
932
|
+
}
|
|
933
|
+
else {
|
|
934
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
});
|
|
939
|
+
});
|
|
940
|
+
});
|
|
941
|
+
}
|
|
942
|
+
getSmtpTemplate(templateId, options = { headers: {} }) {
|
|
943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
944
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
945
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
946
|
+
let localVarQueryParameters = {};
|
|
947
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
948
|
+
const produces = ['application/json'];
|
|
949
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
950
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
951
|
+
}
|
|
952
|
+
else {
|
|
953
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
954
|
+
}
|
|
955
|
+
let localVarFormParams = {};
|
|
956
|
+
if (templateId === null || templateId === undefined) {
|
|
957
|
+
throw new Error('Required parameter templateId was null or undefined when calling getSmtpTemplate.');
|
|
958
|
+
}
|
|
959
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
960
|
+
let localVarUseFormData = false;
|
|
961
|
+
let localVarRequestOptions = {
|
|
962
|
+
method: 'GET',
|
|
963
|
+
qs: localVarQueryParameters,
|
|
964
|
+
headers: localVarHeaderParams,
|
|
965
|
+
uri: localVarPath,
|
|
966
|
+
useQuerystring: this._useQuerystring,
|
|
967
|
+
json: true,
|
|
968
|
+
};
|
|
969
|
+
let authenticationPromise = Promise.resolve();
|
|
970
|
+
if (this.authentications.apiKey.apiKey) {
|
|
971
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
972
|
+
}
|
|
973
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
974
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
975
|
+
}
|
|
976
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
977
|
+
let interceptorPromise = authenticationPromise;
|
|
978
|
+
for (const interceptor of this.interceptors) {
|
|
979
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
980
|
+
}
|
|
981
|
+
return interceptorPromise.then(() => {
|
|
982
|
+
if (Object.keys(localVarFormParams).length) {
|
|
983
|
+
if (localVarUseFormData) {
|
|
984
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
return new Promise((resolve, reject) => {
|
|
991
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
992
|
+
if (error) {
|
|
993
|
+
reject(error);
|
|
994
|
+
}
|
|
995
|
+
else {
|
|
996
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
997
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSmtpTemplateOverview");
|
|
998
|
+
resolve({ response: response, body: body });
|
|
999
|
+
}
|
|
1000
|
+
else {
|
|
1001
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
});
|
|
1008
|
+
}
|
|
1009
|
+
getSmtpTemplates(templateStatus, limit, offset, sort, options = { headers: {} }) {
|
|
1010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1011
|
+
const localVarPath = this.basePath + '/smtp/templates';
|
|
1012
|
+
let localVarQueryParameters = {};
|
|
1013
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1014
|
+
const produces = ['application/json'];
|
|
1015
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1016
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1017
|
+
}
|
|
1018
|
+
else {
|
|
1019
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1020
|
+
}
|
|
1021
|
+
let localVarFormParams = {};
|
|
1022
|
+
if (templateStatus !== undefined) {
|
|
1023
|
+
localVarQueryParameters['templateStatus'] = models_1.ObjectSerializer.serialize(templateStatus, "boolean");
|
|
1024
|
+
}
|
|
1025
|
+
if (limit !== undefined) {
|
|
1026
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1027
|
+
}
|
|
1028
|
+
if (offset !== undefined) {
|
|
1029
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
1030
|
+
}
|
|
1031
|
+
if (sort !== undefined) {
|
|
1032
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1033
|
+
}
|
|
1034
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1035
|
+
let localVarUseFormData = false;
|
|
1036
|
+
let localVarRequestOptions = {
|
|
1037
|
+
method: 'GET',
|
|
1038
|
+
qs: localVarQueryParameters,
|
|
1039
|
+
headers: localVarHeaderParams,
|
|
1040
|
+
uri: localVarPath,
|
|
1041
|
+
useQuerystring: this._useQuerystring,
|
|
1042
|
+
json: true,
|
|
1043
|
+
};
|
|
1044
|
+
let authenticationPromise = Promise.resolve();
|
|
1045
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1046
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1047
|
+
}
|
|
1048
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1049
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1050
|
+
}
|
|
1051
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1052
|
+
let interceptorPromise = authenticationPromise;
|
|
1053
|
+
for (const interceptor of this.interceptors) {
|
|
1054
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1055
|
+
}
|
|
1056
|
+
return interceptorPromise.then(() => {
|
|
1057
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1058
|
+
if (localVarUseFormData) {
|
|
1059
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1060
|
+
}
|
|
1061
|
+
else {
|
|
1062
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
return new Promise((resolve, reject) => {
|
|
1066
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1067
|
+
if (error) {
|
|
1068
|
+
reject(error);
|
|
1069
|
+
}
|
|
1070
|
+
else {
|
|
1071
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1072
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSmtpTemplates");
|
|
1073
|
+
resolve({ response: response, body: body });
|
|
1074
|
+
}
|
|
1075
|
+
else {
|
|
1076
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
});
|
|
1081
|
+
});
|
|
1082
|
+
});
|
|
1083
|
+
}
|
|
1084
|
+
getTransacBlockedContacts(startDate, endDate, limit, offset, senders, sort, options = { headers: {} }) {
|
|
1085
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1086
|
+
const localVarPath = this.basePath + '/smtp/blockedContacts';
|
|
1087
|
+
let localVarQueryParameters = {};
|
|
1088
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1089
|
+
const produces = ['application/json'];
|
|
1090
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1091
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1092
|
+
}
|
|
1093
|
+
else {
|
|
1094
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1095
|
+
}
|
|
1096
|
+
let localVarFormParams = {};
|
|
1097
|
+
if (startDate !== undefined) {
|
|
1098
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
1099
|
+
}
|
|
1100
|
+
if (endDate !== undefined) {
|
|
1101
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
1102
|
+
}
|
|
1103
|
+
if (limit !== undefined) {
|
|
1104
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1105
|
+
}
|
|
1106
|
+
if (offset !== undefined) {
|
|
1107
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
1108
|
+
}
|
|
1109
|
+
if (senders !== undefined) {
|
|
1110
|
+
localVarQueryParameters['senders'] = models_1.ObjectSerializer.serialize(senders, "Array<string>");
|
|
1111
|
+
}
|
|
1112
|
+
if (sort !== undefined) {
|
|
1113
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1114
|
+
}
|
|
1115
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1116
|
+
let localVarUseFormData = false;
|
|
1117
|
+
let localVarRequestOptions = {
|
|
1118
|
+
method: 'GET',
|
|
1119
|
+
qs: localVarQueryParameters,
|
|
1120
|
+
headers: localVarHeaderParams,
|
|
1121
|
+
uri: localVarPath,
|
|
1122
|
+
useQuerystring: this._useQuerystring,
|
|
1123
|
+
json: true,
|
|
1124
|
+
};
|
|
1125
|
+
let authenticationPromise = Promise.resolve();
|
|
1126
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1127
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1128
|
+
}
|
|
1129
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1130
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1131
|
+
}
|
|
1132
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1133
|
+
let interceptorPromise = authenticationPromise;
|
|
1134
|
+
for (const interceptor of this.interceptors) {
|
|
1135
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1136
|
+
}
|
|
1137
|
+
return interceptorPromise.then(() => {
|
|
1138
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1139
|
+
if (localVarUseFormData) {
|
|
1140
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1141
|
+
}
|
|
1142
|
+
else {
|
|
1143
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1144
|
+
}
|
|
1145
|
+
}
|
|
1146
|
+
return new Promise((resolve, reject) => {
|
|
1147
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1148
|
+
if (error) {
|
|
1149
|
+
reject(error);
|
|
1150
|
+
}
|
|
1151
|
+
else {
|
|
1152
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1153
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetTransacBlockedContacts");
|
|
1154
|
+
resolve({ response: response, body: body });
|
|
1155
|
+
}
|
|
1156
|
+
else {
|
|
1157
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
});
|
|
1162
|
+
});
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
getTransacEmailContent(uuid, options = { headers: {} }) {
|
|
1166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1167
|
+
const localVarPath = this.basePath + '/smtp/emails/{uuid}'
|
|
1168
|
+
.replace('{' + 'uuid' + '}', encodeURIComponent(String(uuid)));
|
|
1169
|
+
let localVarQueryParameters = {};
|
|
1170
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1171
|
+
const produces = ['application/json'];
|
|
1172
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1173
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1174
|
+
}
|
|
1175
|
+
else {
|
|
1176
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1177
|
+
}
|
|
1178
|
+
let localVarFormParams = {};
|
|
1179
|
+
if (uuid === null || uuid === undefined) {
|
|
1180
|
+
throw new Error('Required parameter uuid was null or undefined when calling getTransacEmailContent.');
|
|
1181
|
+
}
|
|
1182
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1183
|
+
let localVarUseFormData = false;
|
|
1184
|
+
let localVarRequestOptions = {
|
|
1185
|
+
method: 'GET',
|
|
1186
|
+
qs: localVarQueryParameters,
|
|
1187
|
+
headers: localVarHeaderParams,
|
|
1188
|
+
uri: localVarPath,
|
|
1189
|
+
useQuerystring: this._useQuerystring,
|
|
1190
|
+
json: true,
|
|
1191
|
+
};
|
|
1192
|
+
let authenticationPromise = Promise.resolve();
|
|
1193
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1194
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1195
|
+
}
|
|
1196
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1197
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1198
|
+
}
|
|
1199
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1200
|
+
let interceptorPromise = authenticationPromise;
|
|
1201
|
+
for (const interceptor of this.interceptors) {
|
|
1202
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1203
|
+
}
|
|
1204
|
+
return interceptorPromise.then(() => {
|
|
1205
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1206
|
+
if (localVarUseFormData) {
|
|
1207
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1208
|
+
}
|
|
1209
|
+
else {
|
|
1210
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
return new Promise((resolve, reject) => {
|
|
1214
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1215
|
+
if (error) {
|
|
1216
|
+
reject(error);
|
|
1217
|
+
}
|
|
1218
|
+
else {
|
|
1219
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1220
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetTransacEmailContent");
|
|
1221
|
+
resolve({ response: response, body: body });
|
|
1222
|
+
}
|
|
1223
|
+
else {
|
|
1224
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
});
|
|
1228
|
+
});
|
|
1229
|
+
});
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
getTransacEmailsList(email, templateId, messageId, startDate, endDate, sort, limit, offset, options = { headers: {} }) {
|
|
1233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
|
+
const localVarPath = this.basePath + '/smtp/emails';
|
|
1235
|
+
let localVarQueryParameters = {};
|
|
1236
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1237
|
+
const produces = ['application/json'];
|
|
1238
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1239
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1240
|
+
}
|
|
1241
|
+
else {
|
|
1242
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1243
|
+
}
|
|
1244
|
+
let localVarFormParams = {};
|
|
1245
|
+
if (email !== undefined) {
|
|
1246
|
+
localVarQueryParameters['email'] = models_1.ObjectSerializer.serialize(email, "string");
|
|
1247
|
+
}
|
|
1248
|
+
if (templateId !== undefined) {
|
|
1249
|
+
localVarQueryParameters['templateId'] = models_1.ObjectSerializer.serialize(templateId, "number");
|
|
1250
|
+
}
|
|
1251
|
+
if (messageId !== undefined) {
|
|
1252
|
+
localVarQueryParameters['messageId'] = models_1.ObjectSerializer.serialize(messageId, "string");
|
|
1253
|
+
}
|
|
1254
|
+
if (startDate !== undefined) {
|
|
1255
|
+
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(startDate, "string");
|
|
1256
|
+
}
|
|
1257
|
+
if (endDate !== undefined) {
|
|
1258
|
+
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
|
|
1259
|
+
}
|
|
1260
|
+
if (sort !== undefined) {
|
|
1261
|
+
localVarQueryParameters['sort'] = models_1.ObjectSerializer.serialize(sort, "'asc' | 'desc'");
|
|
1262
|
+
}
|
|
1263
|
+
if (limit !== undefined) {
|
|
1264
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
|
|
1265
|
+
}
|
|
1266
|
+
if (offset !== undefined) {
|
|
1267
|
+
localVarQueryParameters['offset'] = models_1.ObjectSerializer.serialize(offset, "number");
|
|
1268
|
+
}
|
|
1269
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1270
|
+
let localVarUseFormData = false;
|
|
1271
|
+
let localVarRequestOptions = {
|
|
1272
|
+
method: 'GET',
|
|
1273
|
+
qs: localVarQueryParameters,
|
|
1274
|
+
headers: localVarHeaderParams,
|
|
1275
|
+
uri: localVarPath,
|
|
1276
|
+
useQuerystring: this._useQuerystring,
|
|
1277
|
+
json: true,
|
|
1278
|
+
};
|
|
1279
|
+
let authenticationPromise = Promise.resolve();
|
|
1280
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1281
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1282
|
+
}
|
|
1283
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1284
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1285
|
+
}
|
|
1286
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1287
|
+
let interceptorPromise = authenticationPromise;
|
|
1288
|
+
for (const interceptor of this.interceptors) {
|
|
1289
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1290
|
+
}
|
|
1291
|
+
return interceptorPromise.then(() => {
|
|
1292
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1293
|
+
if (localVarUseFormData) {
|
|
1294
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1295
|
+
}
|
|
1296
|
+
else {
|
|
1297
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
return new Promise((resolve, reject) => {
|
|
1301
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1302
|
+
if (error) {
|
|
1303
|
+
reject(error);
|
|
1304
|
+
}
|
|
1305
|
+
else {
|
|
1306
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1307
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetTransacEmailsList");
|
|
1308
|
+
resolve({ response: response, body: body });
|
|
1309
|
+
}
|
|
1310
|
+
else {
|
|
1311
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
});
|
|
1315
|
+
});
|
|
1316
|
+
});
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
sendTestTemplate(templateId, sendTestEmail, options = { headers: {} }) {
|
|
1320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1321
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}/sendTest'
|
|
1322
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
1323
|
+
let localVarQueryParameters = {};
|
|
1324
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1325
|
+
const produces = ['application/json'];
|
|
1326
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1327
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1328
|
+
}
|
|
1329
|
+
else {
|
|
1330
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1331
|
+
}
|
|
1332
|
+
let localVarFormParams = {};
|
|
1333
|
+
if (templateId === null || templateId === undefined) {
|
|
1334
|
+
throw new Error('Required parameter templateId was null or undefined when calling sendTestTemplate.');
|
|
1335
|
+
}
|
|
1336
|
+
if (sendTestEmail === null || sendTestEmail === undefined) {
|
|
1337
|
+
throw new Error('Required parameter sendTestEmail was null or undefined when calling sendTestTemplate.');
|
|
1338
|
+
}
|
|
1339
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1340
|
+
let localVarUseFormData = false;
|
|
1341
|
+
let localVarRequestOptions = {
|
|
1342
|
+
method: 'POST',
|
|
1343
|
+
qs: localVarQueryParameters,
|
|
1344
|
+
headers: localVarHeaderParams,
|
|
1345
|
+
uri: localVarPath,
|
|
1346
|
+
useQuerystring: this._useQuerystring,
|
|
1347
|
+
json: true,
|
|
1348
|
+
body: models_1.ObjectSerializer.serialize(sendTestEmail, "SendTestEmail")
|
|
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
|
+
let interceptorPromise = authenticationPromise;
|
|
1359
|
+
for (const interceptor of this.interceptors) {
|
|
1360
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1361
|
+
}
|
|
1362
|
+
return interceptorPromise.then(() => {
|
|
1363
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1364
|
+
if (localVarUseFormData) {
|
|
1365
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1366
|
+
}
|
|
1367
|
+
else {
|
|
1368
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
return new Promise((resolve, reject) => {
|
|
1372
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1373
|
+
if (error) {
|
|
1374
|
+
reject(error);
|
|
1375
|
+
}
|
|
1376
|
+
else {
|
|
1377
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1378
|
+
resolve({ response: response, body: body });
|
|
1379
|
+
}
|
|
1380
|
+
else {
|
|
1381
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
});
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
}
|
|
1389
|
+
sendTransacEmail(sendSmtpEmail, options = { headers: {} }) {
|
|
1390
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1391
|
+
const localVarPath = this.basePath + '/smtp/email';
|
|
1392
|
+
let localVarQueryParameters = {};
|
|
1393
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1394
|
+
const produces = ['application/json'];
|
|
1395
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1396
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1397
|
+
}
|
|
1398
|
+
else {
|
|
1399
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1400
|
+
}
|
|
1401
|
+
let localVarFormParams = {};
|
|
1402
|
+
if (sendSmtpEmail === null || sendSmtpEmail === undefined) {
|
|
1403
|
+
throw new Error('Required parameter sendSmtpEmail was null or undefined when calling sendTransacEmail.');
|
|
1404
|
+
}
|
|
1405
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1406
|
+
let localVarUseFormData = false;
|
|
1407
|
+
let localVarRequestOptions = {
|
|
1408
|
+
method: 'POST',
|
|
1409
|
+
qs: localVarQueryParameters,
|
|
1410
|
+
headers: localVarHeaderParams,
|
|
1411
|
+
uri: localVarPath,
|
|
1412
|
+
useQuerystring: this._useQuerystring,
|
|
1413
|
+
json: true,
|
|
1414
|
+
body: models_1.ObjectSerializer.serialize(sendSmtpEmail, "SendSmtpEmail")
|
|
1415
|
+
};
|
|
1416
|
+
let authenticationPromise = Promise.resolve();
|
|
1417
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1418
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1419
|
+
}
|
|
1420
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1421
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1422
|
+
}
|
|
1423
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1424
|
+
let interceptorPromise = authenticationPromise;
|
|
1425
|
+
for (const interceptor of this.interceptors) {
|
|
1426
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1427
|
+
}
|
|
1428
|
+
return interceptorPromise.then(() => {
|
|
1429
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1430
|
+
if (localVarUseFormData) {
|
|
1431
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1432
|
+
}
|
|
1433
|
+
else {
|
|
1434
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1435
|
+
}
|
|
1436
|
+
}
|
|
1437
|
+
return new Promise((resolve, reject) => {
|
|
1438
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1439
|
+
if (error) {
|
|
1440
|
+
reject(error);
|
|
1441
|
+
}
|
|
1442
|
+
else {
|
|
1443
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1444
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateSmtpEmail");
|
|
1445
|
+
resolve({ response: response, body: body });
|
|
1446
|
+
}
|
|
1447
|
+
else {
|
|
1448
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
});
|
|
1452
|
+
});
|
|
1453
|
+
});
|
|
1454
|
+
});
|
|
1455
|
+
}
|
|
1456
|
+
smtpBlockedContactsEmailDelete(email, options = { headers: {} }) {
|
|
1457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1458
|
+
const localVarPath = this.basePath + '/smtp/blockedContacts/{email}'
|
|
1459
|
+
.replace('{' + 'email' + '}', encodeURIComponent(String(email)));
|
|
1460
|
+
let localVarQueryParameters = {};
|
|
1461
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1462
|
+
const produces = ['application/json'];
|
|
1463
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1464
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1465
|
+
}
|
|
1466
|
+
else {
|
|
1467
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1468
|
+
}
|
|
1469
|
+
let localVarFormParams = {};
|
|
1470
|
+
if (email === null || email === undefined) {
|
|
1471
|
+
throw new Error('Required parameter email was null or undefined when calling smtpBlockedContactsEmailDelete.');
|
|
1472
|
+
}
|
|
1473
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1474
|
+
let localVarUseFormData = false;
|
|
1475
|
+
let localVarRequestOptions = {
|
|
1476
|
+
method: 'DELETE',
|
|
1477
|
+
qs: localVarQueryParameters,
|
|
1478
|
+
headers: localVarHeaderParams,
|
|
1479
|
+
uri: localVarPath,
|
|
1480
|
+
useQuerystring: this._useQuerystring,
|
|
1481
|
+
json: true,
|
|
1482
|
+
};
|
|
1483
|
+
let authenticationPromise = Promise.resolve();
|
|
1484
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1485
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1486
|
+
}
|
|
1487
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1488
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1489
|
+
}
|
|
1490
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1491
|
+
let interceptorPromise = authenticationPromise;
|
|
1492
|
+
for (const interceptor of this.interceptors) {
|
|
1493
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1494
|
+
}
|
|
1495
|
+
return interceptorPromise.then(() => {
|
|
1496
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1497
|
+
if (localVarUseFormData) {
|
|
1498
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1499
|
+
}
|
|
1500
|
+
else {
|
|
1501
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
return new Promise((resolve, reject) => {
|
|
1505
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1506
|
+
if (error) {
|
|
1507
|
+
reject(error);
|
|
1508
|
+
}
|
|
1509
|
+
else {
|
|
1510
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1511
|
+
resolve({ response: response, body: body });
|
|
1512
|
+
}
|
|
1513
|
+
else {
|
|
1514
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1518
|
+
});
|
|
1519
|
+
});
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
smtpLogIdentifierDelete(identifier, options = { headers: {} }) {
|
|
1523
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1524
|
+
const localVarPath = this.basePath + '/smtp/log/{identifier}'
|
|
1525
|
+
.replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
|
|
1526
|
+
let localVarQueryParameters = {};
|
|
1527
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1528
|
+
const produces = ['application/json'];
|
|
1529
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1530
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1531
|
+
}
|
|
1532
|
+
else {
|
|
1533
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1534
|
+
}
|
|
1535
|
+
let localVarFormParams = {};
|
|
1536
|
+
if (identifier === null || identifier === undefined) {
|
|
1537
|
+
throw new Error('Required parameter identifier was null or undefined when calling smtpLogIdentifierDelete.');
|
|
1538
|
+
}
|
|
1539
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1540
|
+
let localVarUseFormData = false;
|
|
1541
|
+
let localVarRequestOptions = {
|
|
1542
|
+
method: 'DELETE',
|
|
1543
|
+
qs: localVarQueryParameters,
|
|
1544
|
+
headers: localVarHeaderParams,
|
|
1545
|
+
uri: localVarPath,
|
|
1546
|
+
useQuerystring: this._useQuerystring,
|
|
1547
|
+
json: true,
|
|
1548
|
+
};
|
|
1549
|
+
let authenticationPromise = Promise.resolve();
|
|
1550
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1551
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1552
|
+
}
|
|
1553
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1554
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1555
|
+
}
|
|
1556
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1557
|
+
let interceptorPromise = authenticationPromise;
|
|
1558
|
+
for (const interceptor of this.interceptors) {
|
|
1559
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1560
|
+
}
|
|
1561
|
+
return interceptorPromise.then(() => {
|
|
1562
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1563
|
+
if (localVarUseFormData) {
|
|
1564
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1565
|
+
}
|
|
1566
|
+
else {
|
|
1567
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
return new Promise((resolve, reject) => {
|
|
1571
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1572
|
+
if (error) {
|
|
1573
|
+
reject(error);
|
|
1574
|
+
}
|
|
1575
|
+
else {
|
|
1576
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1577
|
+
resolve({ response: response, body: body });
|
|
1578
|
+
}
|
|
1579
|
+
else {
|
|
1580
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
});
|
|
1584
|
+
});
|
|
1585
|
+
});
|
|
1586
|
+
});
|
|
1587
|
+
}
|
|
1588
|
+
updateSmtpTemplate(templateId, smtpTemplate, options = { headers: {} }) {
|
|
1589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1590
|
+
const localVarPath = this.basePath + '/smtp/templates/{templateId}'
|
|
1591
|
+
.replace('{' + 'templateId' + '}', encodeURIComponent(String(templateId)));
|
|
1592
|
+
let localVarQueryParameters = {};
|
|
1593
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
1594
|
+
const produces = ['application/json'];
|
|
1595
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1596
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1597
|
+
}
|
|
1598
|
+
else {
|
|
1599
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1600
|
+
}
|
|
1601
|
+
let localVarFormParams = {};
|
|
1602
|
+
if (templateId === null || templateId === undefined) {
|
|
1603
|
+
throw new Error('Required parameter templateId was null or undefined when calling updateSmtpTemplate.');
|
|
1604
|
+
}
|
|
1605
|
+
if (smtpTemplate === null || smtpTemplate === undefined) {
|
|
1606
|
+
throw new Error('Required parameter smtpTemplate was null or undefined when calling updateSmtpTemplate.');
|
|
1607
|
+
}
|
|
1608
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1609
|
+
let localVarUseFormData = false;
|
|
1610
|
+
let localVarRequestOptions = {
|
|
1611
|
+
method: 'PUT',
|
|
1612
|
+
qs: localVarQueryParameters,
|
|
1613
|
+
headers: localVarHeaderParams,
|
|
1614
|
+
uri: localVarPath,
|
|
1615
|
+
useQuerystring: this._useQuerystring,
|
|
1616
|
+
json: true,
|
|
1617
|
+
body: models_1.ObjectSerializer.serialize(smtpTemplate, "UpdateSmtpTemplate")
|
|
1618
|
+
};
|
|
1619
|
+
let authenticationPromise = Promise.resolve();
|
|
1620
|
+
if (this.authentications.apiKey.apiKey) {
|
|
1621
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
|
|
1622
|
+
}
|
|
1623
|
+
if (this.authentications.partnerKey.apiKey) {
|
|
1624
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
|
|
1625
|
+
}
|
|
1626
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1627
|
+
let interceptorPromise = authenticationPromise;
|
|
1628
|
+
for (const interceptor of this.interceptors) {
|
|
1629
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
1630
|
+
}
|
|
1631
|
+
return interceptorPromise.then(() => {
|
|
1632
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1633
|
+
if (localVarUseFormData) {
|
|
1634
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1635
|
+
}
|
|
1636
|
+
else {
|
|
1637
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
return new Promise((resolve, reject) => {
|
|
1641
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
1642
|
+
if (error) {
|
|
1643
|
+
reject(error);
|
|
1644
|
+
}
|
|
1645
|
+
else {
|
|
1646
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1647
|
+
resolve({ response: response, body: body });
|
|
1648
|
+
}
|
|
1649
|
+
else {
|
|
1650
|
+
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
});
|
|
1654
|
+
});
|
|
1655
|
+
});
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
exports.TransactionalEmailsApi = TransactionalEmailsApi;
|
|
1660
|
+
//# sourceMappingURL=transactionalEmailsApi.js.map
|