@getbrevo/brevo 2.3.0 → 3.0.1

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 (836) hide show
  1. package/.openapi-generator/FILES +24 -113
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +178 -100
  4. package/api/accountApi.ts +6 -11
  5. package/api/apis.ts +3 -9
  6. package/api/companiesApi.ts +82 -260
  7. package/api/contactsApi.ts +168 -265
  8. package/api/conversationsApi.ts +46 -47
  9. package/api/couponsApi.ts +11 -11
  10. package/api/dealsApi.ts +51 -232
  11. package/api/domainsApi.ts +11 -11
  12. package/api/ecommerceApi.ts +97 -113
  13. package/api/emailCampaignsApi.ts +83 -106
  14. package/api/eventsApi.ts +3 -3
  15. package/api/externalFeedsApi.ts +11 -11
  16. package/api/filesApi.ts +11 -11
  17. package/api/inboundParsingApi.ts +7 -7
  18. package/api/masterAccountApi.ts +53 -282
  19. package/api/notesApi.ts +11 -11
  20. package/api/paymentsApi.ts +7 -7
  21. package/api/processApi.ts +5 -5
  22. package/api/resellerApi.ts +33 -33
  23. package/api/sMSCampaignsApi.ts +51 -52
  24. package/api/sendersApi.ts +15 -15
  25. package/api/tasksApi.ts +13 -13
  26. package/api/transactionalEmailsApi.ts +46 -123
  27. package/api/transactionalSMSApi.ts +9 -69
  28. package/api/transactionalWhatsAppApi.ts +5 -5
  29. package/api/userApi.ts +15 -15
  30. package/api/webhooksApi.ts +13 -13
  31. package/api/whatsAppCampaignsApi.ts +19 -19
  32. package/dist/api/accountApi.d.ts +2 -1
  33. package/dist/api/accountApi.js +10 -14
  34. package/dist/api/accountApi.js.map +1 -1
  35. package/dist/api/apis.d.ts +4 -9
  36. package/dist/api/apis.js +3 -9
  37. package/dist/api/apis.js.map +1 -1
  38. package/dist/api/companiesApi.d.ts +10 -29
  39. package/dist/api/companiesApi.js +70 -219
  40. package/dist/api/companiesApi.js.map +1 -1
  41. package/dist/api/contactsApi.d.ts +35 -43
  42. package/dist/api/contactsApi.js +155 -232
  43. package/dist/api/contactsApi.js.map +1 -1
  44. package/dist/api/conversationsApi.d.ts +10 -10
  45. package/dist/api/conversationsApi.js +47 -47
  46. package/dist/api/conversationsApi.js.map +1 -1
  47. package/dist/api/couponsApi.d.ts +1 -0
  48. package/dist/api/couponsApi.js +22 -22
  49. package/dist/api/couponsApi.js.map +1 -1
  50. package/dist/api/dealsApi.d.ts +12 -32
  51. package/dist/api/dealsApi.js +52 -201
  52. package/dist/api/dealsApi.js.map +1 -1
  53. package/dist/api/domainsApi.d.ts +1 -0
  54. package/dist/api/domainsApi.js +22 -22
  55. package/dist/api/domainsApi.js.map +1 -1
  56. package/dist/api/ecommerceApi.d.ts +21 -21
  57. package/dist/api/ecommerceApi.js +88 -97
  58. package/dist/api/ecommerceApi.js.map +1 -1
  59. package/dist/api/emailCampaignsApi.d.ts +15 -15
  60. package/dist/api/emailCampaignsApi.js +86 -108
  61. package/dist/api/emailCampaignsApi.js.map +1 -1
  62. package/dist/api/eventsApi.d.ts +1 -0
  63. package/dist/api/eventsApi.js +6 -6
  64. package/dist/api/eventsApi.js.map +1 -1
  65. package/dist/api/externalFeedsApi.d.ts +1 -0
  66. package/dist/api/externalFeedsApi.js +22 -22
  67. package/dist/api/externalFeedsApi.js.map +1 -1
  68. package/dist/api/filesApi.d.ts +1 -0
  69. package/dist/api/filesApi.js +22 -22
  70. package/dist/api/filesApi.js.map +1 -1
  71. package/dist/api/inboundParsingApi.d.ts +2 -0
  72. package/dist/api/inboundParsingApi.js +14 -14
  73. package/dist/api/inboundParsingApi.js.map +1 -1
  74. package/dist/api/masterAccountApi.d.ts +2 -27
  75. package/dist/api/masterAccountApi.js +98 -299
  76. package/dist/api/masterAccountApi.js.map +1 -1
  77. package/dist/api/notesApi.d.ts +1 -0
  78. package/dist/api/notesApi.js +22 -22
  79. package/dist/api/notesApi.js.map +1 -1
  80. package/dist/api/paymentsApi.d.ts +1 -0
  81. package/dist/api/paymentsApi.js +14 -14
  82. package/dist/api/paymentsApi.js.map +1 -1
  83. package/dist/api/processApi.d.ts +1 -0
  84. package/dist/api/processApi.js +10 -10
  85. package/dist/api/processApi.js.map +1 -1
  86. package/dist/api/resellerApi.d.ts +1 -0
  87. package/dist/api/resellerApi.js +66 -66
  88. package/dist/api/resellerApi.js.map +1 -1
  89. package/dist/api/sMSCampaignsApi.d.ts +11 -11
  90. package/dist/api/sMSCampaignsApi.js +52 -52
  91. package/dist/api/sMSCampaignsApi.js.map +1 -1
  92. package/dist/api/sendersApi.d.ts +1 -0
  93. package/dist/api/sendersApi.js +30 -30
  94. package/dist/api/sendersApi.js.map +1 -1
  95. package/dist/api/tasksApi.d.ts +1 -0
  96. package/dist/api/tasksApi.js +26 -26
  97. package/dist/api/tasksApi.js.map +1 -1
  98. package/dist/api/transactionalEmailsApi.d.ts +1 -10
  99. package/dist/api/transactionalEmailsApi.js +90 -157
  100. package/dist/api/transactionalEmailsApi.js.map +1 -1
  101. package/dist/api/transactionalSMSApi.d.ts +1 -8
  102. package/dist/api/transactionalSMSApi.js +18 -73
  103. package/dist/api/transactionalSMSApi.js.map +1 -1
  104. package/dist/api/transactionalWhatsAppApi.d.ts +1 -0
  105. package/dist/api/transactionalWhatsAppApi.js +10 -10
  106. package/dist/api/transactionalWhatsAppApi.js.map +1 -1
  107. package/dist/api/userApi.d.ts +1 -0
  108. package/dist/api/userApi.js +26 -26
  109. package/dist/api/userApi.js.map +1 -1
  110. package/dist/api/webhooksApi.d.ts +1 -0
  111. package/dist/api/webhooksApi.js +26 -26
  112. package/dist/api/webhooksApi.js.map +1 -1
  113. package/dist/api/whatsAppCampaignsApi.d.ts +1 -0
  114. package/dist/api/whatsAppCampaignsApi.js +38 -38
  115. package/dist/api/whatsAppCampaignsApi.js.map +1 -1
  116. package/dist/model/abTestCampaignResult.js +1 -1
  117. package/dist/model/abTestCampaignResult.js.map +1 -1
  118. package/dist/model/addContactToList.d.ts +0 -1
  119. package/dist/model/addContactToList.js +0 -5
  120. package/dist/model/addContactToList.js.map +1 -1
  121. package/dist/model/cart.js +1 -1
  122. package/dist/model/cart.js.map +1 -1
  123. package/dist/model/companiesIdPatchRequest.d.ts +0 -2
  124. package/dist/model/companiesIdPatchRequest.js +0 -10
  125. package/dist/model/companiesIdPatchRequest.js.map +1 -1
  126. package/dist/model/conversationsMessage.d.ts +0 -20
  127. package/dist/model/conversationsMessage.js +1 -76
  128. package/dist/model/conversationsMessage.js.map +1 -1
  129. package/dist/model/conversionSourceMetrics.d.ts +2 -5
  130. package/dist/model/conversionSourceMetrics.js +2 -5
  131. package/dist/model/conversionSourceMetrics.js.map +1 -1
  132. package/dist/model/createAttribute.d.ts +1 -3
  133. package/dist/model/createAttribute.js +1 -7
  134. package/dist/model/createAttribute.js.map +1 -1
  135. package/dist/model/createChild.js +1 -1
  136. package/dist/model/createChild.js.map +1 -1
  137. package/dist/model/createContact.d.ts +1 -3
  138. package/dist/model/createContact.js +1 -1
  139. package/dist/model/createContact.js.map +1 -1
  140. package/dist/model/createDoiContact.d.ts +1 -3
  141. package/dist/model/createDoiContact.js +1 -1
  142. package/dist/model/createDoiContact.js.map +1 -1
  143. package/dist/model/createEmailCampaign.d.ts +0 -2
  144. package/dist/model/createEmailCampaign.js +1 -6
  145. package/dist/model/createEmailCampaign.js.map +1 -1
  146. package/dist/model/createEmailCampaignRecipients.d.ts +0 -1
  147. package/dist/model/createEmailCampaignRecipients.js +0 -5
  148. package/dist/model/createEmailCampaignRecipients.js.map +1 -1
  149. package/dist/model/createExternalFeed.js +1 -1
  150. package/dist/model/createExternalFeed.js.map +1 -1
  151. package/dist/model/createSmsCampaign.js.map +1 -1
  152. package/dist/model/createSubAccount.js +1 -1
  153. package/dist/model/createSubAccount.js.map +1 -1
  154. package/dist/model/createUpdateCategory.js.map +1 -1
  155. package/dist/model/createUpdateProduct.js.map +1 -1
  156. package/dist/model/createWebhook.d.ts +0 -5
  157. package/dist/model/createWebhook.js +1 -12
  158. package/dist/model/createWebhook.js.map +1 -1
  159. package/dist/model/createWhatsAppTemplate.js +1 -1
  160. package/dist/model/createWhatsAppTemplate.js.map +1 -1
  161. package/dist/model/crmDealsIdPatchRequest.d.ts +0 -2
  162. package/dist/model/crmDealsIdPatchRequest.js +0 -10
  163. package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
  164. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +2 -5
  165. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +2 -5
  166. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -1
  167. package/dist/model/emailExportRecipients.js +1 -1
  168. package/dist/model/emailExportRecipients.js.map +1 -1
  169. package/dist/model/errorModel.d.ts +1 -0
  170. package/dist/model/errorModel.js +2 -1
  171. package/dist/model/errorModel.js.map +1 -1
  172. package/dist/model/exportWebhooksHistory.js +1 -1
  173. package/dist/model/exportWebhooksHistory.js.map +1 -1
  174. package/dist/model/getAccountAllOfPlan.d.ts +3 -1
  175. package/dist/model/getAccountAllOfPlan.js +7 -1
  176. package/dist/model/getAccountAllOfPlan.js.map +1 -1
  177. package/dist/model/getAllExternalFeedsFeedsInner.js +1 -1
  178. package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -1
  179. package/dist/model/getAttributesAttributesInner.d.ts +1 -4
  180. package/dist/model/getAttributesAttributesInner.js +1 -8
  181. package/dist/model/getAttributesAttributesInner.js.map +1 -1
  182. package/dist/model/getCampaignOverview.js +1 -1
  183. package/dist/model/getCampaignOverview.js.map +1 -1
  184. package/dist/model/getCampaignStats.d.ts +0 -2
  185. package/dist/model/getCampaignStats.js +0 -10
  186. package/dist/model/getCampaignStats.js.map +1 -1
  187. package/dist/model/getContactCampaignStats.d.ts +6 -6
  188. package/dist/model/getContactCampaignStats.js +5 -5
  189. package/dist/model/getContactCampaignStats.js.map +1 -1
  190. package/dist/model/getContactCampaignStatsClickedInner.d.ts +2 -2
  191. package/dist/model/getContactCampaignStatsClickedInner.js +1 -1
  192. package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +4 -4
  193. package/dist/model/getContactCampaignStatsUnsubscriptions.js +2 -2
  194. package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -1
  195. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +0 -5
  196. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +0 -25
  197. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
  198. package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +0 -5
  199. package/dist/model/getCorporateUserPermissionFeatureAccess.js +0 -25
  200. package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
  201. package/dist/model/getEmailCampaign.d.ts +4 -2
  202. package/dist/model/getEmailCampaign.js +3 -3
  203. package/dist/model/getEmailCampaign.js.map +1 -1
  204. package/dist/model/getEmailCampaignsCampaignsInner.js +1 -1
  205. package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
  206. package/dist/model/getEmailEventReportEventsInner.js +1 -1
  207. package/dist/model/getEmailEventReportEventsInner.js.map +1 -1
  208. package/dist/model/getExtendedCampaignOverview.js +1 -1
  209. package/dist/model/getExtendedCampaignOverview.js.map +1 -1
  210. package/dist/model/getExtendedCampaignStats.js.map +1 -1
  211. package/dist/model/getExternalFeedByUUID.js +1 -1
  212. package/dist/model/getExternalFeedByUUID.js.map +1 -1
  213. package/dist/model/getInboundEmailEventsByUuidLogsInner.js +1 -1
  214. package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -1
  215. package/dist/model/getOrdersOrdersInner.d.ts +1 -6
  216. package/dist/model/getOrdersOrdersInner.js +5 -15
  217. package/dist/model/getOrdersOrdersInner.js.map +1 -1
  218. package/dist/model/getPaymentRequest.js +1 -1
  219. package/dist/model/getPaymentRequest.js.map +1 -1
  220. package/dist/model/getProcess.js +1 -1
  221. package/dist/model/getProcess.js.map +1 -1
  222. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +1 -1
  223. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -1
  224. package/dist/model/getScheduledEmailByMessageId.js +1 -1
  225. package/dist/model/getScheduledEmailByMessageId.js.map +1 -1
  226. package/dist/model/getSegments.d.ts +2 -2
  227. package/dist/model/getSegments.js +1 -1
  228. package/dist/model/getSegments.js.map +1 -1
  229. package/dist/model/getSmsCampaign.d.ts +4 -2
  230. package/dist/model/getSmsCampaign.js +3 -3
  231. package/dist/model/getSmsCampaign.js.map +1 -1
  232. package/dist/model/getSmsCampaignOverview.js +1 -1
  233. package/dist/model/getSmsCampaignOverview.js.map +1 -1
  234. package/dist/model/getSmsCampaignsCampaignsInner.js +1 -1
  235. package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -1
  236. package/dist/model/getSmsEventReportEventsInner.js +1 -1
  237. package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
  238. package/dist/model/getTransacBlockedContactsContactsInnerReason.js +1 -1
  239. package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -1
  240. package/dist/model/getWebhook.js +1 -1
  241. package/dist/model/getWebhook.js.map +1 -1
  242. package/dist/model/getWhatsAppConfig.js +1 -1
  243. package/dist/model/getWhatsAppConfig.js.map +1 -1
  244. package/dist/model/getWhatsappCampaignOverview.js +1 -1
  245. package/dist/model/getWhatsappCampaignOverview.js.map +1 -1
  246. package/dist/model/getWhatsappCampaignsCampaignsInner.js +1 -1
  247. package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -1
  248. package/dist/model/getWhatsappEventReportEventsInner.js +1 -1
  249. package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -1
  250. package/dist/model/inviteAdminUserPrivilegesInner.d.ts +2 -11
  251. package/dist/model/inviteAdminUserPrivilegesInner.js +1 -10
  252. package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
  253. package/dist/model/inviteuserPrivilegesInner.d.ts +3 -5
  254. package/dist/model/inviteuserPrivilegesInner.js +4 -6
  255. package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
  256. package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
  257. package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
  258. package/dist/model/models.d.ts +33 -117
  259. package/dist/model/models.js +75 -412
  260. package/dist/model/models.js.map +1 -1
  261. package/dist/model/notification.js +1 -1
  262. package/dist/model/notification.js.map +1 -1
  263. package/dist/model/order.d.ts +1 -6
  264. package/dist/model/order.js +5 -15
  265. package/dist/model/order.js.map +1 -1
  266. package/dist/model/orderBatch.js.map +1 -1
  267. package/dist/model/removeContactFromList.d.ts +0 -1
  268. package/dist/model/removeContactFromList.js +0 -5
  269. package/dist/model/removeContactFromList.js.map +1 -1
  270. package/dist/model/requestContactExport.d.ts +0 -4
  271. package/dist/model/requestContactExport.js +0 -24
  272. package/dist/model/requestContactExport.js.map +1 -1
  273. package/dist/model/requestContactExportCustomContactFilter.d.ts +0 -1
  274. package/dist/model/requestContactExportCustomContactFilter.js +1 -6
  275. package/dist/model/requestContactExportCustomContactFilter.js.map +1 -1
  276. package/dist/model/requestContactImport.js.map +1 -1
  277. package/dist/model/requestSmsRecipientExport.js +1 -1
  278. package/dist/model/requestSmsRecipientExport.js.map +1 -1
  279. package/dist/model/sendReport.js +1 -1
  280. package/dist/model/sendReport.js.map +1 -1
  281. package/dist/model/sendTransacSms.d.ts +1 -2
  282. package/dist/model/sendTransacSms.js +2 -2
  283. package/dist/model/sendTransacSms.js.map +1 -1
  284. package/dist/model/ssoTokenRequest.js +1 -1
  285. package/dist/model/ssoTokenRequest.js.map +1 -1
  286. package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +0 -4
  287. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +0 -10
  288. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
  289. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +0 -2
  290. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +0 -5
  291. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
  292. package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +0 -2
  293. package/dist/model/subAccountUpdatePlanRequestCredits.js +0 -10
  294. package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
  295. package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +0 -1
  296. package/dist/model/subAccountUpdatePlanRequestFeatures.js +0 -5
  297. package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
  298. package/dist/model/taskReminder.js +1 -1
  299. package/dist/model/taskReminder.js.map +1 -1
  300. package/dist/model/updateAttribute.d.ts +0 -1
  301. package/dist/model/updateAttribute.js +0 -5
  302. package/dist/model/updateAttribute.js.map +1 -1
  303. package/dist/model/updateCampaignStatus.js +1 -1
  304. package/dist/model/updateCampaignStatus.js.map +1 -1
  305. package/dist/model/updateContact.d.ts +1 -3
  306. package/dist/model/updateContact.js +1 -1
  307. package/dist/model/updateContact.js.map +1 -1
  308. package/dist/model/updateEmailCampaign.d.ts +0 -2
  309. package/dist/model/updateEmailCampaign.js +1 -6
  310. package/dist/model/updateEmailCampaign.js.map +1 -1
  311. package/dist/model/updateEmailCampaignRecipients.d.ts +0 -1
  312. package/dist/model/updateEmailCampaignRecipients.js +0 -5
  313. package/dist/model/updateEmailCampaignRecipients.js.map +1 -1
  314. package/dist/model/updateExternalFeed.js +1 -1
  315. package/dist/model/updateExternalFeed.js.map +1 -1
  316. package/dist/model/updateSmsCampaign.js.map +1 -1
  317. package/dist/model/updateWebhook.js +1 -1
  318. package/dist/model/updateWebhook.js.map +1 -1
  319. package/dist/model/updateWhatsAppCampaign.js +1 -1
  320. package/dist/model/updateWhatsAppCampaign.js.map +1 -1
  321. package/dist/requestCompat.d.ts +29 -0
  322. package/dist/requestCompat.js +110 -0
  323. package/dist/requestCompat.js.map +1 -0
  324. package/model/addContactToList.ts +2 -11
  325. package/model/companiesIdPatchRequest.ts +0 -18
  326. package/model/conversationsMessage.ts +0 -131
  327. package/model/conversionSourceMetrics.ts +3 -6
  328. package/model/createAttribute.ts +3 -13
  329. package/model/createContact.ts +4 -4
  330. package/model/createDoiContact.ts +3 -3
  331. package/model/createEmailCampaign.ts +0 -7
  332. package/model/createEmailCampaignRecipients.ts +0 -9
  333. package/model/createUpdateProduct.ts +1 -1
  334. package/model/createUpdateProducts.ts +1 -1
  335. package/model/createWebhook.ts +1 -14
  336. package/model/crmDealsIdPatchRequest.ts +0 -18
  337. package/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.ts +3 -6
  338. package/model/errorModel.ts +1 -0
  339. package/model/getAccountAllOfPlan.ts +13 -3
  340. package/model/getAttributesAttributesInner.ts +1 -12
  341. package/model/getCampaignStats.ts +0 -18
  342. package/model/getContactCampaignStats.ts +11 -11
  343. package/model/getContactCampaignStatsClickedInner.ts +3 -3
  344. package/model/getContactCampaignStatsUnsubscriptions.ts +6 -6
  345. package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +0 -45
  346. package/model/getCorporateUserPermissionFeatureAccess.ts +0 -45
  347. package/model/getEmailCampaign.ts +6 -4
  348. package/model/getExtendedCampaignStats.ts +0 -3
  349. package/model/getOrdersOrdersInner.ts +8 -24
  350. package/model/getSegments.ts +3 -3
  351. package/model/getSmsCampaign.ts +6 -4
  352. package/model/inviteAdminUserPrivilegesInner.ts +2 -11
  353. package/model/inviteuserPrivilegesInner.ts +3 -5
  354. package/model/models.ts +85 -427
  355. package/model/order.ts +8 -24
  356. package/model/orderBilling.ts +1 -1
  357. package/model/removeContactFromList.ts +3 -12
  358. package/model/requestContactExport.ts +1 -37
  359. package/model/requestContactExportCustomContactFilter.ts +1 -10
  360. package/model/sendSmtpEmail.ts +1 -1
  361. package/model/sendTransacSms.ts +5 -3
  362. package/model/subAccountDetailsResponsePlanInfoCredits.ts +0 -14
  363. package/model/subAccountDetailsResponsePlanInfoFeatures.ts +0 -7
  364. package/model/subAccountDetailsResponsePlanInfoFeaturesUsers.ts +3 -3
  365. package/model/subAccountUpdatePlanRequestCredits.ts +2 -20
  366. package/model/subAccountUpdatePlanRequestFeatures.ts +1 -10
  367. package/model/updateAttribute.ts +1 -10
  368. package/model/updateContact.ts +3 -3
  369. package/model/updateEmailCampaign.ts +0 -7
  370. package/model/updateEmailCampaignRecipients.ts +0 -9
  371. package/package.json +6 -6
  372. package/requestCompat.ts +138 -0
  373. package/api/balanceApi.ts +0 -1725
  374. package/api/programApi.ts +0 -992
  375. package/api/rewardApi.ts +0 -975
  376. package/api/tierApi.ts +0 -952
  377. package/dist/api/balanceApi.d.ts +0 -187
  378. package/dist/api/balanceApi.js +0 -1434
  379. package/dist/api/balanceApi.js.map +0 -1
  380. package/dist/api/programApi.d.ts +0 -125
  381. package/dist/api/programApi.js +0 -847
  382. package/dist/api/programApi.js.map +0 -1
  383. package/dist/api/rewardApi.d.ts +0 -119
  384. package/dist/api/rewardApi.js +0 -814
  385. package/dist/api/rewardApi.js.map +0 -1
  386. package/dist/api/tierApi.d.ts +0 -116
  387. package/dist/api/tierApi.js +0 -801
  388. package/dist/api/tierApi.js.map +0 -1
  389. package/dist/base.d.ts +0 -66
  390. package/dist/base.js +0 -65
  391. package/dist/base.js.map +0 -1
  392. package/dist/common.d.ts +0 -65
  393. package/dist/common.js +0 -161
  394. package/dist/common.js.map +0 -1
  395. package/dist/configuration.d.ts +0 -91
  396. package/dist/configuration.js +0 -44
  397. package/dist/configuration.js.map +0 -1
  398. package/dist/index.d.ts +0 -13
  399. package/dist/index.js +0 -31
  400. package/dist/index.js.map +0 -1
  401. package/dist/model/addSubscriptionMemberPayload.d.ts +0 -16
  402. package/dist/model/addSubscriptionMemberPayload.js +0 -28
  403. package/dist/model/addSubscriptionMemberPayload.js.map +0 -1
  404. package/dist/model/aggregateBalance.d.ts +0 -15
  405. package/dist/model/aggregateBalance.js +0 -23
  406. package/dist/model/aggregateBalance.js.map +0 -1
  407. package/dist/model/balance.d.ts +0 -22
  408. package/dist/model/balance.js +0 -58
  409. package/dist/model/balance.js.map +0 -1
  410. package/dist/model/balanceDataPerContact.d.ts +0 -17
  411. package/dist/model/balanceDataPerContact.js +0 -33
  412. package/dist/model/balanceDataPerContact.js.map +0 -1
  413. package/dist/model/balanceDefinition.d.ts +0 -42
  414. package/dist/model/balanceDefinition.js +0 -121
  415. package/dist/model/balanceDefinition.js.map +0 -1
  416. package/dist/model/balanceDefinitionPage.d.ts +0 -15
  417. package/dist/model/balanceDefinitionPage.js +0 -18
  418. package/dist/model/balanceDefinitionPage.js.map +0 -1
  419. package/dist/model/balanceLimit.d.ts +0 -23
  420. package/dist/model/balanceLimit.js +0 -63
  421. package/dist/model/balanceLimit.js.map +0 -1
  422. package/dist/model/balanceOrder.d.ts +0 -27
  423. package/dist/model/balanceOrder.js +0 -73
  424. package/dist/model/balanceOrder.js.map +0 -1
  425. package/dist/model/companiesImportPost200Response.d.ts +0 -14
  426. package/dist/model/companiesImportPost200Response.js +0 -18
  427. package/dist/model/companiesImportPost200Response.js.map +0 -1
  428. package/dist/model/companiesImportPost400Response.d.ts +0 -14
  429. package/dist/model/companiesImportPost400Response.js +0 -18
  430. package/dist/model/companiesImportPost400Response.js.map +0 -1
  431. package/dist/model/contactBalancesResp.d.ts +0 -18
  432. package/dist/model/contactBalancesResp.js +0 -33
  433. package/dist/model/contactBalancesResp.js.map +0 -1
  434. package/dist/model/contactErrorModel.d.ts +0 -27
  435. package/dist/model/contactErrorModel.js +0 -40
  436. package/dist/model/contactErrorModel.js.map +0 -1
  437. package/dist/model/conversationsMessageAttachmentsInner.d.ts +0 -19
  438. package/dist/model/conversationsMessageAttachmentsInner.js +0 -43
  439. package/dist/model/conversationsMessageAttachmentsInner.js.map +0 -1
  440. package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +0 -15
  441. package/dist/model/conversationsMessageForwardedToSourceStatus.js +0 -23
  442. package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +0 -1
  443. package/dist/model/conversationsMessageFrom.d.ts +0 -15
  444. package/dist/model/conversationsMessageFrom.js +0 -23
  445. package/dist/model/conversationsMessageFrom.js.map +0 -1
  446. package/dist/model/conversationsMessageReplyTo.d.ts +0 -15
  447. package/dist/model/conversationsMessageReplyTo.js +0 -23
  448. package/dist/model/conversationsMessageReplyTo.js.map +0 -1
  449. package/dist/model/conversationsMessageToInner.d.ts +0 -15
  450. package/dist/model/conversationsMessageToInner.js +0 -23
  451. package/dist/model/conversationsMessageToInner.js.map +0 -1
  452. package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +0 -16
  453. package/dist/model/corporateUserEmailPermissionsPutRequest.js +0 -23
  454. package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +0 -1
  455. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +0 -38
  456. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +0 -48
  457. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +0 -1
  458. package/dist/model/createBalanceDefinitionPayload.d.ts +0 -75
  459. package/dist/model/createBalanceDefinitionPayload.js +0 -145
  460. package/dist/model/createBalanceDefinitionPayload.js.map +0 -1
  461. package/dist/model/createBalanceLimitPayload.d.ts +0 -35
  462. package/dist/model/createBalanceLimitPayload.js +0 -62
  463. package/dist/model/createBalanceLimitPayload.js.map +0 -1
  464. package/dist/model/createBalancePayload.d.ts +0 -14
  465. package/dist/model/createBalancePayload.js +0 -18
  466. package/dist/model/createBalancePayload.js.map +0 -1
  467. package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +0 -22
  468. package/dist/model/createEmailCampaignEmailExpirationDate.js +0 -31
  469. package/dist/model/createEmailCampaignEmailExpirationDate.js.map +0 -1
  470. package/dist/model/createLoyaltyProgramPayload.d.ts +0 -19
  471. package/dist/model/createLoyaltyProgramPayload.js +0 -33
  472. package/dist/model/createLoyaltyProgramPayload.js.map +0 -1
  473. package/dist/model/createOrderPayload.d.ts +0 -22
  474. package/dist/model/createOrderPayload.js +0 -48
  475. package/dist/model/createOrderPayload.js.map +0 -1
  476. package/dist/model/createSubscriptionPayload.d.ts +0 -16
  477. package/dist/model/createSubscriptionPayload.js +0 -28
  478. package/dist/model/createSubscriptionPayload.js.map +0 -1
  479. package/dist/model/createSubscriptionResponse.d.ts +0 -20
  480. package/dist/model/createSubscriptionResponse.js +0 -48
  481. package/dist/model/createSubscriptionResponse.js.map +0 -1
  482. package/dist/model/createTierGroupRequest.d.ts +0 -29
  483. package/dist/model/createTierGroupRequest.js +0 -51
  484. package/dist/model/createTierGroupRequest.js.map +0 -1
  485. package/dist/model/createTransactionPayload.d.ts +0 -24
  486. package/dist/model/createTransactionPayload.js +0 -58
  487. package/dist/model/createTransactionPayload.js.map +0 -1
  488. package/dist/model/crmAttributesPost200Response.d.ts +0 -14
  489. package/dist/model/crmAttributesPost200Response.js +0 -18
  490. package/dist/model/crmAttributesPost200Response.js.map +0 -1
  491. package/dist/model/crmAttributesPostRequest.d.ts +0 -33
  492. package/dist/model/crmAttributesPostRequest.js +0 -55
  493. package/dist/model/crmAttributesPostRequest.js.map +0 -1
  494. package/dist/model/errorResponse.d.ts +0 -14
  495. package/dist/model/errorResponse.js +0 -18
  496. package/dist/model/errorResponse.js.map +0 -1
  497. package/dist/model/fetchTemplatePreview.d.ts +0 -16
  498. package/dist/model/fetchTemplatePreview.js +0 -28
  499. package/dist/model/fetchTemplatePreview.js.map +0 -1
  500. package/dist/model/getSegment.d.ts +0 -17
  501. package/dist/model/getSegment.js +0 -33
  502. package/dist/model/getSegment.js.map +0 -1
  503. package/dist/model/loyaltyProgram.d.ts +0 -33
  504. package/dist/model/loyaltyProgram.js +0 -80
  505. package/dist/model/loyaltyProgram.js.map +0 -1
  506. package/dist/model/loyaltyProgramPage.d.ts +0 -15
  507. package/dist/model/loyaltyProgramPage.js +0 -18
  508. package/dist/model/loyaltyProgramPage.js.map +0 -1
  509. package/dist/model/loyaltyProgramValidationError.d.ts +0 -16
  510. package/dist/model/loyaltyProgramValidationError.js +0 -28
  511. package/dist/model/loyaltyProgramValidationError.js.map +0 -1
  512. package/dist/model/loyaltyTierPage.d.ts +0 -15
  513. package/dist/model/loyaltyTierPage.js +0 -18
  514. package/dist/model/loyaltyTierPage.js.map +0 -1
  515. package/dist/model/mainAttributeRewardPayload.d.ts +0 -22
  516. package/dist/model/mainAttributeRewardPayload.js +0 -48
  517. package/dist/model/mainAttributeRewardPayload.js.map +0 -1
  518. package/dist/model/mainBillingPayload.d.ts +0 -20
  519. package/dist/model/mainBillingPayload.js +0 -48
  520. package/dist/model/mainBillingPayload.js.map +0 -1
  521. package/dist/model/mainCodeCountHttpResponse.d.ts +0 -14
  522. package/dist/model/mainCodeCountHttpResponse.js +0 -18
  523. package/dist/model/mainCodeCountHttpResponse.js.map +0 -1
  524. package/dist/model/mainCreateRedeemPayload.d.ts +0 -24
  525. package/dist/model/mainCreateRedeemPayload.js +0 -53
  526. package/dist/model/mainCreateRedeemPayload.js.map +0 -1
  527. package/dist/model/mainCreateRewardPayload.d.ts +0 -17
  528. package/dist/model/mainCreateRewardPayload.js +0 -33
  529. package/dist/model/mainCreateRewardPayload.js.map +0 -1
  530. package/dist/model/mainCreateRewardResponse.d.ts +0 -21
  531. package/dist/model/mainCreateRewardResponse.js +0 -53
  532. package/dist/model/mainCreateRewardResponse.js.map +0 -1
  533. package/dist/model/mainErrorResponse.d.ts +0 -14
  534. package/dist/model/mainErrorResponse.js +0 -18
  535. package/dist/model/mainErrorResponse.js.map +0 -1
  536. package/dist/model/mainFilter.d.ts +0 -15
  537. package/dist/model/mainFilter.js +0 -23
  538. package/dist/model/mainFilter.js.map +0 -1
  539. package/dist/model/mainGenerator.d.ts +0 -19
  540. package/dist/model/mainGenerator.js +0 -43
  541. package/dist/model/mainGenerator.js.map +0 -1
  542. package/dist/model/mainGetContactRewardsPayload.d.ts +0 -31
  543. package/dist/model/mainGetContactRewardsPayload.js +0 -60
  544. package/dist/model/mainGetContactRewardsPayload.js.map +0 -1
  545. package/dist/model/mainIdentifiersPayload.d.ts +0 -15
  546. package/dist/model/mainIdentifiersPayload.js +0 -23
  547. package/dist/model/mainIdentifiersPayload.js.map +0 -1
  548. package/dist/model/mainLimit.d.ts +0 -21
  549. package/dist/model/mainLimit.js +0 -53
  550. package/dist/model/mainLimit.js.map +0 -1
  551. package/dist/model/mainModelContactReward.d.ts +0 -25
  552. package/dist/model/mainModelContactReward.js +0 -63
  553. package/dist/model/mainModelContactReward.js.map +0 -1
  554. package/dist/model/mainModelContactRewardsResp.d.ts +0 -19
  555. package/dist/model/mainModelContactRewardsResp.js +0 -38
  556. package/dist/model/mainModelContactRewardsResp.js.map +0 -1
  557. package/dist/model/mainNodeResponse.d.ts +0 -21
  558. package/dist/model/mainNodeResponse.js +0 -53
  559. package/dist/model/mainNodeResponse.js.map +0 -1
  560. package/dist/model/mainOrderPayload.d.ts +0 -28
  561. package/dist/model/mainOrderPayload.js +0 -73
  562. package/dist/model/mainOrderPayload.js.map +0 -1
  563. package/dist/model/mainProduct.d.ts +0 -17
  564. package/dist/model/mainProduct.js +0 -33
  565. package/dist/model/mainProduct.js.map +0 -1
  566. package/dist/model/mainProductPayload.d.ts +0 -18
  567. package/dist/model/mainProductPayload.js +0 -38
  568. package/dist/model/mainProductPayload.js.map +0 -1
  569. package/dist/model/mainRedeem.d.ts +0 -29
  570. package/dist/model/mainRedeem.js +0 -83
  571. package/dist/model/mainRedeem.js.map +0 -1
  572. package/dist/model/mainResultParameterResponse.d.ts +0 -16
  573. package/dist/model/mainResultParameterResponse.js +0 -23
  574. package/dist/model/mainResultParameterResponse.js.map +0 -1
  575. package/dist/model/mainReward.d.ts +0 -67
  576. package/dist/model/mainReward.js +0 -224
  577. package/dist/model/mainReward.js.map +0 -1
  578. package/dist/model/mainRewardAttribution.d.ts +0 -26
  579. package/dist/model/mainRewardAttribution.js +0 -68
  580. package/dist/model/mainRewardAttribution.js.map +0 -1
  581. package/dist/model/mainRewardConfigurations.d.ts +0 -16
  582. package/dist/model/mainRewardConfigurations.js +0 -28
  583. package/dist/model/mainRewardConfigurations.js.map +0 -1
  584. package/dist/model/mainRewardPage.d.ts +0 -16
  585. package/dist/model/mainRewardPage.js +0 -23
  586. package/dist/model/mainRewardPage.js.map +0 -1
  587. package/dist/model/mainRewardPageObj.d.ts +0 -22
  588. package/dist/model/mainRewardPageObj.js +0 -58
  589. package/dist/model/mainRewardPageObj.js.map +0 -1
  590. package/dist/model/mainRewardValidate.d.ts +0 -14
  591. package/dist/model/mainRewardValidate.js +0 -18
  592. package/dist/model/mainRewardValidate.js.map +0 -1
  593. package/dist/model/mainRule.d.ts +0 -31
  594. package/dist/model/mainRule.js +0 -78
  595. package/dist/model/mainRule.js.map +0 -1
  596. package/dist/model/mainRuleConditionResponse.d.ts +0 -19
  597. package/dist/model/mainRuleConditionResponse.js +0 -38
  598. package/dist/model/mainRuleConditionResponse.js.map +0 -1
  599. package/dist/model/mainRuleEventResponse.d.ts +0 -15
  600. package/dist/model/mainRuleEventResponse.js +0 -23
  601. package/dist/model/mainRuleEventResponse.js.map +0 -1
  602. package/dist/model/mainRuleResultResponse.d.ts +0 -17
  603. package/dist/model/mainRuleResultResponse.js +0 -28
  604. package/dist/model/mainRuleResultResponse.js.map +0 -1
  605. package/dist/model/mainValidateRewardPayload.d.ts +0 -19
  606. package/dist/model/mainValidateRewardPayload.js +0 -43
  607. package/dist/model/mainValidateRewardPayload.js.map +0 -1
  608. package/dist/model/mainValueResponse.d.ts +0 -22
  609. package/dist/model/mainValueResponse.js +0 -53
  610. package/dist/model/mainValueResponse.js.map +0 -1
  611. package/dist/model/mainVoucherRevokePayload.d.ts +0 -14
  612. package/dist/model/mainVoucherRevokePayload.js +0 -18
  613. package/dist/model/mainVoucherRevokePayload.js.map +0 -1
  614. package/dist/model/memberContact.d.ts +0 -16
  615. package/dist/model/memberContact.js +0 -28
  616. package/dist/model/memberContact.js.map +0 -1
  617. package/dist/model/modelSubscriptionBalanceResp.d.ts +0 -15
  618. package/dist/model/modelSubscriptionBalanceResp.js +0 -18
  619. package/dist/model/modelSubscriptionBalanceResp.js.map +0 -1
  620. package/dist/model/orderIdentifiers.d.ts +0 -17
  621. package/dist/model/orderIdentifiers.js +0 -33
  622. package/dist/model/orderIdentifiers.js.map +0 -1
  623. package/dist/model/patchLoyaltyProgramPayload.d.ts +0 -16
  624. package/dist/model/patchLoyaltyProgramPayload.js +0 -28
  625. package/dist/model/patchLoyaltyProgramPayload.js.map +0 -1
  626. package/dist/model/sendTransacSmsTag.d.ts +0 -14
  627. package/dist/model/sendTransacSmsTag.js +0 -18
  628. package/dist/model/sendTransacSmsTag.js.map +0 -1
  629. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +0 -15
  630. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +0 -23
  631. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +0 -1
  632. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +0 -15
  633. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +0 -23
  634. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +0 -1
  635. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +0 -15
  636. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +0 -23
  637. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +0 -1
  638. package/dist/model/subAccountsUpdatePlanRequest.d.ts +0 -18
  639. package/dist/model/subAccountsUpdatePlanRequest.js +0 -28
  640. package/dist/model/subAccountsUpdatePlanRequest.js.map +0 -1
  641. package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +0 -18
  642. package/dist/model/subAccountsUpdatePlanRequestCredits.js +0 -38
  643. package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +0 -1
  644. package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +0 -16
  645. package/dist/model/subAccountsUpdatePlanRequestFeatures.js +0 -28
  646. package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +0 -1
  647. package/dist/model/subscription.d.ts +0 -20
  648. package/dist/model/subscription.js +0 -48
  649. package/dist/model/subscription.js.map +0 -1
  650. package/dist/model/subscriptionAggregateBalance.d.ts +0 -15
  651. package/dist/model/subscriptionAggregateBalance.js +0 -23
  652. package/dist/model/subscriptionAggregateBalance.js.map +0 -1
  653. package/dist/model/subscriptionAttributedReward.d.ts +0 -24
  654. package/dist/model/subscriptionAttributedReward.js +0 -58
  655. package/dist/model/subscriptionAttributedReward.js.map +0 -1
  656. package/dist/model/subscriptionBalances.d.ts +0 -17
  657. package/dist/model/subscriptionBalances.js +0 -28
  658. package/dist/model/subscriptionBalances.js.map +0 -1
  659. package/dist/model/subscriptionHandlerInfo.d.ts +0 -21
  660. package/dist/model/subscriptionHandlerInfo.js +0 -33
  661. package/dist/model/subscriptionHandlerInfo.js.map +0 -1
  662. package/dist/model/subscriptionMember.d.ts +0 -18
  663. package/dist/model/subscriptionMember.js +0 -38
  664. package/dist/model/subscriptionMember.js.map +0 -1
  665. package/dist/model/subscriptionTier.d.ts +0 -22
  666. package/dist/model/subscriptionTier.js +0 -48
  667. package/dist/model/subscriptionTier.js.map +0 -1
  668. package/dist/model/templatePreview.d.ts +0 -19
  669. package/dist/model/templatePreview.js +0 -43
  670. package/dist/model/templatePreview.js.map +0 -1
  671. package/dist/model/tier.d.ts +0 -24
  672. package/dist/model/tier.js +0 -58
  673. package/dist/model/tier.js.map +0 -1
  674. package/dist/model/tierAccessConditionsInner.d.ts +0 -17
  675. package/dist/model/tierAccessConditionsInner.js +0 -33
  676. package/dist/model/tierAccessConditionsInner.js.map +0 -1
  677. package/dist/model/tierForContact.d.ts +0 -22
  678. package/dist/model/tierForContact.js +0 -48
  679. package/dist/model/tierForContact.js.map +0 -1
  680. package/dist/model/tierGroup.d.ts +0 -33
  681. package/dist/model/tierGroup.js +0 -71
  682. package/dist/model/tierGroup.js.map +0 -1
  683. package/dist/model/tierGroupPage.d.ts +0 -15
  684. package/dist/model/tierGroupPage.js +0 -18
  685. package/dist/model/tierGroupPage.js.map +0 -1
  686. package/dist/model/tierRequest.d.ts +0 -19
  687. package/dist/model/tierRequest.js +0 -33
  688. package/dist/model/tierRequest.js.map +0 -1
  689. package/dist/model/tierRequestAccessConditionsInner.d.ts +0 -15
  690. package/dist/model/tierRequestAccessConditionsInner.js +0 -23
  691. package/dist/model/tierRequestAccessConditionsInner.js.map +0 -1
  692. package/dist/model/tierRequestPutPayload.d.ts +0 -19
  693. package/dist/model/tierRequestPutPayload.js +0 -33
  694. package/dist/model/tierRequestPutPayload.js.map +0 -1
  695. package/dist/model/tierRequestTierRewardsInner.d.ts +0 -14
  696. package/dist/model/tierRequestTierRewardsInner.js +0 -18
  697. package/dist/model/tierRequestTierRewardsInner.js.map +0 -1
  698. package/dist/model/tierTierRewardsInner.d.ts +0 -16
  699. package/dist/model/tierTierRewardsInner.js +0 -28
  700. package/dist/model/tierTierRewardsInner.js.map +0 -1
  701. package/dist/model/transaction.d.ts +0 -30
  702. package/dist/model/transaction.js +0 -88
  703. package/dist/model/transaction.js.map +0 -1
  704. package/dist/model/transactionHistory.d.ts +0 -25
  705. package/dist/model/transactionHistory.js +0 -63
  706. package/dist/model/transactionHistory.js.map +0 -1
  707. package/dist/model/transactionHistoryResp.d.ts +0 -19
  708. package/dist/model/transactionHistoryResp.js +0 -38
  709. package/dist/model/transactionHistoryResp.js.map +0 -1
  710. package/dist/model/unauthorizedResponse.d.ts +0 -14
  711. package/dist/model/unauthorizedResponse.js +0 -18
  712. package/dist/model/unauthorizedResponse.js.map +0 -1
  713. package/dist/model/updateBalanceDefinitionPayload.d.ts +0 -77
  714. package/dist/model/updateBalanceDefinitionPayload.js +0 -145
  715. package/dist/model/updateBalanceDefinitionPayload.js.map +0 -1
  716. package/dist/model/updateBalanceLimitPayload.d.ts +0 -35
  717. package/dist/model/updateBalanceLimitPayload.js +0 -62
  718. package/dist/model/updateBalanceLimitPayload.js.map +0 -1
  719. package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +0 -22
  720. package/dist/model/updateEmailCampaignEmailExpirationDate.js +0 -31
  721. package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +0 -1
  722. package/dist/model/updateLoyaltyProgramPayload.d.ts +0 -16
  723. package/dist/model/updateLoyaltyProgramPayload.js +0 -28
  724. package/dist/model/updateLoyaltyProgramPayload.js.map +0 -1
  725. package/dist/model/updateTierGroupRequest.d.ts +0 -29
  726. package/dist/model/updateTierGroupRequest.js +0 -51
  727. package/dist/model/updateTierGroupRequest.js.map +0 -1
  728. package/model/addSubscriptionMemberPayload.ts +0 -52
  729. package/model/aggregateBalance.ts +0 -43
  730. package/model/balance.ts +0 -106
  731. package/model/balanceDataPerContact.ts +0 -49
  732. package/model/balanceDefinition.ts +0 -212
  733. package/model/balanceDefinitionPage.ts +0 -35
  734. package/model/balanceLimit.ts +0 -115
  735. package/model/balanceOrder.ts +0 -136
  736. package/model/companiesImportPost200Response.ts +0 -34
  737. package/model/companiesImportPost400Response.ts +0 -31
  738. package/model/contactBalancesResp.ts +0 -50
  739. package/model/contactErrorModel.ts +0 -63
  740. package/model/conversationsMessageAttachmentsInner.ts +0 -79
  741. package/model/conversationsMessageForwardedToSourceStatus.ts +0 -40
  742. package/model/conversationsMessageFrom.ts +0 -40
  743. package/model/conversationsMessageReplyTo.ts +0 -40
  744. package/model/conversationsMessageToInner.ts +0 -37
  745. package/model/corporateUserEmailPermissionsPutRequest.ts +0 -41
  746. package/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.ts +0 -69
  747. package/model/createBalanceDefinitionPayload.ts +0 -218
  748. package/model/createBalanceLimitPayload.ts +0 -98
  749. package/model/createBalancePayload.ts +0 -37
  750. package/model/createEmailCampaignEmailExpirationDate.ts +0 -53
  751. package/model/createLoyaltyProgramPayload.ts +0 -61
  752. package/model/createOrderPayload.ts +0 -91
  753. package/model/createSubscriptionPayload.ts +0 -52
  754. package/model/createSubscriptionResponse.ts +0 -88
  755. package/model/createTierGroupRequest.ts +0 -73
  756. package/model/createTransactionPayload.ts +0 -109
  757. package/model/crmAttributesPost200Response.ts +0 -34
  758. package/model/crmAttributesPostRequest.ts +0 -85
  759. package/model/errorResponse.ts +0 -31
  760. package/model/fetchTemplatePreview.ts +0 -52
  761. package/model/getSegment.ts +0 -61
  762. package/model/loyaltyProgram.ts +0 -139
  763. package/model/loyaltyProgramPage.ts +0 -35
  764. package/model/loyaltyProgramValidationError.ts +0 -52
  765. package/model/loyaltyTierPage.ts +0 -32
  766. package/model/mainAttributeRewardPayload.ts +0 -88
  767. package/model/mainBillingPayload.ts +0 -88
  768. package/model/mainCodeCountHttpResponse.ts +0 -34
  769. package/model/mainCreateRedeemPayload.ts +0 -98
  770. package/model/mainCreateRewardPayload.ts +0 -61
  771. package/model/mainCreateRewardResponse.ts +0 -97
  772. package/model/mainErrorResponse.ts +0 -34
  773. package/model/mainFilter.ts +0 -43
  774. package/model/mainGenerator.ts +0 -79
  775. package/model/mainGetContactRewardsPayload.ts +0 -99
  776. package/model/mainIdentifiersPayload.ts +0 -43
  777. package/model/mainLimit.ts +0 -97
  778. package/model/mainModelContactReward.ts +0 -115
  779. package/model/mainModelContactRewardsResp.ts +0 -71
  780. package/model/mainNodeResponse.ts +0 -97
  781. package/model/mainOrderPayload.ts +0 -136
  782. package/model/mainProduct.ts +0 -61
  783. package/model/mainProductPayload.ts +0 -70
  784. package/model/mainRedeem.ts +0 -151
  785. package/model/mainResultParameterResponse.ts +0 -44
  786. package/model/mainReward.ts +0 -397
  787. package/model/mainRewardAttribution.ts +0 -124
  788. package/model/mainRewardConfigurations.ts +0 -52
  789. package/model/mainRewardPage.ts +0 -44
  790. package/model/mainRewardPageObj.ts +0 -106
  791. package/model/mainRewardValidate.ts +0 -34
  792. package/model/mainRule.ts +0 -145
  793. package/model/mainRuleConditionResponse.ts +0 -71
  794. package/model/mainRuleEventResponse.ts +0 -43
  795. package/model/mainRuleResultResponse.ts +0 -53
  796. package/model/mainValidateRewardPayload.ts +0 -79
  797. package/model/mainValueResponse.ts +0 -98
  798. package/model/mainVoucherRevokePayload.ts +0 -34
  799. package/model/memberContact.ts +0 -52
  800. package/model/modelSubscriptionBalanceResp.ts +0 -32
  801. package/model/orderIdentifiers.ts +0 -64
  802. package/model/patchLoyaltyProgramPayload.ts +0 -52
  803. package/model/sendTransacSmsTag.ts +0 -37
  804. package/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.ts +0 -46
  805. package/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.ts +0 -46
  806. package/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.ts +0 -46
  807. package/model/subAccountsUpdatePlanRequest.ts +0 -51
  808. package/model/subAccountsUpdatePlanRequestCredits.ts +0 -73
  809. package/model/subAccountsUpdatePlanRequestFeatures.ts +0 -55
  810. package/model/subscription.ts +0 -88
  811. package/model/subscriptionAggregateBalance.ts +0 -43
  812. package/model/subscriptionAttributedReward.ts +0 -106
  813. package/model/subscriptionBalances.ts +0 -53
  814. package/model/subscriptionHandlerInfo.ts +0 -65
  815. package/model/subscriptionMember.ts +0 -70
  816. package/model/subscriptionTier.ts +0 -88
  817. package/model/templatePreview.ts +0 -76
  818. package/model/tier.ts +0 -102
  819. package/model/tierAccessConditionsInner.ts +0 -55
  820. package/model/tierForContact.ts +0 -82
  821. package/model/tierGroup.ts +0 -109
  822. package/model/tierGroupPage.ts +0 -32
  823. package/model/tierRequest.ts +0 -57
  824. package/model/tierRequestAccessConditionsInner.ts +0 -43
  825. package/model/tierRequestPutPayload.ts +0 -57
  826. package/model/tierRequestTierRewardsInner.ts +0 -34
  827. package/model/tierTierRewardsInner.ts +0 -46
  828. package/model/transaction.ts +0 -163
  829. package/model/transactionHistory.ts +0 -118
  830. package/model/transactionHistoryResp.ts +0 -74
  831. package/model/unauthorizedResponse.ts +0 -34
  832. package/model/updateBalanceDefinitionPayload.ts +0 -218
  833. package/model/updateBalanceLimitPayload.ts +0 -98
  834. package/model/updateEmailCampaignEmailExpirationDate.ts +0 -53
  835. package/model/updateLoyaltyProgramPayload.ts +0 -52
  836. package/model/updateTierGroupRequest.ts +0 -73
