@getbrevo/brevo 1.0.1 → 2.0.0-beta.2

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