@getbrevo/brevo 2.0.0-beta.2 → 2.1.0

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 (1252) hide show
  1. package/.openapi-generator/FILES +396 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/README.md +37 -646
  4. package/api/apis.ts +5 -3
  5. package/api/contactsApi.ts +12 -2
  6. package/api/couponsApi.ts +7 -7
  7. package/api/dealsApi.ts +1 -1
  8. package/api/ecommerceApi.ts +360 -2
  9. package/api/eventsApi.ts +169 -0
  10. package/api/masterAccountApi.ts +1056 -143
  11. package/api/paymentsApi.ts +321 -0
  12. package/api/tasksApi.ts +1 -1
  13. package/api/userApi.ts +2 -2
  14. package/api/whatsAppCampaignsApi.ts +6 -1
  15. package/dist/api/accountApi.d.ts +46 -0
  16. package/dist/api/accountApi.js +212 -0
  17. package/dist/api/accountApi.js.map +1 -0
  18. package/dist/api/apis.d.ts +64 -0
  19. package/dist/api/apis.js +83 -0
  20. package/dist/api/apis.js.map +1 -0
  21. package/dist/api/companiesApi.d.ts +91 -0
  22. package/dist/api/companiesApi.js +562 -0
  23. package/dist/api/companiesApi.js.map +1 -0
  24. package/dist/api/contactsApi.d.ts +287 -0
  25. package/dist/api/contactsApi.js +2125 -0
  26. package/dist/api/contactsApi.js.map +1 -0
  27. package/dist/api/conversationsApi.d.ts +106 -0
  28. package/dist/api/conversationsApi.js +679 -0
  29. package/dist/api/conversationsApi.js.map +1 -0
  30. package/dist/api/couponsApi.d.ts +74 -0
  31. package/dist/api/couponsApi.js +417 -0
  32. package/dist/api/couponsApi.js.map +1 -0
  33. package/dist/api/dealsApi.d.ts +116 -0
  34. package/dist/api/dealsApi.js +754 -0
  35. package/dist/api/dealsApi.js.map +1 -0
  36. package/dist/api/domainsApi.d.ts +73 -0
  37. package/dist/api/domainsApi.js +401 -0
  38. package/dist/api/domainsApi.js.map +1 -0
  39. package/dist/api/ecommerceApi.d.ts +163 -0
  40. package/dist/api/ecommerceApi.js +1148 -0
  41. package/dist/api/ecommerceApi.js.map +1 -0
  42. package/dist/api/emailCampaignsApi.d.ts +146 -0
  43. package/dist/api/emailCampaignsApi.js +982 -0
  44. package/dist/api/emailCampaignsApi.js.map +1 -0
  45. package/dist/api/eventsApi.d.ts +37 -0
  46. package/dist/api/eventsApi.js +140 -0
  47. package/dist/api/eventsApi.js.map +1 -0
  48. package/dist/api/externalFeedsApi.d.ts +73 -0
  49. package/dist/api/externalFeedsApi.js +428 -0
  50. package/dist/api/externalFeedsApi.js.map +1 -0
  51. package/dist/api/filesApi.d.ts +71 -0
  52. package/dist/api/filesApi.js +437 -0
  53. package/dist/api/filesApi.js.map +1 -0
  54. package/dist/api/inboundParsingApi.d.ts +55 -0
  55. package/dist/api/inboundParsingApi.js +289 -0
  56. package/dist/api/inboundParsingApi.js.map +1 -0
  57. package/dist/api/masterAccountApi.d.ts +226 -0
  58. package/dist/api/masterAccountApi.js +1565 -0
  59. package/dist/api/masterAccountApi.js.map +1 -0
  60. package/dist/api/notesApi.d.ts +71 -0
  61. package/dist/api/notesApi.js +428 -0
  62. package/dist/api/notesApi.js.map +1 -0
  63. package/dist/api/paymentsApi.d.ts +55 -0
  64. package/dist/api/paymentsApi.js +274 -0
  65. package/dist/api/paymentsApi.js.map +1 -0
  66. package/dist/api/processApi.d.ts +46 -0
  67. package/dist/api/processApi.js +213 -0
  68. package/dist/api/processApi.js.map +1 -0
  69. package/dist/api/resellerApi.d.ts +171 -0
  70. package/dist/api/resellerApi.js +1177 -0
  71. package/dist/api/resellerApi.js.map +1 -0
  72. package/dist/api/sMSCampaignsApi.d.ts +118 -0
  73. package/dist/api/sMSCampaignsApi.js +769 -0
  74. package/dist/api/sMSCampaignsApi.js.map +1 -0
  75. package/dist/api/sendersApi.d.ts +91 -0
  76. package/dist/api/sendersApi.js +537 -0
  77. package/dist/api/sendersApi.js.map +1 -0
  78. package/dist/api/tasksApi.d.ts +82 -0
  79. package/dist/api/tasksApi.js +509 -0
  80. package/dist/api/tasksApi.js.map +1 -0
  81. package/dist/api/transactionalEmailsApi.d.ts +223 -0
  82. package/dist/api/transactionalEmailsApi.js +1660 -0
  83. package/dist/api/transactionalEmailsApi.js.map +1 -0
  84. package/dist/api/transactionalSMSApi.d.ts +65 -0
  85. package/dist/api/transactionalSMSApi.js +384 -0
  86. package/dist/api/transactionalSMSApi.js.map +1 -0
  87. package/dist/api/transactionalWhatsAppApi.d.ts +47 -0
  88. package/dist/api/transactionalWhatsAppApi.js +228 -0
  89. package/dist/api/transactionalWhatsAppApi.js.map +1 -0
  90. package/dist/api/userApi.d.ts +81 -0
  91. package/dist/api/userApi.js +476 -0
  92. package/dist/api/userApi.js.map +1 -0
  93. package/dist/api/webhooksApi.d.ts +83 -0
  94. package/dist/api/webhooksApi.js +480 -0
  95. package/dist/api/webhooksApi.js.map +1 -0
  96. package/dist/api/whatsAppCampaignsApi.d.ts +108 -0
  97. package/dist/api/whatsAppCampaignsApi.js +696 -0
  98. package/dist/api/whatsAppCampaignsApi.js.map +1 -0
  99. package/dist/api.d.ts +2 -0
  100. package/dist/api.js +20 -0
  101. package/dist/api.js.map +1 -0
  102. package/dist/model/abTestCampaignResult.d.ts +36 -0
  103. package/dist/model/abTestCampaignResult.js +68 -0
  104. package/dist/model/abTestCampaignResult.js.map +1 -0
  105. package/dist/model/abTestCampaignResultClickedLinks.d.ts +16 -0
  106. package/dist/model/abTestCampaignResultClickedLinks.js +23 -0
  107. package/dist/model/abTestCampaignResultClickedLinks.js.map +1 -0
  108. package/dist/model/abTestCampaignResultStatistics.d.ts +20 -0
  109. package/dist/model/abTestCampaignResultStatistics.js +43 -0
  110. package/dist/model/abTestCampaignResultStatistics.js.map +1 -0
  111. package/dist/model/abTestVersionClicksInner.d.ts +16 -0
  112. package/dist/model/abTestVersionClicksInner.js +28 -0
  113. package/dist/model/abTestVersionClicksInner.js.map +1 -0
  114. package/dist/model/abTestVersionStats.d.ts +15 -0
  115. package/dist/model/abTestVersionStats.js +23 -0
  116. package/dist/model/abTestVersionStats.js.map +1 -0
  117. package/dist/model/addChildDomain.d.ts +14 -0
  118. package/dist/model/addChildDomain.js +18 -0
  119. package/dist/model/addChildDomain.js.map +1 -0
  120. package/dist/model/addContactToList.d.ts +15 -0
  121. package/dist/model/addContactToList.js +23 -0
  122. package/dist/model/addContactToList.js.map +1 -0
  123. package/dist/model/addCredits.d.ts +15 -0
  124. package/dist/model/addCredits.js +23 -0
  125. package/dist/model/addCredits.js.map +1 -0
  126. package/dist/model/authenticateDomainModel.d.ts +15 -0
  127. package/dist/model/authenticateDomainModel.js +23 -0
  128. package/dist/model/authenticateDomainModel.js.map +1 -0
  129. package/dist/model/blockDomain.d.ts +14 -0
  130. package/dist/model/blockDomain.js +18 -0
  131. package/dist/model/blockDomain.js.map +1 -0
  132. package/dist/model/cart.d.ts +20 -0
  133. package/dist/model/cart.js +29 -0
  134. package/dist/model/cart.js.map +1 -0
  135. package/dist/model/companiesIdPatchRequest.d.ts +16 -0
  136. package/dist/model/companiesIdPatchRequest.js +28 -0
  137. package/dist/model/companiesIdPatchRequest.js.map +1 -0
  138. package/dist/model/companiesLinkUnlinkIdPatchRequest.d.ts +17 -0
  139. package/dist/model/companiesLinkUnlinkIdPatchRequest.js +33 -0
  140. package/dist/model/companiesLinkUnlinkIdPatchRequest.js.map +1 -0
  141. package/dist/model/companiesList.d.ts +15 -0
  142. package/dist/model/companiesList.js +18 -0
  143. package/dist/model/companiesList.js.map +1 -0
  144. package/dist/model/companiesPost200Response.d.ts +14 -0
  145. package/dist/model/companiesPost200Response.js +18 -0
  146. package/dist/model/companiesPost200Response.js.map +1 -0
  147. package/dist/model/companiesPostRequest.d.ts +16 -0
  148. package/dist/model/companiesPostRequest.js +28 -0
  149. package/dist/model/companiesPostRequest.js.map +1 -0
  150. package/dist/model/company.d.ts +17 -0
  151. package/dist/model/company.js +33 -0
  152. package/dist/model/company.js.map +1 -0
  153. package/dist/model/companyAttributesInner.d.ts +18 -0
  154. package/dist/model/companyAttributesInner.js +38 -0
  155. package/dist/model/companyAttributesInner.js.map +1 -0
  156. package/dist/model/componentItems.d.ts +15 -0
  157. package/dist/model/componentItems.js +23 -0
  158. package/dist/model/componentItems.js.map +1 -0
  159. package/dist/model/configuration.d.ts +14 -0
  160. package/dist/model/configuration.js +18 -0
  161. package/dist/model/configuration.js.map +1 -0
  162. package/dist/model/conversationsAgentOnlinePingPostRequest.d.ts +17 -0
  163. package/dist/model/conversationsAgentOnlinePingPostRequest.js +33 -0
  164. package/dist/model/conversationsAgentOnlinePingPostRequest.js.map +1 -0
  165. package/dist/model/conversationsMessage.d.ts +30 -0
  166. package/dist/model/conversationsMessage.js +70 -0
  167. package/dist/model/conversationsMessage.js.map +1 -0
  168. package/dist/model/conversationsMessageFile.d.ts +19 -0
  169. package/dist/model/conversationsMessageFile.js +38 -0
  170. package/dist/model/conversationsMessageFile.js.map +1 -0
  171. package/dist/model/conversationsMessageFileImageInfo.d.ts +16 -0
  172. package/dist/model/conversationsMessageFileImageInfo.js +28 -0
  173. package/dist/model/conversationsMessageFileImageInfo.js.map +1 -0
  174. package/dist/model/conversationsMessagesIdPutRequest.d.ts +14 -0
  175. package/dist/model/conversationsMessagesIdPutRequest.js +18 -0
  176. package/dist/model/conversationsMessagesIdPutRequest.js.map +1 -0
  177. package/dist/model/conversationsMessagesPostRequest.d.ts +19 -0
  178. package/dist/model/conversationsMessagesPostRequest.js +43 -0
  179. package/dist/model/conversationsMessagesPostRequest.js.map +1 -0
  180. package/dist/model/conversationsPushedMessagesIdPutRequest.d.ts +14 -0
  181. package/dist/model/conversationsPushedMessagesIdPutRequest.js +18 -0
  182. package/dist/model/conversationsPushedMessagesIdPutRequest.js.map +1 -0
  183. package/dist/model/conversationsPushedMessagesPostRequest.d.ts +17 -0
  184. package/dist/model/conversationsPushedMessagesPostRequest.js +33 -0
  185. package/dist/model/conversationsPushedMessagesPostRequest.js.map +1 -0
  186. package/dist/model/conversionSourceMetrics.d.ts +23 -0
  187. package/dist/model/conversionSourceMetrics.js +44 -0
  188. package/dist/model/conversionSourceMetrics.js.map +1 -0
  189. package/dist/model/conversionSourceProduct.d.ts +21 -0
  190. package/dist/model/conversionSourceProduct.js +53 -0
  191. package/dist/model/conversionSourceProduct.js.map +1 -0
  192. package/dist/model/corporateGroupDetailsResponse.d.ts +19 -0
  193. package/dist/model/corporateGroupDetailsResponse.js +28 -0
  194. package/dist/model/corporateGroupDetailsResponse.js.map +1 -0
  195. package/dist/model/corporateGroupDetailsResponseGroup.d.ts +16 -0
  196. package/dist/model/corporateGroupDetailsResponseGroup.js +28 -0
  197. package/dist/model/corporateGroupDetailsResponseGroup.js.map +1 -0
  198. package/dist/model/corporateGroupDetailsResponseSubAccountsInner.d.ts +16 -0
  199. package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js +28 -0
  200. package/dist/model/corporateGroupDetailsResponseSubAccountsInner.js.map +1 -0
  201. package/dist/model/corporateGroupDetailsResponseUsersInner.d.ts +16 -0
  202. package/dist/model/corporateGroupDetailsResponseUsersInner.js +28 -0
  203. package/dist/model/corporateGroupDetailsResponseUsersInner.js.map +1 -0
  204. package/dist/model/corporateGroupPost201Response.d.ts +14 -0
  205. package/dist/model/corporateGroupPost201Response.js +18 -0
  206. package/dist/model/corporateGroupPost201Response.js.map +1 -0
  207. package/dist/model/corporateGroupPostRequest.d.ts +15 -0
  208. package/dist/model/corporateGroupPostRequest.js +23 -0
  209. package/dist/model/corporateGroupPostRequest.js.map +1 -0
  210. package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.d.ts +14 -0
  211. package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js +18 -0
  212. package/dist/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.js.map +1 -0
  213. package/dist/model/corporateUserInvitationActionEmailPut200Response.d.ts +14 -0
  214. package/dist/model/corporateUserInvitationActionEmailPut200Response.js +18 -0
  215. package/dist/model/corporateUserInvitationActionEmailPut200Response.js.map +1 -0
  216. package/dist/model/createApiKeyRequest.d.ts +15 -0
  217. package/dist/model/createApiKeyRequest.js +23 -0
  218. package/dist/model/createApiKeyRequest.js.map +1 -0
  219. package/dist/model/createApiKeyResponse.d.ts +15 -0
  220. package/dist/model/createApiKeyResponse.js +23 -0
  221. package/dist/model/createApiKeyResponse.js.map +1 -0
  222. package/dist/model/createAttribute.d.ts +28 -0
  223. package/dist/model/createAttribute.js +44 -0
  224. package/dist/model/createAttribute.js.map +1 -0
  225. package/dist/model/createAttributeEnumerationInner.d.ts +15 -0
  226. package/dist/model/createAttributeEnumerationInner.js +23 -0
  227. package/dist/model/createAttributeEnumerationInner.js.map +1 -0
  228. package/dist/model/createCategoryModel.d.ts +14 -0
  229. package/dist/model/createCategoryModel.js +18 -0
  230. package/dist/model/createCategoryModel.js.map +1 -0
  231. package/dist/model/createChild.d.ts +29 -0
  232. package/dist/model/createChild.js +54 -0
  233. package/dist/model/createChild.js.map +1 -0
  234. package/dist/model/createContact.d.ts +21 -0
  235. package/dist/model/createContact.js +56 -0
  236. package/dist/model/createContact.js.map +1 -0
  237. package/dist/model/createCouponCollection201Response.d.ts +14 -0
  238. package/dist/model/createCouponCollection201Response.js +18 -0
  239. package/dist/model/createCouponCollection201Response.js.map +1 -0
  240. package/dist/model/createCouponCollectionRequest.d.ts +18 -0
  241. package/dist/model/createCouponCollectionRequest.js +38 -0
  242. package/dist/model/createCouponCollectionRequest.js.map +1 -0
  243. package/dist/model/createCouponsRequest.d.ts +15 -0
  244. package/dist/model/createCouponsRequest.js +23 -0
  245. package/dist/model/createCouponsRequest.js.map +1 -0
  246. package/dist/model/createDoiContact.d.ts +19 -0
  247. package/dist/model/createDoiContact.js +43 -0
  248. package/dist/model/createDoiContact.js.map +1 -0
  249. package/dist/model/createDomain.d.ts +14 -0
  250. package/dist/model/createDomain.js +18 -0
  251. package/dist/model/createDomain.js.map +1 -0
  252. package/dist/model/createDomainModel.d.ts +19 -0
  253. package/dist/model/createDomainModel.js +38 -0
  254. package/dist/model/createDomainModel.js.map +1 -0
  255. package/dist/model/createDomainModelDnsRecords.d.ts +17 -0
  256. package/dist/model/createDomainModelDnsRecords.js +28 -0
  257. package/dist/model/createDomainModelDnsRecords.js.map +1 -0
  258. package/dist/model/createDomainModelDnsRecordsDkimRecord.d.ts +17 -0
  259. package/dist/model/createDomainModelDnsRecordsDkimRecord.js +33 -0
  260. package/dist/model/createDomainModelDnsRecordsDkimRecord.js.map +1 -0
  261. package/dist/model/createEmailCampaign.d.ts +52 -0
  262. package/dist/model/createEmailCampaign.js +181 -0
  263. package/dist/model/createEmailCampaign.js.map +1 -0
  264. package/dist/model/createEmailCampaignRecipients.d.ts +16 -0
  265. package/dist/model/createEmailCampaignRecipients.js +28 -0
  266. package/dist/model/createEmailCampaignRecipients.js.map +1 -0
  267. package/dist/model/createEmailCampaignSender.d.ts +16 -0
  268. package/dist/model/createEmailCampaignSender.js +28 -0
  269. package/dist/model/createEmailCampaignSender.js.map +1 -0
  270. package/dist/model/createExternalFeed.d.ts +30 -0
  271. package/dist/model/createExternalFeed.js +70 -0
  272. package/dist/model/createExternalFeed.js.map +1 -0
  273. package/dist/model/createExternalFeed201Response.d.ts +14 -0
  274. package/dist/model/createExternalFeed201Response.js +18 -0
  275. package/dist/model/createExternalFeed201Response.js.map +1 -0
  276. package/dist/model/createList.d.ts +15 -0
  277. package/dist/model/createList.js +23 -0
  278. package/dist/model/createList.js.map +1 -0
  279. package/dist/model/createModel.d.ts +14 -0
  280. package/dist/model/createModel.js +18 -0
  281. package/dist/model/createModel.js.map +1 -0
  282. package/dist/model/createPaymentRequest.d.ts +21 -0
  283. package/dist/model/createPaymentRequest.js +38 -0
  284. package/dist/model/createPaymentRequest.js.map +1 -0
  285. package/dist/model/createProductModel.d.ts +14 -0
  286. package/dist/model/createProductModel.js +18 -0
  287. package/dist/model/createProductModel.js.map +1 -0
  288. package/dist/model/createReseller.d.ts +15 -0
  289. package/dist/model/createReseller.js +23 -0
  290. package/dist/model/createReseller.js.map +1 -0
  291. package/dist/model/createSender.d.ts +17 -0
  292. package/dist/model/createSender.js +28 -0
  293. package/dist/model/createSender.js.map +1 -0
  294. package/dist/model/createSenderIpsInner.d.ts +16 -0
  295. package/dist/model/createSenderIpsInner.js +28 -0
  296. package/dist/model/createSenderIpsInner.js.map +1 -0
  297. package/dist/model/createSenderModel.d.ts +16 -0
  298. package/dist/model/createSenderModel.js +28 -0
  299. package/dist/model/createSenderModel.js.map +1 -0
  300. package/dist/model/createSmsCampaign.d.ts +22 -0
  301. package/dist/model/createSmsCampaign.js +56 -0
  302. package/dist/model/createSmsCampaign.js.map +1 -0
  303. package/dist/model/createSmsCampaignRecipients.d.ts +15 -0
  304. package/dist/model/createSmsCampaignRecipients.js +23 -0
  305. package/dist/model/createSmsCampaignRecipients.js.map +1 -0
  306. package/dist/model/createSmtpEmail.d.ts +15 -0
  307. package/dist/model/createSmtpEmail.js +23 -0
  308. package/dist/model/createSmtpEmail.js.map +1 -0
  309. package/dist/model/createSmtpTemplate.d.ts +24 -0
  310. package/dist/model/createSmtpTemplate.js +63 -0
  311. package/dist/model/createSmtpTemplate.js.map +1 -0
  312. package/dist/model/createSmtpTemplateSender.d.ts +16 -0
  313. package/dist/model/createSmtpTemplateSender.js +28 -0
  314. package/dist/model/createSmtpTemplateSender.js.map +1 -0
  315. package/dist/model/createSubAccount.d.ts +27 -0
  316. package/dist/model/createSubAccount.js +44 -0
  317. package/dist/model/createSubAccount.js.map +1 -0
  318. package/dist/model/createSubAccountResponse.d.ts +14 -0
  319. package/dist/model/createSubAccountResponse.js +18 -0
  320. package/dist/model/createSubAccountResponse.js.map +1 -0
  321. package/dist/model/createUpdateBatchCategory.d.ts +16 -0
  322. package/dist/model/createUpdateBatchCategory.js +23 -0
  323. package/dist/model/createUpdateBatchCategory.js.map +1 -0
  324. package/dist/model/createUpdateBatchCategoryModel.d.ts +15 -0
  325. package/dist/model/createUpdateBatchCategoryModel.js +23 -0
  326. package/dist/model/createUpdateBatchCategoryModel.js.map +1 -0
  327. package/dist/model/createUpdateBatchProducts.d.ts +16 -0
  328. package/dist/model/createUpdateBatchProducts.js +23 -0
  329. package/dist/model/createUpdateBatchProducts.js.map +1 -0
  330. package/dist/model/createUpdateBatchProductsModel.d.ts +15 -0
  331. package/dist/model/createUpdateBatchProductsModel.js +23 -0
  332. package/dist/model/createUpdateBatchProductsModel.js.map +1 -0
  333. package/dist/model/createUpdateCategories.d.ts +17 -0
  334. package/dist/model/createUpdateCategories.js +33 -0
  335. package/dist/model/createUpdateCategories.js.map +1 -0
  336. package/dist/model/createUpdateCategory.d.ts +18 -0
  337. package/dist/model/createUpdateCategory.js +41 -0
  338. package/dist/model/createUpdateCategory.js.map +1 -0
  339. package/dist/model/createUpdateContactModel.d.ts +14 -0
  340. package/dist/model/createUpdateContactModel.js +18 -0
  341. package/dist/model/createUpdateContactModel.js.map +1 -0
  342. package/dist/model/createUpdateFolder.d.ts +14 -0
  343. package/dist/model/createUpdateFolder.js +18 -0
  344. package/dist/model/createUpdateFolder.js.map +1 -0
  345. package/dist/model/createUpdateProduct.d.ts +26 -0
  346. package/dist/model/createUpdateProduct.js +71 -0
  347. package/dist/model/createUpdateProduct.js.map +1 -0
  348. package/dist/model/createUpdateProducts.d.ts +25 -0
  349. package/dist/model/createUpdateProducts.js +63 -0
  350. package/dist/model/createUpdateProducts.js.map +1 -0
  351. package/dist/model/createWebhook.d.ts +49 -0
  352. package/dist/model/createWebhook.js +84 -0
  353. package/dist/model/createWebhook.js.map +1 -0
  354. package/dist/model/createWhatsAppCampaign.d.ts +18 -0
  355. package/dist/model/createWhatsAppCampaign.js +33 -0
  356. package/dist/model/createWhatsAppCampaign.js.map +1 -0
  357. package/dist/model/createWhatsAppCampaignRecipients.d.ts +16 -0
  358. package/dist/model/createWhatsAppCampaignRecipients.js +28 -0
  359. package/dist/model/createWhatsAppCampaignRecipients.js.map +1 -0
  360. package/dist/model/createWhatsAppTemplate.d.ts +30 -0
  361. package/dist/model/createWhatsAppTemplate.js +60 -0
  362. package/dist/model/createWhatsAppTemplate.js.map +1 -0
  363. package/dist/model/createdBatchId.d.ts +14 -0
  364. package/dist/model/createdBatchId.js +18 -0
  365. package/dist/model/createdBatchId.js.map +1 -0
  366. package/dist/model/createdProcessId.d.ts +14 -0
  367. package/dist/model/createdProcessId.js +18 -0
  368. package/dist/model/createdProcessId.js.map +1 -0
  369. package/dist/model/crmDealsIdPatchRequest.d.ts +15 -0
  370. package/dist/model/crmDealsIdPatchRequest.js +23 -0
  371. package/dist/model/crmDealsIdPatchRequest.js.map +1 -0
  372. package/dist/model/crmDealsLinkUnlinkIdPatchRequest.d.ts +17 -0
  373. package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js +33 -0
  374. package/dist/model/crmDealsLinkUnlinkIdPatchRequest.js.map +1 -0
  375. package/dist/model/crmDealsPost201Response.d.ts +14 -0
  376. package/dist/model/crmDealsPost201Response.js +18 -0
  377. package/dist/model/crmDealsPost201Response.js.map +1 -0
  378. package/dist/model/crmDealsPostRequest.d.ts +15 -0
  379. package/dist/model/crmDealsPostRequest.js +23 -0
  380. package/dist/model/crmDealsPostRequest.js.map +1 -0
  381. package/dist/model/crmTasksIdPatchRequest.d.ts +23 -0
  382. package/dist/model/crmTasksIdPatchRequest.js +63 -0
  383. package/dist/model/crmTasksIdPatchRequest.js.map +1 -0
  384. package/dist/model/crmTasksPost201Response.d.ts +14 -0
  385. package/dist/model/crmTasksPost201Response.js +18 -0
  386. package/dist/model/crmTasksPost201Response.js.map +1 -0
  387. package/dist/model/crmTasksPostRequest.d.ts +25 -0
  388. package/dist/model/crmTasksPostRequest.js +68 -0
  389. package/dist/model/crmTasksPostRequest.js.map +1 -0
  390. package/dist/model/deal.d.ts +17 -0
  391. package/dist/model/deal.js +33 -0
  392. package/dist/model/deal.js.map +1 -0
  393. package/dist/model/dealAttributesInner.d.ts +18 -0
  394. package/dist/model/dealAttributesInner.js +38 -0
  395. package/dist/model/dealAttributesInner.js.map +1 -0
  396. package/dist/model/dealsList.d.ts +15 -0
  397. package/dist/model/dealsList.js +18 -0
  398. package/dist/model/dealsList.js.map +1 -0
  399. package/dist/model/deleteHardbounces.d.ts +16 -0
  400. package/dist/model/deleteHardbounces.js +28 -0
  401. package/dist/model/deleteHardbounces.js.map +1 -0
  402. package/dist/model/emailExportRecipients.d.ts +27 -0
  403. package/dist/model/emailExportRecipients.js +36 -0
  404. package/dist/model/emailExportRecipients.js.map +1 -0
  405. package/dist/model/errorModel.d.ts +35 -0
  406. package/dist/model/errorModel.js +44 -0
  407. package/dist/model/errorModel.js.map +1 -0
  408. package/dist/model/event.d.ts +19 -0
  409. package/dist/model/event.js +38 -0
  410. package/dist/model/event.js.map +1 -0
  411. package/dist/model/eventIdentifiers.d.ts +18 -0
  412. package/dist/model/eventIdentifiers.js +38 -0
  413. package/dist/model/eventIdentifiers.js.map +1 -0
  414. package/dist/model/exportWebhooksHistory.d.ts +48 -0
  415. package/dist/model/exportWebhooksHistory.js +90 -0
  416. package/dist/model/exportWebhooksHistory.js.map +1 -0
  417. package/dist/model/fileData.d.ts +20 -0
  418. package/dist/model/fileData.js +48 -0
  419. package/dist/model/fileData.js.map +1 -0
  420. package/dist/model/fileDownloadableLink.d.ts +14 -0
  421. package/dist/model/fileDownloadableLink.js +18 -0
  422. package/dist/model/fileDownloadableLink.js.map +1 -0
  423. package/dist/model/getAccount.d.ts +25 -0
  424. package/dist/model/getAccount.js +53 -0
  425. package/dist/model/getAccount.js.map +1 -0
  426. package/dist/model/getAccountActivity.d.ts +15 -0
  427. package/dist/model/getAccountActivity.js +18 -0
  428. package/dist/model/getAccountActivity.js.map +1 -0
  429. package/dist/model/getAccountActivityLogsInner.d.ts +18 -0
  430. package/dist/model/getAccountActivityLogsInner.js +38 -0
  431. package/dist/model/getAccountActivityLogsInner.js.map +1 -0
  432. package/dist/model/getAccountAllOfMarketingAutomation.d.ts +15 -0
  433. package/dist/model/getAccountAllOfMarketingAutomation.js +23 -0
  434. package/dist/model/getAccountAllOfMarketingAutomation.js.map +1 -0
  435. package/dist/model/getAccountAllOfPlan.d.ts +31 -0
  436. package/dist/model/getAccountAllOfPlan.js +57 -0
  437. package/dist/model/getAccountAllOfPlan.js.map +1 -0
  438. package/dist/model/getAccountAllOfRelay.d.ts +16 -0
  439. package/dist/model/getAccountAllOfRelay.js +23 -0
  440. package/dist/model/getAccountAllOfRelay.js.map +1 -0
  441. package/dist/model/getAccountAllOfRelayData.d.ts +16 -0
  442. package/dist/model/getAccountAllOfRelayData.js +28 -0
  443. package/dist/model/getAccountAllOfRelayData.js.map +1 -0
  444. package/dist/model/getAggregatedReport.d.ts +26 -0
  445. package/dist/model/getAggregatedReport.js +78 -0
  446. package/dist/model/getAggregatedReport.js.map +1 -0
  447. package/dist/model/getAllExternalFeeds.d.ts +16 -0
  448. package/dist/model/getAllExternalFeeds.js +23 -0
  449. package/dist/model/getAllExternalFeeds.js.map +1 -0
  450. package/dist/model/getAllExternalFeedsFeedsInner.d.ts +33 -0
  451. package/dist/model/getAllExternalFeedsFeedsInner.js +81 -0
  452. package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -0
  453. package/dist/model/getAttributes.d.ts +15 -0
  454. package/dist/model/getAttributes.js +18 -0
  455. package/dist/model/getAttributes.js.map +1 -0
  456. package/dist/model/getAttributesAttributesInner.d.ts +35 -0
  457. package/dist/model/getAttributesAttributesInner.js +56 -0
  458. package/dist/model/getAttributesAttributesInner.js.map +1 -0
  459. package/dist/model/getAttributesAttributesInnerEnumerationInner.d.ts +15 -0
  460. package/dist/model/getAttributesAttributesInnerEnumerationInner.js +23 -0
  461. package/dist/model/getAttributesAttributesInnerEnumerationInner.js.map +1 -0
  462. package/dist/model/getBlockedDomains.d.ts +14 -0
  463. package/dist/model/getBlockedDomains.js +18 -0
  464. package/dist/model/getBlockedDomains.js.map +1 -0
  465. package/dist/model/getCampaignOverview.d.ts +41 -0
  466. package/dist/model/getCampaignOverview.js +99 -0
  467. package/dist/model/getCampaignOverview.js.map +1 -0
  468. package/dist/model/getCampaignRecipients.d.ts +15 -0
  469. package/dist/model/getCampaignRecipients.js +23 -0
  470. package/dist/model/getCampaignRecipients.js.map +1 -0
  471. package/dist/model/getCampaignStats.d.ts +29 -0
  472. package/dist/model/getCampaignStats.js +93 -0
  473. package/dist/model/getCampaignStats.js.map +1 -0
  474. package/dist/model/getCategories.d.ts +16 -0
  475. package/dist/model/getCategories.js +23 -0
  476. package/dist/model/getCategories.js.map +1 -0
  477. package/dist/model/getCategoryDetails.d.ts +19 -0
  478. package/dist/model/getCategoryDetails.js +43 -0
  479. package/dist/model/getCategoryDetails.js.map +1 -0
  480. package/dist/model/getChildAccountCreationStatus.d.ts +14 -0
  481. package/dist/model/getChildAccountCreationStatus.js +18 -0
  482. package/dist/model/getChildAccountCreationStatus.js.map +1 -0
  483. package/dist/model/getChildDomain.d.ts +15 -0
  484. package/dist/model/getChildDomain.js +23 -0
  485. package/dist/model/getChildDomain.js.map +1 -0
  486. package/dist/model/getChildInfo.d.ts +25 -0
  487. package/dist/model/getChildInfo.js +58 -0
  488. package/dist/model/getChildInfo.js.map +1 -0
  489. package/dist/model/getChildInfoAllOfApiKeys.d.ts +17 -0
  490. package/dist/model/getChildInfoAllOfApiKeys.js +23 -0
  491. package/dist/model/getChildInfoAllOfApiKeys.js.map +1 -0
  492. package/dist/model/getChildInfoAllOfApiKeysV2.d.ts +15 -0
  493. package/dist/model/getChildInfoAllOfApiKeysV2.js +23 -0
  494. package/dist/model/getChildInfoAllOfApiKeysV2.js.map +1 -0
  495. package/dist/model/getChildInfoAllOfApiKeysV3.d.ts +15 -0
  496. package/dist/model/getChildInfoAllOfApiKeysV3.js +23 -0
  497. package/dist/model/getChildInfoAllOfApiKeysV3.js.map +1 -0
  498. package/dist/model/getChildInfoAllOfCredits.d.ts +15 -0
  499. package/dist/model/getChildInfoAllOfCredits.js +23 -0
  500. package/dist/model/getChildInfoAllOfCredits.js.map +1 -0
  501. package/dist/model/getChildInfoAllOfStatistics.d.ts +16 -0
  502. package/dist/model/getChildInfoAllOfStatistics.js +28 -0
  503. package/dist/model/getChildInfoAllOfStatistics.js.map +1 -0
  504. package/dist/model/getChildrenList.d.ts +16 -0
  505. package/dist/model/getChildrenList.js +23 -0
  506. package/dist/model/getChildrenList.js.map +1 -0
  507. package/dist/model/getChildrenListChildrenInner.d.ts +26 -0
  508. package/dist/model/getChildrenListChildrenInner.js +63 -0
  509. package/dist/model/getChildrenListChildrenInner.js.map +1 -0
  510. package/dist/model/getClient.d.ts +17 -0
  511. package/dist/model/getClient.js +33 -0
  512. package/dist/model/getClient.js.map +1 -0
  513. package/dist/model/getContactCampaignStats.d.ts +27 -0
  514. package/dist/model/getContactCampaignStats.js +58 -0
  515. package/dist/model/getContactCampaignStats.js.map +1 -0
  516. package/dist/model/getContactCampaignStatsClickedInner.d.ts +16 -0
  517. package/dist/model/getContactCampaignStatsClickedInner.js +23 -0
  518. package/dist/model/getContactCampaignStatsClickedInner.js.map +1 -0
  519. package/dist/model/getContactCampaignStatsClickedInnerLinksInner.d.ts +17 -0
  520. package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js +33 -0
  521. package/dist/model/getContactCampaignStatsClickedInnerLinksInner.js.map +1 -0
  522. package/dist/model/getContactCampaignStatsMessagesSentInner.d.ts +15 -0
  523. package/dist/model/getContactCampaignStatsMessagesSentInner.js +23 -0
  524. package/dist/model/getContactCampaignStatsMessagesSentInner.js.map +1 -0
  525. package/dist/model/getContactCampaignStatsOpenedInner.d.ts +17 -0
  526. package/dist/model/getContactCampaignStatsOpenedInner.js +33 -0
  527. package/dist/model/getContactCampaignStatsOpenedInner.js.map +1 -0
  528. package/dist/model/getContactCampaignStatsTransacAttributesInner.d.ts +16 -0
  529. package/dist/model/getContactCampaignStatsTransacAttributesInner.js +28 -0
  530. package/dist/model/getContactCampaignStatsTransacAttributesInner.js.map +1 -0
  531. package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +17 -0
  532. package/dist/model/getContactCampaignStatsUnsubscriptions.js +23 -0
  533. package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -0
  534. package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.d.ts +15 -0
  535. package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js +23 -0
  536. package/dist/model/getContactCampaignStatsUnsubscriptionsAdminUnsubscriptionInner.js.map +1 -0
  537. package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.d.ts +16 -0
  538. package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js +28 -0
  539. package/dist/model/getContactCampaignStatsUnsubscriptionsUserUnsubscriptionInner.js.map +1 -0
  540. package/dist/model/getContactDetails.d.ts +22 -0
  541. package/dist/model/getContactDetails.js +58 -0
  542. package/dist/model/getContactDetails.js.map +1 -0
  543. package/dist/model/getContacts.d.ts +16 -0
  544. package/dist/model/getContacts.js +23 -0
  545. package/dist/model/getContacts.js.map +1 -0
  546. package/dist/model/getCorporateInvitedUsersList.d.ts +15 -0
  547. package/dist/model/getCorporateInvitedUsersList.js +18 -0
  548. package/dist/model/getCorporateInvitedUsersList.js.map +1 -0
  549. package/dist/model/getCorporateInvitedUsersListUsersInner.d.ts +20 -0
  550. package/dist/model/getCorporateInvitedUsersListUsersInner.js +38 -0
  551. package/dist/model/getCorporateInvitedUsersListUsersInner.js.map +1 -0
  552. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +17 -0
  553. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +33 -0
  554. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
  555. package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.d.ts +15 -0
  556. package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js +23 -0
  557. package/dist/model/getCorporateInvitedUsersListUsersInnerGroups.js.map +1 -0
  558. package/dist/model/getCorporateUserPermission.d.ts +19 -0
  559. package/dist/model/getCorporateUserPermission.js +33 -0
  560. package/dist/model/getCorporateUserPermission.js.map +1 -0
  561. package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +17 -0
  562. package/dist/model/getCorporateUserPermissionFeatureAccess.js +33 -0
  563. package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -0
  564. package/dist/model/getCorporateUserPermissionGroupsInner.d.ts +15 -0
  565. package/dist/model/getCorporateUserPermissionGroupsInner.js +23 -0
  566. package/dist/model/getCorporateUserPermissionGroupsInner.js.map +1 -0
  567. package/dist/model/getCouponCollection.d.ts +22 -0
  568. package/dist/model/getCouponCollection.js +58 -0
  569. package/dist/model/getCouponCollection.js.map +1 -0
  570. package/dist/model/getDeviceBrowserStats.d.ts +17 -0
  571. package/dist/model/getDeviceBrowserStats.js +33 -0
  572. package/dist/model/getDeviceBrowserStats.js.map +1 -0
  573. package/dist/model/getDomainConfigurationModel.d.ts +18 -0
  574. package/dist/model/getDomainConfigurationModel.js +33 -0
  575. package/dist/model/getDomainConfigurationModel.js.map +1 -0
  576. package/dist/model/getDomainsList.d.ts +15 -0
  577. package/dist/model/getDomainsList.js +18 -0
  578. package/dist/model/getDomainsList.js.map +1 -0
  579. package/dist/model/getDomainsListDomainsInner.d.ts +18 -0
  580. package/dist/model/getDomainsListDomainsInner.js +38 -0
  581. package/dist/model/getDomainsListDomainsInner.js.map +1 -0
  582. package/dist/model/getEmailCampaign.d.ts +62 -0
  583. package/dist/model/getEmailCampaign.js +189 -0
  584. package/dist/model/getEmailCampaign.js.map +1 -0
  585. package/dist/model/getEmailCampaigns.d.ts +16 -0
  586. package/dist/model/getEmailCampaigns.js +23 -0
  587. package/dist/model/getEmailCampaigns.js.map +1 -0
  588. package/dist/model/getEmailCampaignsCampaignsInner.d.ts +62 -0
  589. package/dist/model/getEmailCampaignsCampaignsInner.js +189 -0
  590. package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -0
  591. package/dist/model/getEmailEventReport.d.ts +15 -0
  592. package/dist/model/getEmailEventReport.js +18 -0
  593. package/dist/model/getEmailEventReport.js.map +1 -0
  594. package/dist/model/getEmailEventReportEventsInner.d.ts +42 -0
  595. package/dist/model/getEmailEventReportEventsInner.js +87 -0
  596. package/dist/model/getEmailEventReportEventsInner.js.map +1 -0
  597. package/dist/model/getExtendedCampaignOverview.d.ts +58 -0
  598. package/dist/model/getExtendedCampaignOverview.js +179 -0
  599. package/dist/model/getExtendedCampaignOverview.js.map +1 -0
  600. package/dist/model/getExtendedCampaignOverviewAllOfSender.d.ts +16 -0
  601. package/dist/model/getExtendedCampaignOverviewAllOfSender.js +28 -0
  602. package/dist/model/getExtendedCampaignOverviewAllOfSender.js.map +1 -0
  603. package/dist/model/getExtendedCampaignStats.d.ts +28 -0
  604. package/dist/model/getExtendedCampaignStats.js +53 -0
  605. package/dist/model/getExtendedCampaignStats.js.map +1 -0
  606. package/dist/model/getExtendedClient.d.ts +19 -0
  607. package/dist/model/getExtendedClient.js +38 -0
  608. package/dist/model/getExtendedClient.js.map +1 -0
  609. package/dist/model/getExtendedClientAllOfAddress.d.ts +17 -0
  610. package/dist/model/getExtendedClientAllOfAddress.js +33 -0
  611. package/dist/model/getExtendedClientAllOfAddress.js.map +1 -0
  612. package/dist/model/getExtendedContactDetails.d.ts +24 -0
  613. package/dist/model/getExtendedContactDetails.js +63 -0
  614. package/dist/model/getExtendedContactDetails.js.map +1 -0
  615. package/dist/model/getExtendedContactDetailsAllOfStatistics.d.ts +26 -0
  616. package/dist/model/getExtendedContactDetailsAllOfStatistics.js +58 -0
  617. package/dist/model/getExtendedContactDetailsAllOfStatistics.js.map +1 -0
  618. package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.d.ts +16 -0
  619. package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js +23 -0
  620. package/dist/model/getExtendedContactDetailsAllOfStatisticsClicked.js.map +1 -0
  621. package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.d.ts +17 -0
  622. package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js +33 -0
  623. package/dist/model/getExtendedContactDetailsAllOfStatisticsLinks.js.map +1 -0
  624. package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.d.ts +15 -0
  625. package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js +23 -0
  626. package/dist/model/getExtendedContactDetailsAllOfStatisticsMessagesSent.js.map +1 -0
  627. package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.d.ts +17 -0
  628. package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js +33 -0
  629. package/dist/model/getExtendedContactDetailsAllOfStatisticsOpened.js.map +1 -0
  630. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.d.ts +17 -0
  631. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js +23 -0
  632. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptions.js.map +1 -0
  633. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.d.ts +15 -0
  634. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js +23 -0
  635. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsAdminUnsubscription.js.map +1 -0
  636. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.d.ts +16 -0
  637. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js +28 -0
  638. package/dist/model/getExtendedContactDetailsAllOfStatisticsUnsubscriptionsUserUnsubscription.js.map +1 -0
  639. package/dist/model/getExtendedList.d.ts +23 -0
  640. package/dist/model/getExtendedList.js +58 -0
  641. package/dist/model/getExtendedList.js.map +1 -0
  642. package/dist/model/getExtendedListAllOfCampaignStats.d.ts +16 -0
  643. package/dist/model/getExtendedListAllOfCampaignStats.js +23 -0
  644. package/dist/model/getExtendedListAllOfCampaignStats.js.map +1 -0
  645. package/dist/model/getExternalFeedByUUID.d.ts +33 -0
  646. package/dist/model/getExternalFeedByUUID.js +81 -0
  647. package/dist/model/getExternalFeedByUUID.js.map +1 -0
  648. package/dist/model/getExternalFeedByUUIDHeadersInner.d.ts +15 -0
  649. package/dist/model/getExternalFeedByUUIDHeadersInner.js +23 -0
  650. package/dist/model/getExternalFeedByUUIDHeadersInner.js.map +1 -0
  651. package/dist/model/getFolder.d.ts +18 -0
  652. package/dist/model/getFolder.js +38 -0
  653. package/dist/model/getFolder.js.map +1 -0
  654. package/dist/model/getFolderLists.d.ts +16 -0
  655. package/dist/model/getFolderLists.js +23 -0
  656. package/dist/model/getFolderLists.js.map +1 -0
  657. package/dist/model/getFolders.d.ts +16 -0
  658. package/dist/model/getFolders.js +23 -0
  659. package/dist/model/getFolders.js.map +1 -0
  660. package/dist/model/getInboundEmailEvents.d.ts +15 -0
  661. package/dist/model/getInboundEmailEvents.js +18 -0
  662. package/dist/model/getInboundEmailEvents.js.map +1 -0
  663. package/dist/model/getInboundEmailEventsByUuid.d.ts +23 -0
  664. package/dist/model/getInboundEmailEventsByUuid.js +53 -0
  665. package/dist/model/getInboundEmailEventsByUuid.js.map +1 -0
  666. package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.d.ts +17 -0
  667. package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js +33 -0
  668. package/dist/model/getInboundEmailEventsByUuidAttachmentsInner.js.map +1 -0
  669. package/dist/model/getInboundEmailEventsByUuidLogsInner.d.ts +23 -0
  670. package/dist/model/getInboundEmailEventsByUuidLogsInner.js +32 -0
  671. package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -0
  672. package/dist/model/getInboundEmailEventsEventsInner.d.ts +17 -0
  673. package/dist/model/getInboundEmailEventsEventsInner.js +33 -0
  674. package/dist/model/getInboundEmailEventsEventsInner.js.map +1 -0
  675. package/dist/model/getInvitedUsersList.d.ts +15 -0
  676. package/dist/model/getInvitedUsersList.js +18 -0
  677. package/dist/model/getInvitedUsersList.js.map +1 -0
  678. package/dist/model/getInvitedUsersListUsersInner.d.ts +18 -0
  679. package/dist/model/getInvitedUsersListUsersInner.js +33 -0
  680. package/dist/model/getInvitedUsersListUsersInner.js.map +1 -0
  681. package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.d.ts +16 -0
  682. package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js +28 -0
  683. package/dist/model/getInvitedUsersListUsersInnerFeatureAccess.js.map +1 -0
  684. package/dist/model/getIp.d.ts +17 -0
  685. package/dist/model/getIp.js +33 -0
  686. package/dist/model/getIp.js.map +1 -0
  687. package/dist/model/getIpFromSender.d.ts +17 -0
  688. package/dist/model/getIpFromSender.js +33 -0
  689. package/dist/model/getIpFromSender.js.map +1 -0
  690. package/dist/model/getIps.d.ts +15 -0
  691. package/dist/model/getIps.js +18 -0
  692. package/dist/model/getIps.js.map +1 -0
  693. package/dist/model/getIpsFromSender.d.ts +15 -0
  694. package/dist/model/getIpsFromSender.js +18 -0
  695. package/dist/model/getIpsFromSender.js.map +1 -0
  696. package/dist/model/getList.d.ts +18 -0
  697. package/dist/model/getList.js +38 -0
  698. package/dist/model/getList.js.map +1 -0
  699. package/dist/model/getLists.d.ts +16 -0
  700. package/dist/model/getLists.js +23 -0
  701. package/dist/model/getLists.js.map +1 -0
  702. package/dist/model/getListsListsInner.d.ts +19 -0
  703. package/dist/model/getListsListsInner.js +43 -0
  704. package/dist/model/getListsListsInner.js.map +1 -0
  705. package/dist/model/getOrders.d.ts +16 -0
  706. package/dist/model/getOrders.js +23 -0
  707. package/dist/model/getOrders.js.map +1 -0
  708. package/dist/model/getOrdersOrdersInner.d.ts +25 -0
  709. package/dist/model/getOrdersOrdersInner.js +63 -0
  710. package/dist/model/getOrdersOrdersInner.js.map +1 -0
  711. package/dist/model/getPaymentRequest.d.ts +29 -0
  712. package/dist/model/getPaymentRequest.js +51 -0
  713. package/dist/model/getPaymentRequest.js.map +1 -0
  714. package/dist/model/getProcess.d.ts +24 -0
  715. package/dist/model/getProcess.js +41 -0
  716. package/dist/model/getProcess.js.map +1 -0
  717. package/dist/model/getProcesses.d.ts +16 -0
  718. package/dist/model/getProcesses.js +23 -0
  719. package/dist/model/getProcesses.js.map +1 -0
  720. package/dist/model/getProductDetails.d.ts +28 -0
  721. package/dist/model/getProductDetails.js +88 -0
  722. package/dist/model/getProductDetails.js.map +1 -0
  723. package/dist/model/getProducts.d.ts +16 -0
  724. package/dist/model/getProducts.js +23 -0
  725. package/dist/model/getProducts.js.map +1 -0
  726. package/dist/model/getReports.d.ts +15 -0
  727. package/dist/model/getReports.js +18 -0
  728. package/dist/model/getReports.js.map +1 -0
  729. package/dist/model/getReportsReportsInner.d.ts +26 -0
  730. package/dist/model/getReportsReportsInner.js +78 -0
  731. package/dist/model/getReportsReportsInner.js.map +1 -0
  732. package/dist/model/getScheduledEmailByBatchId.d.ts +16 -0
  733. package/dist/model/getScheduledEmailByBatchId.js +23 -0
  734. package/dist/model/getScheduledEmailByBatchId.js.map +1 -0
  735. package/dist/model/getScheduledEmailByBatchIdBatchesInner.d.ts +24 -0
  736. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +37 -0
  737. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -0
  738. package/dist/model/getScheduledEmailByMessageId.d.ts +24 -0
  739. package/dist/model/getScheduledEmailByMessageId.js +37 -0
  740. package/dist/model/getScheduledEmailByMessageId.js.map +1 -0
  741. package/dist/model/getSegments.d.ts +16 -0
  742. package/dist/model/getSegments.js +23 -0
  743. package/dist/model/getSegments.js.map +1 -0
  744. package/dist/model/getSegmentsSegments.d.ts +17 -0
  745. package/dist/model/getSegmentsSegments.js +33 -0
  746. package/dist/model/getSegmentsSegments.js.map +1 -0
  747. package/dist/model/getSendersList.d.ts +15 -0
  748. package/dist/model/getSendersList.js +18 -0
  749. package/dist/model/getSendersList.js.map +1 -0
  750. package/dist/model/getSendersListSendersInner.d.ts +19 -0
  751. package/dist/model/getSendersListSendersInner.js +38 -0
  752. package/dist/model/getSendersListSendersInner.js.map +1 -0
  753. package/dist/model/getSendersListSendersInnerIpsInner.d.ts +16 -0
  754. package/dist/model/getSendersListSendersInnerIpsInner.js +28 -0
  755. package/dist/model/getSendersListSendersInnerIpsInner.js.map +1 -0
  756. package/dist/model/getSharedTemplateUrl.d.ts +14 -0
  757. package/dist/model/getSharedTemplateUrl.js +18 -0
  758. package/dist/model/getSharedTemplateUrl.js.map +1 -0
  759. package/dist/model/getSmsCampaign.d.ts +35 -0
  760. package/dist/model/getSmsCampaign.js +74 -0
  761. package/dist/model/getSmsCampaign.js.map +1 -0
  762. package/dist/model/getSmsCampaignOverview.d.ts +31 -0
  763. package/dist/model/getSmsCampaignOverview.js +64 -0
  764. package/dist/model/getSmsCampaignOverview.js.map +1 -0
  765. package/dist/model/getSmsCampaignStats.d.ts +20 -0
  766. package/dist/model/getSmsCampaignStats.js +48 -0
  767. package/dist/model/getSmsCampaignStats.js.map +1 -0
  768. package/dist/model/getSmsCampaigns.d.ts +16 -0
  769. package/dist/model/getSmsCampaigns.js +23 -0
  770. package/dist/model/getSmsCampaigns.js.map +1 -0
  771. package/dist/model/getSmsCampaignsCampaignsInner.d.ts +35 -0
  772. package/dist/model/getSmsCampaignsCampaignsInner.js +74 -0
  773. package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -0
  774. package/dist/model/getSmsEventReport.d.ts +15 -0
  775. package/dist/model/getSmsEventReport.js +18 -0
  776. package/dist/model/getSmsEventReport.js.map +1 -0
  777. package/dist/model/getSmsEventReportEventsInner.d.ts +34 -0
  778. package/dist/model/getSmsEventReportEventsInner.js +63 -0
  779. package/dist/model/getSmsEventReportEventsInner.js.map +1 -0
  780. package/dist/model/getSmtpTemplateOverview.d.ts +27 -0
  781. package/dist/model/getSmtpTemplateOverview.js +78 -0
  782. package/dist/model/getSmtpTemplateOverview.js.map +1 -0
  783. package/dist/model/getSmtpTemplateOverviewSender.d.ts +16 -0
  784. package/dist/model/getSmtpTemplateOverviewSender.js +28 -0
  785. package/dist/model/getSmtpTemplateOverviewSender.js.map +1 -0
  786. package/dist/model/getSmtpTemplates.d.ts +16 -0
  787. package/dist/model/getSmtpTemplates.js +23 -0
  788. package/dist/model/getSmtpTemplates.js.map +1 -0
  789. package/dist/model/getSsoToken.d.ts +14 -0
  790. package/dist/model/getSsoToken.js +18 -0
  791. package/dist/model/getSsoToken.js.map +1 -0
  792. package/dist/model/getStatsByDevice.d.ts +26 -0
  793. package/dist/model/getStatsByDevice.js +33 -0
  794. package/dist/model/getStatsByDevice.js.map +1 -0
  795. package/dist/model/getSubAccountGroups200ResponseInner.d.ts +15 -0
  796. package/dist/model/getSubAccountGroups200ResponseInner.js +23 -0
  797. package/dist/model/getSubAccountGroups200ResponseInner.js.map +1 -0
  798. package/dist/model/getTransacAggregatedSmsReport.d.ts +23 -0
  799. package/dist/model/getTransacAggregatedSmsReport.js +63 -0
  800. package/dist/model/getTransacAggregatedSmsReport.js.map +1 -0
  801. package/dist/model/getTransacBlockedContacts.d.ts +16 -0
  802. package/dist/model/getTransacBlockedContacts.js +23 -0
  803. package/dist/model/getTransacBlockedContacts.js.map +1 -0
  804. package/dist/model/getTransacBlockedContactsContactsInner.d.ts +18 -0
  805. package/dist/model/getTransacBlockedContactsContactsInner.js +33 -0
  806. package/dist/model/getTransacBlockedContactsContactsInner.js.map +1 -0
  807. package/dist/model/getTransacBlockedContactsContactsInnerReason.d.ts +25 -0
  808. package/dist/model/getTransacBlockedContactsContactsInnerReason.js +34 -0
  809. package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -0
  810. package/dist/model/getTransacEmailContent.d.ts +21 -0
  811. package/dist/model/getTransacEmailContent.js +48 -0
  812. package/dist/model/getTransacEmailContent.js.map +1 -0
  813. package/dist/model/getTransacEmailContentEventsInner.d.ts +15 -0
  814. package/dist/model/getTransacEmailContentEventsInner.js +23 -0
  815. package/dist/model/getTransacEmailContentEventsInner.js.map +1 -0
  816. package/dist/model/getTransacEmailsList.d.ts +16 -0
  817. package/dist/model/getTransacEmailsList.js +23 -0
  818. package/dist/model/getTransacEmailsList.js.map +1 -0
  819. package/dist/model/getTransacEmailsListTransactionalEmailsInner.d.ts +21 -0
  820. package/dist/model/getTransacEmailsListTransactionalEmailsInner.js +53 -0
  821. package/dist/model/getTransacEmailsListTransactionalEmailsInner.js.map +1 -0
  822. package/dist/model/getTransacSmsReport.d.ts +15 -0
  823. package/dist/model/getTransacSmsReport.js +18 -0
  824. package/dist/model/getTransacSmsReport.js.map +1 -0
  825. package/dist/model/getTransacSmsReportReportsInner.d.ts +23 -0
  826. package/dist/model/getTransacSmsReportReportsInner.js +63 -0
  827. package/dist/model/getTransacSmsReportReportsInner.js.map +1 -0
  828. package/dist/model/getUserPermission.d.ts +17 -0
  829. package/dist/model/getUserPermission.js +28 -0
  830. package/dist/model/getUserPermission.js.map +1 -0
  831. package/dist/model/getUserPermissionPrivilegesInner.d.ts +15 -0
  832. package/dist/model/getUserPermissionPrivilegesInner.js +23 -0
  833. package/dist/model/getUserPermissionPrivilegesInner.js.map +1 -0
  834. package/dist/model/getWATemplates.d.ts +16 -0
  835. package/dist/model/getWATemplates.js +23 -0
  836. package/dist/model/getWATemplates.js.map +1 -0
  837. package/dist/model/getWATemplatesTemplatesInner.d.ts +21 -0
  838. package/dist/model/getWATemplatesTemplatesInner.js +53 -0
  839. package/dist/model/getWATemplatesTemplatesInner.js.map +1 -0
  840. package/dist/model/getWebhook.d.ts +31 -0
  841. package/dist/model/getWebhook.js +70 -0
  842. package/dist/model/getWebhook.js.map +1 -0
  843. package/dist/model/getWebhookAuth.d.ts +15 -0
  844. package/dist/model/getWebhookAuth.js +23 -0
  845. package/dist/model/getWebhookAuth.js.map +1 -0
  846. package/dist/model/getWebhookHeadersInner.d.ts +15 -0
  847. package/dist/model/getWebhookHeadersInner.js +23 -0
  848. package/dist/model/getWebhookHeadersInner.js.map +1 -0
  849. package/dist/model/getWebhooks.d.ts +15 -0
  850. package/dist/model/getWebhooks.js +18 -0
  851. package/dist/model/getWebhooks.js.map +1 -0
  852. package/dist/model/getWhatsAppConfig.d.ts +31 -0
  853. package/dist/model/getWhatsAppConfig.js +57 -0
  854. package/dist/model/getWhatsAppConfig.js.map +1 -0
  855. package/dist/model/getWhatsappCampaignOverview.d.ts +36 -0
  856. package/dist/model/getWhatsappCampaignOverview.js +71 -0
  857. package/dist/model/getWhatsappCampaignOverview.js.map +1 -0
  858. package/dist/model/getWhatsappCampaigns.d.ts +16 -0
  859. package/dist/model/getWhatsappCampaigns.js +23 -0
  860. package/dist/model/getWhatsappCampaigns.js.map +1 -0
  861. package/dist/model/getWhatsappCampaignsCampaignsInner.d.ts +37 -0
  862. package/dist/model/getWhatsappCampaignsCampaignsInner.js +81 -0
  863. package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -0
  864. package/dist/model/getWhatsappEventReport.d.ts +15 -0
  865. package/dist/model/getWhatsappEventReport.js +18 -0
  866. package/dist/model/getWhatsappEventReport.js.map +1 -0
  867. package/dist/model/getWhatsappEventReportEventsInner.d.ts +32 -0
  868. package/dist/model/getWhatsappEventReportEventsInner.js +65 -0
  869. package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -0
  870. package/dist/model/inviteAdminUser.d.ts +18 -0
  871. package/dist/model/inviteAdminUser.js +33 -0
  872. package/dist/model/inviteAdminUser.js.map +1 -0
  873. package/dist/model/inviteAdminUserPrivilegesInner.d.ts +27 -0
  874. package/dist/model/inviteAdminUserPrivilegesInner.js +37 -0
  875. package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -0
  876. package/dist/model/inviteuser.d.ts +17 -0
  877. package/dist/model/inviteuser.js +28 -0
  878. package/dist/model/inviteuser.js.map +1 -0
  879. package/dist/model/inviteuserPrivilegesInner.d.ts +63 -0
  880. package/dist/model/inviteuserPrivilegesInner.js +73 -0
  881. package/dist/model/inviteuserPrivilegesInner.js.map +1 -0
  882. package/dist/model/manageIp.d.ts +14 -0
  883. package/dist/model/manageIp.js +18 -0
  884. package/dist/model/manageIp.js.map +1 -0
  885. package/dist/model/masterDetailsResponse.d.ts +22 -0
  886. package/dist/model/masterDetailsResponse.js +48 -0
  887. package/dist/model/masterDetailsResponse.js.map +1 -0
  888. package/dist/model/masterDetailsResponseBillingInfo.d.ts +19 -0
  889. package/dist/model/masterDetailsResponseBillingInfo.js +33 -0
  890. package/dist/model/masterDetailsResponseBillingInfo.js.map +1 -0
  891. package/dist/model/masterDetailsResponseBillingInfoAddress.d.ts +18 -0
  892. package/dist/model/masterDetailsResponseBillingInfoAddress.js +38 -0
  893. package/dist/model/masterDetailsResponseBillingInfoAddress.js.map +1 -0
  894. package/dist/model/masterDetailsResponseBillingInfoName.d.ts +15 -0
  895. package/dist/model/masterDetailsResponseBillingInfoName.js +23 -0
  896. package/dist/model/masterDetailsResponseBillingInfoName.js.map +1 -0
  897. package/dist/model/masterDetailsResponsePlanInfo.d.ts +26 -0
  898. package/dist/model/masterDetailsResponsePlanInfo.js +50 -0
  899. package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -0
  900. package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.d.ts +20 -0
  901. package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js +48 -0
  902. package/dist/model/masterDetailsResponsePlanInfoFeaturesInner.js.map +1 -0
  903. package/dist/model/models.d.ts +408 -0
  904. package/dist/model/models.js +1370 -0
  905. package/dist/model/models.js.map +1 -0
  906. package/dist/model/note.d.ts +20 -0
  907. package/dist/model/note.js +48 -0
  908. package/dist/model/note.js.map +1 -0
  909. package/dist/model/noteData.d.ts +17 -0
  910. package/dist/model/noteData.js +33 -0
  911. package/dist/model/noteData.js.map +1 -0
  912. package/dist/model/noteId.d.ts +14 -0
  913. package/dist/model/noteId.js +18 -0
  914. package/dist/model/noteId.js.map +1 -0
  915. package/dist/model/notification.d.ts +20 -0
  916. package/dist/model/notification.js +29 -0
  917. package/dist/model/notification.js.map +1 -0
  918. package/dist/model/order.d.ts +24 -0
  919. package/dist/model/order.js +58 -0
  920. package/dist/model/order.js.map +1 -0
  921. package/dist/model/orderBatch.d.ts +17 -0
  922. package/dist/model/orderBatch.js +31 -0
  923. package/dist/model/orderBatch.js.map +1 -0
  924. package/dist/model/orderBilling.d.ts +20 -0
  925. package/dist/model/orderBilling.js +48 -0
  926. package/dist/model/orderBilling.js.map +1 -0
  927. package/dist/model/orderProductsInner.d.ts +17 -0
  928. package/dist/model/orderProductsInner.js +33 -0
  929. package/dist/model/orderProductsInner.js.map +1 -0
  930. package/dist/model/otp.d.ts +14 -0
  931. package/dist/model/otp.js +18 -0
  932. package/dist/model/otp.js.map +1 -0
  933. package/dist/model/pipeline.d.ts +17 -0
  934. package/dist/model/pipeline.js +28 -0
  935. package/dist/model/pipeline.js.map +1 -0
  936. package/dist/model/pipelineStage.d.ts +15 -0
  937. package/dist/model/pipelineStage.js +23 -0
  938. package/dist/model/pipelineStage.js.map +1 -0
  939. package/dist/model/postContactInfo.d.ts +15 -0
  940. package/dist/model/postContactInfo.js +18 -0
  941. package/dist/model/postContactInfo.js.map +1 -0
  942. package/dist/model/postContactInfoContacts.d.ts +17 -0
  943. package/dist/model/postContactInfoContacts.js +33 -0
  944. package/dist/model/postContactInfoContacts.js.map +1 -0
  945. package/dist/model/postSendFailed.d.ts +18 -0
  946. package/dist/model/postSendFailed.js +38 -0
  947. package/dist/model/postSendFailed.js.map +1 -0
  948. package/dist/model/postSendSmsTestFailed.d.ts +17 -0
  949. package/dist/model/postSendSmsTestFailed.js +33 -0
  950. package/dist/model/postSendSmsTestFailed.js.map +1 -0
  951. package/dist/model/putRevokeUserPermission.d.ts +14 -0
  952. package/dist/model/putRevokeUserPermission.js +18 -0
  953. package/dist/model/putRevokeUserPermission.js.map +1 -0
  954. package/dist/model/putresendcancelinvitation.d.ts +14 -0
  955. package/dist/model/putresendcancelinvitation.js +18 -0
  956. package/dist/model/putresendcancelinvitation.js.map +1 -0
  957. package/dist/model/remainingCreditModel.d.ts +17 -0
  958. package/dist/model/remainingCreditModel.js +23 -0
  959. package/dist/model/remainingCreditModel.js.map +1 -0
  960. package/dist/model/remainingCreditModelChild.d.ts +15 -0
  961. package/dist/model/remainingCreditModelChild.js +23 -0
  962. package/dist/model/remainingCreditModelChild.js.map +1 -0
  963. package/dist/model/remainingCreditModelReseller.d.ts +15 -0
  964. package/dist/model/remainingCreditModelReseller.js +23 -0
  965. package/dist/model/remainingCreditModelReseller.js.map +1 -0
  966. package/dist/model/removeContactFromList.d.ts +16 -0
  967. package/dist/model/removeContactFromList.js +28 -0
  968. package/dist/model/removeContactFromList.js.map +1 -0
  969. package/dist/model/removeCredits.d.ts +15 -0
  970. package/dist/model/removeCredits.js +23 -0
  971. package/dist/model/removeCredits.js.map +1 -0
  972. package/dist/model/requestContactExport.d.ts +17 -0
  973. package/dist/model/requestContactExport.js +28 -0
  974. package/dist/model/requestContactExport.js.map +1 -0
  975. package/dist/model/requestContactExportCustomContactFilter.d.ts +41 -0
  976. package/dist/model/requestContactExportCustomContactFilter.js +68 -0
  977. package/dist/model/requestContactExportCustomContactFilter.js.map +1 -0
  978. package/dist/model/requestContactImport.d.ts +26 -0
  979. package/dist/model/requestContactImport.js +75 -0
  980. package/dist/model/requestContactImport.js.map +1 -0
  981. package/dist/model/requestContactImportJsonBodyInner.d.ts +17 -0
  982. package/dist/model/requestContactImportJsonBodyInner.js +23 -0
  983. package/dist/model/requestContactImportJsonBodyInner.js.map +1 -0
  984. package/dist/model/requestContactImportNewList.d.ts +15 -0
  985. package/dist/model/requestContactImportNewList.js +23 -0
  986. package/dist/model/requestContactImportNewList.js.map +1 -0
  987. package/dist/model/requestSmsRecipientExport.d.ts +25 -0
  988. package/dist/model/requestSmsRecipientExport.js +34 -0
  989. package/dist/model/requestSmsRecipientExport.js.map +1 -0
  990. package/dist/model/scheduleSmtpEmail.d.ts +16 -0
  991. package/dist/model/scheduleSmtpEmail.js +28 -0
  992. package/dist/model/scheduleSmtpEmail.js.map +1 -0
  993. package/dist/model/sendReport.d.ts +26 -0
  994. package/dist/model/sendReport.js +37 -0
  995. package/dist/model/sendReport.js.map +1 -0
  996. package/dist/model/sendReportEmail.d.ts +15 -0
  997. package/dist/model/sendReportEmail.js +23 -0
  998. package/dist/model/sendReportEmail.js.map +1 -0
  999. package/dist/model/sendSms.d.ts +18 -0
  1000. package/dist/model/sendSms.js +38 -0
  1001. package/dist/model/sendSms.js.map +1 -0
  1002. package/dist/model/sendSmtpEmail.d.ts +36 -0
  1003. package/dist/model/sendSmtpEmail.js +93 -0
  1004. package/dist/model/sendSmtpEmail.js.map +1 -0
  1005. package/dist/model/sendSmtpEmailAttachmentInner.d.ts +16 -0
  1006. package/dist/model/sendSmtpEmailAttachmentInner.js +28 -0
  1007. package/dist/model/sendSmtpEmailAttachmentInner.js.map +1 -0
  1008. package/dist/model/sendSmtpEmailBccInner.d.ts +15 -0
  1009. package/dist/model/sendSmtpEmailBccInner.js +23 -0
  1010. package/dist/model/sendSmtpEmailBccInner.js.map +1 -0
  1011. package/dist/model/sendSmtpEmailCcInner.d.ts +15 -0
  1012. package/dist/model/sendSmtpEmailCcInner.js +23 -0
  1013. package/dist/model/sendSmtpEmailCcInner.js.map +1 -0
  1014. package/dist/model/sendSmtpEmailMessageVersionsInner.d.ts +27 -0
  1015. package/dist/model/sendSmtpEmailMessageVersionsInner.js +53 -0
  1016. package/dist/model/sendSmtpEmailMessageVersionsInner.js.map +1 -0
  1017. package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.d.ts +15 -0
  1018. package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js +23 -0
  1019. package/dist/model/sendSmtpEmailMessageVersionsInnerReplyTo.js.map +1 -0
  1020. package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.d.ts +15 -0
  1021. package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js +23 -0
  1022. package/dist/model/sendSmtpEmailMessageVersionsInnerToInner.js.map +1 -0
  1023. package/dist/model/sendSmtpEmailReplyTo.d.ts +15 -0
  1024. package/dist/model/sendSmtpEmailReplyTo.js +23 -0
  1025. package/dist/model/sendSmtpEmailReplyTo.js.map +1 -0
  1026. package/dist/model/sendSmtpEmailSender.d.ts +16 -0
  1027. package/dist/model/sendSmtpEmailSender.js +28 -0
  1028. package/dist/model/sendSmtpEmailSender.js.map +1 -0
  1029. package/dist/model/sendSmtpEmailToInner.d.ts +15 -0
  1030. package/dist/model/sendSmtpEmailToInner.js +23 -0
  1031. package/dist/model/sendSmtpEmailToInner.js.map +1 -0
  1032. package/dist/model/sendTestEmail.d.ts +14 -0
  1033. package/dist/model/sendTestEmail.js +18 -0
  1034. package/dist/model/sendTestEmail.js.map +1 -0
  1035. package/dist/model/sendTestSms.d.ts +14 -0
  1036. package/dist/model/sendTestSms.js +18 -0
  1037. package/dist/model/sendTestSms.js.map +1 -0
  1038. package/dist/model/sendTransacSms.d.ts +27 -0
  1039. package/dist/model/sendTransacSms.js +64 -0
  1040. package/dist/model/sendTransacSms.js.map +1 -0
  1041. package/dist/model/sendWhatsappMessage.d.ts +18 -0
  1042. package/dist/model/sendWhatsappMessage.js +38 -0
  1043. package/dist/model/sendWhatsappMessage.js.map +1 -0
  1044. package/dist/model/sendWhatsappMessage201Response.d.ts +14 -0
  1045. package/dist/model/sendWhatsappMessage201Response.js +18 -0
  1046. package/dist/model/sendWhatsappMessage201Response.js.map +1 -0
  1047. package/dist/model/ssoTokenRequest.d.ts +29 -0
  1048. package/dist/model/ssoTokenRequest.js +46 -0
  1049. package/dist/model/ssoTokenRequest.js.map +1 -0
  1050. package/dist/model/ssoTokenRequestCorporate.d.ts +14 -0
  1051. package/dist/model/ssoTokenRequestCorporate.js +18 -0
  1052. package/dist/model/ssoTokenRequestCorporate.js.map +1 -0
  1053. package/dist/model/subAccountAppsToggleRequest.d.ts +26 -0
  1054. package/dist/model/subAccountAppsToggleRequest.js +78 -0
  1055. package/dist/model/subAccountAppsToggleRequest.js.map +1 -0
  1056. package/dist/model/subAccountDetailsResponse.d.ts +18 -0
  1057. package/dist/model/subAccountDetailsResponse.js +33 -0
  1058. package/dist/model/subAccountDetailsResponse.js.map +1 -0
  1059. package/dist/model/subAccountDetailsResponsePlanInfo.d.ts +18 -0
  1060. package/dist/model/subAccountDetailsResponsePlanInfo.js +28 -0
  1061. package/dist/model/subAccountDetailsResponsePlanInfo.js.map +1 -0
  1062. package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +16 -0
  1063. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +23 -0
  1064. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -0
  1065. package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.d.ts +15 -0
  1066. package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js +23 -0
  1067. package/dist/model/subAccountDetailsResponsePlanInfoCreditsEmails.js.map +1 -0
  1068. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +19 -0
  1069. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +28 -0
  1070. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -0
  1071. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.d.ts +15 -0
  1072. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js +23 -0
  1073. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesInbox.js.map +1 -0
  1074. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.d.ts +15 -0
  1075. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js +23 -0
  1076. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.js.map +1 -0
  1077. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.d.ts +15 -0
  1078. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js +23 -0
  1079. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesUsers.js.map +1 -0
  1080. package/dist/model/subAccountUpdatePlanRequest.d.ts +17 -0
  1081. package/dist/model/subAccountUpdatePlanRequest.js +23 -0
  1082. package/dist/model/subAccountUpdatePlanRequest.js.map +1 -0
  1083. package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +14 -0
  1084. package/dist/model/subAccountUpdatePlanRequestCredits.js +18 -0
  1085. package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -0
  1086. package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +16 -0
  1087. package/dist/model/subAccountUpdatePlanRequestFeatures.js +28 -0
  1088. package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -0
  1089. package/dist/model/subAccountsResponse.d.ts +16 -0
  1090. package/dist/model/subAccountsResponse.js +23 -0
  1091. package/dist/model/subAccountsResponse.js.map +1 -0
  1092. package/dist/model/subAccountsResponseSubAccountsInner.d.ts +17 -0
  1093. package/dist/model/subAccountsResponseSubAccountsInner.js +33 -0
  1094. package/dist/model/subAccountsResponseSubAccountsInner.js.map +1 -0
  1095. package/dist/model/task.d.ts +19 -0
  1096. package/dist/model/task.js +43 -0
  1097. package/dist/model/task.js.map +1 -0
  1098. package/dist/model/taskList.d.ts +15 -0
  1099. package/dist/model/taskList.js +18 -0
  1100. package/dist/model/taskList.js.map +1 -0
  1101. package/dist/model/taskReminder.d.ts +24 -0
  1102. package/dist/model/taskReminder.js +37 -0
  1103. package/dist/model/taskReminder.js.map +1 -0
  1104. package/dist/model/taskTypes.d.ts +15 -0
  1105. package/dist/model/taskTypes.js +23 -0
  1106. package/dist/model/taskTypes.js.map +1 -0
  1107. package/dist/model/updateAttribute.d.ts +16 -0
  1108. package/dist/model/updateAttribute.js +23 -0
  1109. package/dist/model/updateAttribute.js.map +1 -0
  1110. package/dist/model/updateAttributeEnumerationInner.d.ts +15 -0
  1111. package/dist/model/updateAttributeEnumerationInner.js +23 -0
  1112. package/dist/model/updateAttributeEnumerationInner.js.map +1 -0
  1113. package/dist/model/updateBatchContacts.d.ts +15 -0
  1114. package/dist/model/updateBatchContacts.js +18 -0
  1115. package/dist/model/updateBatchContacts.js.map +1 -0
  1116. package/dist/model/updateBatchContactsContactsInner.d.ts +25 -0
  1117. package/dist/model/updateBatchContactsContactsInner.js +63 -0
  1118. package/dist/model/updateBatchContactsContactsInner.js.map +1 -0
  1119. package/dist/model/updateBatchContactsModel.d.ts +15 -0
  1120. package/dist/model/updateBatchContactsModel.js +23 -0
  1121. package/dist/model/updateBatchContactsModel.js.map +1 -0
  1122. package/dist/model/updateCampaignStatus.d.ts +26 -0
  1123. package/dist/model/updateCampaignStatus.js +31 -0
  1124. package/dist/model/updateCampaignStatus.js.map +1 -0
  1125. package/dist/model/updateChild.d.ts +18 -0
  1126. package/dist/model/updateChild.js +38 -0
  1127. package/dist/model/updateChild.js.map +1 -0
  1128. package/dist/model/updateChildAccountStatus.d.ts +17 -0
  1129. package/dist/model/updateChildAccountStatus.js +33 -0
  1130. package/dist/model/updateChildAccountStatus.js.map +1 -0
  1131. package/dist/model/updateChildDomain.d.ts +14 -0
  1132. package/dist/model/updateChildDomain.js +18 -0
  1133. package/dist/model/updateChildDomain.js.map +1 -0
  1134. package/dist/model/updateContact.d.ts +20 -0
  1135. package/dist/model/updateContact.js +48 -0
  1136. package/dist/model/updateContact.js.map +1 -0
  1137. package/dist/model/updateCouponCollection200Response.d.ts +16 -0
  1138. package/dist/model/updateCouponCollection200Response.js +28 -0
  1139. package/dist/model/updateCouponCollection200Response.js.map +1 -0
  1140. package/dist/model/updateCouponCollectionRequest.d.ts +17 -0
  1141. package/dist/model/updateCouponCollectionRequest.js +33 -0
  1142. package/dist/model/updateCouponCollectionRequest.js.map +1 -0
  1143. package/dist/model/updateEmailCampaign.d.ts +52 -0
  1144. package/dist/model/updateEmailCampaign.js +181 -0
  1145. package/dist/model/updateEmailCampaign.js.map +1 -0
  1146. package/dist/model/updateEmailCampaignRecipients.d.ts +16 -0
  1147. package/dist/model/updateEmailCampaignRecipients.js +28 -0
  1148. package/dist/model/updateEmailCampaignRecipients.js.map +1 -0
  1149. package/dist/model/updateEmailCampaignSender.d.ts +16 -0
  1150. package/dist/model/updateEmailCampaignSender.js +28 -0
  1151. package/dist/model/updateEmailCampaignSender.js.map +1 -0
  1152. package/dist/model/updateExternalFeed.d.ts +30 -0
  1153. package/dist/model/updateExternalFeed.js +69 -0
  1154. package/dist/model/updateExternalFeed.js.map +1 -0
  1155. package/dist/model/updateList.d.ts +15 -0
  1156. package/dist/model/updateList.js +23 -0
  1157. package/dist/model/updateList.js.map +1 -0
  1158. package/dist/model/updateSender.d.ts +17 -0
  1159. package/dist/model/updateSender.js +28 -0
  1160. package/dist/model/updateSender.js.map +1 -0
  1161. package/dist/model/updateSmsCampaign.d.ts +22 -0
  1162. package/dist/model/updateSmsCampaign.js +56 -0
  1163. package/dist/model/updateSmsCampaign.js.map +1 -0
  1164. package/dist/model/updateSmtpTemplate.d.ts +24 -0
  1165. package/dist/model/updateSmtpTemplate.js +63 -0
  1166. package/dist/model/updateSmtpTemplate.js.map +1 -0
  1167. package/dist/model/updateSmtpTemplateSender.d.ts +16 -0
  1168. package/dist/model/updateSmtpTemplateSender.js +28 -0
  1169. package/dist/model/updateSmtpTemplateSender.js.map +1 -0
  1170. package/dist/model/updateWebhook.d.ts +43 -0
  1171. package/dist/model/updateWebhook.js +70 -0
  1172. package/dist/model/updateWebhook.js.map +1 -0
  1173. package/dist/model/updateWhatsAppCampaign.d.ts +24 -0
  1174. package/dist/model/updateWhatsAppCampaign.js +43 -0
  1175. package/dist/model/updateWhatsAppCampaign.js.map +1 -0
  1176. package/dist/model/uploadImageModel.d.ts +14 -0
  1177. package/dist/model/uploadImageModel.js +18 -0
  1178. package/dist/model/uploadImageModel.js.map +1 -0
  1179. package/dist/model/uploadImageToGallery.d.ts +15 -0
  1180. package/dist/model/uploadImageToGallery.js +23 -0
  1181. package/dist/model/uploadImageToGallery.js.map +1 -0
  1182. package/dist/model/variablesItems.d.ts +16 -0
  1183. package/dist/model/variablesItems.js +28 -0
  1184. package/dist/model/variablesItems.js.map +1 -0
  1185. package/dist/model/whatsappCampStats.d.ts +18 -0
  1186. package/dist/model/whatsappCampStats.js +38 -0
  1187. package/dist/model/whatsappCampStats.js.map +1 -0
  1188. package/dist/model/whatsappCampTemplate.d.ts +26 -0
  1189. package/dist/model/whatsappCampTemplate.js +68 -0
  1190. package/dist/model/whatsappCampTemplate.js.map +1 -0
  1191. package/model/cart.ts +51 -0
  1192. package/model/configuration.ts +37 -0
  1193. package/model/conversionSourceMetrics.ts +60 -0
  1194. package/model/conversionSourceProduct.ts +73 -0
  1195. package/model/corporateGroupDetailsResponse.ts +46 -0
  1196. package/model/corporateGroupDetailsResponseGroup.ts +52 -0
  1197. package/model/corporateGroupDetailsResponseSubAccountsInner.ts +52 -0
  1198. package/model/corporateGroupDetailsResponseUsersInner.ts +52 -0
  1199. package/model/corporateGroupPost201Response.ts +31 -0
  1200. package/model/corporateGroupPostRequest.ts +43 -0
  1201. package/model/corporateGroupUnlinkGroupIdSubAccountsPutRequest.ts +34 -0
  1202. package/model/corporateUserInvitationActionEmailPut200Response.ts +31 -0
  1203. package/model/createContact.ts +1 -1
  1204. package/model/createCouponCollectionRequest.ts +33 -6
  1205. package/model/createDomainModel.ts +9 -0
  1206. package/model/createDomainModelDnsRecords.ts +6 -0
  1207. package/model/createPaymentRequest.ts +64 -0
  1208. package/model/createWebhook.ts +26 -0
  1209. package/model/createWhatsAppTemplate.ts +2 -2
  1210. package/model/crmDealsIdPatchRequest.ts +1 -1
  1211. package/model/crmDealsPostRequest.ts +1 -1
  1212. package/model/crmTasksIdPatchRequest.ts +1 -1
  1213. package/model/crmTasksPostRequest.ts +1 -1
  1214. package/model/event.ts +68 -0
  1215. package/model/eventIdentifiers.ts +73 -0
  1216. package/model/getContactDetails.ts +1 -1
  1217. package/model/getCorporateInvitedUsersList.ts +35 -0
  1218. package/model/getCorporateInvitedUsersListUsersInner.ts +66 -0
  1219. package/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.ts +64 -0
  1220. package/model/getCorporateInvitedUsersListUsersInnerGroups.ts +46 -0
  1221. package/model/getCorporateUserPermission.ts +60 -0
  1222. package/model/getCorporateUserPermissionFeatureAccess.ts +64 -0
  1223. package/model/getCorporateUserPermissionGroupsInner.ts +46 -0
  1224. package/model/getCouponCollection.ts +33 -6
  1225. package/model/getExtendedContactDetails.ts +1 -1
  1226. package/model/getOrders.ts +41 -0
  1227. package/model/getOrdersOrdersInner.ts +111 -0
  1228. package/model/getPaymentRequest.ts +80 -0
  1229. package/model/getSubAccountGroups200ResponseInner.ts +43 -0
  1230. package/model/getWebhook.ts +26 -0
  1231. package/model/getWebhookAuth.ts +46 -0
  1232. package/model/getWebhookHeadersInner.ts +43 -0
  1233. package/model/inviteAdminUser.ts +59 -0
  1234. package/model/inviteAdminUserPrivilegesInner.ts +58 -0
  1235. package/model/inviteuserPrivilegesInner.ts +14 -2
  1236. package/model/masterDetailsResponsePlanInfoFeaturesInner.ts +18 -0
  1237. package/model/models.ts +102 -0
  1238. package/model/notification.ts +51 -0
  1239. package/model/orderBatch.ts +9 -0
  1240. package/model/sendSmtpEmailMessageVersionsInner.ts +18 -0
  1241. package/model/sendWhatsappMessage.ts +9 -0
  1242. package/model/ssoTokenRequestCorporate.ts +34 -0
  1243. package/model/subAccountAppsToggleRequest.ts +1 -1
  1244. package/model/subAccountDetailsResponsePlanInfoFeaturesInbox.ts +1 -1
  1245. package/model/subAccountDetailsResponsePlanInfoFeaturesLandingPage.ts +1 -1
  1246. package/model/subAccountUpdatePlanRequestFeatures.ts +2 -2
  1247. package/model/updateContact.ts +1 -1
  1248. package/model/updateCouponCollection200Response.ts +1 -1
  1249. package/model/updateCouponCollectionRequest.ts +28 -1
  1250. package/model/updateWebhook.ts +26 -0
  1251. package/package.json +4 -5
  1252. /package/{.swagger-codegen-ignore → .openapi-generator-ignore} +0 -0