@@ -11,12 +11,8 @@
11
11
  */
12
12
 
13
13
 
14
- import localVarRequest from 'request';
15
- import http from 'http';
16
-
17
- /* tslint:disable:no-unused-locals */
14
+ import localVarRequest, { RequestOptions, IncomingMessage } from '../requestCompat';
18
15
  import { AddContactToList } from '../model/addContactToList';
19
- import { ContactErrorModel } from '../model/contactErrorModel';
20
16
  import { CreateAttribute } from '../model/createAttribute';
21
17
  import { CreateContact } from '../model/createContact';
22
18
  import { CreateDoiContact } from '../model/createDoiContact';
@@ -123,9 +119,9 @@ export class ContactsApi {
123
119
  *
124
120
  * @summary Add existing contacts to a list
125
121
  * @param listId Id of the list
126
- * @param contactEmails Emails addresses OR IDs OR EXT_ID attributes of the contacts
122
+ * @param contactEmails Emails addresses OR IDs of the contacts
127
123
  */
128
- public async addContactToList (listId: number, contactEmails: AddContactToList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PostContactInfo; }> {
124
+ public async addContactToList (listId: number, contactEmails: AddContactToList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: PostContactInfo; }> {
129
125
  const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/add'
130
126
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
131
127
  let localVarQueryParameters: any = {};
@@ -153,11 +149,11 @@ export class ContactsApi {
153
149
 
154
150
  let localVarUseFormData = false;
155
151
 
156
- let localVarRequestOptions: localVarRequest.Options = {
152
+ let localVarRequestOptions: RequestOptions = {
157
153
  method: 'POST',
158
- qs: localVarQueryParameters,
154
+ params: localVarQueryParameters,
159
155
  headers: localVarHeaderParams,
160
- uri: localVarPath,
156
+ url: localVarPath,
161
157
  useQuerystring: this._useQuerystring,
162
158
  json: true,
163
159
  body: ObjectSerializer.serialize(contactEmails, "AddContactToList")
@@ -185,7 +181,7 @@ export class ContactsApi {
185
181
  localVarRequestOptions.form = localVarFormParams;
186
182
  }
187
183
  }
188
- return new Promise<{ response: http.IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
184
+ return new Promise<{ response: IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
189
185
  localVarRequest(localVarRequestOptions, (error, response, body) => {
190
186
  if (error) {
191
187
  reject(error);
@@ -208,7 +204,7 @@ export class ContactsApi {
208
204
  * @param attributeName Name of the attribute
209
205
  * @param createAttribute Values to create an attribute
210
206
  */
211
- public async createAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, createAttribute: CreateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
207
+ public async createAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, createAttribute: CreateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
212
208
  const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
213
209
  .replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
214
210
  .replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
@@ -242,11 +238,11 @@ export class ContactsApi {
242
238
 
243
239
  let localVarUseFormData = false;
244
240
 
245
- let localVarRequestOptions: localVarRequest.Options = {
241
+ let localVarRequestOptions: RequestOptions = {
246
242
  method: 'POST',
247
- qs: localVarQueryParameters,
243
+ params: localVarQueryParameters,
248
244
  headers: localVarHeaderParams,
249
- uri: localVarPath,
245
+ url: localVarPath,
250
246
  useQuerystring: this._useQuerystring,
251
247
  json: true,
252
248
  body: ObjectSerializer.serialize(createAttribute, "CreateAttribute")
@@ -274,7 +270,7 @@ export class ContactsApi {
274
270
  localVarRequestOptions.form = localVarFormParams;
275
271
  }
276
272
  }
277
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
273
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
278
274
  localVarRequest(localVarRequestOptions, (error, response, body) => {
279
275
  if (error) {
280
276
  reject(error);
@@ -290,11 +286,11 @@ export class ContactsApi {
290
286
  });
291
287
  }
292
288
  /**
293
- * Creates new contacts on Brevo. Contacts can be created by passing either - <br><br> 1. email address of the contact (email_id), <br> 2. phone number of the contact (to be passed as \"SMS\" field in \"attributes\" along with proper country code), For example- {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} <br> 3. ext_id <br>
289
+ *
294
290
  * @summary Create a contact
295
291
  * @param createContact Values to create a contact
296
292
  */
297
- public async createContact (createContact: CreateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateUpdateContactModel; }> {
293
+ public async createContact (createContact: CreateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateUpdateContactModel; }> {
298
294
  const localVarPath = this.basePath + '/contacts';
299
295
  let localVarQueryParameters: any = {};
300
296
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -316,11 +312,11 @@ export class ContactsApi {
316
312
 
317
313
  let localVarUseFormData = false;
318
314
 
319
- let localVarRequestOptions: localVarRequest.Options = {
315
+ let localVarRequestOptions: RequestOptions = {
320
316
  method: 'POST',
321
- qs: localVarQueryParameters,
317
+ params: localVarQueryParameters,
322
318
  headers: localVarHeaderParams,
323
- uri: localVarPath,
319
+ url: localVarPath,
324
320
  useQuerystring: this._useQuerystring,
325
321
  json: true,
326
322
  body: ObjectSerializer.serialize(createContact, "CreateContact")
@@ -348,7 +344,7 @@ export class ContactsApi {
348
344
  localVarRequestOptions.form = localVarFormParams;
349
345
  }
350
346
  }
351
- return new Promise<{ response: http.IncomingMessage; body: CreateUpdateContactModel; }>((resolve, reject) => {
347
+ return new Promise<{ response: IncomingMessage; body: CreateUpdateContactModel; }>((resolve, reject) => {
352
348
  localVarRequest(localVarRequestOptions, (error, response, body) => {
353
349
  if (error) {
354
350
  reject(error);
@@ -369,7 +365,7 @@ export class ContactsApi {
369
365
  * @summary Create Contact via DOI (Double-Opt-In) Flow
370
366
  * @param createDoiContact Values to create the Double opt-in (DOI) contact
371
367
  */
372
- public async createDoiContact (createDoiContact: CreateDoiContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
368
+ public async createDoiContact (createDoiContact: CreateDoiContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
373
369
  const localVarPath = this.basePath + '/contacts/doubleOptinConfirmation';
374
370
  let localVarQueryParameters: any = {};
375
371
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -391,11 +387,11 @@ export class ContactsApi {
391
387
 
392
388
  let localVarUseFormData = false;
393
389
 
394
- let localVarRequestOptions: localVarRequest.Options = {
390
+ let localVarRequestOptions: RequestOptions = {
395
391
  method: 'POST',
396
- qs: localVarQueryParameters,
392
+ params: localVarQueryParameters,
397
393
  headers: localVarHeaderParams,
398
- uri: localVarPath,
394
+ url: localVarPath,
399
395
  useQuerystring: this._useQuerystring,
400
396
  json: true,
401
397
  body: ObjectSerializer.serialize(createDoiContact, "CreateDoiContact")
@@ -423,7 +419,7 @@ export class ContactsApi {
423
419
  localVarRequestOptions.form = localVarFormParams;
424
420
  }
425
421
  }
426
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
422
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
427
423
  localVarRequest(localVarRequestOptions, (error, response, body) => {
428
424
  if (error) {
429
425
  reject(error);
@@ -443,7 +439,7 @@ export class ContactsApi {
443
439
  * @summary Create a folder
444
440
  * @param createFolder Name of the folder
445
441
  */
446
- public async createFolder (createFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateModel; }> {
442
+ public async createFolder (createFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateModel; }> {
447
443
  const localVarPath = this.basePath + '/contacts/folders';
448
444
  let localVarQueryParameters: any = {};
449
445
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -465,11 +461,11 @@ export class ContactsApi {
465
461
 
466
462
  let localVarUseFormData = false;
467
463
 
468
- let localVarRequestOptions: localVarRequest.Options = {
464
+ let localVarRequestOptions: RequestOptions = {
469
465
  method: 'POST',
470
- qs: localVarQueryParameters,
466
+ params: localVarQueryParameters,
471
467
  headers: localVarHeaderParams,
472
- uri: localVarPath,
468
+ url: localVarPath,
473
469
  useQuerystring: this._useQuerystring,
474
470
  json: true,
475
471
  body: ObjectSerializer.serialize(createFolder, "CreateUpdateFolder")
@@ -497,7 +493,7 @@ export class ContactsApi {
497
493
  localVarRequestOptions.form = localVarFormParams;
498
494
  }
499
495
  }
500
- return new Promise<{ response: http.IncomingMessage; body: CreateModel; }>((resolve, reject) => {
496
+ return new Promise<{ response: IncomingMessage; body: CreateModel; }>((resolve, reject) => {
501
497
  localVarRequest(localVarRequestOptions, (error, response, body) => {
502
498
  if (error) {
503
499
  reject(error);
@@ -518,7 +514,7 @@ export class ContactsApi {
518
514
  * @summary Create a list
519
515
  * @param createList Values to create a list
520
516
  */
521
- public async createList (createList: CreateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateModel; }> {
517
+ public async createList (createList: CreateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreateModel; }> {
522
518
  const localVarPath = this.basePath + '/contacts/lists';
523
519
  let localVarQueryParameters: any = {};
524
520
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -540,11 +536,11 @@ export class ContactsApi {
540
536
 
541
537
  let localVarUseFormData = false;
542
538
 
543
- let localVarRequestOptions: localVarRequest.Options = {
539
+ let localVarRequestOptions: RequestOptions = {
544
540
  method: 'POST',
545
- qs: localVarQueryParameters,
541
+ params: localVarQueryParameters,
546
542
  headers: localVarHeaderParams,
547
- uri: localVarPath,
543
+ url: localVarPath,
548
544
  useQuerystring: this._useQuerystring,
549
545
  json: true,
550
546
  body: ObjectSerializer.serialize(createList, "CreateList")
@@ -572,7 +568,7 @@ export class ContactsApi {
572
568
  localVarRequestOptions.form = localVarFormParams;
573
569
  }
574
570
  }
575
- return new Promise<{ response: http.IncomingMessage; body: CreateModel; }>((resolve, reject) => {
571
+ return new Promise<{ response: IncomingMessage; body: CreateModel; }>((resolve, reject) => {
576
572
  localVarRequest(localVarRequestOptions, (error, response, body) => {
577
573
  if (error) {
578
574
  reject(error);
@@ -594,7 +590,7 @@ export class ContactsApi {
594
590
  * @param attributeCategory Category of the attribute
595
591
  * @param attributeName Name of the existing attribute
596
592
  */
597
- public async deleteAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
593
+ public async deleteAttribute (attributeCategory: 'normal' | 'transactional' | 'category' | 'calculated' | 'global', attributeName: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
598
594
  const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
599
595
  .replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
600
596
  .replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
@@ -623,11 +619,11 @@ export class ContactsApi {
623
619
 
624
620
  let localVarUseFormData = false;
625
621
 
626
- let localVarRequestOptions: localVarRequest.Options = {
622
+ let localVarRequestOptions: RequestOptions = {
627
623
  method: 'DELETE',
628
- qs: localVarQueryParameters,
624
+ params: localVarQueryParameters,
629
625
  headers: localVarHeaderParams,
630
- uri: localVarPath,
626
+ url: localVarPath,
631
627
  useQuerystring: this._useQuerystring,
632
628
  json: true,
633
629
  };
@@ -654,7 +650,7 @@ export class ContactsApi {
654
650
  localVarRequestOptions.form = localVarFormParams;
655
651
  }
656
652
  }
657
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
653
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
658
654
  localVarRequest(localVarRequestOptions, (error, response, body) => {
659
655
  if (error) {
660
656
  reject(error);
@@ -670,12 +666,11 @@ export class ContactsApi {
670
666
  });
671
667
  }
672
668
  /**
673
- * There are 2 ways to delete a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute.
669
+ *
674
670
  * @summary Delete a contact
675
- * @param identifier Email (urlencoded) OR ID of the contact OR EXT_ID attribute (urlencoded)
676
- * @param identifierType email_id for Email, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute
671
+ * @param identifier Email (urlencoded) OR ID of the contact
677
672
  */
678
- public async deleteContact (identifier: string, identifierType?: 'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
673
+ public async deleteContact (identifier: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
679
674
  const localVarPath = this.basePath + '/contacts/{identifier}'
680
675
  .replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
681
676
  let localVarQueryParameters: any = {};
@@ -694,19 +689,15 @@ export class ContactsApi {
694
689
  throw new Error('Required parameter identifier was null or undefined when calling deleteContact.');
695
690
  }
696
691
 
697
- if (identifierType !== undefined) {
698
- localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id'");
699
- }
700
-
701
692
  (<any>Object).assign(localVarHeaderParams, options.headers);
702
693
 
703
694
  let localVarUseFormData = false;
704
695
 
705
- let localVarRequestOptions: localVarRequest.Options = {
696
+ let localVarRequestOptions: RequestOptions = {
706
697
  method: 'DELETE',
707
- qs: localVarQueryParameters,
698
+ params: localVarQueryParameters,
708
699
  headers: localVarHeaderParams,
709
- uri: localVarPath,
700
+ url: localVarPath,
710
701
  useQuerystring: this._useQuerystring,
711
702
  json: true,
712
703
  };
@@ -733,7 +724,7 @@ export class ContactsApi {
733
724
  localVarRequestOptions.form = localVarFormParams;
734
725
  }
735
726
  }
736
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
727
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
737
728
  localVarRequest(localVarRequestOptions, (error, response, body) => {
738
729
  if (error) {
739
730
  reject(error);
@@ -753,7 +744,7 @@ export class ContactsApi {
753
744
  * @summary Delete a folder (and all its lists)
754
745
  * @param folderId Id of the folder
755
746
  */
756
- public async deleteFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
747
+ public async deleteFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
757
748
  const localVarPath = this.basePath + '/contacts/folders/{folderId}'
758
749
  .replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
759
750
  let localVarQueryParameters: any = {};
@@ -776,11 +767,11 @@ export class ContactsApi {
776
767
 
777
768
  let localVarUseFormData = false;
778
769
 
779
- let localVarRequestOptions: localVarRequest.Options = {
770
+ let localVarRequestOptions: RequestOptions = {
780
771
  method: 'DELETE',
781
- qs: localVarQueryParameters,
772
+ params: localVarQueryParameters,
782
773
  headers: localVarHeaderParams,
783
- uri: localVarPath,
774
+ url: localVarPath,
784
775
  useQuerystring: this._useQuerystring,
785
776
  json: true,
786
777
  };
@@ -807,7 +798,7 @@ export class ContactsApi {
807
798
  localVarRequestOptions.form = localVarFormParams;
808
799
  }
809
800
  }
810
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
801
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
811
802
  localVarRequest(localVarRequestOptions, (error, response, body) => {
812
803
  if (error) {
813
804
  reject(error);
@@ -827,7 +818,7 @@ export class ContactsApi {
827
818
  * @summary Delete a list
828
819
  * @param listId Id of the list
829
820
  */
830
- public async deleteList (listId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
821
+ public async deleteList (listId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
831
822
  const localVarPath = this.basePath + '/contacts/lists/{listId}'
832
823
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
833
824
  let localVarQueryParameters: any = {};
@@ -850,99 +841,11 @@ export class ContactsApi {
850
841
 
851
842
  let localVarUseFormData = false;
852
843
 
853
- let localVarRequestOptions: localVarRequest.Options = {
854
- method: 'DELETE',
855
- qs: localVarQueryParameters,
856
- headers: localVarHeaderParams,
857
- uri: localVarPath,
858
- useQuerystring: this._useQuerystring,
859
- json: true,
860
- };
861
-
862
- let authenticationPromise = Promise.resolve();
863
- if (this.authentications.apiKey.apiKey) {
864
- authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
865
- }
866
- if (this.authentications.partnerKey.apiKey) {
867
- authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
868
- }
869
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
870
-
871
- let interceptorPromise = authenticationPromise;
872
- for (const interceptor of this.interceptors) {
873
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
874
- }
875
-
876
- return interceptorPromise.then(() => {
877
- if (Object.keys(localVarFormParams).length) {
878
- if (localVarUseFormData) {
879
- (<any>localVarRequestOptions).formData = localVarFormParams;
880
- } else {
881
- localVarRequestOptions.form = localVarFormParams;
882
- }
883
- }
884
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
885
- localVarRequest(localVarRequestOptions, (error, response, body) => {
886
- if (error) {
887
- reject(error);
888
- } else {
889
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
890
- resolve({ response: response, body: body });
891
- } else {
892
- reject(new HttpError(response, body, response.statusCode));
893
- }
894
- }
895
- });
896
- });
897
- });
898
- }
899
- /**
900
- *
901
- * @summary Delete a multiple-choice attribute option
902
- * @param attributeType Type of the attribute
903
- * @param multipleChoiceAttribute Name of the existing multiple-choice attribute
904
- * @param multipleChoiceAttributeOption Name of the existing multiple-choice attribute option that you want to delete
905
- */
906
- public async deleteMultiAttributeOptions (attributeType: 'multiple-choice', multipleChoiceAttribute: string, multipleChoiceAttributeOption: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
907
- const localVarPath = this.basePath + '/contacts/attributes/{attributeType}/{multipleChoiceAttribute}/{multipleChoiceAttributeOption}'
908
- .replace('{' + 'attributeType' + '}', encodeURIComponent(String(attributeType)))
909
- .replace('{' + 'multipleChoiceAttribute' + '}', encodeURIComponent(String(multipleChoiceAttribute)))
910
- .replace('{' + 'multipleChoiceAttributeOption' + '}', encodeURIComponent(String(multipleChoiceAttributeOption)));
911
- let localVarQueryParameters: any = {};
912
- let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
913
- const produces = ['application/json'];
914
- // give precedence to 'application/json'
915
- if (produces.indexOf('application/json') >= 0) {
916
- localVarHeaderParams.Accept = 'application/json';
917
- } else {
918
- localVarHeaderParams.Accept = produces.join(',');
919
- }
920
- let localVarFormParams: any = {};
921
-
922
- // verify required parameter 'attributeType' is not null or undefined
923
- if (attributeType === null || attributeType === undefined) {
924
- throw new Error('Required parameter attributeType was null or undefined when calling deleteMultiAttributeOptions.');
925
- }
926
-
927
- // verify required parameter 'multipleChoiceAttribute' is not null or undefined
928
- if (multipleChoiceAttribute === null || multipleChoiceAttribute === undefined) {
929
- throw new Error('Required parameter multipleChoiceAttribute was null or undefined when calling deleteMultiAttributeOptions.');
930
- }
931
-
932
- // verify required parameter 'multipleChoiceAttributeOption' is not null or undefined
933
- if (multipleChoiceAttributeOption === null || multipleChoiceAttributeOption === undefined) {
934
- throw new Error('Required parameter multipleChoiceAttributeOption was null or undefined when calling deleteMultiAttributeOptions.');
935
- }
936
-
937
- (<any>Object).assign(localVarHeaderParams, options.headers);
938
-
939
- let localVarUseFormData = false;
940
-
941
- let localVarRequestOptions: localVarRequest.Options = {
844
+ let localVarRequestOptions: RequestOptions = {
942
845
  method: 'DELETE',
943
- qs: localVarQueryParameters,
846
+ params: localVarQueryParameters,
944
847
  headers: localVarHeaderParams,
945
- uri: localVarPath,
848
+ url: localVarPath,
946
849
  useQuerystring: this._useQuerystring,
947
850
  json: true,
948
851
  };
@@ -969,7 +872,7 @@ export class ContactsApi {
969
872
  localVarRequestOptions.form = localVarFormParams;
970
873
  }
971
874
  }
972
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
875
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
973
876
  localVarRequest(localVarRequestOptions, (error, response, body) => {
974
877
  if (error) {
975
878
  reject(error);
@@ -988,7 +891,7 @@ export class ContactsApi {
988
891
  *
989
892
  * @summary List all attributes
990
893
  */
991
- public async getAttributes (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAttributes; }> {
894
+ public async getAttributes (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetAttributes; }> {
992
895
  const localVarPath = this.basePath + '/contacts/attributes';
993
896
  let localVarQueryParameters: any = {};
994
897
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1005,11 +908,11 @@ export class ContactsApi {
1005
908
 
1006
909
  let localVarUseFormData = false;
1007
910
 
1008
- let localVarRequestOptions: localVarRequest.Options = {
911
+ let localVarRequestOptions: RequestOptions = {
1009
912
  method: 'GET',
1010
- qs: localVarQueryParameters,
913
+ params: localVarQueryParameters,
1011
914
  headers: localVarHeaderParams,
1012
- uri: localVarPath,
915
+ url: localVarPath,
1013
916
  useQuerystring: this._useQuerystring,
1014
917
  json: true,
1015
918
  };
@@ -1036,7 +939,7 @@ export class ContactsApi {
1036
939
  localVarRequestOptions.form = localVarFormParams;
1037
940
  }
1038
941
  }
1039
- return new Promise<{ response: http.IncomingMessage; body: GetAttributes; }>((resolve, reject) => {
942
+ return new Promise<{ response: IncomingMessage; body: GetAttributes; }>((resolve, reject) => {
1040
943
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1041
944
  if (error) {
1042
945
  reject(error);
@@ -1053,14 +956,13 @@ export class ContactsApi {
1053
956
  });
1054
957
  }
1055
958
  /**
1056
- * There are 2 ways to get a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL), phone_id (for SMS) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL, SMS and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, phone_id for SMS attribute, contact_id for ID of the contact, ext_id for EXT_ID attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute <br><br>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.
959
+ * 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.
1057
960
  * @summary Get a contact\'s details
1058
- * @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value OR EXT_ID attribute (urlencoded)
1059
- * @param identifierType email_id for Email, phone_id for SMS attribute, contact_id for ID of the contact, ext_id for EXT_ID attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE_NUMBER attribute
961
+ * @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
1060
962
  * @param 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
1061
963
  * @param 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.
1062
964
  */
1063
- public async getContactInfo (identifier: string, identifierType?: 'email_id' | 'phone_id' | 'contact_id' | 'ext_id' | 'whatsapp_id' | 'landline_number_id', startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetExtendedContactDetails; }> {
965
+ public async getContactInfo (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetExtendedContactDetails; }> {
1064
966
  const localVarPath = this.basePath + '/contacts/{identifier}'
1065
967
  .replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
1066
968
  let localVarQueryParameters: any = {};
@@ -1079,10 +981,6 @@ export class ContactsApi {
1079
981
  throw new Error('Required parameter identifier was null or undefined when calling getContactInfo.');
1080
982
  }
1081
983
 
1082
- if (identifierType !== undefined) {
1083
- localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'phone_id' | 'contact_id' | 'ext_id' | 'whatsapp_id' | 'landline_number_id'");
1084
- }
1085
-
1086
984
  if (startDate !== undefined) {
1087
985
  localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
1088
986
  }
@@ -1095,11 +993,11 @@ export class ContactsApi {
1095
993
 
1096
994
  let localVarUseFormData = false;
1097
995
 
1098
- let localVarRequestOptions: localVarRequest.Options = {
996
+ let localVarRequestOptions: RequestOptions = {
1099
997
  method: 'GET',
1100
- qs: localVarQueryParameters,
998
+ params: localVarQueryParameters,
1101
999
  headers: localVarHeaderParams,
1102
- uri: localVarPath,
1000
+ url: localVarPath,
1103
1001
  useQuerystring: this._useQuerystring,
1104
1002
  json: true,
1105
1003
  };
@@ -1126,7 +1024,7 @@ export class ContactsApi {
1126
1024
  localVarRequestOptions.form = localVarFormParams;
1127
1025
  }
1128
1026
  }
1129
- return new Promise<{ response: http.IncomingMessage; body: GetExtendedContactDetails; }>((resolve, reject) => {
1027
+ return new Promise<{ response: IncomingMessage; body: GetExtendedContactDetails; }>((resolve, reject) => {
1130
1028
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1131
1029
  if (error) {
1132
1030
  reject(error);
@@ -1149,7 +1047,7 @@ export class ContactsApi {
1149
1047
  * @param 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
1150
1048
  * @param 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
1151
1049
  */
1152
- public async getContactStats (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContactCampaignStats; }> {
1050
+ public async getContactStats (identifier: string, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContactCampaignStats; }> {
1153
1051
  const localVarPath = this.basePath + '/contacts/{identifier}/campaignStats'
1154
1052
  .replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
1155
1053
  let localVarQueryParameters: any = {};
@@ -1180,11 +1078,11 @@ export class ContactsApi {
1180
1078
 
1181
1079
  let localVarUseFormData = false;
1182
1080
 
1183
- let localVarRequestOptions: localVarRequest.Options = {
1081
+ let localVarRequestOptions: RequestOptions = {
1184
1082
  method: 'GET',
1185
- qs: localVarQueryParameters,
1083
+ params: localVarQueryParameters,
1186
1084
  headers: localVarHeaderParams,
1187
- uri: localVarPath,
1085
+ url: localVarPath,
1188
1086
  useQuerystring: this._useQuerystring,
1189
1087
  json: true,
1190
1088
  };
@@ -1211,7 +1109,7 @@ export class ContactsApi {
1211
1109
  localVarRequestOptions.form = localVarFormParams;
1212
1110
  }
1213
1111
  }
1214
- return new Promise<{ response: http.IncomingMessage; body: GetContactCampaignStats; }>((resolve, reject) => {
1112
+ return new Promise<{ response: IncomingMessage; body: GetContactCampaignStats; }>((resolve, reject) => {
1215
1113
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1216
1114
  if (error) {
1217
1115
  reject(error);
@@ -1237,9 +1135,9 @@ export class ContactsApi {
1237
1135
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1238
1136
  * @param segmentId Id of the segment. **Either listIds or segmentId can be passed.**
1239
1137
  * @param listIds Ids of the list. **Either listIds or segmentId can be passed.**
1240
- * @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals. For multiple-choice options, the filter will apply an AND condition between the options. For category attributes, the filter will work with both id and value. (e.g. filter&#x3D;equals(FIRSTNAME,\&quot;Antoine\&quot;), filter&#x3D;equals(B1, true), filter&#x3D;equals(DOB, \&quot;1989-11-23\&quot;), filter&#x3D;equals(GENDER, \&quot;1\&quot;), filter&#x3D;equals(GENDER, \&quot;MALE\&quot;), filter&#x3D;equals(COUNTRY,\&quot;USA, INDIA\&quot;)**
1138
+ * @param filter Filter the contacts on the basis of attributes. **Allowed operator: equals. (e.g. filter&#x3D;equals(FIRSTNAME,\&quot;Antoine\&quot;), filter&#x3D;equals(B1, true), filter&#x3D;equals(DOB, \&quot;1989-11-23\&quot;))**
1241
1139
  */
1242
- public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
1140
+ public async getContacts (limit?: number, offset?: number, modifiedSince?: string, createdSince?: string, sort?: 'asc' | 'desc', segmentId?: number, listIds?: Array<number>, filter?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContacts; }> {
1243
1141
  const localVarPath = this.basePath + '/contacts';
1244
1142
  let localVarQueryParameters: any = {};
1245
1143
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1288,11 +1186,11 @@ export class ContactsApi {
1288
1186
 
1289
1187
  let localVarUseFormData = false;
1290
1188
 
1291
- let localVarRequestOptions: localVarRequest.Options = {
1189
+ let localVarRequestOptions: RequestOptions = {
1292
1190
  method: 'GET',
1293
- qs: localVarQueryParameters,
1191
+ params: localVarQueryParameters,
1294
1192
  headers: localVarHeaderParams,
1295
- uri: localVarPath,
1193
+ url: localVarPath,
1296
1194
  useQuerystring: this._useQuerystring,
1297
1195
  json: true,
1298
1196
  };
@@ -1319,7 +1217,7 @@ export class ContactsApi {
1319
1217
  localVarRequestOptions.form = localVarFormParams;
1320
1218
  }
1321
1219
  }
1322
- return new Promise<{ response: http.IncomingMessage; body: GetContacts; }>((resolve, reject) => {
1220
+ return new Promise<{ response: IncomingMessage; body: GetContacts; }>((resolve, reject) => {
1323
1221
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1324
1222
  if (error) {
1325
1223
  reject(error);
@@ -1344,7 +1242,7 @@ export class ContactsApi {
1344
1242
  * @param offset Index of the first document of the page
1345
1243
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1346
1244
  */
1347
- public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetContacts; }> {
1245
+ public async getContactsFromList (listId: number, modifiedSince?: string, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetContacts; }> {
1348
1246
  const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts'
1349
1247
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
1350
1248
  let localVarQueryParameters: any = {};
@@ -1383,11 +1281,11 @@ export class ContactsApi {
1383
1281
 
1384
1282
  let localVarUseFormData = false;
1385
1283
 
1386
- let localVarRequestOptions: localVarRequest.Options = {
1284
+ let localVarRequestOptions: RequestOptions = {
1387
1285
  method: 'GET',
1388
- qs: localVarQueryParameters,
1286
+ params: localVarQueryParameters,
1389
1287
  headers: localVarHeaderParams,
1390
- uri: localVarPath,
1288
+ url: localVarPath,
1391
1289
  useQuerystring: this._useQuerystring,
1392
1290
  json: true,
1393
1291
  };
@@ -1414,7 +1312,7 @@ export class ContactsApi {
1414
1312
  localVarRequestOptions.form = localVarFormParams;
1415
1313
  }
1416
1314
  }
1417
- return new Promise<{ response: http.IncomingMessage; body: GetContacts; }>((resolve, reject) => {
1315
+ return new Promise<{ response: IncomingMessage; body: GetContacts; }>((resolve, reject) => {
1418
1316
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1419
1317
  if (error) {
1420
1318
  reject(error);
@@ -1435,7 +1333,7 @@ export class ContactsApi {
1435
1333
  * @summary Returns a folder\'s details
1436
1334
  * @param folderId id of the folder
1437
1335
  */
1438
- public async getFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolder; }> {
1336
+ public async getFolder (folderId: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolder; }> {
1439
1337
  const localVarPath = this.basePath + '/contacts/folders/{folderId}'
1440
1338
  .replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
1441
1339
  let localVarQueryParameters: any = {};
@@ -1458,11 +1356,11 @@ export class ContactsApi {
1458
1356
 
1459
1357
  let localVarUseFormData = false;
1460
1358
 
1461
- let localVarRequestOptions: localVarRequest.Options = {
1359
+ let localVarRequestOptions: RequestOptions = {
1462
1360
  method: 'GET',
1463
- qs: localVarQueryParameters,
1361
+ params: localVarQueryParameters,
1464
1362
  headers: localVarHeaderParams,
1465
- uri: localVarPath,
1363
+ url: localVarPath,
1466
1364
  useQuerystring: this._useQuerystring,
1467
1365
  json: true,
1468
1366
  };
@@ -1489,7 +1387,7 @@ export class ContactsApi {
1489
1387
  localVarRequestOptions.form = localVarFormParams;
1490
1388
  }
1491
1389
  }
1492
- return new Promise<{ response: http.IncomingMessage; body: GetFolder; }>((resolve, reject) => {
1390
+ return new Promise<{ response: IncomingMessage; body: GetFolder; }>((resolve, reject) => {
1493
1391
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1494
1392
  if (error) {
1495
1393
  reject(error);
@@ -1513,7 +1411,7 @@ export class ContactsApi {
1513
1411
  * @param offset Index of the first document of the page
1514
1412
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1515
1413
  */
1516
- public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolderLists; }> {
1414
+ public async getFolderLists (folderId: number, limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolderLists; }> {
1517
1415
  const localVarPath = this.basePath + '/contacts/folders/{folderId}/lists'
1518
1416
  .replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
1519
1417
  let localVarQueryParameters: any = {};
@@ -1548,11 +1446,11 @@ export class ContactsApi {
1548
1446
 
1549
1447
  let localVarUseFormData = false;
1550
1448
 
1551
- let localVarRequestOptions: localVarRequest.Options = {
1449
+ let localVarRequestOptions: RequestOptions = {
1552
1450
  method: 'GET',
1553
- qs: localVarQueryParameters,
1451
+ params: localVarQueryParameters,
1554
1452
  headers: localVarHeaderParams,
1555
- uri: localVarPath,
1453
+ url: localVarPath,
1556
1454
  useQuerystring: this._useQuerystring,
1557
1455
  json: true,
1558
1456
  };
@@ -1579,7 +1477,7 @@ export class ContactsApi {
1579
1477
  localVarRequestOptions.form = localVarFormParams;
1580
1478
  }
1581
1479
  }
1582
- return new Promise<{ response: http.IncomingMessage; body: GetFolderLists; }>((resolve, reject) => {
1480
+ return new Promise<{ response: IncomingMessage; body: GetFolderLists; }>((resolve, reject) => {
1583
1481
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1584
1482
  if (error) {
1585
1483
  reject(error);
@@ -1602,7 +1500,7 @@ export class ContactsApi {
1602
1500
  * @param offset Index of the first document of the page
1603
1501
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1604
1502
  */
1605
- public async getFolders (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetFolders; }> {
1503
+ public async getFolders (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetFolders; }> {
1606
1504
  const localVarPath = this.basePath + '/contacts/folders';
1607
1505
  let localVarQueryParameters: any = {};
1608
1506
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1615,6 +1513,16 @@ export class ContactsApi {
1615
1513
  }
1616
1514
  let localVarFormParams: any = {};
1617
1515
 
1516
+ // verify required parameter 'limit' is not null or undefined
1517
+ if (limit === null || limit === undefined) {
1518
+ throw new Error('Required parameter limit was null or undefined when calling getFolders.');
1519
+ }
1520
+
1521
+ // verify required parameter 'offset' is not null or undefined
1522
+ if (offset === null || offset === undefined) {
1523
+ throw new Error('Required parameter offset was null or undefined when calling getFolders.');
1524
+ }
1525
+
1618
1526
  if (limit !== undefined) {
1619
1527
  localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
1620
1528
  }
@@ -1631,11 +1539,11 @@ export class ContactsApi {
1631
1539
 
1632
1540
  let localVarUseFormData = false;
1633
1541
 
1634
- let localVarRequestOptions: localVarRequest.Options = {
1542
+ let localVarRequestOptions: RequestOptions = {
1635
1543
  method: 'GET',
1636
- qs: localVarQueryParameters,
1544
+ params: localVarQueryParameters,
1637
1545
  headers: localVarHeaderParams,
1638
- uri: localVarPath,
1546
+ url: localVarPath,
1639
1547
  useQuerystring: this._useQuerystring,
1640
1548
  json: true,
1641
1549
  };
@@ -1662,7 +1570,7 @@ export class ContactsApi {
1662
1570
  localVarRequestOptions.form = localVarFormParams;
1663
1571
  }
1664
1572
  }
1665
- return new Promise<{ response: http.IncomingMessage; body: GetFolders; }>((resolve, reject) => {
1573
+ return new Promise<{ response: IncomingMessage; body: GetFolders; }>((resolve, reject) => {
1666
1574
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1667
1575
  if (error) {
1668
1576
  reject(error);
@@ -1685,7 +1593,7 @@ export class ContactsApi {
1685
1593
  * @param startDate Mandatory if endDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to aggregate the sent email campaigns for a specific list id.Prefer to pass your timezone in date-time format for accurate result
1686
1594
  * @param endDate Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to aggregate the sent email campaigns for a specific list id.Prefer to pass your timezone in date-time format for accurate result
1687
1595
  */
1688
- public async getList (listId: number, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetExtendedList; }> {
1596
+ public async getList (listId: number, startDate?: string, endDate?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetExtendedList; }> {
1689
1597
  const localVarPath = this.basePath + '/contacts/lists/{listId}'
1690
1598
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
1691
1599
  let localVarQueryParameters: any = {};
@@ -1716,11 +1624,11 @@ export class ContactsApi {
1716
1624
 
1717
1625
  let localVarUseFormData = false;
1718
1626
 
1719
- let localVarRequestOptions: localVarRequest.Options = {
1627
+ let localVarRequestOptions: RequestOptions = {
1720
1628
  method: 'GET',
1721
- qs: localVarQueryParameters,
1629
+ params: localVarQueryParameters,
1722
1630
  headers: localVarHeaderParams,
1723
- uri: localVarPath,
1631
+ url: localVarPath,
1724
1632
  useQuerystring: this._useQuerystring,
1725
1633
  json: true,
1726
1634
  };
@@ -1747,7 +1655,7 @@ export class ContactsApi {
1747
1655
  localVarRequestOptions.form = localVarFormParams;
1748
1656
  }
1749
1657
  }
1750
- return new Promise<{ response: http.IncomingMessage; body: GetExtendedList; }>((resolve, reject) => {
1658
+ return new Promise<{ response: IncomingMessage; body: GetExtendedList; }>((resolve, reject) => {
1751
1659
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1752
1660
  if (error) {
1753
1661
  reject(error);
@@ -1770,7 +1678,7 @@ export class ContactsApi {
1770
1678
  * @param offset Index of the first document of the page
1771
1679
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1772
1680
  */
1773
- public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetLists; }> {
1681
+ public async getLists (limit?: number, offset?: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetLists; }> {
1774
1682
  const localVarPath = this.basePath + '/contacts/lists';
1775
1683
  let localVarQueryParameters: any = {};
1776
1684
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1799,11 +1707,11 @@ export class ContactsApi {
1799
1707
 
1800
1708
  let localVarUseFormData = false;
1801
1709
 
1802
- let localVarRequestOptions: localVarRequest.Options = {
1710
+ let localVarRequestOptions: RequestOptions = {
1803
1711
  method: 'GET',
1804
- qs: localVarQueryParameters,
1712
+ params: localVarQueryParameters,
1805
1713
  headers: localVarHeaderParams,
1806
- uri: localVarPath,
1714
+ url: localVarPath,
1807
1715
  useQuerystring: this._useQuerystring,
1808
1716
  json: true,
1809
1717
  };
@@ -1830,7 +1738,7 @@ export class ContactsApi {
1830
1738
  localVarRequestOptions.form = localVarFormParams;
1831
1739
  }
1832
1740
  }
1833
- return new Promise<{ response: http.IncomingMessage; body: GetLists; }>((resolve, reject) => {
1741
+ return new Promise<{ response: IncomingMessage; body: GetLists; }>((resolve, reject) => {
1834
1742
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1835
1743
  if (error) {
1836
1744
  reject(error);
@@ -1853,7 +1761,7 @@ export class ContactsApi {
1853
1761
  * @param offset Index of the first document of the page
1854
1762
  * @param sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
1855
1763
  */
1856
- public async getSegments (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSegments; }> {
1764
+ public async getSegments (limit: number, offset: number, sort?: 'asc' | 'desc', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: GetSegments; }> {
1857
1765
  const localVarPath = this.basePath + '/contacts/segments';
1858
1766
  let localVarQueryParameters: any = {};
1859
1767
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1892,11 +1800,11 @@ export class ContactsApi {
1892
1800
 
1893
1801
  let localVarUseFormData = false;
1894
1802
 
1895
- let localVarRequestOptions: localVarRequest.Options = {
1803
+ let localVarRequestOptions: RequestOptions = {
1896
1804
  method: 'GET',
1897
- qs: localVarQueryParameters,
1805
+ params: localVarQueryParameters,
1898
1806
  headers: localVarHeaderParams,
1899
- uri: localVarPath,
1807
+ url: localVarPath,
1900
1808
  useQuerystring: this._useQuerystring,
1901
1809
  json: true,
1902
1810
  };
@@ -1923,7 +1831,7 @@ export class ContactsApi {
1923
1831
  localVarRequestOptions.form = localVarFormParams;
1924
1832
  }
1925
1833
  }
1926
- return new Promise<{ response: http.IncomingMessage; body: GetSegments; }>((resolve, reject) => {
1834
+ return new Promise<{ response: IncomingMessage; body: GetSegments; }>((resolve, reject) => {
1927
1835
  localVarRequest(localVarRequestOptions, (error, response, body) => {
1928
1836
  if (error) {
1929
1837
  reject(error);
@@ -1944,7 +1852,7 @@ export class ContactsApi {
1944
1852
  * @summary Import contacts
1945
1853
  * @param requestContactImport Values to import contacts in Brevo. To know more about the expected format, please have a look at &#x60;&#x60;https://help.brevo.com/hc/en-us/articles/209499265-Build-contacts-lists-for-your-email-marketing-campaigns&#x60;&#x60;
1946
1854
  */
1947
- public async importContacts (requestContactImport: RequestContactImport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreatedProcessId; }> {
1855
+ public async importContacts (requestContactImport: RequestContactImport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreatedProcessId; }> {
1948
1856
  const localVarPath = this.basePath + '/contacts/import';
1949
1857
  let localVarQueryParameters: any = {};
1950
1858
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -1966,14 +1874,14 @@ export class ContactsApi {
1966
1874
 
1967
1875
  let localVarUseFormData = false;
1968
1876
 
1969
- let localVarRequestOptions: localVarRequest.Options = {
1877
+ let localVarRequestOptions: RequestOptions = {
1970
1878
  method: 'POST',
1971
- qs: localVarQueryParameters,
1879
+ params: localVarQueryParameters,
1972
1880
  headers: localVarHeaderParams,
1973
- uri: localVarPath,
1881
+ url: localVarPath,
1974
1882
  useQuerystring: this._useQuerystring,
1975
1883
  json: true,
1976
- body: ObjectSerializer.serialize(requestContactImport, "RequestContactImport")
1884
+ data: ObjectSerializer.serialize(requestContactImport, "RequestContactImport")
1977
1885
  };
1978
1886
 
1979
1887
  let authenticationPromise = Promise.resolve();
@@ -1998,7 +1906,7 @@ export class ContactsApi {
1998
1906
  localVarRequestOptions.form = localVarFormParams;
1999
1907
  }
2000
1908
  }
2001
- return new Promise<{ response: http.IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
1909
+ return new Promise<{ response: IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
2002
1910
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2003
1911
  if (error) {
2004
1912
  reject(error);
@@ -2018,9 +1926,9 @@ export class ContactsApi {
2018
1926
  *
2019
1927
  * @summary Delete a contact from a list
2020
1928
  * @param listId Id of the list
2021
- * @param contactEmails Emails addresses OR IDs OR EXT_ID attributes of the contacts
1929
+ * @param contactEmails Emails addresses OR IDs of the contacts
2022
1930
  */
2023
- public async removeContactFromList (listId: number, contactEmails: RemoveContactFromList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PostContactInfo; }> {
1931
+ public async removeContactFromList (listId: number, contactEmails: RemoveContactFromList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: PostContactInfo; }> {
2024
1932
  const localVarPath = this.basePath + '/contacts/lists/{listId}/contacts/remove'
2025
1933
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
2026
1934
  let localVarQueryParameters: any = {};
@@ -2048,11 +1956,11 @@ export class ContactsApi {
2048
1956
 
2049
1957
  let localVarUseFormData = false;
2050
1958
 
2051
- let localVarRequestOptions: localVarRequest.Options = {
1959
+ let localVarRequestOptions: RequestOptions = {
2052
1960
  method: 'POST',
2053
- qs: localVarQueryParameters,
1961
+ params: localVarQueryParameters,
2054
1962
  headers: localVarHeaderParams,
2055
- uri: localVarPath,
1963
+ url: localVarPath,
2056
1964
  useQuerystring: this._useQuerystring,
2057
1965
  json: true,
2058
1966
  body: ObjectSerializer.serialize(contactEmails, "RemoveContactFromList")
@@ -2080,7 +1988,7 @@ export class ContactsApi {
2080
1988
  localVarRequestOptions.form = localVarFormParams;
2081
1989
  }
2082
1990
  }
2083
- return new Promise<{ response: http.IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
1991
+ return new Promise<{ response: IncomingMessage; body: PostContactInfo; }>((resolve, reject) => {
2084
1992
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2085
1993
  if (error) {
2086
1994
  reject(error);
@@ -2101,7 +2009,7 @@ export class ContactsApi {
2101
2009
  * @summary Export contacts
2102
2010
  * @param requestContactExport Values to request a contact export
2103
2011
  */
2104
- public async requestContactExport (requestContactExport: RequestContactExport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreatedProcessId; }> {
2012
+ public async requestContactExport (requestContactExport: RequestContactExport, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body: CreatedProcessId; }> {
2105
2013
  const localVarPath = this.basePath + '/contacts/export';
2106
2014
  let localVarQueryParameters: any = {};
2107
2015
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -2123,14 +2031,14 @@ export class ContactsApi {
2123
2031
 
2124
2032
  let localVarUseFormData = false;
2125
2033
 
2126
- let localVarRequestOptions: localVarRequest.Options = {
2034
+ let localVarRequestOptions: RequestOptions = {
2127
2035
  method: 'POST',
2128
- qs: localVarQueryParameters,
2036
+ params: localVarQueryParameters,
2129
2037
  headers: localVarHeaderParams,
2130
- uri: localVarPath,
2038
+ url: localVarPath,
2131
2039
  useQuerystring: this._useQuerystring,
2132
2040
  json: true,
2133
- body: ObjectSerializer.serialize(requestContactExport, "RequestContactExport")
2041
+ data: ObjectSerializer.serialize(requestContactExport, "RequestContactExport")
2134
2042
  };
2135
2043
 
2136
2044
  let authenticationPromise = Promise.resolve();
@@ -2155,7 +2063,7 @@ export class ContactsApi {
2155
2063
  localVarRequestOptions.form = localVarFormParams;
2156
2064
  }
2157
2065
  }
2158
- return new Promise<{ response: http.IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
2066
+ return new Promise<{ response: IncomingMessage; body: CreatedProcessId; }>((resolve, reject) => {
2159
2067
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2160
2068
  if (error) {
2161
2069
  reject(error);
@@ -2178,7 +2086,7 @@ export class ContactsApi {
2178
2086
  * @param attributeName Name of the existing attribute
2179
2087
  * @param updateAttribute Values to update an attribute
2180
2088
  */
2181
- public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global' | 'normal', attributeName: string, updateAttribute: UpdateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
2089
+ public async updateAttribute (attributeCategory: 'category' | 'calculated' | 'global', attributeName: string, updateAttribute: UpdateAttribute, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
2182
2090
  const localVarPath = this.basePath + '/contacts/attributes/{attributeCategory}/{attributeName}'
2183
2091
  .replace('{' + 'attributeCategory' + '}', encodeURIComponent(String(attributeCategory)))
2184
2092
  .replace('{' + 'attributeName' + '}', encodeURIComponent(String(attributeName)));
@@ -2212,11 +2120,11 @@ export class ContactsApi {
2212
2120
 
2213
2121
  let localVarUseFormData = false;
2214
2122
 
2215
- let localVarRequestOptions: localVarRequest.Options = {
2123
+ let localVarRequestOptions: RequestOptions = {
2216
2124
  method: 'PUT',
2217
- qs: localVarQueryParameters,
2125
+ params: localVarQueryParameters,
2218
2126
  headers: localVarHeaderParams,
2219
- uri: localVarPath,
2127
+ url: localVarPath,
2220
2128
  useQuerystring: this._useQuerystring,
2221
2129
  json: true,
2222
2130
  body: ObjectSerializer.serialize(updateAttribute, "UpdateAttribute")
@@ -2244,7 +2152,7 @@ export class ContactsApi {
2244
2152
  localVarRequestOptions.form = localVarFormParams;
2245
2153
  }
2246
2154
  }
2247
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
2155
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
2248
2156
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2249
2157
  if (error) {
2250
2158
  reject(error);
@@ -2264,7 +2172,7 @@ export class ContactsApi {
2264
2172
  * @summary Update multiple contacts
2265
2173
  * @param updateBatchContacts Values to update multiple contacts
2266
2174
  */
2267
- public async updateBatchContacts (updateBatchContacts: UpdateBatchContacts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
2175
+ public async updateBatchContacts (updateBatchContacts: UpdateBatchContacts, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
2268
2176
  const localVarPath = this.basePath + '/contacts/batch';
2269
2177
  let localVarQueryParameters: any = {};
2270
2178
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -2286,11 +2194,11 @@ export class ContactsApi {
2286
2194
 
2287
2195
  let localVarUseFormData = false;
2288
2196
 
2289
- let localVarRequestOptions: localVarRequest.Options = {
2197
+ let localVarRequestOptions: RequestOptions = {
2290
2198
  method: 'POST',
2291
- qs: localVarQueryParameters,
2199
+ params: localVarQueryParameters,
2292
2200
  headers: localVarHeaderParams,
2293
- uri: localVarPath,
2201
+ url: localVarPath,
2294
2202
  useQuerystring: this._useQuerystring,
2295
2203
  json: true,
2296
2204
  body: ObjectSerializer.serialize(updateBatchContacts, "UpdateBatchContacts")
@@ -2318,7 +2226,7 @@ export class ContactsApi {
2318
2226
  localVarRequestOptions.form = localVarFormParams;
2319
2227
  }
2320
2228
  }
2321
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
2229
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
2322
2230
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2323
2231
  if (error) {
2324
2232
  reject(error);
@@ -2334,13 +2242,12 @@ export class ContactsApi {
2334
2242
  });
2335
2243
  }
2336
2244
  /**
2337
- * There are 2 ways to update a contact <br><br> Option 1- https://api.brevo.com/v3/contacts/{identifier} <br><br> Option 2- https://api.brevo.com/v3/contacts/{identifier}?identifierType={} <br> <br> Option 1 only works if identifierType is email_id (for EMAIL) or contact_id (for ID of the contact),where you can directly pass the value of EMAIL and ID of the contact. <br><br> Option 2 works for all identifierType, use email_id for EMAIL attribute, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE attribute
2245
+ *
2338
2246
  * @summary Update a contact
2339
- * @param identifier Email (urlencoded) OR ID of the contact OR EXT_ID attribute (urlencoded) OR its SMS attribute value OR its WHATSAPP attribute value OR its LANDLINE attribute value
2247
+ * @param identifier Email (urlencoded) OR ID of the contact
2340
2248
  * @param updateContact Values to update a contact
2341
- * @param identifierType email_id for Email, contact_id for ID of the contact, ext_id for EXT_ID attribute, phone_id for SMS attribute, whatsapp_id for WHATSAPP attribute, landline_number_id for LANDLINE attribute
2342
2249
  */
2343
- public async updateContact (identifier: string, updateContact: UpdateContact, identifierType?: 'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id', options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
2250
+ public async updateContact (identifier: string, updateContact: UpdateContact, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
2344
2251
  const localVarPath = this.basePath + '/contacts/{identifier}'
2345
2252
  .replace('{' + 'identifier' + '}', encodeURIComponent(String(identifier)));
2346
2253
  let localVarQueryParameters: any = {};
@@ -2364,19 +2271,15 @@ export class ContactsApi {
2364
2271
  throw new Error('Required parameter updateContact was null or undefined when calling updateContact.');
2365
2272
  }
2366
2273
 
2367
- if (identifierType !== undefined) {
2368
- localVarQueryParameters['identifierType'] = ObjectSerializer.serialize(identifierType, "'email_id' | 'contact_id' | 'ext_id' | 'phone_id' | 'whatsapp_id' | 'landline_number_id'");
2369
- }
2370
-
2371
2274
  (<any>Object).assign(localVarHeaderParams, options.headers);
2372
2275
 
2373
2276
  let localVarUseFormData = false;
2374
2277
 
2375
- let localVarRequestOptions: localVarRequest.Options = {
2278
+ let localVarRequestOptions: RequestOptions = {
2376
2279
  method: 'PUT',
2377
- qs: localVarQueryParameters,
2280
+ params: localVarQueryParameters,
2378
2281
  headers: localVarHeaderParams,
2379
- uri: localVarPath,
2282
+ url: localVarPath,
2380
2283
  useQuerystring: this._useQuerystring,
2381
2284
  json: true,
2382
2285
  body: ObjectSerializer.serialize(updateContact, "UpdateContact")
@@ -2404,7 +2307,7 @@ export class ContactsApi {
2404
2307
  localVarRequestOptions.form = localVarFormParams;
2405
2308
  }
2406
2309
  }
2407
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
2310
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
2408
2311
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2409
2312
  if (error) {
2410
2313
  reject(error);
@@ -2425,7 +2328,7 @@ export class ContactsApi {
2425
2328
  * @param folderId Id of the folder
2426
2329
  * @param updateFolder Name of the folder
2427
2330
  */
2428
- public async updateFolder (folderId: number, updateFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
2331
+ public async updateFolder (folderId: number, updateFolder: CreateUpdateFolder, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
2429
2332
  const localVarPath = this.basePath + '/contacts/folders/{folderId}'
2430
2333
  .replace('{' + 'folderId' + '}', encodeURIComponent(String(folderId)));
2431
2334
  let localVarQueryParameters: any = {};
@@ -2453,11 +2356,11 @@ export class ContactsApi {
2453
2356
 
2454
2357
  let localVarUseFormData = false;
2455
2358
 
2456
- let localVarRequestOptions: localVarRequest.Options = {
2359
+ let localVarRequestOptions: RequestOptions = {
2457
2360
  method: 'PUT',
2458
- qs: localVarQueryParameters,
2361
+ params: localVarQueryParameters,
2459
2362
  headers: localVarHeaderParams,
2460
- uri: localVarPath,
2363
+ url: localVarPath,
2461
2364
  useQuerystring: this._useQuerystring,
2462
2365
  json: true,
2463
2366
  body: ObjectSerializer.serialize(updateFolder, "CreateUpdateFolder")
@@ -2485,7 +2388,7 @@ export class ContactsApi {
2485
2388
  localVarRequestOptions.form = localVarFormParams;
2486
2389
  }
2487
2390
  }
2488
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
2391
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
2489
2392
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2490
2393
  if (error) {
2491
2394
  reject(error);
@@ -2506,7 +2409,7 @@ export class ContactsApi {
2506
2409
  * @param listId Id of the list
2507
2410
  * @param updateList Values to update a list
2508
2411
  */
2509
- public async updateList (listId: number, updateList: UpdateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
2412
+ public async updateList (listId: number, updateList: UpdateList, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: IncomingMessage; body?: any; }> {
2510
2413
  const localVarPath = this.basePath + '/contacts/lists/{listId}'
2511
2414
  .replace('{' + 'listId' + '}', encodeURIComponent(String(listId)));
2512
2415
  let localVarQueryParameters: any = {};
@@ -2534,11 +2437,11 @@ export class ContactsApi {
2534
2437
 
2535
2438
  let localVarUseFormData = false;
2536
2439
 
2537
- let localVarRequestOptions: localVarRequest.Options = {
2440
+ let localVarRequestOptions: RequestOptions = {
2538
2441
  method: 'PUT',
2539
- qs: localVarQueryParameters,
2442
+ params: localVarQueryParameters,
2540
2443
  headers: localVarHeaderParams,
2541
- uri: localVarPath,
2444
+ url: localVarPath,
2542
2445
  useQuerystring: this._useQuerystring,
2543
2446
  json: true,
2544
2447
  body: ObjectSerializer.serialize(updateList, "UpdateList")
@@ -2566,7 +2469,7 @@ export class ContactsApi {
2566
2469
  localVarRequestOptions.form = localVarFormParams;
2567
2470
  }
2568
2471
  }
2569
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
2472
+ return new Promise<{ response: IncomingMessage; body?: any; }>((resolve, reject) => {
2570
2473
  localVarRequest(localVarRequestOptions, (error, response, body) => {
2571
2474
  if (error) {
2572
2475
  reject(error);