@getbrevo/brevo 1.0.0 → 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
@@ -1,1683 +0,0 @@
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
- * OpenAPI spec version: 3.0.0
6
- * Contact: contact@brevo.com
7
- *
8
- * NOTE: This class is auto generated by the swagger code generator program.
9
- * https://github.com/swagger-api/swagger-codegen.git
10
- *
11
- * Swagger Codegen version: 2.4.32
12
- *
13
- * Do not edit the class manually.
14
- *
15
- */
16
-
17
- (function(root, factory) {
18
- if (typeof define === 'function' && define.amd) {
19
- // AMD. Register as an anonymous module.
20
- define(['ApiClient', 'model/AddContactToList', 'model/CreateAttribute', 'model/CreateContact', 'model/CreateDoiContact', 'model/CreateList', 'model/CreateModel', 'model/CreateUpdateContactModel', 'model/CreateUpdateFolder', 'model/CreatedProcessId', 'model/ErrorModel', 'model/GetAttributes', 'model/GetContactCampaignStats', 'model/GetContacts', 'model/GetExtendedContactDetails', 'model/GetExtendedList', 'model/GetFolder', 'model/GetFolderLists', 'model/GetFolders', 'model/GetLists', 'model/GetSegments', 'model/PostContactInfo', 'model/RemoveContactFromList', 'model/RequestContactExport', 'model/RequestContactImport', 'model/UpdateAttribute', 'model/UpdateBatchContacts', 'model/UpdateContact', 'model/UpdateList'], factory);
21
- } else if (typeof module === 'object' && module.exports) {
22
- // CommonJS-like environments that support module.exports, like Node.
23
- module.exports = factory(require('../ApiClient'), require('../model/AddContactToList'), require('../model/CreateAttribute'), require('../model/CreateContact'), require('../model/CreateDoiContact'), require('../model/CreateList'), require('../model/CreateModel'), require('../model/CreateUpdateContactModel'), require('../model/CreateUpdateFolder'), require('../model/CreatedProcessId'), require('../model/ErrorModel'), require('../model/GetAttributes'), require('../model/GetContactCampaignStats'), require('../model/GetContacts'), require('../model/GetExtendedContactDetails'), require('../model/GetExtendedList'), require('../model/GetFolder'), require('../model/GetFolderLists'), require('../model/GetFolders'), require('../model/GetLists'), require('../model/GetSegments'), require('../model/PostContactInfo'), require('../model/RemoveContactFromList'), require('../model/RequestContactExport'), require('../model/RequestContactImport'), require('../model/UpdateAttribute'), require('../model/UpdateBatchContacts'), require('../model/UpdateContact'), require('../model/UpdateList'));
24
- } else {
25
- // Browser globals (root is window)
26
- if (!root.Brevo) {
27
- root.Brevo = {};
28
- }
29
- root.Brevo.ContactsApi = factory(root.Brevo.ApiClient, root.Brevo.AddContactToList, root.Brevo.CreateAttribute, root.Brevo.CreateContact, root.Brevo.CreateDoiContact, root.Brevo.CreateList, root.Brevo.CreateModel, root.Brevo.CreateUpdateContactModel, root.Brevo.CreateUpdateFolder, root.Brevo.CreatedProcessId, root.Brevo.ErrorModel, root.Brevo.GetAttributes, root.Brevo.GetContactCampaignStats, root.Brevo.GetContacts, root.Brevo.GetExtendedContactDetails, root.Brevo.GetExtendedList, root.Brevo.GetFolder, root.Brevo.GetFolderLists, root.Brevo.GetFolders, root.Brevo.GetLists, root.Brevo.GetSegments, root.Brevo.PostContactInfo, root.Brevo.RemoveContactFromList, root.Brevo.RequestContactExport, root.Brevo.RequestContactImport, root.Brevo.UpdateAttribute, root.Brevo.UpdateBatchContacts, root.Brevo.UpdateContact, root.Brevo.UpdateList);
30
- }
31
- }(this, function(ApiClient, AddContactToList, CreateAttribute, CreateContact, CreateDoiContact, CreateList, CreateModel, CreateUpdateContactModel, CreateUpdateFolder, CreatedProcessId, ErrorModel, GetAttributes, GetContactCampaignStats, GetContacts, GetExtendedContactDetails, GetExtendedList, GetFolder, GetFolderLists, GetFolders, GetLists, GetSegments, PostContactInfo, RemoveContactFromList, RequestContactExport, RequestContactImport, UpdateAttribute, UpdateBatchContacts, UpdateContact, UpdateList) {
32
- 'use strict';
33
-
34
- /**
35
- * Contacts service.
36
- * @module api/ContactsApi
37
- * @version 1.0.0
38
- */
39
-
40
- /**
41
- * Constructs a new ContactsApi.
42
- * @alias module:api/ContactsApi
43
- * @class
44
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
45
- * default to {@link module:ApiClient#instance} if unspecified.
46
- */
47
- var exports = function(apiClient) {
48
- this.apiClient = apiClient || ApiClient.instance;
49
-
50
-
51
-
52
- /**
53
- * Add existing contacts to a list
54
- * @param {Number} listId Id of the list
55
- * @param {module:model/AddContactToList} contactEmails Emails addresses OR IDs of the contacts
56
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostContactInfo} and HTTP response
57
- */
58
- this.addContactToListWithHttpInfo = function(listId, contactEmails) {
59
- var postBody = contactEmails;
60
-
61
- // verify the required parameter 'listId' is set
62
- if (listId === undefined || listId === null) {
63
- throw new Error("Missing the required parameter 'listId' when calling addContactToList");
64
- }
65
-
66
- // verify the required parameter 'contactEmails' is set
67
- if (contactEmails === undefined || contactEmails === null) {
68
- throw new Error("Missing the required parameter 'contactEmails' when calling addContactToList");
69
- }
70
-
71
-
72
- var pathParams = {
73
- 'listId': listId
74
- };
75
- var queryParams = {
76
- };
77
- var collectionQueryParams = {
78
- };
79
- var headerParams = {
80
- };
81
- var formParams = {
82
- };
83
-
84
- var authNames = ['api-key', 'partner-key'];
85
- var contentTypes = ['application/json'];
86
- var accepts = ['application/json'];
87
- var returnType = PostContactInfo;
88
-
89
- return this.apiClient.callApi(
90
- '/contacts/lists/{listId}/contacts/add', 'POST',
91
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
92
- authNames, contentTypes, accepts, returnType
93
- );
94
- }
95
-
96
- /**
97
- * Add existing contacts to a list
98
- * @param {Number} listId Id of the list
99
- * @param {module:model/AddContactToList} contactEmails Emails addresses OR IDs of the contacts
100
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostContactInfo}
101
- */
102
- this.addContactToList = function(listId, contactEmails) {
103
- return this.addContactToListWithHttpInfo(listId, contactEmails)
104
- .then(function(response_and_data) {
105
- return response_and_data.data;
106
- });
107
- }
108
-
109
-
110
- /**
111
- * Create contact attribute
112
- * @param {module:model/String} attributeCategory Category of the attribute
113
- * @param {String} attributeName Name of the attribute
114
- * @param {module:model/CreateAttribute} createAttribute Values to create an attribute
115
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
116
- */
117
- this.createAttributeWithHttpInfo = function(attributeCategory, attributeName, createAttribute) {
118
- var postBody = createAttribute;
119
-
120
- // verify the required parameter 'attributeCategory' is set
121
- if (attributeCategory === undefined || attributeCategory === null) {
122
- throw new Error("Missing the required parameter 'attributeCategory' when calling createAttribute");
123
- }
124
-
125
- // verify the required parameter 'attributeName' is set
126
- if (attributeName === undefined || attributeName === null) {
127
- throw new Error("Missing the required parameter 'attributeName' when calling createAttribute");
128
- }
129
-
130
- // verify the required parameter 'createAttribute' is set
131
- if (createAttribute === undefined || createAttribute === null) {
132
- throw new Error("Missing the required parameter 'createAttribute' when calling createAttribute");
133
- }
134
-
135
-
136
- var pathParams = {
137
- 'attributeCategory': attributeCategory,
138
- 'attributeName': attributeName
139
- };
140
- var queryParams = {
141
- };
142
- var collectionQueryParams = {
143
- };
144
- var headerParams = {
145
- };
146
- var formParams = {
147
- };
148
-
149
- var authNames = ['api-key', 'partner-key'];
150
- var contentTypes = ['application/json'];
151
- var accepts = ['application/json'];
152
- var returnType = null;
153
-
154
- return this.apiClient.callApi(
155
- '/contacts/attributes/{attributeCategory}/{attributeName}', 'POST',
156
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
157
- authNames, contentTypes, accepts, returnType
158
- );
159
- }
160
-
161
- /**
162
- * Create contact attribute
163
- * @param {module:model/String} attributeCategory Category of the attribute
164
- * @param {String} attributeName Name of the attribute
165
- * @param {module:model/CreateAttribute} createAttribute Values to create an attribute
166
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
167
- */
168
- this.createAttribute = function(attributeCategory, attributeName, createAttribute) {
169
- return this.createAttributeWithHttpInfo(attributeCategory, attributeName, createAttribute)
170
- .then(function(response_and_data) {
171
- return response_and_data.data;
172
- });
173
- }
174
-
175
-
176
- /**
177
- * Create a contact
178
- * @param {module:model/CreateContact} createContact Values to create a contact
179
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUpdateContactModel} and HTTP response
180
- */
181
- this.createContactWithHttpInfo = function(createContact) {
182
- var postBody = createContact;
183
-
184
- // verify the required parameter 'createContact' is set
185
- if (createContact === undefined || createContact === null) {
186
- throw new Error("Missing the required parameter 'createContact' when calling createContact");
187
- }
188
-
189
-
190
- var pathParams = {
191
- };
192
- var queryParams = {
193
- };
194
- var collectionQueryParams = {
195
- };
196
- var headerParams = {
197
- };
198
- var formParams = {
199
- };
200
-
201
- var authNames = ['api-key', 'partner-key'];
202
- var contentTypes = ['application/json'];
203
- var accepts = ['application/json'];
204
- var returnType = CreateUpdateContactModel;
205
-
206
- return this.apiClient.callApi(
207
- '/contacts', 'POST',
208
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
209
- authNames, contentTypes, accepts, returnType
210
- );
211
- }
212
-
213
- /**
214
- * Create a contact
215
- * @param {module:model/CreateContact} createContact Values to create a contact
216
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUpdateContactModel}
217
- */
218
- this.createContact = function(createContact) {
219
- return this.createContactWithHttpInfo(createContact)
220
- .then(function(response_and_data) {
221
- return response_and_data.data;
222
- });
223
- }
224
-
225
-
226
- /**
227
- * Create Contact via DOI (Double-Opt-In) Flow
228
- * @param {module:model/CreateDoiContact} createDoiContact Values to create the Double opt-in (DOI) contact
229
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
230
- */
231
- this.createDoiContactWithHttpInfo = function(createDoiContact) {
232
- var postBody = createDoiContact;
233
-
234
- // verify the required parameter 'createDoiContact' is set
235
- if (createDoiContact === undefined || createDoiContact === null) {
236
- throw new Error("Missing the required parameter 'createDoiContact' when calling createDoiContact");
237
- }
238
-
239
-
240
- var pathParams = {
241
- };
242
- var queryParams = {
243
- };
244
- var collectionQueryParams = {
245
- };
246
- var headerParams = {
247
- };
248
- var formParams = {
249
- };
250
-
251
- var authNames = ['api-key', 'partner-key'];
252
- var contentTypes = ['application/json'];
253
- var accepts = ['application/json'];
254
- var returnType = null;
255
-
256
- return this.apiClient.callApi(
257
- '/contacts/doubleOptinConfirmation', 'POST',
258
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
259
- authNames, contentTypes, accepts, returnType
260
- );
261
- }
262
-
263
- /**
264
- * Create Contact via DOI (Double-Opt-In) Flow
265
- * @param {module:model/CreateDoiContact} createDoiContact Values to create the Double opt-in (DOI) contact
266
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
267
- */
268
- this.createDoiContact = function(createDoiContact) {
269
- return this.createDoiContactWithHttpInfo(createDoiContact)
270
- .then(function(response_and_data) {
271
- return response_and_data.data;
272
- });
273
- }
274
-
275
-
276
- /**
277
- * Create a folder
278
- * @param {module:model/CreateUpdateFolder} createFolder Name of the folder
279
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateModel} and HTTP response
280
- */
281
- this.createFolderWithHttpInfo = function(createFolder) {
282
- var postBody = createFolder;
283
-
284
- // verify the required parameter 'createFolder' is set
285
- if (createFolder === undefined || createFolder === null) {
286
- throw new Error("Missing the required parameter 'createFolder' when calling createFolder");
287
- }
288
-
289
-
290
- var pathParams = {
291
- };
292
- var queryParams = {
293
- };
294
- var collectionQueryParams = {
295
- };
296
- var headerParams = {
297
- };
298
- var formParams = {
299
- };
300
-
301
- var authNames = ['api-key', 'partner-key'];
302
- var contentTypes = ['application/json'];
303
- var accepts = ['application/json'];
304
- var returnType = CreateModel;
305
-
306
- return this.apiClient.callApi(
307
- '/contacts/folders', 'POST',
308
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
309
- authNames, contentTypes, accepts, returnType
310
- );
311
- }
312
-
313
- /**
314
- * Create a folder
315
- * @param {module:model/CreateUpdateFolder} createFolder Name of the folder
316
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateModel}
317
- */
318
- this.createFolder = function(createFolder) {
319
- return this.createFolderWithHttpInfo(createFolder)
320
- .then(function(response_and_data) {
321
- return response_and_data.data;
322
- });
323
- }
324
-
325
-
326
- /**
327
- * Create a list
328
- * @param {module:model/CreateList} createList Values to create a list
329
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateModel} and HTTP response
330
- */
331
- this.createListWithHttpInfo = function(createList) {
332
- var postBody = createList;
333
-
334
- // verify the required parameter 'createList' is set
335
- if (createList === undefined || createList === null) {
336
- throw new Error("Missing the required parameter 'createList' when calling createList");
337
- }
338
-
339
-
340
- var pathParams = {
341
- };
342
- var queryParams = {
343
- };
344
- var collectionQueryParams = {
345
- };
346
- var headerParams = {
347
- };
348
- var formParams = {
349
- };
350
-
351
- var authNames = ['api-key', 'partner-key'];
352
- var contentTypes = ['application/json'];
353
- var accepts = ['application/json'];
354
- var returnType = CreateModel;
355
-
356
- return this.apiClient.callApi(
357
- '/contacts/lists', 'POST',
358
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
359
- authNames, contentTypes, accepts, returnType
360
- );
361
- }
362
-
363
- /**
364
- * Create a list
365
- * @param {module:model/CreateList} createList Values to create a list
366
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateModel}
367
- */
368
- this.createList = function(createList) {
369
- return this.createListWithHttpInfo(createList)
370
- .then(function(response_and_data) {
371
- return response_and_data.data;
372
- });
373
- }
374
-
375
-
376
- /**
377
- * Delete an attribute
378
- * @param {module:model/String} attributeCategory Category of the attribute
379
- * @param {String} attributeName Name of the existing attribute
380
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
381
- */
382
- this.deleteAttributeWithHttpInfo = function(attributeCategory, attributeName) {
383
- var postBody = null;
384
-
385
- // verify the required parameter 'attributeCategory' is set
386
- if (attributeCategory === undefined || attributeCategory === null) {
387
- throw new Error("Missing the required parameter 'attributeCategory' when calling deleteAttribute");
388
- }
389
-
390
- // verify the required parameter 'attributeName' is set
391
- if (attributeName === undefined || attributeName === null) {
392
- throw new Error("Missing the required parameter 'attributeName' when calling deleteAttribute");
393
- }
394
-
395
-
396
- var pathParams = {
397
- 'attributeCategory': attributeCategory,
398
- 'attributeName': attributeName
399
- };
400
- var queryParams = {
401
- };
402
- var collectionQueryParams = {
403
- };
404
- var headerParams = {
405
- };
406
- var formParams = {
407
- };
408
-
409
- var authNames = ['api-key', 'partner-key'];
410
- var contentTypes = ['application/json'];
411
- var accepts = ['application/json'];
412
- var returnType = null;
413
-
414
- return this.apiClient.callApi(
415
- '/contacts/attributes/{attributeCategory}/{attributeName}', 'DELETE',
416
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
417
- authNames, contentTypes, accepts, returnType
418
- );
419
- }
420
-
421
- /**
422
- * Delete an attribute
423
- * @param {module:model/String} attributeCategory Category of the attribute
424
- * @param {String} attributeName Name of the existing attribute
425
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
426
- */
427
- this.deleteAttribute = function(attributeCategory, attributeName) {
428
- return this.deleteAttributeWithHttpInfo(attributeCategory, attributeName)
429
- .then(function(response_and_data) {
430
- return response_and_data.data;
431
- });
432
- }
433
-
434
-
435
- /**
436
- * Delete a contact
437
- * @param {String} identifier Email (urlencoded) OR ID of the contact
438
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
439
- */
440
- this.deleteContactWithHttpInfo = function(identifier) {
441
- var postBody = null;
442
-
443
- // verify the required parameter 'identifier' is set
444
- if (identifier === undefined || identifier === null) {
445
- throw new Error("Missing the required parameter 'identifier' when calling deleteContact");
446
- }
447
-
448
-
449
- var pathParams = {
450
- 'identifier': identifier
451
- };
452
- var queryParams = {
453
- };
454
- var collectionQueryParams = {
455
- };
456
- var headerParams = {
457
- };
458
- var formParams = {
459
- };
460
-
461
- var authNames = ['api-key', 'partner-key'];
462
- var contentTypes = ['application/json'];
463
- var accepts = ['application/json'];
464
- var returnType = null;
465
-
466
- return this.apiClient.callApi(
467
- '/contacts/{identifier}', 'DELETE',
468
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
469
- authNames, contentTypes, accepts, returnType
470
- );
471
- }
472
-
473
- /**
474
- * Delete a contact
475
- * @param {String} identifier Email (urlencoded) OR ID of the contact
476
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
477
- */
478
- this.deleteContact = function(identifier) {
479
- return this.deleteContactWithHttpInfo(identifier)
480
- .then(function(response_and_data) {
481
- return response_and_data.data;
482
- });
483
- }
484
-
485
-
486
- /**
487
- * Delete a folder (and all its lists)
488
- * @param {Number} folderId Id of the folder
489
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
490
- */
491
- this.deleteFolderWithHttpInfo = function(folderId) {
492
- var postBody = null;
493
-
494
- // verify the required parameter 'folderId' is set
495
- if (folderId === undefined || folderId === null) {
496
- throw new Error("Missing the required parameter 'folderId' when calling deleteFolder");
497
- }
498
-
499
-
500
- var pathParams = {
501
- 'folderId': folderId
502
- };
503
- var queryParams = {
504
- };
505
- var collectionQueryParams = {
506
- };
507
- var headerParams = {
508
- };
509
- var formParams = {
510
- };
511
-
512
- var authNames = ['api-key', 'partner-key'];
513
- var contentTypes = ['application/json'];
514
- var accepts = ['application/json'];
515
- var returnType = null;
516
-
517
- return this.apiClient.callApi(
518
- '/contacts/folders/{folderId}', 'DELETE',
519
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
520
- authNames, contentTypes, accepts, returnType
521
- );
522
- }
523
-
524
- /**
525
- * Delete a folder (and all its lists)
526
- * @param {Number} folderId Id of the folder
527
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
528
- */
529
- this.deleteFolder = function(folderId) {
530
- return this.deleteFolderWithHttpInfo(folderId)
531
- .then(function(response_and_data) {
532
- return response_and_data.data;
533
- });
534
- }
535
-
536
-
537
- /**
538
- * Delete a list
539
- * @param {Number} listId Id of the list
540
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
541
- */
542
- this.deleteListWithHttpInfo = function(listId) {
543
- var postBody = null;
544
-
545
- // verify the required parameter 'listId' is set
546
- if (listId === undefined || listId === null) {
547
- throw new Error("Missing the required parameter 'listId' when calling deleteList");
548
- }
549
-
550
-
551
- var pathParams = {
552
- 'listId': listId
553
- };
554
- var queryParams = {
555
- };
556
- var collectionQueryParams = {
557
- };
558
- var headerParams = {
559
- };
560
- var formParams = {
561
- };
562
-
563
- var authNames = ['api-key', 'partner-key'];
564
- var contentTypes = ['application/json'];
565
- var accepts = ['application/json'];
566
- var returnType = null;
567
-
568
- return this.apiClient.callApi(
569
- '/contacts/lists/{listId}', 'DELETE',
570
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
571
- authNames, contentTypes, accepts, returnType
572
- );
573
- }
574
-
575
- /**
576
- * Delete a list
577
- * @param {Number} listId Id of the list
578
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
579
- */
580
- this.deleteList = function(listId) {
581
- return this.deleteListWithHttpInfo(listId)
582
- .then(function(response_and_data) {
583
- return response_and_data.data;
584
- });
585
- }
586
-
587
-
588
- /**
589
- * List all attributes
590
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAttributes} and HTTP response
591
- */
592
- this.getAttributesWithHttpInfo = function() {
593
- var postBody = null;
594
-
595
-
596
- var pathParams = {
597
- };
598
- var queryParams = {
599
- };
600
- var collectionQueryParams = {
601
- };
602
- var headerParams = {
603
- };
604
- var formParams = {
605
- };
606
-
607
- var authNames = ['api-key', 'partner-key'];
608
- var contentTypes = ['application/json'];
609
- var accepts = ['application/json'];
610
- var returnType = GetAttributes;
611
-
612
- return this.apiClient.callApi(
613
- '/contacts/attributes', 'GET',
614
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
615
- authNames, contentTypes, accepts, returnType
616
- );
617
- }
618
-
619
- /**
620
- * List all attributes
621
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAttributes}
622
- */
623
- this.getAttributes = function() {
624
- return this.getAttributesWithHttpInfo()
625
- .then(function(response_and_data) {
626
- return response_and_data.data;
627
- });
628
- }
629
-
630
-
631
- /**
632
- * Get a contact's details
633
- * Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.brevo.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
634
- * @param {String} identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
635
- * @param {Object} opts Optional parameters
636
- * @param {String} opts.startDate **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
637
- * @param {String} opts.endDate **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
638
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetExtendedContactDetails} and HTTP response
639
- */
640
- this.getContactInfoWithHttpInfo = function(identifier, opts) {
641
- opts = opts || {};
642
- var postBody = null;
643
-
644
- // verify the required parameter 'identifier' is set
645
- if (identifier === undefined || identifier === null) {
646
- throw new Error("Missing the required parameter 'identifier' when calling getContactInfo");
647
- }
648
-
649
-
650
- var pathParams = {
651
- 'identifier': identifier
652
- };
653
- var queryParams = {
654
- 'startDate': opts['startDate'],
655
- 'endDate': opts['endDate'],
656
- };
657
- var collectionQueryParams = {
658
- };
659
- var headerParams = {
660
- };
661
- var formParams = {
662
- };
663
-
664
- var authNames = ['api-key', 'partner-key'];
665
- var contentTypes = ['application/json'];
666
- var accepts = ['application/json'];
667
- var returnType = GetExtendedContactDetails;
668
-
669
- return this.apiClient.callApi(
670
- '/contacts/{identifier}', 'GET',
671
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
672
- authNames, contentTypes, accepts, returnType
673
- );
674
- }
675
-
676
- /**
677
- * Get a contact's details
678
- * Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.brevo.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
679
- * @param {String} identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
680
- * @param {Object} opts Optional parameters
681
- * @param {String} opts.startDate **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
682
- * @param {String} opts.endDate **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
683
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetExtendedContactDetails}
684
- */
685
- this.getContactInfo = function(identifier, opts) {
686
- return this.getContactInfoWithHttpInfo(identifier, opts)
687
- .then(function(response_and_data) {
688
- return response_and_data.data;
689
- });
690
- }
691
-
692
-
693
- /**
694
- * Get email campaigns' statistics for a contact
695
- * @param {String} identifier Email (urlencoded) OR ID of the contact
696
- * @param {Object} opts Optional parameters
697
- * @param {String} opts.startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
698
- * @param {String} opts.endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
699
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContactCampaignStats} and HTTP response
700
- */
701
- this.getContactStatsWithHttpInfo = function(identifier, opts) {
702
- opts = opts || {};
703
- var postBody = null;
704
-
705
- // verify the required parameter 'identifier' is set
706
- if (identifier === undefined || identifier === null) {
707
- throw new Error("Missing the required parameter 'identifier' when calling getContactStats");
708
- }
709
-
710
-
711
- var pathParams = {
712
- 'identifier': identifier
713
- };
714
- var queryParams = {
715
- 'startDate': opts['startDate'],
716
- 'endDate': opts['endDate'],
717
- };
718
- var collectionQueryParams = {
719
- };
720
- var headerParams = {
721
- };
722
- var formParams = {
723
- };
724
-
725
- var authNames = ['api-key', 'partner-key'];
726
- var contentTypes = ['application/json'];
727
- var accepts = ['application/json'];
728
- var returnType = GetContactCampaignStats;
729
-
730
- return this.apiClient.callApi(
731
- '/contacts/{identifier}/campaignStats', 'GET',
732
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
733
- authNames, contentTypes, accepts, returnType
734
- );
735
- }
736
-
737
- /**
738
- * Get email campaigns' statistics for a contact
739
- * @param {String} identifier Email (urlencoded) OR ID of the contact
740
- * @param {Object} opts Optional parameters
741
- * @param {String} opts.startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
742
- * @param {String} opts.endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
743
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContactCampaignStats}
744
- */
745
- this.getContactStats = function(identifier, opts) {
746
- return this.getContactStatsWithHttpInfo(identifier, opts)
747
- .then(function(response_and_data) {
748
- return response_and_data.data;
749
- });
750
- }
751
-
752
-
753
- /**
754
- * Get all the contacts
755
- * @param {Object} opts Optional parameters
756
- * @param {Number} opts.limit Number of documents per page (default to 50)
757
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
758
- * @param {String} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
759
- * @param {String} opts.createdSince Filter (urlencoded) the contacts created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
760
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
761
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContacts} and HTTP response
762
- */
763
- this.getContactsWithHttpInfo = function(opts) {
764
- opts = opts || {};
765
- var postBody = null;
766
-
767
-
768
- var pathParams = {
769
- };
770
- var queryParams = {
771
- 'limit': opts['limit'],
772
- 'offset': opts['offset'],
773
- 'modifiedSince': opts['modifiedSince'],
774
- 'createdSince': opts['createdSince'],
775
- 'sort': opts['sort'],
776
- };
777
- var collectionQueryParams = {
778
- };
779
- var headerParams = {
780
- };
781
- var formParams = {
782
- };
783
-
784
- var authNames = ['api-key', 'partner-key'];
785
- var contentTypes = ['application/json'];
786
- var accepts = ['application/json'];
787
- var returnType = GetContacts;
788
-
789
- return this.apiClient.callApi(
790
- '/contacts', 'GET',
791
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
792
- authNames, contentTypes, accepts, returnType
793
- );
794
- }
795
-
796
- /**
797
- * Get all the contacts
798
- * @param {Object} opts Optional parameters
799
- * @param {Number} opts.limit Number of documents per page (default to 50)
800
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
801
- * @param {String} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
802
- * @param {String} opts.createdSince Filter (urlencoded) the contacts created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
803
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
804
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContacts}
805
- */
806
- this.getContacts = function(opts) {
807
- return this.getContactsWithHttpInfo(opts)
808
- .then(function(response_and_data) {
809
- return response_and_data.data;
810
- });
811
- }
812
-
813
-
814
- /**
815
- * Get contacts in a list
816
- * @param {Number} listId Id of the list
817
- * @param {Object} opts Optional parameters
818
- * @param {String} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
819
- * @param {Number} opts.limit Number of documents per page (default to 50)
820
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
821
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
822
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetContacts} and HTTP response
823
- */
824
- this.getContactsFromListWithHttpInfo = function(listId, opts) {
825
- opts = opts || {};
826
- var postBody = null;
827
-
828
- // verify the required parameter 'listId' is set
829
- if (listId === undefined || listId === null) {
830
- throw new Error("Missing the required parameter 'listId' when calling getContactsFromList");
831
- }
832
-
833
-
834
- var pathParams = {
835
- 'listId': listId
836
- };
837
- var queryParams = {
838
- 'modifiedSince': opts['modifiedSince'],
839
- 'limit': opts['limit'],
840
- 'offset': opts['offset'],
841
- 'sort': opts['sort'],
842
- };
843
- var collectionQueryParams = {
844
- };
845
- var headerParams = {
846
- };
847
- var formParams = {
848
- };
849
-
850
- var authNames = ['api-key', 'partner-key'];
851
- var contentTypes = ['application/json'];
852
- var accepts = ['application/json'];
853
- var returnType = GetContacts;
854
-
855
- return this.apiClient.callApi(
856
- '/contacts/lists/{listId}/contacts', 'GET',
857
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
858
- authNames, contentTypes, accepts, returnType
859
- );
860
- }
861
-
862
- /**
863
- * Get contacts in a list
864
- * @param {Number} listId Id of the list
865
- * @param {Object} opts Optional parameters
866
- * @param {String} opts.modifiedSince Filter (urlencoded) the contacts modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
867
- * @param {Number} opts.limit Number of documents per page (default to 50)
868
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
869
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
870
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetContacts}
871
- */
872
- this.getContactsFromList = function(listId, opts) {
873
- return this.getContactsFromListWithHttpInfo(listId, opts)
874
- .then(function(response_and_data) {
875
- return response_and_data.data;
876
- });
877
- }
878
-
879
-
880
- /**
881
- * Returns a folder's details
882
- * @param {Number} folderId id of the folder
883
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFolder} and HTTP response
884
- */
885
- this.getFolderWithHttpInfo = function(folderId) {
886
- var postBody = null;
887
-
888
- // verify the required parameter 'folderId' is set
889
- if (folderId === undefined || folderId === null) {
890
- throw new Error("Missing the required parameter 'folderId' when calling getFolder");
891
- }
892
-
893
-
894
- var pathParams = {
895
- 'folderId': folderId
896
- };
897
- var queryParams = {
898
- };
899
- var collectionQueryParams = {
900
- };
901
- var headerParams = {
902
- };
903
- var formParams = {
904
- };
905
-
906
- var authNames = ['api-key', 'partner-key'];
907
- var contentTypes = ['application/json'];
908
- var accepts = ['application/json'];
909
- var returnType = GetFolder;
910
-
911
- return this.apiClient.callApi(
912
- '/contacts/folders/{folderId}', 'GET',
913
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
914
- authNames, contentTypes, accepts, returnType
915
- );
916
- }
917
-
918
- /**
919
- * Returns a folder's details
920
- * @param {Number} folderId id of the folder
921
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFolder}
922
- */
923
- this.getFolder = function(folderId) {
924
- return this.getFolderWithHttpInfo(folderId)
925
- .then(function(response_and_data) {
926
- return response_and_data.data;
927
- });
928
- }
929
-
930
-
931
- /**
932
- * Get lists in a folder
933
- * @param {Number} folderId Id of the folder
934
- * @param {Object} opts Optional parameters
935
- * @param {Number} opts.limit Number of documents per page (default to 10)
936
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
937
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
938
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFolderLists} and HTTP response
939
- */
940
- this.getFolderListsWithHttpInfo = function(folderId, opts) {
941
- opts = opts || {};
942
- var postBody = null;
943
-
944
- // verify the required parameter 'folderId' is set
945
- if (folderId === undefined || folderId === null) {
946
- throw new Error("Missing the required parameter 'folderId' when calling getFolderLists");
947
- }
948
-
949
-
950
- var pathParams = {
951
- 'folderId': folderId
952
- };
953
- var queryParams = {
954
- 'limit': opts['limit'],
955
- 'offset': opts['offset'],
956
- 'sort': opts['sort'],
957
- };
958
- var collectionQueryParams = {
959
- };
960
- var headerParams = {
961
- };
962
- var formParams = {
963
- };
964
-
965
- var authNames = ['api-key', 'partner-key'];
966
- var contentTypes = ['application/json'];
967
- var accepts = ['application/json'];
968
- var returnType = GetFolderLists;
969
-
970
- return this.apiClient.callApi(
971
- '/contacts/folders/{folderId}/lists', 'GET',
972
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
973
- authNames, contentTypes, accepts, returnType
974
- );
975
- }
976
-
977
- /**
978
- * Get lists in a folder
979
- * @param {Number} folderId Id of the folder
980
- * @param {Object} opts Optional parameters
981
- * @param {Number} opts.limit Number of documents per page (default to 10)
982
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
983
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
984
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFolderLists}
985
- */
986
- this.getFolderLists = function(folderId, opts) {
987
- return this.getFolderListsWithHttpInfo(folderId, opts)
988
- .then(function(response_and_data) {
989
- return response_and_data.data;
990
- });
991
- }
992
-
993
-
994
- /**
995
- * Get all folders
996
- * @param {Number} limit Number of documents per page
997
- * @param {Number} offset Index of the first document of the page
998
- * @param {Object} opts Optional parameters
999
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1000
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetFolders} and HTTP response
1001
- */
1002
- this.getFoldersWithHttpInfo = function(limit, offset, opts) {
1003
- opts = opts || {};
1004
- var postBody = null;
1005
-
1006
- // verify the required parameter 'limit' is set
1007
- if (limit === undefined || limit === null) {
1008
- throw new Error("Missing the required parameter 'limit' when calling getFolders");
1009
- }
1010
-
1011
- // verify the required parameter 'offset' is set
1012
- if (offset === undefined || offset === null) {
1013
- throw new Error("Missing the required parameter 'offset' when calling getFolders");
1014
- }
1015
-
1016
-
1017
- var pathParams = {
1018
- };
1019
- var queryParams = {
1020
- 'limit': limit,
1021
- 'offset': offset,
1022
- 'sort': opts['sort'],
1023
- };
1024
- var collectionQueryParams = {
1025
- };
1026
- var headerParams = {
1027
- };
1028
- var formParams = {
1029
- };
1030
-
1031
- var authNames = ['api-key', 'partner-key'];
1032
- var contentTypes = ['application/json'];
1033
- var accepts = ['application/json'];
1034
- var returnType = GetFolders;
1035
-
1036
- return this.apiClient.callApi(
1037
- '/contacts/folders', 'GET',
1038
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1039
- authNames, contentTypes, accepts, returnType
1040
- );
1041
- }
1042
-
1043
- /**
1044
- * Get all folders
1045
- * @param {Number} limit Number of documents per page
1046
- * @param {Number} offset Index of the first document of the page
1047
- * @param {Object} opts Optional parameters
1048
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1049
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetFolders}
1050
- */
1051
- this.getFolders = function(limit, offset, opts) {
1052
- return this.getFoldersWithHttpInfo(limit, offset, opts)
1053
- .then(function(response_and_data) {
1054
- return response_and_data.data;
1055
- });
1056
- }
1057
-
1058
-
1059
- /**
1060
- * Get a list's details
1061
- * @param {Number} listId Id of the list
1062
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetExtendedList} and HTTP response
1063
- */
1064
- this.getListWithHttpInfo = function(listId) {
1065
- var postBody = null;
1066
-
1067
- // verify the required parameter 'listId' is set
1068
- if (listId === undefined || listId === null) {
1069
- throw new Error("Missing the required parameter 'listId' when calling getList");
1070
- }
1071
-
1072
-
1073
- var pathParams = {
1074
- 'listId': listId
1075
- };
1076
- var queryParams = {
1077
- };
1078
- var collectionQueryParams = {
1079
- };
1080
- var headerParams = {
1081
- };
1082
- var formParams = {
1083
- };
1084
-
1085
- var authNames = ['api-key', 'partner-key'];
1086
- var contentTypes = ['application/json'];
1087
- var accepts = ['application/json'];
1088
- var returnType = GetExtendedList;
1089
-
1090
- return this.apiClient.callApi(
1091
- '/contacts/lists/{listId}', 'GET',
1092
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1093
- authNames, contentTypes, accepts, returnType
1094
- );
1095
- }
1096
-
1097
- /**
1098
- * Get a list's details
1099
- * @param {Number} listId Id of the list
1100
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetExtendedList}
1101
- */
1102
- this.getList = function(listId) {
1103
- return this.getListWithHttpInfo(listId)
1104
- .then(function(response_and_data) {
1105
- return response_and_data.data;
1106
- });
1107
- }
1108
-
1109
-
1110
- /**
1111
- * Get all the lists
1112
- * @param {Object} opts Optional parameters
1113
- * @param {Number} opts.limit Number of documents per page (default to 10)
1114
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
1115
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1116
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLists} and HTTP response
1117
- */
1118
- this.getListsWithHttpInfo = function(opts) {
1119
- opts = opts || {};
1120
- var postBody = null;
1121
-
1122
-
1123
- var pathParams = {
1124
- };
1125
- var queryParams = {
1126
- 'limit': opts['limit'],
1127
- 'offset': opts['offset'],
1128
- 'sort': opts['sort'],
1129
- };
1130
- var collectionQueryParams = {
1131
- };
1132
- var headerParams = {
1133
- };
1134
- var formParams = {
1135
- };
1136
-
1137
- var authNames = ['api-key', 'partner-key'];
1138
- var contentTypes = ['application/json'];
1139
- var accepts = ['application/json'];
1140
- var returnType = GetLists;
1141
-
1142
- return this.apiClient.callApi(
1143
- '/contacts/lists', 'GET',
1144
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1145
- authNames, contentTypes, accepts, returnType
1146
- );
1147
- }
1148
-
1149
- /**
1150
- * Get all the lists
1151
- * @param {Object} opts Optional parameters
1152
- * @param {Number} opts.limit Number of documents per page (default to 10)
1153
- * @param {Number} opts.offset Index of the first document of the page (default to 0)
1154
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1155
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLists}
1156
- */
1157
- this.getLists = function(opts) {
1158
- return this.getListsWithHttpInfo(opts)
1159
- .then(function(response_and_data) {
1160
- return response_and_data.data;
1161
- });
1162
- }
1163
-
1164
-
1165
- /**
1166
- * Get all the Segments
1167
- * @param {Number} limit Number of documents per page
1168
- * @param {Number} offset Index of the first document of the page
1169
- * @param {Object} opts Optional parameters
1170
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1171
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSegments} and HTTP response
1172
- */
1173
- this.getSegmentsWithHttpInfo = function(limit, offset, opts) {
1174
- opts = opts || {};
1175
- var postBody = null;
1176
-
1177
- // verify the required parameter 'limit' is set
1178
- if (limit === undefined || limit === null) {
1179
- throw new Error("Missing the required parameter 'limit' when calling getSegments");
1180
- }
1181
-
1182
- // verify the required parameter 'offset' is set
1183
- if (offset === undefined || offset === null) {
1184
- throw new Error("Missing the required parameter 'offset' when calling getSegments");
1185
- }
1186
-
1187
-
1188
- var pathParams = {
1189
- };
1190
- var queryParams = {
1191
- 'limit': limit,
1192
- 'offset': offset,
1193
- 'sort': opts['sort'],
1194
- };
1195
- var collectionQueryParams = {
1196
- };
1197
- var headerParams = {
1198
- };
1199
- var formParams = {
1200
- };
1201
-
1202
- var authNames = ['api-key', 'partner-key'];
1203
- var contentTypes = ['application/json'];
1204
- var accepts = ['application/json'];
1205
- var returnType = GetSegments;
1206
-
1207
- return this.apiClient.callApi(
1208
- '/contacts/segments', 'GET',
1209
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1210
- authNames, contentTypes, accepts, returnType
1211
- );
1212
- }
1213
-
1214
- /**
1215
- * Get all the Segments
1216
- * @param {Number} limit Number of documents per page
1217
- * @param {Number} offset Index of the first document of the page
1218
- * @param {Object} opts Optional parameters
1219
- * @param {module:model/String} opts.sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
1220
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSegments}
1221
- */
1222
- this.getSegments = function(limit, offset, opts) {
1223
- return this.getSegmentsWithHttpInfo(limit, offset, opts)
1224
- .then(function(response_and_data) {
1225
- return response_and_data.data;
1226
- });
1227
- }
1228
-
1229
-
1230
- /**
1231
- * Import contacts
1232
- * It returns the background process ID which on completion calls the notify URL that you have set in the input.
1233
- * @param {module:model/RequestContactImport} requestContactImport Values to import contacts in Brevo. To know more about the expected format, please have a look at ``https://help.brevo.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns``
1234
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatedProcessId} and HTTP response
1235
- */
1236
- this.importContactsWithHttpInfo = function(requestContactImport) {
1237
- var postBody = requestContactImport;
1238
-
1239
- // verify the required parameter 'requestContactImport' is set
1240
- if (requestContactImport === undefined || requestContactImport === null) {
1241
- throw new Error("Missing the required parameter 'requestContactImport' when calling importContacts");
1242
- }
1243
-
1244
-
1245
- var pathParams = {
1246
- };
1247
- var queryParams = {
1248
- };
1249
- var collectionQueryParams = {
1250
- };
1251
- var headerParams = {
1252
- };
1253
- var formParams = {
1254
- };
1255
-
1256
- var authNames = ['api-key', 'partner-key'];
1257
- var contentTypes = ['application/json'];
1258
- var accepts = ['application/json'];
1259
- var returnType = CreatedProcessId;
1260
-
1261
- return this.apiClient.callApi(
1262
- '/contacts/import', 'POST',
1263
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1264
- authNames, contentTypes, accepts, returnType
1265
- );
1266
- }
1267
-
1268
- /**
1269
- * Import contacts
1270
- * It returns the background process ID which on completion calls the notify URL that you have set in the input.
1271
- * @param {module:model/RequestContactImport} requestContactImport Values to import contacts in Brevo. To know more about the expected format, please have a look at ``https://help.brevo.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns``
1272
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatedProcessId}
1273
- */
1274
- this.importContacts = function(requestContactImport) {
1275
- return this.importContactsWithHttpInfo(requestContactImport)
1276
- .then(function(response_and_data) {
1277
- return response_and_data.data;
1278
- });
1279
- }
1280
-
1281
-
1282
- /**
1283
- * Delete a contact from a list
1284
- * @param {Number} listId Id of the list
1285
- * @param {module:model/RemoveContactFromList} contactEmails Emails addresses OR IDs of the contacts
1286
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostContactInfo} and HTTP response
1287
- */
1288
- this.removeContactFromListWithHttpInfo = function(listId, contactEmails) {
1289
- var postBody = contactEmails;
1290
-
1291
- // verify the required parameter 'listId' is set
1292
- if (listId === undefined || listId === null) {
1293
- throw new Error("Missing the required parameter 'listId' when calling removeContactFromList");
1294
- }
1295
-
1296
- // verify the required parameter 'contactEmails' is set
1297
- if (contactEmails === undefined || contactEmails === null) {
1298
- throw new Error("Missing the required parameter 'contactEmails' when calling removeContactFromList");
1299
- }
1300
-
1301
-
1302
- var pathParams = {
1303
- 'listId': listId
1304
- };
1305
- var queryParams = {
1306
- };
1307
- var collectionQueryParams = {
1308
- };
1309
- var headerParams = {
1310
- };
1311
- var formParams = {
1312
- };
1313
-
1314
- var authNames = ['api-key', 'partner-key'];
1315
- var contentTypes = ['application/json'];
1316
- var accepts = ['application/json'];
1317
- var returnType = PostContactInfo;
1318
-
1319
- return this.apiClient.callApi(
1320
- '/contacts/lists/{listId}/contacts/remove', 'POST',
1321
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1322
- authNames, contentTypes, accepts, returnType
1323
- );
1324
- }
1325
-
1326
- /**
1327
- * Delete a contact from a list
1328
- * @param {Number} listId Id of the list
1329
- * @param {module:model/RemoveContactFromList} contactEmails Emails addresses OR IDs of the contacts
1330
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostContactInfo}
1331
- */
1332
- this.removeContactFromList = function(listId, contactEmails) {
1333
- return this.removeContactFromListWithHttpInfo(listId, contactEmails)
1334
- .then(function(response_and_data) {
1335
- return response_and_data.data;
1336
- });
1337
- }
1338
-
1339
-
1340
- /**
1341
- * Export contacts
1342
- * It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv.
1343
- * @param {module:model/RequestContactExport} requestContactExport Values to request a contact export
1344
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreatedProcessId} and HTTP response
1345
- */
1346
- this.requestContactExportWithHttpInfo = function(requestContactExport) {
1347
- var postBody = requestContactExport;
1348
-
1349
- // verify the required parameter 'requestContactExport' is set
1350
- if (requestContactExport === undefined || requestContactExport === null) {
1351
- throw new Error("Missing the required parameter 'requestContactExport' when calling requestContactExport");
1352
- }
1353
-
1354
-
1355
- var pathParams = {
1356
- };
1357
- var queryParams = {
1358
- };
1359
- var collectionQueryParams = {
1360
- };
1361
- var headerParams = {
1362
- };
1363
- var formParams = {
1364
- };
1365
-
1366
- var authNames = ['api-key', 'partner-key'];
1367
- var contentTypes = ['application/json'];
1368
- var accepts = ['application/json'];
1369
- var returnType = CreatedProcessId;
1370
-
1371
- return this.apiClient.callApi(
1372
- '/contacts/export', 'POST',
1373
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1374
- authNames, contentTypes, accepts, returnType
1375
- );
1376
- }
1377
-
1378
- /**
1379
- * Export contacts
1380
- * It returns the background process ID which on completion calls the notify URL that you have set in the input. File will be available in csv.
1381
- * @param {module:model/RequestContactExport} requestContactExport Values to request a contact export
1382
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreatedProcessId}
1383
- */
1384
- this.requestContactExport = function(requestContactExport) {
1385
- return this.requestContactExportWithHttpInfo(requestContactExport)
1386
- .then(function(response_and_data) {
1387
- return response_and_data.data;
1388
- });
1389
- }
1390
-
1391
-
1392
- /**
1393
- * Update contact attribute
1394
- * @param {module:model/String} attributeCategory Category of the attribute
1395
- * @param {String} attributeName Name of the existing attribute
1396
- * @param {module:model/UpdateAttribute} updateAttribute Values to update an attribute
1397
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1398
- */
1399
- this.updateAttributeWithHttpInfo = function(attributeCategory, attributeName, updateAttribute) {
1400
- var postBody = updateAttribute;
1401
-
1402
- // verify the required parameter 'attributeCategory' is set
1403
- if (attributeCategory === undefined || attributeCategory === null) {
1404
- throw new Error("Missing the required parameter 'attributeCategory' when calling updateAttribute");
1405
- }
1406
-
1407
- // verify the required parameter 'attributeName' is set
1408
- if (attributeName === undefined || attributeName === null) {
1409
- throw new Error("Missing the required parameter 'attributeName' when calling updateAttribute");
1410
- }
1411
-
1412
- // verify the required parameter 'updateAttribute' is set
1413
- if (updateAttribute === undefined || updateAttribute === null) {
1414
- throw new Error("Missing the required parameter 'updateAttribute' when calling updateAttribute");
1415
- }
1416
-
1417
-
1418
- var pathParams = {
1419
- 'attributeCategory': attributeCategory,
1420
- 'attributeName': attributeName
1421
- };
1422
- var queryParams = {
1423
- };
1424
- var collectionQueryParams = {
1425
- };
1426
- var headerParams = {
1427
- };
1428
- var formParams = {
1429
- };
1430
-
1431
- var authNames = ['api-key', 'partner-key'];
1432
- var contentTypes = ['application/json'];
1433
- var accepts = ['application/json'];
1434
- var returnType = null;
1435
-
1436
- return this.apiClient.callApi(
1437
- '/contacts/attributes/{attributeCategory}/{attributeName}', 'PUT',
1438
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1439
- authNames, contentTypes, accepts, returnType
1440
- );
1441
- }
1442
-
1443
- /**
1444
- * Update contact attribute
1445
- * @param {module:model/String} attributeCategory Category of the attribute
1446
- * @param {String} attributeName Name of the existing attribute
1447
- * @param {module:model/UpdateAttribute} updateAttribute Values to update an attribute
1448
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1449
- */
1450
- this.updateAttribute = function(attributeCategory, attributeName, updateAttribute) {
1451
- return this.updateAttributeWithHttpInfo(attributeCategory, attributeName, updateAttribute)
1452
- .then(function(response_and_data) {
1453
- return response_and_data.data;
1454
- });
1455
- }
1456
-
1457
-
1458
- /**
1459
- * Update multiple contacts
1460
- * @param {module:model/UpdateBatchContacts} updateBatchContacts Values to update multiple contacts
1461
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1462
- */
1463
- this.updateBatchContactsWithHttpInfo = function(updateBatchContacts) {
1464
- var postBody = updateBatchContacts;
1465
-
1466
- // verify the required parameter 'updateBatchContacts' is set
1467
- if (updateBatchContacts === undefined || updateBatchContacts === null) {
1468
- throw new Error("Missing the required parameter 'updateBatchContacts' when calling updateBatchContacts");
1469
- }
1470
-
1471
-
1472
- var pathParams = {
1473
- };
1474
- var queryParams = {
1475
- };
1476
- var collectionQueryParams = {
1477
- };
1478
- var headerParams = {
1479
- };
1480
- var formParams = {
1481
- };
1482
-
1483
- var authNames = ['api-key', 'partner-key'];
1484
- var contentTypes = ['application/json'];
1485
- var accepts = ['application/json'];
1486
- var returnType = null;
1487
-
1488
- return this.apiClient.callApi(
1489
- '/contacts/batch', 'POST',
1490
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1491
- authNames, contentTypes, accepts, returnType
1492
- );
1493
- }
1494
-
1495
- /**
1496
- * Update multiple contacts
1497
- * @param {module:model/UpdateBatchContacts} updateBatchContacts Values to update multiple contacts
1498
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1499
- */
1500
- this.updateBatchContacts = function(updateBatchContacts) {
1501
- return this.updateBatchContactsWithHttpInfo(updateBatchContacts)
1502
- .then(function(response_and_data) {
1503
- return response_and_data.data;
1504
- });
1505
- }
1506
-
1507
-
1508
- /**
1509
- * Update a contact
1510
- * @param {String} identifier Email (urlencoded) OR ID of the contact
1511
- * @param {module:model/UpdateContact} updateContact Values to update a contact
1512
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1513
- */
1514
- this.updateContactWithHttpInfo = function(identifier, updateContact) {
1515
- var postBody = updateContact;
1516
-
1517
- // verify the required parameter 'identifier' is set
1518
- if (identifier === undefined || identifier === null) {
1519
- throw new Error("Missing the required parameter 'identifier' when calling updateContact");
1520
- }
1521
-
1522
- // verify the required parameter 'updateContact' is set
1523
- if (updateContact === undefined || updateContact === null) {
1524
- throw new Error("Missing the required parameter 'updateContact' when calling updateContact");
1525
- }
1526
-
1527
-
1528
- var pathParams = {
1529
- 'identifier': identifier
1530
- };
1531
- var queryParams = {
1532
- };
1533
- var collectionQueryParams = {
1534
- };
1535
- var headerParams = {
1536
- };
1537
- var formParams = {
1538
- };
1539
-
1540
- var authNames = ['api-key', 'partner-key'];
1541
- var contentTypes = ['application/json'];
1542
- var accepts = ['application/json'];
1543
- var returnType = null;
1544
-
1545
- return this.apiClient.callApi(
1546
- '/contacts/{identifier}', 'PUT',
1547
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1548
- authNames, contentTypes, accepts, returnType
1549
- );
1550
- }
1551
-
1552
- /**
1553
- * Update a contact
1554
- * @param {String} identifier Email (urlencoded) OR ID of the contact
1555
- * @param {module:model/UpdateContact} updateContact Values to update a contact
1556
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1557
- */
1558
- this.updateContact = function(identifier, updateContact) {
1559
- return this.updateContactWithHttpInfo(identifier, updateContact)
1560
- .then(function(response_and_data) {
1561
- return response_and_data.data;
1562
- });
1563
- }
1564
-
1565
-
1566
- /**
1567
- * Update a folder
1568
- * @param {Number} folderId Id of the folder
1569
- * @param {module:model/CreateUpdateFolder} updateFolder Name of the folder
1570
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1571
- */
1572
- this.updateFolderWithHttpInfo = function(folderId, updateFolder) {
1573
- var postBody = updateFolder;
1574
-
1575
- // verify the required parameter 'folderId' is set
1576
- if (folderId === undefined || folderId === null) {
1577
- throw new Error("Missing the required parameter 'folderId' when calling updateFolder");
1578
- }
1579
-
1580
- // verify the required parameter 'updateFolder' is set
1581
- if (updateFolder === undefined || updateFolder === null) {
1582
- throw new Error("Missing the required parameter 'updateFolder' when calling updateFolder");
1583
- }
1584
-
1585
-
1586
- var pathParams = {
1587
- 'folderId': folderId
1588
- };
1589
- var queryParams = {
1590
- };
1591
- var collectionQueryParams = {
1592
- };
1593
- var headerParams = {
1594
- };
1595
- var formParams = {
1596
- };
1597
-
1598
- var authNames = ['api-key', 'partner-key'];
1599
- var contentTypes = ['application/json'];
1600
- var accepts = ['application/json'];
1601
- var returnType = null;
1602
-
1603
- return this.apiClient.callApi(
1604
- '/contacts/folders/{folderId}', 'PUT',
1605
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1606
- authNames, contentTypes, accepts, returnType
1607
- );
1608
- }
1609
-
1610
- /**
1611
- * Update a folder
1612
- * @param {Number} folderId Id of the folder
1613
- * @param {module:model/CreateUpdateFolder} updateFolder Name of the folder
1614
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1615
- */
1616
- this.updateFolder = function(folderId, updateFolder) {
1617
- return this.updateFolderWithHttpInfo(folderId, updateFolder)
1618
- .then(function(response_and_data) {
1619
- return response_and_data.data;
1620
- });
1621
- }
1622
-
1623
-
1624
- /**
1625
- * Update a list
1626
- * @param {Number} listId Id of the list
1627
- * @param {module:model/UpdateList} updateList Values to update a list
1628
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
1629
- */
1630
- this.updateListWithHttpInfo = function(listId, updateList) {
1631
- var postBody = updateList;
1632
-
1633
- // verify the required parameter 'listId' is set
1634
- if (listId === undefined || listId === null) {
1635
- throw new Error("Missing the required parameter 'listId' when calling updateList");
1636
- }
1637
-
1638
- // verify the required parameter 'updateList' is set
1639
- if (updateList === undefined || updateList === null) {
1640
- throw new Error("Missing the required parameter 'updateList' when calling updateList");
1641
- }
1642
-
1643
-
1644
- var pathParams = {
1645
- 'listId': listId
1646
- };
1647
- var queryParams = {
1648
- };
1649
- var collectionQueryParams = {
1650
- };
1651
- var headerParams = {
1652
- };
1653
- var formParams = {
1654
- };
1655
-
1656
- var authNames = ['api-key', 'partner-key'];
1657
- var contentTypes = ['application/json'];
1658
- var accepts = ['application/json'];
1659
- var returnType = null;
1660
-
1661
- return this.apiClient.callApi(
1662
- '/contacts/lists/{listId}', 'PUT',
1663
- pathParams, queryParams, collectionQueryParams, headerParams, formParams, postBody,
1664
- authNames, contentTypes, accepts, returnType
1665
- );
1666
- }
1667
-
1668
- /**
1669
- * Update a list
1670
- * @param {Number} listId Id of the list
1671
- * @param {module:model/UpdateList} updateList Values to update a list
1672
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1673
- */
1674
- this.updateList = function(listId, updateList) {
1675
- return this.updateListWithHttpInfo(listId, updateList)
1676
- .then(function(response_and_data) {
1677
- return response_and_data.data;
1678
- });
1679
- }
1680
- };
1681
-
1682
- return exports;
1683
- }));