@@ -15,15 +15,25 @@ import localVarRequest from 'request';
15
15
  import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
+ import { CorporateGroupDetailsResponse } from '../model/corporateGroupDetailsResponse';
19
+ import { CorporateGroupPost201Response } from '../model/corporateGroupPost201Response';
20
+ import { CorporateGroupPostRequest } from '../model/corporateGroupPostRequest';
21
+ import { CorporateGroupUnlinkGroupIdSubAccountsPutRequest } from '../model/corporateGroupUnlinkGroupIdSubAccountsPutRequest';
22
+ import { CorporateUserInvitationActionEmailPut200Response } from '../model/corporateUserInvitationActionEmailPut200Response';
18
23
  import { CreateApiKeyRequest } from '../model/createApiKeyRequest';
19
24
  import { CreateApiKeyResponse } from '../model/createApiKeyResponse';
20
25
  import { CreateSubAccount } from '../model/createSubAccount';
21
26
  import { CreateSubAccountResponse } from '../model/createSubAccountResponse';
22
27
  import { ErrorModel } from '../model/errorModel';
23
28
  import { GetAccountActivity } from '../model/getAccountActivity';
29
+ import { GetCorporateInvitedUsersList } from '../model/getCorporateInvitedUsersList';
30
+ import { GetCorporateUserPermission } from '../model/getCorporateUserPermission';
24
31
  import { GetSsoToken } from '../model/getSsoToken';
32
+ import { GetSubAccountGroups200ResponseInner } from '../model/getSubAccountGroups200ResponseInner';
33
+ import { InviteAdminUser } from '../model/inviteAdminUser';
25
34
  import { MasterDetailsResponse } from '../model/masterDetailsResponse';
26
35
  import { SsoTokenRequest } from '../model/ssoTokenRequest';
36
+ import { SsoTokenRequestCorporate } from '../model/ssoTokenRequestCorporate';
27
37
  import { SubAccountAppsToggleRequest } from '../model/subAccountAppsToggleRequest';
28
38
  import { SubAccountDetailsResponse } from '../model/subAccountDetailsResponse';
29
39
  import { SubAccountUpdatePlanRequest } from '../model/subAccountUpdatePlanRequest';
@@ -104,11 +114,13 @@ export class MasterAccountApi {
104
114
  }
105
115
 
106
116
  /**
107
- * This endpoint will provide the details of the master account.
108
- * @summary Get the details of requested master account
117
+ * This endpoint allows you to delete a group of sub-organizations. When a group is deleted, the sub-organizations are no longer part of this group. The users associated with the group are no longer associated with the group once deleted.
118
+ * @summary Delete a group
119
+ * @param id Id of the group
109
120
  */
110
- public async corporateMasterAccountGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }> {
111
- const localVarPath = this.basePath + '/corporate/masterAccount';
121
+ public async corporateGroupIdDelete (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
122
+ const localVarPath = this.basePath + '/corporate/group/{id}'
123
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
112
124
  let localVarQueryParameters: any = {};
113
125
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
114
126
  const produces = ['application/json'];
@@ -120,12 +132,17 @@ export class MasterAccountApi {
120
132
  }
121
133
  let localVarFormParams: any = {};
122
134
 
135
+ // verify required parameter 'id' is not null or undefined
136
+ if (id === null || id === undefined) {
137
+ throw new Error('Required parameter id was null or undefined when calling corporateGroupIdDelete.');
138
+ }
139
+
123
140
  (<any>Object).assign(localVarHeaderParams, options.headers);
124
141
 
125
142
  let localVarUseFormData = false;
126
143
 
127
144
  let localVarRequestOptions: localVarRequest.Options = {
128
- method: 'GET',
145
+ method: 'DELETE',
129
146
  qs: localVarQueryParameters,
130
147
  headers: localVarHeaderParams,
131
148
  uri: localVarPath,
@@ -155,13 +172,12 @@ export class MasterAccountApi {
155
172
  localVarRequestOptions.form = localVarFormParams;
156
173
  }
157
174
  }
158
- return new Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }>((resolve, reject) => {
175
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
159
176
  localVarRequest(localVarRequestOptions, (error, response, body) => {
160
177
  if (error) {
161
178
  reject(error);
162
179
  } else {
163
180
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
164
- body = ObjectSerializer.deserialize(body, "MasterDetailsResponse");
165
181
  resolve({ response: response, body: body });
166
182
  } else {
167
183
  reject(new HttpError(response, body, response.statusCode));
@@ -172,13 +188,13 @@ export class MasterAccountApi {
172
188
  });
173
189
  }
174
190
  /**
175
- * This endpoint will provide the list all the sub-accounts of the master account.
176
- * @summary Get the list of all the sub-accounts of the master account.
177
- * @param offset Index of the first sub-account in the page
178
- * @param limit Number of sub-accounts to be displayed on each page
191
+ * This endpoint allows you to retrieve a specific group’s information such as the list of sub-organizations and the user associated with the group.
192
+ * @summary GET a group details
193
+ * @param id Id of the group of sub-organization
179
194
  */
180
- public async corporateSubAccountGet (offset: number, limit: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }> {
181
- const localVarPath = this.basePath + '/corporate/subAccount';
195
+ public async corporateGroupIdGet (id: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateGroupDetailsResponse; }> {
196
+ const localVarPath = this.basePath + '/corporate/group/{id}'
197
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
182
198
  let localVarQueryParameters: any = {};
183
199
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
184
200
  const produces = ['application/json'];
@@ -190,22 +206,9 @@ export class MasterAccountApi {
190
206
  }
191
207
  let localVarFormParams: any = {};
192
208
 
193
- // verify required parameter 'offset' is not null or undefined
194
- if (offset === null || offset === undefined) {
195
- throw new Error('Required parameter offset was null or undefined when calling corporateSubAccountGet.');
196
- }
197
-
198
- // verify required parameter 'limit' is not null or undefined
199
- if (limit === null || limit === undefined) {
200
- throw new Error('Required parameter limit was null or undefined when calling corporateSubAccountGet.');
201
- }
202
-
203
- if (offset !== undefined) {
204
- localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
205
- }
206
-
207
- if (limit !== undefined) {
208
- localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
209
+ // verify required parameter 'id' is not null or undefined
210
+ if (id === null || id === undefined) {
211
+ throw new Error('Required parameter id was null or undefined when calling corporateGroupIdGet.');
209
212
  }
210
213
 
211
214
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -243,13 +246,13 @@ export class MasterAccountApi {
243
246
  localVarRequestOptions.form = localVarFormParams;
244
247
  }
245
248
  }
246
- return new Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }>((resolve, reject) => {
249
+ return new Promise<{ response: http.IncomingMessage; body: CorporateGroupDetailsResponse; }>((resolve, reject) => {
247
250
  localVarRequest(localVarRequestOptions, (error, response, body) => {
248
251
  if (error) {
249
252
  reject(error);
250
253
  } else {
251
254
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
252
- body = ObjectSerializer.deserialize(body, "SubAccountsResponse");
255
+ body = ObjectSerializer.deserialize(body, "CorporateGroupDetailsResponse");
253
256
  resolve({ response: response, body: body });
254
257
  } else {
255
258
  reject(new HttpError(response, body, response.statusCode));
@@ -260,13 +263,13 @@ export class MasterAccountApi {
260
263
  });
261
264
  }
262
265
  /**
263
- * API endpoint for the Corporate owner to enable/disable applications on the sub-account
264
- * @summary Enable/disable sub-account application(s)
265
- * @param id Id of the sub-account organization (mandatory)
266
- * @param toggleApplications List of applications to activate or deactivate on a sub-account
266
+ * This endpoint allows you to update a group of sub-accounts
267
+ * @summary Update a group of sub-accounts
268
+ * @param id Id of the group
269
+ * @param body Group details to be updated.
267
270
  */
268
- public async corporateSubAccountIdApplicationsTogglePut (id: number, toggleApplications: SubAccountAppsToggleRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
269
- const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
271
+ public async corporateGroupIdPut (id: string, body: CorporateGroupPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
272
+ const localVarPath = this.basePath + '/corporate/group/{id}'
270
273
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
271
274
  let localVarQueryParameters: any = {};
272
275
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -281,12 +284,12 @@ export class MasterAccountApi {
281
284
 
282
285
  // verify required parameter 'id' is not null or undefined
283
286
  if (id === null || id === undefined) {
284
- throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
287
+ throw new Error('Required parameter id was null or undefined when calling corporateGroupIdPut.');
285
288
  }
286
289
 
287
- // verify required parameter 'toggleApplications' is not null or undefined
288
- if (toggleApplications === null || toggleApplications === undefined) {
289
- throw new Error('Required parameter toggleApplications was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
290
+ // verify required parameter 'body' is not null or undefined
291
+ if (body === null || body === undefined) {
292
+ throw new Error('Required parameter body was null or undefined when calling corporateGroupIdPut.');
290
293
  }
291
294
 
292
295
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -300,7 +303,7 @@ export class MasterAccountApi {
300
303
  uri: localVarPath,
301
304
  useQuerystring: this._useQuerystring,
302
305
  json: true,
303
- body: ObjectSerializer.serialize(toggleApplications, "SubAccountAppsToggleRequest")
306
+ body: ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
304
307
  };
305
308
 
306
309
  let authenticationPromise = Promise.resolve();
@@ -341,13 +344,12 @@ export class MasterAccountApi {
341
344
  });
342
345
  }
343
346
  /**
344
- *
345
- * @summary Delete a sub-account
346
- * @param id Id of the sub-account organization to be deleted
347
+ * This endpoint allows to create a group of sub-accounts
348
+ * @summary Create a new group of sub-accounts
349
+ * @param body Group details to be created.
347
350
  */
348
- public async corporateSubAccountIdDelete (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
349
- const localVarPath = this.basePath + '/corporate/subAccount/{id}'
350
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
351
+ public async corporateGroupPost (body: CorporateGroupPostRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateGroupPost201Response; }> {
352
+ const localVarPath = this.basePath + '/corporate/group';
351
353
  let localVarQueryParameters: any = {};
352
354
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
353
355
  const produces = ['application/json'];
@@ -359,9 +361,9 @@ export class MasterAccountApi {
359
361
  }
360
362
  let localVarFormParams: any = {};
361
363
 
362
- // verify required parameter 'id' is not null or undefined
363
- if (id === null || id === undefined) {
364
- throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdDelete.');
364
+ // verify required parameter 'body' is not null or undefined
365
+ if (body === null || body === undefined) {
366
+ throw new Error('Required parameter body was null or undefined when calling corporateGroupPost.');
365
367
  }
366
368
 
367
369
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -369,12 +371,13 @@ export class MasterAccountApi {
369
371
  let localVarUseFormData = false;
370
372
 
371
373
  let localVarRequestOptions: localVarRequest.Options = {
372
- method: 'DELETE',
374
+ method: 'POST',
373
375
  qs: localVarQueryParameters,
374
376
  headers: localVarHeaderParams,
375
377
  uri: localVarPath,
376
378
  useQuerystring: this._useQuerystring,
377
379
  json: true,
380
+ body: ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
378
381
  };
379
382
 
380
383
  let authenticationPromise = Promise.resolve();
@@ -399,12 +402,13 @@ export class MasterAccountApi {
399
402
  localVarRequestOptions.form = localVarFormParams;
400
403
  }
401
404
  }
402
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
405
+ return new Promise<{ response: http.IncomingMessage; body: CorporateGroupPost201Response; }>((resolve, reject) => {
403
406
  localVarRequest(localVarRequestOptions, (error, response, body) => {
404
407
  if (error) {
405
408
  reject(error);
406
409
  } else {
407
410
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
411
+ body = ObjectSerializer.deserialize(body, "CorporateGroupPost201Response");
408
412
  resolve({ response: response, body: body });
409
413
  } else {
410
414
  reject(new HttpError(response, body, response.statusCode));
@@ -415,13 +419,14 @@ export class MasterAccountApi {
415
419
  });
416
420
  }
417
421
  /**
418
- * This endpoint will provide the details for the specified sub-account company
419
- * @summary Get sub-account details
420
- * @param id Id of the sub-account organization
422
+ * This endpoint allows you to remove a sub-organization from a group.
423
+ * @summary Delete sub-account from group
424
+ * @param groupId Id of the group
425
+ * @param body List of sub-account ids
421
426
  */
422
- public async corporateSubAccountIdGet (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }> {
423
- const localVarPath = this.basePath + '/corporate/subAccount/{id}'
424
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
427
+ public async corporateGroupUnlinkGroupIdSubAccountsPut (groupId: string, body: CorporateGroupUnlinkGroupIdSubAccountsPutRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
428
+ const localVarPath = this.basePath + '/corporate/group/unlink/{groupId}/subAccounts'
429
+ .replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId)));
425
430
  let localVarQueryParameters: any = {};
426
431
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
427
432
  const produces = ['application/json'];
@@ -433,9 +438,14 @@ export class MasterAccountApi {
433
438
  }
434
439
  let localVarFormParams: any = {};
435
440
 
436
- // verify required parameter 'id' is not null or undefined
437
- if (id === null || id === undefined) {
438
- throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdGet.');
441
+ // verify required parameter 'groupId' is not null or undefined
442
+ if (groupId === null || groupId === undefined) {
443
+ throw new Error('Required parameter groupId was null or undefined when calling corporateGroupUnlinkGroupIdSubAccountsPut.');
444
+ }
445
+
446
+ // verify required parameter 'body' is not null or undefined
447
+ if (body === null || body === undefined) {
448
+ throw new Error('Required parameter body was null or undefined when calling corporateGroupUnlinkGroupIdSubAccountsPut.');
439
449
  }
440
450
 
441
451
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -443,12 +453,13 @@ export class MasterAccountApi {
443
453
  let localVarUseFormData = false;
444
454
 
445
455
  let localVarRequestOptions: localVarRequest.Options = {
446
- method: 'GET',
456
+ method: 'PUT',
447
457
  qs: localVarQueryParameters,
448
458
  headers: localVarHeaderParams,
449
459
  uri: localVarPath,
450
460
  useQuerystring: this._useQuerystring,
451
461
  json: true,
462
+ body: ObjectSerializer.serialize(body, "CorporateGroupUnlinkGroupIdSubAccountsPutRequest")
452
463
  };
453
464
 
454
465
  let authenticationPromise = Promise.resolve();
@@ -473,13 +484,12 @@ export class MasterAccountApi {
473
484
  localVarRequestOptions.form = localVarFormParams;
474
485
  }
475
486
  }
476
- return new Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }>((resolve, reject) => {
487
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
477
488
  localVarRequest(localVarRequestOptions, (error, response, body) => {
478
489
  if (error) {
479
490
  reject(error);
480
491
  } else {
481
492
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
482
- body = ObjectSerializer.deserialize(body, "SubAccountDetailsResponse");
483
493
  resolve({ response: response, body: body });
484
494
  } else {
485
495
  reject(new HttpError(response, body, response.statusCode));
@@ -490,14 +500,11 @@ export class MasterAccountApi {
490
500
  });
491
501
  }
492
502
  /**
493
- * This endpoint will update the sub-account plan
494
- * @summary Update sub-account plan
495
- * @param id Id of the sub-account organization
496
- * @param updatePlanDetails Values to update a sub-account plan
503
+ * This endpoint will provide the details of the master account.
504
+ * @summary Get the details of requested master account
497
505
  */
498
- public async corporateSubAccountIdPlanPut (id: number, updatePlanDetails: SubAccountUpdatePlanRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
499
- const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
500
- .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
506
+ public async corporateMasterAccountGet (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }> {
507
+ const localVarPath = this.basePath + '/corporate/masterAccount';
501
508
  let localVarQueryParameters: any = {};
502
509
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
503
510
  const produces = ['application/json'];
@@ -509,28 +516,17 @@ export class MasterAccountApi {
509
516
  }
510
517
  let localVarFormParams: any = {};
511
518
 
512
- // verify required parameter 'id' is not null or undefined
513
- if (id === null || id === undefined) {
514
- throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdPlanPut.');
515
- }
516
-
517
- // verify required parameter 'updatePlanDetails' is not null or undefined
518
- if (updatePlanDetails === null || updatePlanDetails === undefined) {
519
- throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountIdPlanPut.');
520
- }
521
-
522
519
  (<any>Object).assign(localVarHeaderParams, options.headers);
523
520
 
524
521
  let localVarUseFormData = false;
525
522
 
526
523
  let localVarRequestOptions: localVarRequest.Options = {
527
- method: 'PUT',
524
+ method: 'GET',
528
525
  qs: localVarQueryParameters,
529
526
  headers: localVarHeaderParams,
530
527
  uri: localVarPath,
531
528
  useQuerystring: this._useQuerystring,
532
529
  json: true,
533
- body: ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
534
530
  };
535
531
 
536
532
  let authenticationPromise = Promise.resolve();
@@ -555,12 +551,13 @@ export class MasterAccountApi {
555
551
  localVarRequestOptions.form = localVarFormParams;
556
552
  }
557
553
  }
558
- return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
554
+ return new Promise<{ response: http.IncomingMessage; body: MasterDetailsResponse; }>((resolve, reject) => {
559
555
  localVarRequest(localVarRequestOptions, (error, response, body) => {
560
556
  if (error) {
561
557
  reject(error);
562
558
  } else {
563
559
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
560
+ body = ObjectSerializer.deserialize(body, "MasterDetailsResponse");
564
561
  resolve({ response: response, body: body });
565
562
  } else {
566
563
  reject(new HttpError(response, body, response.statusCode));
@@ -571,12 +568,12 @@ export class MasterAccountApi {
571
568
  });
572
569
  }
573
570
  /**
574
- * This endpoint will generate an API v3 key for a sub account
575
- * @summary Create an API key for a sub-account
576
- * @param createApiKeyRequest Values to generate API key for sub-account
571
+ * This endpoint generates an SSO token to authenticate and access the admin account using the endpoint https://account-app.brevo.com/account/login/corporate/sso/[token], where [token] will be replaced by the actual token.
572
+ * @summary Generate SSO token to access admin account
573
+ * @param ssoTokenRequestCorporate User email of admin account
577
574
  */
578
- public async corporateSubAccountKeyPost (createApiKeyRequest: CreateApiKeyRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }> {
579
- const localVarPath = this.basePath + '/corporate/subAccount/key';
575
+ public async corporateSsoTokenPost (ssoTokenRequestCorporate: SsoTokenRequestCorporate, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSsoToken; }> {
576
+ const localVarPath = this.basePath + '/corporate/ssoToken';
580
577
  let localVarQueryParameters: any = {};
581
578
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
582
579
  const produces = ['application/json'];
@@ -588,9 +585,9 @@ export class MasterAccountApi {
588
585
  }
589
586
  let localVarFormParams: any = {};
590
587
 
591
- // verify required parameter 'createApiKeyRequest' is not null or undefined
592
- if (createApiKeyRequest === null || createApiKeyRequest === undefined) {
593
- throw new Error('Required parameter createApiKeyRequest was null or undefined when calling corporateSubAccountKeyPost.');
588
+ // verify required parameter 'ssoTokenRequestCorporate' is not null or undefined
589
+ if (ssoTokenRequestCorporate === null || ssoTokenRequestCorporate === undefined) {
590
+ throw new Error('Required parameter ssoTokenRequestCorporate was null or undefined when calling corporateSsoTokenPost.');
594
591
  }
595
592
 
596
593
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -604,7 +601,7 @@ export class MasterAccountApi {
604
601
  uri: localVarPath,
605
602
  useQuerystring: this._useQuerystring,
606
603
  json: true,
607
- body: ObjectSerializer.serialize(createApiKeyRequest, "CreateApiKeyRequest")
604
+ body: ObjectSerializer.serialize(ssoTokenRequestCorporate, "SsoTokenRequestCorporate")
608
605
  };
609
606
 
610
607
  let authenticationPromise = Promise.resolve();
@@ -629,13 +626,13 @@ export class MasterAccountApi {
629
626
  localVarRequestOptions.form = localVarFormParams;
630
627
  }
631
628
  }
632
- return new Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }>((resolve, reject) => {
629
+ return new Promise<{ response: http.IncomingMessage; body: GetSsoToken; }>((resolve, reject) => {
633
630
  localVarRequest(localVarRequestOptions, (error, response, body) => {
634
631
  if (error) {
635
632
  reject(error);
636
633
  } else {
637
634
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
638
- body = ObjectSerializer.deserialize(body, "CreateApiKeyResponse");
635
+ body = ObjectSerializer.deserialize(body, "GetSsoToken");
639
636
  resolve({ response: response, body: body });
640
637
  } else {
641
638
  reject(new HttpError(response, body, response.statusCode));
@@ -646,11 +643,12 @@ export class MasterAccountApi {
646
643
  });
647
644
  }
648
645
  /**
649
- * This endpoint will create a new sub-account under a master account
650
- * @summary Create a new sub-account under a master account.
651
- * @param subAccountCreate values to create new sub-account
646
+ * This endpoint will provide the list all the sub-accounts of the master account.
647
+ * @summary Get the list of all the sub-accounts of the master account.
648
+ * @param offset Index of the first sub-account in the page
649
+ * @param limit Number of sub-accounts to be displayed on each page
652
650
  */
653
- public async corporateSubAccountPost (subAccountCreate: CreateSubAccount, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }> {
651
+ public async corporateSubAccountGet (offset: number, limit: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }> {
654
652
  const localVarPath = this.basePath + '/corporate/subAccount';
655
653
  let localVarQueryParameters: any = {};
656
654
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
@@ -663,9 +661,22 @@ export class MasterAccountApi {
663
661
  }
664
662
  let localVarFormParams: any = {};
665
663
 
666
- // verify required parameter 'subAccountCreate' is not null or undefined
667
- if (subAccountCreate === null || subAccountCreate === undefined) {
668
- throw new Error('Required parameter subAccountCreate was null or undefined when calling corporateSubAccountPost.');
664
+ // verify required parameter 'offset' is not null or undefined
665
+ if (offset === null || offset === undefined) {
666
+ throw new Error('Required parameter offset was null or undefined when calling corporateSubAccountGet.');
667
+ }
668
+
669
+ // verify required parameter 'limit' is not null or undefined
670
+ if (limit === null || limit === undefined) {
671
+ throw new Error('Required parameter limit was null or undefined when calling corporateSubAccountGet.');
672
+ }
673
+
674
+ if (offset !== undefined) {
675
+ localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
676
+ }
677
+
678
+ if (limit !== undefined) {
679
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
669
680
  }
670
681
 
671
682
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -673,13 +684,12 @@ export class MasterAccountApi {
673
684
  let localVarUseFormData = false;
674
685
 
675
686
  let localVarRequestOptions: localVarRequest.Options = {
676
- method: 'POST',
687
+ method: 'GET',
677
688
  qs: localVarQueryParameters,
678
689
  headers: localVarHeaderParams,
679
690
  uri: localVarPath,
680
691
  useQuerystring: this._useQuerystring,
681
692
  json: true,
682
- body: ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
683
693
  };
684
694
 
685
695
  let authenticationPromise = Promise.resolve();
@@ -704,13 +714,13 @@ export class MasterAccountApi {
704
714
  localVarRequestOptions.form = localVarFormParams;
705
715
  }
706
716
  }
707
- return new Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }>((resolve, reject) => {
717
+ return new Promise<{ response: http.IncomingMessage; body: SubAccountsResponse; }>((resolve, reject) => {
708
718
  localVarRequest(localVarRequestOptions, (error, response, body) => {
709
719
  if (error) {
710
720
  reject(error);
711
721
  } else {
712
722
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
713
- body = ObjectSerializer.deserialize(body, "CreateSubAccountResponse");
723
+ body = ObjectSerializer.deserialize(body, "SubAccountsResponse");
714
724
  resolve({ response: response, body: body });
715
725
  } else {
716
726
  reject(new HttpError(response, body, response.statusCode));
@@ -721,12 +731,14 @@ export class MasterAccountApi {
721
731
  });
722
732
  }
723
733
  /**
724
- * This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
725
- * @summary Generate SSO token to access Brevo
726
- * @param ssoTokenRequest Values to generate SSO token for sub-account
734
+ * API endpoint for the Corporate owner to enable/disable applications on the sub-account
735
+ * @summary Enable/disable sub-account application(s)
736
+ * @param id Id of the sub-account organization (mandatory)
737
+ * @param toggleApplications List of applications to activate or deactivate on a sub-account
727
738
  */
728
- public async corporateSubAccountSsoTokenPost (ssoTokenRequest: SsoTokenRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSsoToken; }> {
729
- const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
739
+ public async corporateSubAccountIdApplicationsTogglePut (id: number, toggleApplications: SubAccountAppsToggleRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
740
+ const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
741
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
730
742
  let localVarQueryParameters: any = {};
731
743
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
732
744
  const produces = ['application/json'];
@@ -738,9 +750,14 @@ export class MasterAccountApi {
738
750
  }
739
751
  let localVarFormParams: any = {};
740
752
 
741
- // verify required parameter 'ssoTokenRequest' is not null or undefined
742
- if (ssoTokenRequest === null || ssoTokenRequest === undefined) {
743
- throw new Error('Required parameter ssoTokenRequest was null or undefined when calling corporateSubAccountSsoTokenPost.');
753
+ // verify required parameter 'id' is not null or undefined
754
+ if (id === null || id === undefined) {
755
+ throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
756
+ }
757
+
758
+ // verify required parameter 'toggleApplications' is not null or undefined
759
+ if (toggleApplications === null || toggleApplications === undefined) {
760
+ throw new Error('Required parameter toggleApplications was null or undefined when calling corporateSubAccountIdApplicationsTogglePut.');
744
761
  }
745
762
 
746
763
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -748,13 +765,13 @@ export class MasterAccountApi {
748
765
  let localVarUseFormData = false;
749
766
 
750
767
  let localVarRequestOptions: localVarRequest.Options = {
751
- method: 'POST',
768
+ method: 'PUT',
752
769
  qs: localVarQueryParameters,
753
770
  headers: localVarHeaderParams,
754
771
  uri: localVarPath,
755
772
  useQuerystring: this._useQuerystring,
756
773
  json: true,
757
- body: ObjectSerializer.serialize(ssoTokenRequest, "SsoTokenRequest")
774
+ body: ObjectSerializer.serialize(toggleApplications, "SubAccountAppsToggleRequest")
758
775
  };
759
776
 
760
777
  let authenticationPromise = Promise.resolve();
@@ -779,13 +796,12 @@ export class MasterAccountApi {
779
796
  localVarRequestOptions.form = localVarFormParams;
780
797
  }
781
798
  }
782
- return new Promise<{ response: http.IncomingMessage; body: GetSsoToken; }>((resolve, reject) => {
799
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
783
800
  localVarRequest(localVarRequestOptions, (error, response, body) => {
784
801
  if (error) {
785
802
  reject(error);
786
803
  } else {
787
804
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
788
- body = ObjectSerializer.deserialize(body, "GetSsoToken");
789
805
  resolve({ response: response, body: body });
790
806
  } else {
791
807
  reject(new HttpError(response, body, response.statusCode));
@@ -797,14 +813,12 @@ export class MasterAccountApi {
797
813
  }
798
814
  /**
799
815
  *
800
- * @summary Get user activity logs
801
- * @param startDate Mandatory if endDate is used. Enter start date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. Additionally, you can retrieve activity logs from the past 12 months from the date of your search.
802
- * @param endDate Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month.
803
- * @param limit Number of documents per page
804
- * @param offset Index of the first document in the page.
816
+ * @summary Delete a sub-account
817
+ * @param id Id of the sub-account organization to be deleted
805
818
  */
806
- public async getAccountActivity (startDate?: string, endDate?: string, limit?: number, offset?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }> {
807
- const localVarPath = this.basePath + '/organization/activities';
819
+ public async corporateSubAccountIdDelete (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
820
+ const localVarPath = this.basePath + '/corporate/subAccount/{id}'
821
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
808
822
  let localVarQueryParameters: any = {};
809
823
  let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
810
824
  const produces = ['application/json'];
@@ -816,20 +830,9 @@ export class MasterAccountApi {
816
830
  }
817
831
  let localVarFormParams: any = {};
818
832
 
819
- if (startDate !== undefined) {
820
- localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
821
- }
822
-
823
- if (endDate !== undefined) {
824
- localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
825
- }
826
-
827
- if (limit !== undefined) {
828
- localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
829
- }
830
-
831
- if (offset !== undefined) {
832
- localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
833
+ // verify required parameter 'id' is not null or undefined
834
+ if (id === null || id === undefined) {
835
+ throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdDelete.');
833
836
  }
834
837
 
835
838
  (<any>Object).assign(localVarHeaderParams, options.headers);
@@ -837,7 +840,7 @@ export class MasterAccountApi {
837
840
  let localVarUseFormData = false;
838
841
 
839
842
  let localVarRequestOptions: localVarRequest.Options = {
840
- method: 'GET',
843
+ method: 'DELETE',
841
844
  qs: localVarQueryParameters,
842
845
  headers: localVarHeaderParams,
843
846
  uri: localVarPath,
@@ -867,13 +870,923 @@ export class MasterAccountApi {
867
870
  localVarRequestOptions.form = localVarFormParams;
868
871
  }
869
872
  }
870
- return new Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }>((resolve, reject) => {
873
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
871
874
  localVarRequest(localVarRequestOptions, (error, response, body) => {
872
875
  if (error) {
873
876
  reject(error);
874
877
  } else {
875
878
  if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
876
- body = ObjectSerializer.deserialize(body, "GetAccountActivity");
879
+ resolve({ response: response, body: body });
880
+ } else {
881
+ reject(new HttpError(response, body, response.statusCode));
882
+ }
883
+ }
884
+ });
885
+ });
886
+ });
887
+ }
888
+ /**
889
+ * This endpoint will provide the details for the specified sub-account company
890
+ * @summary Get sub-account details
891
+ * @param id Id of the sub-account organization
892
+ */
893
+ public async corporateSubAccountIdGet (id: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }> {
894
+ const localVarPath = this.basePath + '/corporate/subAccount/{id}'
895
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
896
+ let localVarQueryParameters: any = {};
897
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
898
+ const produces = ['application/json'];
899
+ // give precedence to 'application/json'
900
+ if (produces.indexOf('application/json') >= 0) {
901
+ localVarHeaderParams.Accept = 'application/json';
902
+ } else {
903
+ localVarHeaderParams.Accept = produces.join(',');
904
+ }
905
+ let localVarFormParams: any = {};
906
+
907
+ // verify required parameter 'id' is not null or undefined
908
+ if (id === null || id === undefined) {
909
+ throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdGet.');
910
+ }
911
+
912
+ (<any>Object).assign(localVarHeaderParams, options.headers);
913
+
914
+ let localVarUseFormData = false;
915
+
916
+ let localVarRequestOptions: localVarRequest.Options = {
917
+ method: 'GET',
918
+ qs: localVarQueryParameters,
919
+ headers: localVarHeaderParams,
920
+ uri: localVarPath,
921
+ useQuerystring: this._useQuerystring,
922
+ json: true,
923
+ };
924
+
925
+ let authenticationPromise = Promise.resolve();
926
+ if (this.authentications.apiKey.apiKey) {
927
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
928
+ }
929
+ if (this.authentications.partnerKey.apiKey) {
930
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
931
+ }
932
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
933
+
934
+ let interceptorPromise = authenticationPromise;
935
+ for (const interceptor of this.interceptors) {
936
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
937
+ }
938
+
939
+ return interceptorPromise.then(() => {
940
+ if (Object.keys(localVarFormParams).length) {
941
+ if (localVarUseFormData) {
942
+ (<any>localVarRequestOptions).formData = localVarFormParams;
943
+ } else {
944
+ localVarRequestOptions.form = localVarFormParams;
945
+ }
946
+ }
947
+ return new Promise<{ response: http.IncomingMessage; body: SubAccountDetailsResponse; }>((resolve, reject) => {
948
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
949
+ if (error) {
950
+ reject(error);
951
+ } else {
952
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
953
+ body = ObjectSerializer.deserialize(body, "SubAccountDetailsResponse");
954
+ resolve({ response: response, body: body });
955
+ } else {
956
+ reject(new HttpError(response, body, response.statusCode));
957
+ }
958
+ }
959
+ });
960
+ });
961
+ });
962
+ }
963
+ /**
964
+ * This endpoint will update the sub-account plan
965
+ * @summary Update sub-account plan
966
+ * @param id Id of the sub-account organization
967
+ * @param updatePlanDetails Values to update a sub-account plan
968
+ */
969
+ public async corporateSubAccountIdPlanPut (id: number, updatePlanDetails: SubAccountUpdatePlanRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
970
+ const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
971
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
972
+ let localVarQueryParameters: any = {};
973
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
974
+ const produces = ['application/json'];
975
+ // give precedence to 'application/json'
976
+ if (produces.indexOf('application/json') >= 0) {
977
+ localVarHeaderParams.Accept = 'application/json';
978
+ } else {
979
+ localVarHeaderParams.Accept = produces.join(',');
980
+ }
981
+ let localVarFormParams: any = {};
982
+
983
+ // verify required parameter 'id' is not null or undefined
984
+ if (id === null || id === undefined) {
985
+ throw new Error('Required parameter id was null or undefined when calling corporateSubAccountIdPlanPut.');
986
+ }
987
+
988
+ // verify required parameter 'updatePlanDetails' is not null or undefined
989
+ if (updatePlanDetails === null || updatePlanDetails === undefined) {
990
+ throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountIdPlanPut.');
991
+ }
992
+
993
+ (<any>Object).assign(localVarHeaderParams, options.headers);
994
+
995
+ let localVarUseFormData = false;
996
+
997
+ let localVarRequestOptions: localVarRequest.Options = {
998
+ method: 'PUT',
999
+ qs: localVarQueryParameters,
1000
+ headers: localVarHeaderParams,
1001
+ uri: localVarPath,
1002
+ useQuerystring: this._useQuerystring,
1003
+ json: true,
1004
+ body: ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
1005
+ };
1006
+
1007
+ let authenticationPromise = Promise.resolve();
1008
+ if (this.authentications.apiKey.apiKey) {
1009
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1010
+ }
1011
+ if (this.authentications.partnerKey.apiKey) {
1012
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1013
+ }
1014
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1015
+
1016
+ let interceptorPromise = authenticationPromise;
1017
+ for (const interceptor of this.interceptors) {
1018
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1019
+ }
1020
+
1021
+ return interceptorPromise.then(() => {
1022
+ if (Object.keys(localVarFormParams).length) {
1023
+ if (localVarUseFormData) {
1024
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1025
+ } else {
1026
+ localVarRequestOptions.form = localVarFormParams;
1027
+ }
1028
+ }
1029
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
1030
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1031
+ if (error) {
1032
+ reject(error);
1033
+ } else {
1034
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1035
+ resolve({ response: response, body: body });
1036
+ } else {
1037
+ reject(new HttpError(response, body, response.statusCode));
1038
+ }
1039
+ }
1040
+ });
1041
+ });
1042
+ });
1043
+ }
1044
+ /**
1045
+ * This endpoint will generate an API v3 key for a sub account
1046
+ * @summary Create an API key for a sub-account
1047
+ * @param createApiKeyRequest Values to generate API key for sub-account
1048
+ */
1049
+ public async corporateSubAccountKeyPost (createApiKeyRequest: CreateApiKeyRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }> {
1050
+ const localVarPath = this.basePath + '/corporate/subAccount/key';
1051
+ let localVarQueryParameters: any = {};
1052
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1053
+ const produces = ['application/json'];
1054
+ // give precedence to 'application/json'
1055
+ if (produces.indexOf('application/json') >= 0) {
1056
+ localVarHeaderParams.Accept = 'application/json';
1057
+ } else {
1058
+ localVarHeaderParams.Accept = produces.join(',');
1059
+ }
1060
+ let localVarFormParams: any = {};
1061
+
1062
+ // verify required parameter 'createApiKeyRequest' is not null or undefined
1063
+ if (createApiKeyRequest === null || createApiKeyRequest === undefined) {
1064
+ throw new Error('Required parameter createApiKeyRequest was null or undefined when calling corporateSubAccountKeyPost.');
1065
+ }
1066
+
1067
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1068
+
1069
+ let localVarUseFormData = false;
1070
+
1071
+ let localVarRequestOptions: localVarRequest.Options = {
1072
+ method: 'POST',
1073
+ qs: localVarQueryParameters,
1074
+ headers: localVarHeaderParams,
1075
+ uri: localVarPath,
1076
+ useQuerystring: this._useQuerystring,
1077
+ json: true,
1078
+ body: ObjectSerializer.serialize(createApiKeyRequest, "CreateApiKeyRequest")
1079
+ };
1080
+
1081
+ let authenticationPromise = Promise.resolve();
1082
+ if (this.authentications.apiKey.apiKey) {
1083
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1084
+ }
1085
+ if (this.authentications.partnerKey.apiKey) {
1086
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1087
+ }
1088
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1089
+
1090
+ let interceptorPromise = authenticationPromise;
1091
+ for (const interceptor of this.interceptors) {
1092
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1093
+ }
1094
+
1095
+ return interceptorPromise.then(() => {
1096
+ if (Object.keys(localVarFormParams).length) {
1097
+ if (localVarUseFormData) {
1098
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1099
+ } else {
1100
+ localVarRequestOptions.form = localVarFormParams;
1101
+ }
1102
+ }
1103
+ return new Promise<{ response: http.IncomingMessage; body: CreateApiKeyResponse; }>((resolve, reject) => {
1104
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1105
+ if (error) {
1106
+ reject(error);
1107
+ } else {
1108
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1109
+ body = ObjectSerializer.deserialize(body, "CreateApiKeyResponse");
1110
+ resolve({ response: response, body: body });
1111
+ } else {
1112
+ reject(new HttpError(response, body, response.statusCode));
1113
+ }
1114
+ }
1115
+ });
1116
+ });
1117
+ });
1118
+ }
1119
+ /**
1120
+ * This endpoint will create a new sub-account under a master account
1121
+ * @summary Create a new sub-account under a master account.
1122
+ * @param subAccountCreate values to create new sub-account
1123
+ */
1124
+ public async corporateSubAccountPost (subAccountCreate: CreateSubAccount, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }> {
1125
+ const localVarPath = this.basePath + '/corporate/subAccount';
1126
+ let localVarQueryParameters: any = {};
1127
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1128
+ const produces = ['application/json'];
1129
+ // give precedence to 'application/json'
1130
+ if (produces.indexOf('application/json') >= 0) {
1131
+ localVarHeaderParams.Accept = 'application/json';
1132
+ } else {
1133
+ localVarHeaderParams.Accept = produces.join(',');
1134
+ }
1135
+ let localVarFormParams: any = {};
1136
+
1137
+ // verify required parameter 'subAccountCreate' is not null or undefined
1138
+ if (subAccountCreate === null || subAccountCreate === undefined) {
1139
+ throw new Error('Required parameter subAccountCreate was null or undefined when calling corporateSubAccountPost.');
1140
+ }
1141
+
1142
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1143
+
1144
+ let localVarUseFormData = false;
1145
+
1146
+ let localVarRequestOptions: localVarRequest.Options = {
1147
+ method: 'POST',
1148
+ qs: localVarQueryParameters,
1149
+ headers: localVarHeaderParams,
1150
+ uri: localVarPath,
1151
+ useQuerystring: this._useQuerystring,
1152
+ json: true,
1153
+ body: ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
1154
+ };
1155
+
1156
+ let authenticationPromise = Promise.resolve();
1157
+ if (this.authentications.apiKey.apiKey) {
1158
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1159
+ }
1160
+ if (this.authentications.partnerKey.apiKey) {
1161
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1162
+ }
1163
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1164
+
1165
+ let interceptorPromise = authenticationPromise;
1166
+ for (const interceptor of this.interceptors) {
1167
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1168
+ }
1169
+
1170
+ return interceptorPromise.then(() => {
1171
+ if (Object.keys(localVarFormParams).length) {
1172
+ if (localVarUseFormData) {
1173
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1174
+ } else {
1175
+ localVarRequestOptions.form = localVarFormParams;
1176
+ }
1177
+ }
1178
+ return new Promise<{ response: http.IncomingMessage; body: CreateSubAccountResponse; }>((resolve, reject) => {
1179
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1180
+ if (error) {
1181
+ reject(error);
1182
+ } else {
1183
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1184
+ body = ObjectSerializer.deserialize(body, "CreateSubAccountResponse");
1185
+ resolve({ response: response, body: body });
1186
+ } else {
1187
+ reject(new HttpError(response, body, response.statusCode));
1188
+ }
1189
+ }
1190
+ });
1191
+ });
1192
+ });
1193
+ }
1194
+ /**
1195
+ * This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
1196
+ * @summary Generate SSO token to access sub-account
1197
+ * @param ssoTokenRequest Values to generate SSO token for sub-account
1198
+ */
1199
+ public async corporateSubAccountSsoTokenPost (ssoTokenRequest: SsoTokenRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetSsoToken; }> {
1200
+ const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
1201
+ let localVarQueryParameters: any = {};
1202
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1203
+ const produces = ['application/json'];
1204
+ // give precedence to 'application/json'
1205
+ if (produces.indexOf('application/json') >= 0) {
1206
+ localVarHeaderParams.Accept = 'application/json';
1207
+ } else {
1208
+ localVarHeaderParams.Accept = produces.join(',');
1209
+ }
1210
+ let localVarFormParams: any = {};
1211
+
1212
+ // verify required parameter 'ssoTokenRequest' is not null or undefined
1213
+ if (ssoTokenRequest === null || ssoTokenRequest === undefined) {
1214
+ throw new Error('Required parameter ssoTokenRequest was null or undefined when calling corporateSubAccountSsoTokenPost.');
1215
+ }
1216
+
1217
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1218
+
1219
+ let localVarUseFormData = false;
1220
+
1221
+ let localVarRequestOptions: localVarRequest.Options = {
1222
+ method: 'POST',
1223
+ qs: localVarQueryParameters,
1224
+ headers: localVarHeaderParams,
1225
+ uri: localVarPath,
1226
+ useQuerystring: this._useQuerystring,
1227
+ json: true,
1228
+ body: ObjectSerializer.serialize(ssoTokenRequest, "SsoTokenRequest")
1229
+ };
1230
+
1231
+ let authenticationPromise = Promise.resolve();
1232
+ if (this.authentications.apiKey.apiKey) {
1233
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1234
+ }
1235
+ if (this.authentications.partnerKey.apiKey) {
1236
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1237
+ }
1238
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1239
+
1240
+ let interceptorPromise = authenticationPromise;
1241
+ for (const interceptor of this.interceptors) {
1242
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1243
+ }
1244
+
1245
+ return interceptorPromise.then(() => {
1246
+ if (Object.keys(localVarFormParams).length) {
1247
+ if (localVarUseFormData) {
1248
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1249
+ } else {
1250
+ localVarRequestOptions.form = localVarFormParams;
1251
+ }
1252
+ }
1253
+ return new Promise<{ response: http.IncomingMessage; body: GetSsoToken; }>((resolve, reject) => {
1254
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1255
+ if (error) {
1256
+ reject(error);
1257
+ } else {
1258
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1259
+ body = ObjectSerializer.deserialize(body, "GetSsoToken");
1260
+ resolve({ response: response, body: body });
1261
+ } else {
1262
+ reject(new HttpError(response, body, response.statusCode));
1263
+ }
1264
+ }
1265
+ });
1266
+ });
1267
+ });
1268
+ }
1269
+ /**
1270
+ * This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation
1271
+ * @summary Resend / cancel admin user invitation
1272
+ * @param action Action to be performed (cancel / resend)
1273
+ * @param email Email address of the recipient
1274
+ */
1275
+ public async corporateUserInvitationActionEmailPut (action: string, email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: CorporateUserInvitationActionEmailPut200Response; }> {
1276
+ const localVarPath = this.basePath + '/corporate/user/invitation/{action}/{email}'
1277
+ .replace('{' + 'action' + '}', encodeURIComponent(String(action)))
1278
+ .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1279
+ let localVarQueryParameters: any = {};
1280
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1281
+ const produces = ['application/json'];
1282
+ // give precedence to 'application/json'
1283
+ if (produces.indexOf('application/json') >= 0) {
1284
+ localVarHeaderParams.Accept = 'application/json';
1285
+ } else {
1286
+ localVarHeaderParams.Accept = produces.join(',');
1287
+ }
1288
+ let localVarFormParams: any = {};
1289
+
1290
+ // verify required parameter 'action' is not null or undefined
1291
+ if (action === null || action === undefined) {
1292
+ throw new Error('Required parameter action was null or undefined when calling corporateUserInvitationActionEmailPut.');
1293
+ }
1294
+
1295
+ // verify required parameter 'email' is not null or undefined
1296
+ if (email === null || email === undefined) {
1297
+ throw new Error('Required parameter email was null or undefined when calling corporateUserInvitationActionEmailPut.');
1298
+ }
1299
+
1300
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1301
+
1302
+ let localVarUseFormData = false;
1303
+
1304
+ let localVarRequestOptions: localVarRequest.Options = {
1305
+ method: 'PUT',
1306
+ qs: localVarQueryParameters,
1307
+ headers: localVarHeaderParams,
1308
+ uri: localVarPath,
1309
+ useQuerystring: this._useQuerystring,
1310
+ json: true,
1311
+ };
1312
+
1313
+ let authenticationPromise = Promise.resolve();
1314
+ if (this.authentications.apiKey.apiKey) {
1315
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1316
+ }
1317
+ if (this.authentications.partnerKey.apiKey) {
1318
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1319
+ }
1320
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1321
+
1322
+ let interceptorPromise = authenticationPromise;
1323
+ for (const interceptor of this.interceptors) {
1324
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1325
+ }
1326
+
1327
+ return interceptorPromise.then(() => {
1328
+ if (Object.keys(localVarFormParams).length) {
1329
+ if (localVarUseFormData) {
1330
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1331
+ } else {
1332
+ localVarRequestOptions.form = localVarFormParams;
1333
+ }
1334
+ }
1335
+ return new Promise<{ response: http.IncomingMessage; body: CorporateUserInvitationActionEmailPut200Response; }>((resolve, reject) => {
1336
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1337
+ if (error) {
1338
+ reject(error);
1339
+ } else {
1340
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1341
+ body = ObjectSerializer.deserialize(body, "CorporateUserInvitationActionEmailPut200Response");
1342
+ resolve({ response: response, body: body });
1343
+ } else {
1344
+ reject(new HttpError(response, body, response.statusCode));
1345
+ }
1346
+ }
1347
+ });
1348
+ });
1349
+ });
1350
+ }
1351
+ /**
1352
+ * This endpoint allows to revoke/remove an invited member of your Admin account
1353
+ * @summary Revoke an admin user
1354
+ * @param email Email of the invited user
1355
+ */
1356
+ public async corporateUserRevokeEmailDelete (email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body?: any; }> {
1357
+ const localVarPath = this.basePath + '/corporate/user/revoke/{email}'
1358
+ .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1359
+ let localVarQueryParameters: any = {};
1360
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1361
+ const produces = ['application/json'];
1362
+ // give precedence to 'application/json'
1363
+ if (produces.indexOf('application/json') >= 0) {
1364
+ localVarHeaderParams.Accept = 'application/json';
1365
+ } else {
1366
+ localVarHeaderParams.Accept = produces.join(',');
1367
+ }
1368
+ let localVarFormParams: any = {};
1369
+
1370
+ // verify required parameter 'email' is not null or undefined
1371
+ if (email === null || email === undefined) {
1372
+ throw new Error('Required parameter email was null or undefined when calling corporateUserRevokeEmailDelete.');
1373
+ }
1374
+
1375
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1376
+
1377
+ let localVarUseFormData = false;
1378
+
1379
+ let localVarRequestOptions: localVarRequest.Options = {
1380
+ method: 'DELETE',
1381
+ qs: localVarQueryParameters,
1382
+ headers: localVarHeaderParams,
1383
+ uri: localVarPath,
1384
+ useQuerystring: this._useQuerystring,
1385
+ json: true,
1386
+ };
1387
+
1388
+ let authenticationPromise = Promise.resolve();
1389
+ if (this.authentications.apiKey.apiKey) {
1390
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1391
+ }
1392
+ if (this.authentications.partnerKey.apiKey) {
1393
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1394
+ }
1395
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1396
+
1397
+ let interceptorPromise = authenticationPromise;
1398
+ for (const interceptor of this.interceptors) {
1399
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1400
+ }
1401
+
1402
+ return interceptorPromise.then(() => {
1403
+ if (Object.keys(localVarFormParams).length) {
1404
+ if (localVarUseFormData) {
1405
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1406
+ } else {
1407
+ localVarRequestOptions.form = localVarFormParams;
1408
+ }
1409
+ }
1410
+ return new Promise<{ response: http.IncomingMessage; body?: any; }>((resolve, reject) => {
1411
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1412
+ if (error) {
1413
+ reject(error);
1414
+ } else {
1415
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1416
+ resolve({ response: response, body: body });
1417
+ } else {
1418
+ reject(new HttpError(response, body, response.statusCode));
1419
+ }
1420
+ }
1421
+ });
1422
+ });
1423
+ });
1424
+ }
1425
+ /**
1426
+ *
1427
+ * @summary Get user activity logs
1428
+ * @param startDate Mandatory if endDate is used. Enter start date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month. Additionally, you can retrieve activity logs from the past 12 months from the date of your search.
1429
+ * @param endDate Mandatory if startDate is used. Enter end date in UTC date (YYYY-MM-DD) format to filter the activity in your account. Maximum time period that can be selected is one month.
1430
+ * @param limit Number of documents per page
1431
+ * @param offset Index of the first document in the page.
1432
+ */
1433
+ public async getAccountActivity (startDate?: string, endDate?: string, limit?: number, offset?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }> {
1434
+ const localVarPath = this.basePath + '/organization/activities';
1435
+ let localVarQueryParameters: any = {};
1436
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1437
+ const produces = ['application/json'];
1438
+ // give precedence to 'application/json'
1439
+ if (produces.indexOf('application/json') >= 0) {
1440
+ localVarHeaderParams.Accept = 'application/json';
1441
+ } else {
1442
+ localVarHeaderParams.Accept = produces.join(',');
1443
+ }
1444
+ let localVarFormParams: any = {};
1445
+
1446
+ if (startDate !== undefined) {
1447
+ localVarQueryParameters['startDate'] = ObjectSerializer.serialize(startDate, "string");
1448
+ }
1449
+
1450
+ if (endDate !== undefined) {
1451
+ localVarQueryParameters['endDate'] = ObjectSerializer.serialize(endDate, "string");
1452
+ }
1453
+
1454
+ if (limit !== undefined) {
1455
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(limit, "number");
1456
+ }
1457
+
1458
+ if (offset !== undefined) {
1459
+ localVarQueryParameters['offset'] = ObjectSerializer.serialize(offset, "number");
1460
+ }
1461
+
1462
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1463
+
1464
+ let localVarUseFormData = false;
1465
+
1466
+ let localVarRequestOptions: localVarRequest.Options = {
1467
+ method: 'GET',
1468
+ qs: localVarQueryParameters,
1469
+ headers: localVarHeaderParams,
1470
+ uri: localVarPath,
1471
+ useQuerystring: this._useQuerystring,
1472
+ json: true,
1473
+ };
1474
+
1475
+ let authenticationPromise = Promise.resolve();
1476
+ if (this.authentications.apiKey.apiKey) {
1477
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1478
+ }
1479
+ if (this.authentications.partnerKey.apiKey) {
1480
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1481
+ }
1482
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1483
+
1484
+ let interceptorPromise = authenticationPromise;
1485
+ for (const interceptor of this.interceptors) {
1486
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1487
+ }
1488
+
1489
+ return interceptorPromise.then(() => {
1490
+ if (Object.keys(localVarFormParams).length) {
1491
+ if (localVarUseFormData) {
1492
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1493
+ } else {
1494
+ localVarRequestOptions.form = localVarFormParams;
1495
+ }
1496
+ }
1497
+ return new Promise<{ response: http.IncomingMessage; body: GetAccountActivity; }>((resolve, reject) => {
1498
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1499
+ if (error) {
1500
+ reject(error);
1501
+ } else {
1502
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1503
+ body = ObjectSerializer.deserialize(body, "GetAccountActivity");
1504
+ resolve({ response: response, body: body });
1505
+ } else {
1506
+ reject(new HttpError(response, body, response.statusCode));
1507
+ }
1508
+ }
1509
+ });
1510
+ });
1511
+ });
1512
+ }
1513
+ /**
1514
+ * This endpoint allows you to list all Admin users of your Admin account
1515
+ * @summary Get the list of all admin users
1516
+ */
1517
+ public async getCorporateInvitedUsersList (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetCorporateInvitedUsersList; }> {
1518
+ const localVarPath = this.basePath + '/corporate/invited/users';
1519
+ let localVarQueryParameters: any = {};
1520
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1521
+ const produces = ['application/json'];
1522
+ // give precedence to 'application/json'
1523
+ if (produces.indexOf('application/json') >= 0) {
1524
+ localVarHeaderParams.Accept = 'application/json';
1525
+ } else {
1526
+ localVarHeaderParams.Accept = produces.join(',');
1527
+ }
1528
+ let localVarFormParams: any = {};
1529
+
1530
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1531
+
1532
+ let localVarUseFormData = false;
1533
+
1534
+ let localVarRequestOptions: localVarRequest.Options = {
1535
+ method: 'GET',
1536
+ qs: localVarQueryParameters,
1537
+ headers: localVarHeaderParams,
1538
+ uri: localVarPath,
1539
+ useQuerystring: this._useQuerystring,
1540
+ json: true,
1541
+ };
1542
+
1543
+ let authenticationPromise = Promise.resolve();
1544
+ if (this.authentications.apiKey.apiKey) {
1545
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1546
+ }
1547
+ if (this.authentications.partnerKey.apiKey) {
1548
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1549
+ }
1550
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1551
+
1552
+ let interceptorPromise = authenticationPromise;
1553
+ for (const interceptor of this.interceptors) {
1554
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1555
+ }
1556
+
1557
+ return interceptorPromise.then(() => {
1558
+ if (Object.keys(localVarFormParams).length) {
1559
+ if (localVarUseFormData) {
1560
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1561
+ } else {
1562
+ localVarRequestOptions.form = localVarFormParams;
1563
+ }
1564
+ }
1565
+ return new Promise<{ response: http.IncomingMessage; body: GetCorporateInvitedUsersList; }>((resolve, reject) => {
1566
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1567
+ if (error) {
1568
+ reject(error);
1569
+ } else {
1570
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1571
+ body = ObjectSerializer.deserialize(body, "GetCorporateInvitedUsersList");
1572
+ resolve({ response: response, body: body });
1573
+ } else {
1574
+ reject(new HttpError(response, body, response.statusCode));
1575
+ }
1576
+ }
1577
+ });
1578
+ });
1579
+ });
1580
+ }
1581
+ /**
1582
+ *
1583
+ * @summary Check admin user permissions
1584
+ * @param email Email of the invited user
1585
+ */
1586
+ public async getCorporateUserPermission (email: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: GetCorporateUserPermission; }> {
1587
+ const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
1588
+ .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1589
+ let localVarQueryParameters: any = {};
1590
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1591
+ const produces = ['application/json'];
1592
+ // give precedence to 'application/json'
1593
+ if (produces.indexOf('application/json') >= 0) {
1594
+ localVarHeaderParams.Accept = 'application/json';
1595
+ } else {
1596
+ localVarHeaderParams.Accept = produces.join(',');
1597
+ }
1598
+ let localVarFormParams: any = {};
1599
+
1600
+ // verify required parameter 'email' is not null or undefined
1601
+ if (email === null || email === undefined) {
1602
+ throw new Error('Required parameter email was null or undefined when calling getCorporateUserPermission.');
1603
+ }
1604
+
1605
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1606
+
1607
+ let localVarUseFormData = false;
1608
+
1609
+ let localVarRequestOptions: localVarRequest.Options = {
1610
+ method: 'GET',
1611
+ qs: localVarQueryParameters,
1612
+ headers: localVarHeaderParams,
1613
+ uri: localVarPath,
1614
+ useQuerystring: this._useQuerystring,
1615
+ json: true,
1616
+ };
1617
+
1618
+ let authenticationPromise = Promise.resolve();
1619
+ if (this.authentications.apiKey.apiKey) {
1620
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1621
+ }
1622
+ if (this.authentications.partnerKey.apiKey) {
1623
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1624
+ }
1625
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1626
+
1627
+ let interceptorPromise = authenticationPromise;
1628
+ for (const interceptor of this.interceptors) {
1629
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1630
+ }
1631
+
1632
+ return interceptorPromise.then(() => {
1633
+ if (Object.keys(localVarFormParams).length) {
1634
+ if (localVarUseFormData) {
1635
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1636
+ } else {
1637
+ localVarRequestOptions.form = localVarFormParams;
1638
+ }
1639
+ }
1640
+ return new Promise<{ response: http.IncomingMessage; body: GetCorporateUserPermission; }>((resolve, reject) => {
1641
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1642
+ if (error) {
1643
+ reject(error);
1644
+ } else {
1645
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1646
+ body = ObjectSerializer.deserialize(body, "GetCorporateUserPermission");
1647
+ resolve({ response: response, body: body });
1648
+ } else {
1649
+ reject(new HttpError(response, body, response.statusCode));
1650
+ }
1651
+ }
1652
+ });
1653
+ });
1654
+ });
1655
+ }
1656
+ /**
1657
+ * This endpoint allows you to list all groups created on your Admin account.
1658
+ * @summary Get the list of groups
1659
+ */
1660
+ public async getSubAccountGroups (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Array<GetSubAccountGroups200ResponseInner>; }> {
1661
+ const localVarPath = this.basePath + '/corporate/groups';
1662
+ let localVarQueryParameters: any = {};
1663
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1664
+ const produces = ['application/json'];
1665
+ // give precedence to 'application/json'
1666
+ if (produces.indexOf('application/json') >= 0) {
1667
+ localVarHeaderParams.Accept = 'application/json';
1668
+ } else {
1669
+ localVarHeaderParams.Accept = produces.join(',');
1670
+ }
1671
+ let localVarFormParams: any = {};
1672
+
1673
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1674
+
1675
+ let localVarUseFormData = false;
1676
+
1677
+ let localVarRequestOptions: localVarRequest.Options = {
1678
+ method: 'GET',
1679
+ qs: localVarQueryParameters,
1680
+ headers: localVarHeaderParams,
1681
+ uri: localVarPath,
1682
+ useQuerystring: this._useQuerystring,
1683
+ json: true,
1684
+ };
1685
+
1686
+ let authenticationPromise = Promise.resolve();
1687
+ if (this.authentications.apiKey.apiKey) {
1688
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1689
+ }
1690
+ if (this.authentications.partnerKey.apiKey) {
1691
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1692
+ }
1693
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1694
+
1695
+ let interceptorPromise = authenticationPromise;
1696
+ for (const interceptor of this.interceptors) {
1697
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1698
+ }
1699
+
1700
+ return interceptorPromise.then(() => {
1701
+ if (Object.keys(localVarFormParams).length) {
1702
+ if (localVarUseFormData) {
1703
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1704
+ } else {
1705
+ localVarRequestOptions.form = localVarFormParams;
1706
+ }
1707
+ }
1708
+ return new Promise<{ response: http.IncomingMessage; body: Array<GetSubAccountGroups200ResponseInner>; }>((resolve, reject) => {
1709
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1710
+ if (error) {
1711
+ reject(error);
1712
+ } else {
1713
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1714
+ body = ObjectSerializer.deserialize(body, "Array<GetSubAccountGroups200ResponseInner>");
1715
+ resolve({ response: response, body: body });
1716
+ } else {
1717
+ reject(new HttpError(response, body, response.statusCode));
1718
+ }
1719
+ }
1720
+ });
1721
+ });
1722
+ });
1723
+ }
1724
+ /**
1725
+ * `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it\'s assumed that all permissions will be there for the invited admin user.
1726
+ * @summary Send invitation to an admin user
1727
+ * @param sendInvitation Payload to send an invitation
1728
+ */
1729
+ public async inviteAdminUser (sendInvitation: InviteAdminUser, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: InviteAdminUser; }> {
1730
+ const localVarPath = this.basePath + '/corporate/user/invitation/send';
1731
+ let localVarQueryParameters: any = {};
1732
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
1733
+ const produces = ['application/json'];
1734
+ // give precedence to 'application/json'
1735
+ if (produces.indexOf('application/json') >= 0) {
1736
+ localVarHeaderParams.Accept = 'application/json';
1737
+ } else {
1738
+ localVarHeaderParams.Accept = produces.join(',');
1739
+ }
1740
+ let localVarFormParams: any = {};
1741
+
1742
+ // verify required parameter 'sendInvitation' is not null or undefined
1743
+ if (sendInvitation === null || sendInvitation === undefined) {
1744
+ throw new Error('Required parameter sendInvitation was null or undefined when calling inviteAdminUser.');
1745
+ }
1746
+
1747
+ (<any>Object).assign(localVarHeaderParams, options.headers);
1748
+
1749
+ let localVarUseFormData = false;
1750
+
1751
+ let localVarRequestOptions: localVarRequest.Options = {
1752
+ method: 'POST',
1753
+ qs: localVarQueryParameters,
1754
+ headers: localVarHeaderParams,
1755
+ uri: localVarPath,
1756
+ useQuerystring: this._useQuerystring,
1757
+ json: true,
1758
+ body: ObjectSerializer.serialize(sendInvitation, "InviteAdminUser")
1759
+ };
1760
+
1761
+ let authenticationPromise = Promise.resolve();
1762
+ if (this.authentications.apiKey.apiKey) {
1763
+ authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1764
+ }
1765
+ if (this.authentications.partnerKey.apiKey) {
1766
+ authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1767
+ }
1768
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1769
+
1770
+ let interceptorPromise = authenticationPromise;
1771
+ for (const interceptor of this.interceptors) {
1772
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1773
+ }
1774
+
1775
+ return interceptorPromise.then(() => {
1776
+ if (Object.keys(localVarFormParams).length) {
1777
+ if (localVarUseFormData) {
1778
+ (<any>localVarRequestOptions).formData = localVarFormParams;
1779
+ } else {
1780
+ localVarRequestOptions.form = localVarFormParams;
1781
+ }
1782
+ }
1783
+ return new Promise<{ response: http.IncomingMessage; body: InviteAdminUser; }>((resolve, reject) => {
1784
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
1785
+ if (error) {
1786
+ reject(error);
1787
+ } else {
1788
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1789
+ body = ObjectSerializer.deserialize(body, "InviteAdminUser");
877
1790
  resolve({ response: response, body: body });
878
1791
  } else {
879
1792
  reject(new HttpError(response, body, response.statusCode));