@getbrevo/brevo 2.5.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/README.md +178 -100
  2. package/api/accountApi.ts +5 -5
  3. package/api/companiesApi.ts +15 -15
  4. package/api/contactsApi.ts +148 -151
  5. package/api/conversationsApi.ts +46 -47
  6. package/api/couponsApi.ts +11 -11
  7. package/api/dealsApi.ts +51 -52
  8. package/api/domainsApi.ts +11 -11
  9. package/api/ecommerceApi.ts +86 -87
  10. package/api/emailCampaignsApi.ts +82 -105
  11. package/api/eventsApi.ts +3 -3
  12. package/api/externalFeedsApi.ts +11 -11
  13. package/api/filesApi.ts +11 -11
  14. package/api/inboundParsingApi.ts +7 -7
  15. package/api/masterAccountApi.ts +49 -49
  16. package/api/notesApi.ts +11 -11
  17. package/api/paymentsApi.ts +7 -7
  18. package/api/processApi.ts +5 -5
  19. package/api/resellerApi.ts +33 -33
  20. package/api/sMSCampaignsApi.ts +51 -52
  21. package/api/sendersApi.ts +15 -15
  22. package/api/tasksApi.ts +13 -13
  23. package/api/transactionalEmailsApi.ts +45 -45
  24. package/api/transactionalSMSApi.ts +9 -9
  25. package/api/transactionalWhatsAppApi.ts +5 -5
  26. package/api/userApi.ts +13 -13
  27. package/api/webhooksApi.ts +13 -13
  28. package/api/whatsAppCampaignsApi.ts +19 -19
  29. package/dist/api/accountApi.d.ts +2 -1
  30. package/dist/api/accountApi.js +10 -14
  31. package/dist/api/accountApi.js.map +1 -1
  32. package/dist/api/apis.d.ts +4 -9
  33. package/dist/api/apis.js +3 -9
  34. package/dist/api/apis.js.map +1 -1
  35. package/dist/api/companiesApi.d.ts +10 -29
  36. package/dist/api/companiesApi.js +70 -219
  37. package/dist/api/companiesApi.js.map +1 -1
  38. package/dist/api/contactsApi.d.ts +35 -43
  39. package/dist/api/contactsApi.js +155 -232
  40. package/dist/api/contactsApi.js.map +1 -1
  41. package/dist/api/conversationsApi.d.ts +10 -10
  42. package/dist/api/conversationsApi.js +47 -47
  43. package/dist/api/conversationsApi.js.map +1 -1
  44. package/dist/api/couponsApi.d.ts +1 -0
  45. package/dist/api/couponsApi.js +22 -22
  46. package/dist/api/couponsApi.js.map +1 -1
  47. package/dist/api/dealsApi.d.ts +12 -32
  48. package/dist/api/dealsApi.js +52 -201
  49. package/dist/api/dealsApi.js.map +1 -1
  50. package/dist/api/domainsApi.d.ts +1 -0
  51. package/dist/api/domainsApi.js +22 -22
  52. package/dist/api/domainsApi.js.map +1 -1
  53. package/dist/api/ecommerceApi.d.ts +21 -21
  54. package/dist/api/ecommerceApi.js +88 -97
  55. package/dist/api/ecommerceApi.js.map +1 -1
  56. package/dist/api/emailCampaignsApi.d.ts +15 -15
  57. package/dist/api/emailCampaignsApi.js +86 -108
  58. package/dist/api/emailCampaignsApi.js.map +1 -1
  59. package/dist/api/eventsApi.d.ts +1 -0
  60. package/dist/api/eventsApi.js +6 -6
  61. package/dist/api/eventsApi.js.map +1 -1
  62. package/dist/api/externalFeedsApi.d.ts +1 -0
  63. package/dist/api/externalFeedsApi.js +22 -22
  64. package/dist/api/externalFeedsApi.js.map +1 -1
  65. package/dist/api/filesApi.d.ts +1 -0
  66. package/dist/api/filesApi.js +22 -22
  67. package/dist/api/filesApi.js.map +1 -1
  68. package/dist/api/inboundParsingApi.d.ts +2 -0
  69. package/dist/api/inboundParsingApi.js +14 -14
  70. package/dist/api/inboundParsingApi.js.map +1 -1
  71. package/dist/api/masterAccountApi.d.ts +2 -27
  72. package/dist/api/masterAccountApi.js +98 -299
  73. package/dist/api/masterAccountApi.js.map +1 -1
  74. package/dist/api/notesApi.d.ts +1 -0
  75. package/dist/api/notesApi.js +22 -22
  76. package/dist/api/notesApi.js.map +1 -1
  77. package/dist/api/paymentsApi.d.ts +1 -0
  78. package/dist/api/paymentsApi.js +14 -14
  79. package/dist/api/paymentsApi.js.map +1 -1
  80. package/dist/api/processApi.d.ts +1 -0
  81. package/dist/api/processApi.js +10 -10
  82. package/dist/api/processApi.js.map +1 -1
  83. package/dist/api/resellerApi.d.ts +1 -0
  84. package/dist/api/resellerApi.js +66 -66
  85. package/dist/api/resellerApi.js.map +1 -1
  86. package/dist/api/sMSCampaignsApi.d.ts +11 -11
  87. package/dist/api/sMSCampaignsApi.js +52 -52
  88. package/dist/api/sMSCampaignsApi.js.map +1 -1
  89. package/dist/api/sendersApi.d.ts +1 -0
  90. package/dist/api/sendersApi.js +30 -30
  91. package/dist/api/sendersApi.js.map +1 -1
  92. package/dist/api/tasksApi.d.ts +1 -0
  93. package/dist/api/tasksApi.js +26 -26
  94. package/dist/api/tasksApi.js.map +1 -1
  95. package/dist/api/transactionalEmailsApi.d.ts +1 -10
  96. package/dist/api/transactionalEmailsApi.js +90 -157
  97. package/dist/api/transactionalEmailsApi.js.map +1 -1
  98. package/dist/api/transactionalSMSApi.d.ts +1 -8
  99. package/dist/api/transactionalSMSApi.js +18 -73
  100. package/dist/api/transactionalSMSApi.js.map +1 -1
  101. package/dist/api/transactionalWhatsAppApi.d.ts +1 -0
  102. package/dist/api/transactionalWhatsAppApi.js +10 -10
  103. package/dist/api/transactionalWhatsAppApi.js.map +1 -1
  104. package/dist/api/userApi.d.ts +1 -0
  105. package/dist/api/userApi.js +26 -26
  106. package/dist/api/userApi.js.map +1 -1
  107. package/dist/api/webhooksApi.d.ts +1 -0
  108. package/dist/api/webhooksApi.js +26 -26
  109. package/dist/api/webhooksApi.js.map +1 -1
  110. package/dist/api/whatsAppCampaignsApi.d.ts +1 -0
  111. package/dist/api/whatsAppCampaignsApi.js +38 -38
  112. package/dist/api/whatsAppCampaignsApi.js.map +1 -1
  113. package/dist/model/abTestCampaignResult.js +1 -1
  114. package/dist/model/abTestCampaignResult.js.map +1 -1
  115. package/dist/model/addContactToList.d.ts +0 -1
  116. package/dist/model/addContactToList.js +0 -5
  117. package/dist/model/addContactToList.js.map +1 -1
  118. package/dist/model/cart.js +1 -1
  119. package/dist/model/cart.js.map +1 -1
  120. package/dist/model/companiesIdPatchRequest.d.ts +0 -2
  121. package/dist/model/companiesIdPatchRequest.js +0 -10
  122. package/dist/model/companiesIdPatchRequest.js.map +1 -1
  123. package/dist/model/conversationsMessage.d.ts +0 -20
  124. package/dist/model/conversationsMessage.js +1 -76
  125. package/dist/model/conversationsMessage.js.map +1 -1
  126. package/dist/model/conversionSourceMetrics.d.ts +2 -5
  127. package/dist/model/conversionSourceMetrics.js +2 -5
  128. package/dist/model/conversionSourceMetrics.js.map +1 -1
  129. package/dist/model/createAttribute.d.ts +1 -3
  130. package/dist/model/createAttribute.js +1 -7
  131. package/dist/model/createAttribute.js.map +1 -1
  132. package/dist/model/createChild.js +1 -1
  133. package/dist/model/createChild.js.map +1 -1
  134. package/dist/model/createContact.d.ts +1 -3
  135. package/dist/model/createContact.js +1 -1
  136. package/dist/model/createContact.js.map +1 -1
  137. package/dist/model/createDoiContact.d.ts +1 -3
  138. package/dist/model/createDoiContact.js +1 -1
  139. package/dist/model/createDoiContact.js.map +1 -1
  140. package/dist/model/createEmailCampaign.d.ts +0 -2
  141. package/dist/model/createEmailCampaign.js +1 -6
  142. package/dist/model/createEmailCampaign.js.map +1 -1
  143. package/dist/model/createEmailCampaignRecipients.d.ts +0 -1
  144. package/dist/model/createEmailCampaignRecipients.js +0 -5
  145. package/dist/model/createEmailCampaignRecipients.js.map +1 -1
  146. package/dist/model/createExternalFeed.js +1 -1
  147. package/dist/model/createExternalFeed.js.map +1 -1
  148. package/dist/model/createSmsCampaign.js.map +1 -1
  149. package/dist/model/createSubAccount.js +1 -1
  150. package/dist/model/createSubAccount.js.map +1 -1
  151. package/dist/model/createUpdateCategory.js.map +1 -1
  152. package/dist/model/createUpdateProduct.js.map +1 -1
  153. package/dist/model/createWebhook.d.ts +0 -5
  154. package/dist/model/createWebhook.js +1 -12
  155. package/dist/model/createWebhook.js.map +1 -1
  156. package/dist/model/createWhatsAppTemplate.js +1 -1
  157. package/dist/model/createWhatsAppTemplate.js.map +1 -1
  158. package/dist/model/crmDealsIdPatchRequest.d.ts +0 -2
  159. package/dist/model/crmDealsIdPatchRequest.js +0 -10
  160. package/dist/model/crmDealsIdPatchRequest.js.map +1 -1
  161. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.d.ts +2 -5
  162. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js +2 -5
  163. package/dist/model/ecommerceAttributionMetricsConversionSourceConversionSourceIdGet200Response.js.map +1 -1
  164. package/dist/model/emailExportRecipients.js +1 -1
  165. package/dist/model/emailExportRecipients.js.map +1 -1
  166. package/dist/model/errorModel.d.ts +1 -0
  167. package/dist/model/errorModel.js +2 -1
  168. package/dist/model/errorModel.js.map +1 -1
  169. package/dist/model/exportWebhooksHistory.js +1 -1
  170. package/dist/model/exportWebhooksHistory.js.map +1 -1
  171. package/dist/model/getAccountAllOfPlan.d.ts +3 -1
  172. package/dist/model/getAccountAllOfPlan.js +7 -1
  173. package/dist/model/getAccountAllOfPlan.js.map +1 -1
  174. package/dist/model/getAllExternalFeedsFeedsInner.js +1 -1
  175. package/dist/model/getAllExternalFeedsFeedsInner.js.map +1 -1
  176. package/dist/model/getAttributesAttributesInner.d.ts +1 -4
  177. package/dist/model/getAttributesAttributesInner.js +1 -8
  178. package/dist/model/getAttributesAttributesInner.js.map +1 -1
  179. package/dist/model/getCampaignOverview.js +1 -1
  180. package/dist/model/getCampaignOverview.js.map +1 -1
  181. package/dist/model/getCampaignStats.d.ts +0 -2
  182. package/dist/model/getCampaignStats.js +0 -10
  183. package/dist/model/getCampaignStats.js.map +1 -1
  184. package/dist/model/getContactCampaignStats.d.ts +6 -6
  185. package/dist/model/getContactCampaignStats.js +5 -5
  186. package/dist/model/getContactCampaignStats.js.map +1 -1
  187. package/dist/model/getContactCampaignStatsClickedInner.d.ts +2 -2
  188. package/dist/model/getContactCampaignStatsClickedInner.js +1 -1
  189. package/dist/model/getContactCampaignStatsUnsubscriptions.d.ts +4 -4
  190. package/dist/model/getContactCampaignStatsUnsubscriptions.js +2 -2
  191. package/dist/model/getContactCampaignStatsUnsubscriptions.js.map +1 -1
  192. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.d.ts +0 -5
  193. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js +0 -25
  194. package/dist/model/getCorporateInvitedUsersListUsersInnerFeatureAccess.js.map +1 -1
  195. package/dist/model/getCorporateUserPermissionFeatureAccess.d.ts +0 -5
  196. package/dist/model/getCorporateUserPermissionFeatureAccess.js +0 -25
  197. package/dist/model/getCorporateUserPermissionFeatureAccess.js.map +1 -1
  198. package/dist/model/getEmailCampaign.d.ts +4 -2
  199. package/dist/model/getEmailCampaign.js +3 -3
  200. package/dist/model/getEmailCampaign.js.map +1 -1
  201. package/dist/model/getEmailCampaignsCampaignsInner.js +1 -1
  202. package/dist/model/getEmailCampaignsCampaignsInner.js.map +1 -1
  203. package/dist/model/getEmailEventReportEventsInner.js +1 -1
  204. package/dist/model/getEmailEventReportEventsInner.js.map +1 -1
  205. package/dist/model/getExtendedCampaignOverview.js +1 -1
  206. package/dist/model/getExtendedCampaignOverview.js.map +1 -1
  207. package/dist/model/getExtendedCampaignStats.js.map +1 -1
  208. package/dist/model/getExternalFeedByUUID.js +1 -1
  209. package/dist/model/getExternalFeedByUUID.js.map +1 -1
  210. package/dist/model/getInboundEmailEventsByUuidLogsInner.js +1 -1
  211. package/dist/model/getInboundEmailEventsByUuidLogsInner.js.map +1 -1
  212. package/dist/model/getOrdersOrdersInner.d.ts +1 -6
  213. package/dist/model/getOrdersOrdersInner.js +5 -15
  214. package/dist/model/getOrdersOrdersInner.js.map +1 -1
  215. package/dist/model/getPaymentRequest.js +1 -1
  216. package/dist/model/getPaymentRequest.js.map +1 -1
  217. package/dist/model/getProcess.js +1 -1
  218. package/dist/model/getProcess.js.map +1 -1
  219. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js +1 -1
  220. package/dist/model/getScheduledEmailByBatchIdBatchesInner.js.map +1 -1
  221. package/dist/model/getScheduledEmailByMessageId.js +1 -1
  222. package/dist/model/getScheduledEmailByMessageId.js.map +1 -1
  223. package/dist/model/getSegments.d.ts +2 -2
  224. package/dist/model/getSegments.js +1 -1
  225. package/dist/model/getSegments.js.map +1 -1
  226. package/dist/model/getSmsCampaign.d.ts +4 -2
  227. package/dist/model/getSmsCampaign.js +3 -3
  228. package/dist/model/getSmsCampaign.js.map +1 -1
  229. package/dist/model/getSmsCampaignOverview.js +1 -1
  230. package/dist/model/getSmsCampaignOverview.js.map +1 -1
  231. package/dist/model/getSmsCampaignsCampaignsInner.js +1 -1
  232. package/dist/model/getSmsCampaignsCampaignsInner.js.map +1 -1
  233. package/dist/model/getSmsEventReportEventsInner.js +1 -1
  234. package/dist/model/getSmsEventReportEventsInner.js.map +1 -1
  235. package/dist/model/getTransacBlockedContactsContactsInnerReason.js +1 -1
  236. package/dist/model/getTransacBlockedContactsContactsInnerReason.js.map +1 -1
  237. package/dist/model/getWebhook.js +1 -1
  238. package/dist/model/getWebhook.js.map +1 -1
  239. package/dist/model/getWhatsAppConfig.js +1 -1
  240. package/dist/model/getWhatsAppConfig.js.map +1 -1
  241. package/dist/model/getWhatsappCampaignOverview.js +1 -1
  242. package/dist/model/getWhatsappCampaignOverview.js.map +1 -1
  243. package/dist/model/getWhatsappCampaignsCampaignsInner.js +1 -1
  244. package/dist/model/getWhatsappCampaignsCampaignsInner.js.map +1 -1
  245. package/dist/model/getWhatsappEventReportEventsInner.js +1 -1
  246. package/dist/model/getWhatsappEventReportEventsInner.js.map +1 -1
  247. package/dist/model/inviteAdminUserPrivilegesInner.d.ts +2 -11
  248. package/dist/model/inviteAdminUserPrivilegesInner.js +1 -10
  249. package/dist/model/inviteAdminUserPrivilegesInner.js.map +1 -1
  250. package/dist/model/inviteuserPrivilegesInner.d.ts +3 -5
  251. package/dist/model/inviteuserPrivilegesInner.js +4 -6
  252. package/dist/model/inviteuserPrivilegesInner.js.map +1 -1
  253. package/dist/model/masterDetailsResponsePlanInfo.js +1 -1
  254. package/dist/model/masterDetailsResponsePlanInfo.js.map +1 -1
  255. package/dist/model/models.d.ts +33 -117
  256. package/dist/model/models.js +75 -412
  257. package/dist/model/models.js.map +1 -1
  258. package/dist/model/notification.js +1 -1
  259. package/dist/model/notification.js.map +1 -1
  260. package/dist/model/order.d.ts +1 -6
  261. package/dist/model/order.js +5 -15
  262. package/dist/model/order.js.map +1 -1
  263. package/dist/model/orderBatch.js.map +1 -1
  264. package/dist/model/removeContactFromList.d.ts +0 -1
  265. package/dist/model/removeContactFromList.js +0 -5
  266. package/dist/model/removeContactFromList.js.map +1 -1
  267. package/dist/model/requestContactExport.d.ts +0 -4
  268. package/dist/model/requestContactExport.js +0 -24
  269. package/dist/model/requestContactExport.js.map +1 -1
  270. package/dist/model/requestContactExportCustomContactFilter.d.ts +0 -1
  271. package/dist/model/requestContactExportCustomContactFilter.js +1 -6
  272. package/dist/model/requestContactExportCustomContactFilter.js.map +1 -1
  273. package/dist/model/requestContactImport.js.map +1 -1
  274. package/dist/model/requestSmsRecipientExport.js +1 -1
  275. package/dist/model/requestSmsRecipientExport.js.map +1 -1
  276. package/dist/model/sendReport.js +1 -1
  277. package/dist/model/sendReport.js.map +1 -1
  278. package/dist/model/sendTransacSms.d.ts +1 -2
  279. package/dist/model/sendTransacSms.js +2 -2
  280. package/dist/model/sendTransacSms.js.map +1 -1
  281. package/dist/model/ssoTokenRequest.js +1 -1
  282. package/dist/model/ssoTokenRequest.js.map +1 -1
  283. package/dist/model/subAccountDetailsResponsePlanInfoCredits.d.ts +0 -4
  284. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js +0 -10
  285. package/dist/model/subAccountDetailsResponsePlanInfoCredits.js.map +1 -1
  286. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.d.ts +0 -2
  287. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js +0 -5
  288. package/dist/model/subAccountDetailsResponsePlanInfoFeatures.js.map +1 -1
  289. package/dist/model/subAccountUpdatePlanRequestCredits.d.ts +0 -2
  290. package/dist/model/subAccountUpdatePlanRequestCredits.js +0 -10
  291. package/dist/model/subAccountUpdatePlanRequestCredits.js.map +1 -1
  292. package/dist/model/subAccountUpdatePlanRequestFeatures.d.ts +0 -1
  293. package/dist/model/subAccountUpdatePlanRequestFeatures.js +0 -5
  294. package/dist/model/subAccountUpdatePlanRequestFeatures.js.map +1 -1
  295. package/dist/model/taskReminder.js +1 -1
  296. package/dist/model/taskReminder.js.map +1 -1
  297. package/dist/model/updateAttribute.d.ts +0 -1
  298. package/dist/model/updateAttribute.js +0 -5
  299. package/dist/model/updateAttribute.js.map +1 -1
  300. package/dist/model/updateCampaignStatus.js +1 -1
  301. package/dist/model/updateCampaignStatus.js.map +1 -1
  302. package/dist/model/updateContact.d.ts +1 -3
  303. package/dist/model/updateContact.js +1 -1
  304. package/dist/model/updateContact.js.map +1 -1
  305. package/dist/model/updateEmailCampaign.d.ts +0 -2
  306. package/dist/model/updateEmailCampaign.js +1 -6
  307. package/dist/model/updateEmailCampaign.js.map +1 -1
  308. package/dist/model/updateEmailCampaignRecipients.d.ts +0 -1
  309. package/dist/model/updateEmailCampaignRecipients.js +0 -5
  310. package/dist/model/updateEmailCampaignRecipients.js.map +1 -1
  311. package/dist/model/updateExternalFeed.js +1 -1
  312. package/dist/model/updateExternalFeed.js.map +1 -1
  313. package/dist/model/updateSmsCampaign.js.map +1 -1
  314. package/dist/model/updateWebhook.js +1 -1
  315. package/dist/model/updateWebhook.js.map +1 -1
  316. package/dist/model/updateWhatsAppCampaign.js +1 -1
  317. package/dist/model/updateWhatsAppCampaign.js.map +1 -1
  318. package/dist/requestCompat.d.ts +29 -0
  319. package/dist/requestCompat.js +110 -0
  320. package/dist/requestCompat.js.map +1 -0
  321. package/model/models.ts +8 -8
  322. package/package.json +2 -3
  323. package/requestCompat.ts +138 -0
  324. package/tsconfig.json +0 -1
  325. package/dist/api/balanceApi.d.ts +0 -187
  326. package/dist/api/balanceApi.js +0 -1434
  327. package/dist/api/balanceApi.js.map +0 -1
  328. package/dist/api/programApi.d.ts +0 -125
  329. package/dist/api/programApi.js +0 -847
  330. package/dist/api/programApi.js.map +0 -1
  331. package/dist/api/rewardApi.d.ts +0 -119
  332. package/dist/api/rewardApi.js +0 -814
  333. package/dist/api/rewardApi.js.map +0 -1
  334. package/dist/api/tierApi.d.ts +0 -116
  335. package/dist/api/tierApi.js +0 -801
  336. package/dist/api/tierApi.js.map +0 -1
  337. package/dist/base.d.ts +0 -66
  338. package/dist/base.js +0 -65
  339. package/dist/base.js.map +0 -1
  340. package/dist/common.d.ts +0 -65
  341. package/dist/common.js +0 -161
  342. package/dist/common.js.map +0 -1
  343. package/dist/configuration.d.ts +0 -91
  344. package/dist/configuration.js +0 -44
  345. package/dist/configuration.js.map +0 -1
  346. package/dist/index.d.ts +0 -13
  347. package/dist/index.js +0 -31
  348. package/dist/index.js.map +0 -1
  349. package/dist/model/addSubscriptionMemberPayload.d.ts +0 -16
  350. package/dist/model/addSubscriptionMemberPayload.js +0 -28
  351. package/dist/model/addSubscriptionMemberPayload.js.map +0 -1
  352. package/dist/model/aggregateBalance.d.ts +0 -15
  353. package/dist/model/aggregateBalance.js +0 -23
  354. package/dist/model/aggregateBalance.js.map +0 -1
  355. package/dist/model/balance.d.ts +0 -22
  356. package/dist/model/balance.js +0 -58
  357. package/dist/model/balance.js.map +0 -1
  358. package/dist/model/balanceDataPerContact.d.ts +0 -17
  359. package/dist/model/balanceDataPerContact.js +0 -33
  360. package/dist/model/balanceDataPerContact.js.map +0 -1
  361. package/dist/model/balanceDefinition.d.ts +0 -42
  362. package/dist/model/balanceDefinition.js +0 -121
  363. package/dist/model/balanceDefinition.js.map +0 -1
  364. package/dist/model/balanceDefinitionPage.d.ts +0 -15
  365. package/dist/model/balanceDefinitionPage.js +0 -18
  366. package/dist/model/balanceDefinitionPage.js.map +0 -1
  367. package/dist/model/balanceLimit.d.ts +0 -23
  368. package/dist/model/balanceLimit.js +0 -63
  369. package/dist/model/balanceLimit.js.map +0 -1
  370. package/dist/model/balanceOrder.d.ts +0 -27
  371. package/dist/model/balanceOrder.js +0 -73
  372. package/dist/model/balanceOrder.js.map +0 -1
  373. package/dist/model/companiesImportPost200Response.d.ts +0 -14
  374. package/dist/model/companiesImportPost200Response.js +0 -18
  375. package/dist/model/companiesImportPost200Response.js.map +0 -1
  376. package/dist/model/companiesImportPost400Response.d.ts +0 -14
  377. package/dist/model/companiesImportPost400Response.js +0 -18
  378. package/dist/model/companiesImportPost400Response.js.map +0 -1
  379. package/dist/model/contactBalancesResp.d.ts +0 -18
  380. package/dist/model/contactBalancesResp.js +0 -33
  381. package/dist/model/contactBalancesResp.js.map +0 -1
  382. package/dist/model/contactErrorModel.d.ts +0 -27
  383. package/dist/model/contactErrorModel.js +0 -40
  384. package/dist/model/contactErrorModel.js.map +0 -1
  385. package/dist/model/conversationsMessageAttachmentsInner.d.ts +0 -19
  386. package/dist/model/conversationsMessageAttachmentsInner.js +0 -43
  387. package/dist/model/conversationsMessageAttachmentsInner.js.map +0 -1
  388. package/dist/model/conversationsMessageForwardedToSourceStatus.d.ts +0 -15
  389. package/dist/model/conversationsMessageForwardedToSourceStatus.js +0 -23
  390. package/dist/model/conversationsMessageForwardedToSourceStatus.js.map +0 -1
  391. package/dist/model/conversationsMessageFrom.d.ts +0 -15
  392. package/dist/model/conversationsMessageFrom.js +0 -23
  393. package/dist/model/conversationsMessageFrom.js.map +0 -1
  394. package/dist/model/conversationsMessageReplyTo.d.ts +0 -15
  395. package/dist/model/conversationsMessageReplyTo.js +0 -23
  396. package/dist/model/conversationsMessageReplyTo.js.map +0 -1
  397. package/dist/model/conversationsMessageToInner.d.ts +0 -15
  398. package/dist/model/conversationsMessageToInner.js +0 -23
  399. package/dist/model/conversationsMessageToInner.js.map +0 -1
  400. package/dist/model/corporateUserEmailPermissionsPutRequest.d.ts +0 -16
  401. package/dist/model/corporateUserEmailPermissionsPutRequest.js +0 -23
  402. package/dist/model/corporateUserEmailPermissionsPutRequest.js.map +0 -1
  403. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.d.ts +0 -38
  404. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js +0 -48
  405. package/dist/model/corporateUserEmailPermissionsPutRequestPrivilegesInner.js.map +0 -1
  406. package/dist/model/createBalanceDefinitionPayload.d.ts +0 -75
  407. package/dist/model/createBalanceDefinitionPayload.js +0 -145
  408. package/dist/model/createBalanceDefinitionPayload.js.map +0 -1
  409. package/dist/model/createBalanceLimitPayload.d.ts +0 -35
  410. package/dist/model/createBalanceLimitPayload.js +0 -62
  411. package/dist/model/createBalanceLimitPayload.js.map +0 -1
  412. package/dist/model/createBalancePayload.d.ts +0 -14
  413. package/dist/model/createBalancePayload.js +0 -18
  414. package/dist/model/createBalancePayload.js.map +0 -1
  415. package/dist/model/createEmailCampaignEmailExpirationDate.d.ts +0 -22
  416. package/dist/model/createEmailCampaignEmailExpirationDate.js +0 -31
  417. package/dist/model/createEmailCampaignEmailExpirationDate.js.map +0 -1
  418. package/dist/model/createLoyaltyProgramPayload.d.ts +0 -19
  419. package/dist/model/createLoyaltyProgramPayload.js +0 -33
  420. package/dist/model/createLoyaltyProgramPayload.js.map +0 -1
  421. package/dist/model/createOrderPayload.d.ts +0 -22
  422. package/dist/model/createOrderPayload.js +0 -48
  423. package/dist/model/createOrderPayload.js.map +0 -1
  424. package/dist/model/createSubscriptionPayload.d.ts +0 -16
  425. package/dist/model/createSubscriptionPayload.js +0 -28
  426. package/dist/model/createSubscriptionPayload.js.map +0 -1
  427. package/dist/model/createSubscriptionResponse.d.ts +0 -20
  428. package/dist/model/createSubscriptionResponse.js +0 -48
  429. package/dist/model/createSubscriptionResponse.js.map +0 -1
  430. package/dist/model/createTierGroupRequest.d.ts +0 -29
  431. package/dist/model/createTierGroupRequest.js +0 -51
  432. package/dist/model/createTierGroupRequest.js.map +0 -1
  433. package/dist/model/createTransactionPayload.d.ts +0 -24
  434. package/dist/model/createTransactionPayload.js +0 -58
  435. package/dist/model/createTransactionPayload.js.map +0 -1
  436. package/dist/model/crmAttributesPost200Response.d.ts +0 -14
  437. package/dist/model/crmAttributesPost200Response.js +0 -18
  438. package/dist/model/crmAttributesPost200Response.js.map +0 -1
  439. package/dist/model/crmAttributesPostRequest.d.ts +0 -33
  440. package/dist/model/crmAttributesPostRequest.js +0 -55
  441. package/dist/model/crmAttributesPostRequest.js.map +0 -1
  442. package/dist/model/errorResponse.d.ts +0 -14
  443. package/dist/model/errorResponse.js +0 -18
  444. package/dist/model/errorResponse.js.map +0 -1
  445. package/dist/model/fetchTemplatePreview.d.ts +0 -16
  446. package/dist/model/fetchTemplatePreview.js +0 -28
  447. package/dist/model/fetchTemplatePreview.js.map +0 -1
  448. package/dist/model/getSegment.d.ts +0 -17
  449. package/dist/model/getSegment.js +0 -33
  450. package/dist/model/getSegment.js.map +0 -1
  451. package/dist/model/loyaltyProgram.d.ts +0 -33
  452. package/dist/model/loyaltyProgram.js +0 -80
  453. package/dist/model/loyaltyProgram.js.map +0 -1
  454. package/dist/model/loyaltyProgramPage.d.ts +0 -15
  455. package/dist/model/loyaltyProgramPage.js +0 -18
  456. package/dist/model/loyaltyProgramPage.js.map +0 -1
  457. package/dist/model/loyaltyProgramValidationError.d.ts +0 -16
  458. package/dist/model/loyaltyProgramValidationError.js +0 -28
  459. package/dist/model/loyaltyProgramValidationError.js.map +0 -1
  460. package/dist/model/loyaltyTierPage.d.ts +0 -15
  461. package/dist/model/loyaltyTierPage.js +0 -18
  462. package/dist/model/loyaltyTierPage.js.map +0 -1
  463. package/dist/model/mainAttributeRewardPayload.d.ts +0 -22
  464. package/dist/model/mainAttributeRewardPayload.js +0 -48
  465. package/dist/model/mainAttributeRewardPayload.js.map +0 -1
  466. package/dist/model/mainBillingPayload.d.ts +0 -20
  467. package/dist/model/mainBillingPayload.js +0 -48
  468. package/dist/model/mainBillingPayload.js.map +0 -1
  469. package/dist/model/mainCodeCountHttpResponse.d.ts +0 -14
  470. package/dist/model/mainCodeCountHttpResponse.js +0 -18
  471. package/dist/model/mainCodeCountHttpResponse.js.map +0 -1
  472. package/dist/model/mainCreateRedeemPayload.d.ts +0 -24
  473. package/dist/model/mainCreateRedeemPayload.js +0 -53
  474. package/dist/model/mainCreateRedeemPayload.js.map +0 -1
  475. package/dist/model/mainCreateRewardPayload.d.ts +0 -17
  476. package/dist/model/mainCreateRewardPayload.js +0 -33
  477. package/dist/model/mainCreateRewardPayload.js.map +0 -1
  478. package/dist/model/mainCreateRewardResponse.d.ts +0 -21
  479. package/dist/model/mainCreateRewardResponse.js +0 -53
  480. package/dist/model/mainCreateRewardResponse.js.map +0 -1
  481. package/dist/model/mainErrorResponse.d.ts +0 -14
  482. package/dist/model/mainErrorResponse.js +0 -18
  483. package/dist/model/mainErrorResponse.js.map +0 -1
  484. package/dist/model/mainFilter.d.ts +0 -15
  485. package/dist/model/mainFilter.js +0 -23
  486. package/dist/model/mainFilter.js.map +0 -1
  487. package/dist/model/mainGenerator.d.ts +0 -19
  488. package/dist/model/mainGenerator.js +0 -43
  489. package/dist/model/mainGenerator.js.map +0 -1
  490. package/dist/model/mainGetContactRewardsPayload.d.ts +0 -31
  491. package/dist/model/mainGetContactRewardsPayload.js +0 -60
  492. package/dist/model/mainGetContactRewardsPayload.js.map +0 -1
  493. package/dist/model/mainIdentifiersPayload.d.ts +0 -15
  494. package/dist/model/mainIdentifiersPayload.js +0 -23
  495. package/dist/model/mainIdentifiersPayload.js.map +0 -1
  496. package/dist/model/mainLimit.d.ts +0 -21
  497. package/dist/model/mainLimit.js +0 -53
  498. package/dist/model/mainLimit.js.map +0 -1
  499. package/dist/model/mainModelContactReward.d.ts +0 -25
  500. package/dist/model/mainModelContactReward.js +0 -63
  501. package/dist/model/mainModelContactReward.js.map +0 -1
  502. package/dist/model/mainModelContactRewardsResp.d.ts +0 -19
  503. package/dist/model/mainModelContactRewardsResp.js +0 -38
  504. package/dist/model/mainModelContactRewardsResp.js.map +0 -1
  505. package/dist/model/mainNodeResponse.d.ts +0 -21
  506. package/dist/model/mainNodeResponse.js +0 -53
  507. package/dist/model/mainNodeResponse.js.map +0 -1
  508. package/dist/model/mainOrderPayload.d.ts +0 -28
  509. package/dist/model/mainOrderPayload.js +0 -73
  510. package/dist/model/mainOrderPayload.js.map +0 -1
  511. package/dist/model/mainProduct.d.ts +0 -17
  512. package/dist/model/mainProduct.js +0 -33
  513. package/dist/model/mainProduct.js.map +0 -1
  514. package/dist/model/mainProductPayload.d.ts +0 -18
  515. package/dist/model/mainProductPayload.js +0 -38
  516. package/dist/model/mainProductPayload.js.map +0 -1
  517. package/dist/model/mainRedeem.d.ts +0 -29
  518. package/dist/model/mainRedeem.js +0 -83
  519. package/dist/model/mainRedeem.js.map +0 -1
  520. package/dist/model/mainResultParameterResponse.d.ts +0 -16
  521. package/dist/model/mainResultParameterResponse.js +0 -23
  522. package/dist/model/mainResultParameterResponse.js.map +0 -1
  523. package/dist/model/mainReward.d.ts +0 -67
  524. package/dist/model/mainReward.js +0 -224
  525. package/dist/model/mainReward.js.map +0 -1
  526. package/dist/model/mainRewardAttribution.d.ts +0 -26
  527. package/dist/model/mainRewardAttribution.js +0 -68
  528. package/dist/model/mainRewardAttribution.js.map +0 -1
  529. package/dist/model/mainRewardConfigurations.d.ts +0 -16
  530. package/dist/model/mainRewardConfigurations.js +0 -28
  531. package/dist/model/mainRewardConfigurations.js.map +0 -1
  532. package/dist/model/mainRewardPage.d.ts +0 -16
  533. package/dist/model/mainRewardPage.js +0 -23
  534. package/dist/model/mainRewardPage.js.map +0 -1
  535. package/dist/model/mainRewardPageObj.d.ts +0 -22
  536. package/dist/model/mainRewardPageObj.js +0 -58
  537. package/dist/model/mainRewardPageObj.js.map +0 -1
  538. package/dist/model/mainRewardValidate.d.ts +0 -14
  539. package/dist/model/mainRewardValidate.js +0 -18
  540. package/dist/model/mainRewardValidate.js.map +0 -1
  541. package/dist/model/mainRule.d.ts +0 -31
  542. package/dist/model/mainRule.js +0 -78
  543. package/dist/model/mainRule.js.map +0 -1
  544. package/dist/model/mainRuleConditionResponse.d.ts +0 -19
  545. package/dist/model/mainRuleConditionResponse.js +0 -38
  546. package/dist/model/mainRuleConditionResponse.js.map +0 -1
  547. package/dist/model/mainRuleEventResponse.d.ts +0 -15
  548. package/dist/model/mainRuleEventResponse.js +0 -23
  549. package/dist/model/mainRuleEventResponse.js.map +0 -1
  550. package/dist/model/mainRuleResultResponse.d.ts +0 -17
  551. package/dist/model/mainRuleResultResponse.js +0 -28
  552. package/dist/model/mainRuleResultResponse.js.map +0 -1
  553. package/dist/model/mainValidateRewardPayload.d.ts +0 -19
  554. package/dist/model/mainValidateRewardPayload.js +0 -43
  555. package/dist/model/mainValidateRewardPayload.js.map +0 -1
  556. package/dist/model/mainValueResponse.d.ts +0 -22
  557. package/dist/model/mainValueResponse.js +0 -53
  558. package/dist/model/mainValueResponse.js.map +0 -1
  559. package/dist/model/mainVoucherRevokePayload.d.ts +0 -14
  560. package/dist/model/mainVoucherRevokePayload.js +0 -18
  561. package/dist/model/mainVoucherRevokePayload.js.map +0 -1
  562. package/dist/model/memberContact.d.ts +0 -16
  563. package/dist/model/memberContact.js +0 -28
  564. package/dist/model/memberContact.js.map +0 -1
  565. package/dist/model/modelSubscriptionBalanceResp.d.ts +0 -15
  566. package/dist/model/modelSubscriptionBalanceResp.js +0 -18
  567. package/dist/model/modelSubscriptionBalanceResp.js.map +0 -1
  568. package/dist/model/orderIdentifiers.d.ts +0 -17
  569. package/dist/model/orderIdentifiers.js +0 -33
  570. package/dist/model/orderIdentifiers.js.map +0 -1
  571. package/dist/model/patchLoyaltyProgramPayload.d.ts +0 -16
  572. package/dist/model/patchLoyaltyProgramPayload.js +0 -28
  573. package/dist/model/patchLoyaltyProgramPayload.js.map +0 -1
  574. package/dist/model/sendTransacSmsTag.d.ts +0 -14
  575. package/dist/model/sendTransacSmsTag.js +0 -18
  576. package/dist/model/sendTransacSmsTag.js.map +0 -1
  577. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.d.ts +0 -15
  578. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js +0 -23
  579. package/dist/model/subAccountDetailsResponsePlanInfoCreditsExternalFeeds.js.map +0 -1
  580. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.d.ts +0 -15
  581. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js +0 -23
  582. package/dist/model/subAccountDetailsResponsePlanInfoCreditsWhatsapp.js.map +0 -1
  583. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.d.ts +0 -15
  584. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js +0 -23
  585. package/dist/model/subAccountDetailsResponsePlanInfoFeaturesSalesUsers.js.map +0 -1
  586. package/dist/model/subAccountsUpdatePlanRequest.d.ts +0 -18
  587. package/dist/model/subAccountsUpdatePlanRequest.js +0 -28
  588. package/dist/model/subAccountsUpdatePlanRequest.js.map +0 -1
  589. package/dist/model/subAccountsUpdatePlanRequestCredits.d.ts +0 -18
  590. package/dist/model/subAccountsUpdatePlanRequestCredits.js +0 -38
  591. package/dist/model/subAccountsUpdatePlanRequestCredits.js.map +0 -1
  592. package/dist/model/subAccountsUpdatePlanRequestFeatures.d.ts +0 -16
  593. package/dist/model/subAccountsUpdatePlanRequestFeatures.js +0 -28
  594. package/dist/model/subAccountsUpdatePlanRequestFeatures.js.map +0 -1
  595. package/dist/model/subscription.d.ts +0 -20
  596. package/dist/model/subscription.js +0 -48
  597. package/dist/model/subscription.js.map +0 -1
  598. package/dist/model/subscriptionAggregateBalance.d.ts +0 -15
  599. package/dist/model/subscriptionAggregateBalance.js +0 -23
  600. package/dist/model/subscriptionAggregateBalance.js.map +0 -1
  601. package/dist/model/subscriptionAttributedReward.d.ts +0 -24
  602. package/dist/model/subscriptionAttributedReward.js +0 -58
  603. package/dist/model/subscriptionAttributedReward.js.map +0 -1
  604. package/dist/model/subscriptionBalances.d.ts +0 -17
  605. package/dist/model/subscriptionBalances.js +0 -28
  606. package/dist/model/subscriptionBalances.js.map +0 -1
  607. package/dist/model/subscriptionHandlerInfo.d.ts +0 -21
  608. package/dist/model/subscriptionHandlerInfo.js +0 -33
  609. package/dist/model/subscriptionHandlerInfo.js.map +0 -1
  610. package/dist/model/subscriptionMember.d.ts +0 -18
  611. package/dist/model/subscriptionMember.js +0 -38
  612. package/dist/model/subscriptionMember.js.map +0 -1
  613. package/dist/model/subscriptionTier.d.ts +0 -22
  614. package/dist/model/subscriptionTier.js +0 -48
  615. package/dist/model/subscriptionTier.js.map +0 -1
  616. package/dist/model/templatePreview.d.ts +0 -19
  617. package/dist/model/templatePreview.js +0 -43
  618. package/dist/model/templatePreview.js.map +0 -1
  619. package/dist/model/tier.d.ts +0 -24
  620. package/dist/model/tier.js +0 -58
  621. package/dist/model/tier.js.map +0 -1
  622. package/dist/model/tierAccessConditionsInner.d.ts +0 -17
  623. package/dist/model/tierAccessConditionsInner.js +0 -33
  624. package/dist/model/tierAccessConditionsInner.js.map +0 -1
  625. package/dist/model/tierForContact.d.ts +0 -22
  626. package/dist/model/tierForContact.js +0 -48
  627. package/dist/model/tierForContact.js.map +0 -1
  628. package/dist/model/tierGroup.d.ts +0 -33
  629. package/dist/model/tierGroup.js +0 -71
  630. package/dist/model/tierGroup.js.map +0 -1
  631. package/dist/model/tierGroupPage.d.ts +0 -15
  632. package/dist/model/tierGroupPage.js +0 -18
  633. package/dist/model/tierGroupPage.js.map +0 -1
  634. package/dist/model/tierRequest.d.ts +0 -19
  635. package/dist/model/tierRequest.js +0 -33
  636. package/dist/model/tierRequest.js.map +0 -1
  637. package/dist/model/tierRequestAccessConditionsInner.d.ts +0 -15
  638. package/dist/model/tierRequestAccessConditionsInner.js +0 -23
  639. package/dist/model/tierRequestAccessConditionsInner.js.map +0 -1
  640. package/dist/model/tierRequestPutPayload.d.ts +0 -19
  641. package/dist/model/tierRequestPutPayload.js +0 -33
  642. package/dist/model/tierRequestPutPayload.js.map +0 -1
  643. package/dist/model/tierRequestTierRewardsInner.d.ts +0 -14
  644. package/dist/model/tierRequestTierRewardsInner.js +0 -18
  645. package/dist/model/tierRequestTierRewardsInner.js.map +0 -1
  646. package/dist/model/tierTierRewardsInner.d.ts +0 -16
  647. package/dist/model/tierTierRewardsInner.js +0 -28
  648. package/dist/model/tierTierRewardsInner.js.map +0 -1
  649. package/dist/model/transaction.d.ts +0 -30
  650. package/dist/model/transaction.js +0 -88
  651. package/dist/model/transaction.js.map +0 -1
  652. package/dist/model/transactionHistory.d.ts +0 -25
  653. package/dist/model/transactionHistory.js +0 -63
  654. package/dist/model/transactionHistory.js.map +0 -1
  655. package/dist/model/transactionHistoryResp.d.ts +0 -19
  656. package/dist/model/transactionHistoryResp.js +0 -38
  657. package/dist/model/transactionHistoryResp.js.map +0 -1
  658. package/dist/model/unauthorizedResponse.d.ts +0 -14
  659. package/dist/model/unauthorizedResponse.js +0 -18
  660. package/dist/model/unauthorizedResponse.js.map +0 -1
  661. package/dist/model/updateBalanceDefinitionPayload.d.ts +0 -77
  662. package/dist/model/updateBalanceDefinitionPayload.js +0 -145
  663. package/dist/model/updateBalanceDefinitionPayload.js.map +0 -1
  664. package/dist/model/updateBalanceLimitPayload.d.ts +0 -35
  665. package/dist/model/updateBalanceLimitPayload.js +0 -62
  666. package/dist/model/updateBalanceLimitPayload.js.map +0 -1
  667. package/dist/model/updateEmailCampaignEmailExpirationDate.d.ts +0 -22
  668. package/dist/model/updateEmailCampaignEmailExpirationDate.js +0 -31
  669. package/dist/model/updateEmailCampaignEmailExpirationDate.js.map +0 -1
  670. package/dist/model/updateLoyaltyProgramPayload.d.ts +0 -16
  671. package/dist/model/updateLoyaltyProgramPayload.js +0 -28
  672. package/dist/model/updateLoyaltyProgramPayload.js.map +0 -1
  673. package/dist/model/updateTierGroupRequest.d.ts +0 -29
  674. package/dist/model/updateTierGroupRequest.js +0 -51
  675. package/dist/model/updateTierGroupRequest.js.map +0 -1
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.MasterAccountApi = exports.MasterAccountApiApiKeys = void 0;
16
- const request_1 = __importDefault(require("request"));
16
+ const requestCompat_1 = __importDefault(require("../requestCompat"));
17
17
  const models_1 = require("../model/models");
18
18
  const models_2 = require("../model/models");
19
19
  const apis_1 = require("./apis");
@@ -22,7 +22,7 @@ var MasterAccountApiApiKeys;
22
22
  (function (MasterAccountApiApiKeys) {
23
23
  MasterAccountApiApiKeys[MasterAccountApiApiKeys["apiKey"] = 0] = "apiKey";
24
24
  MasterAccountApiApiKeys[MasterAccountApiApiKeys["partnerKey"] = 1] = "partnerKey";
25
- })(MasterAccountApiApiKeys || (exports.MasterAccountApiApiKeys = MasterAccountApiApiKeys = {}));
25
+ })(MasterAccountApiApiKeys = exports.MasterAccountApiApiKeys || (exports.MasterAccountApiApiKeys = {}));
26
26
  class MasterAccountApi {
27
27
  constructor(basePathOrUsername, password, basePath) {
28
28
  this._basePath = defaultBasePath;
@@ -69,8 +69,8 @@ class MasterAccountApi {
69
69
  addInterceptor(interceptor) {
70
70
  this.interceptors.push(interceptor);
71
71
  }
72
- corporateGroupIdDelete(id_1) {
73
- return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
72
+ corporateGroupIdDelete(id, options = { headers: {} }) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
74
  const localVarPath = this.basePath + '/corporate/group/{id}'
75
75
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
76
76
  let localVarQueryParameters = {};
@@ -92,7 +92,7 @@ class MasterAccountApi {
92
92
  method: 'DELETE',
93
93
  qs: localVarQueryParameters,
94
94
  headers: localVarHeaderParams,
95
- uri: localVarPath,
95
+ url: localVarPath,
96
96
  useQuerystring: this._useQuerystring,
97
97
  json: true,
98
98
  };
@@ -118,7 +118,7 @@ class MasterAccountApi {
118
118
  }
119
119
  }
120
120
  return new Promise((resolve, reject) => {
121
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
121
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
122
122
  if (error) {
123
123
  reject(error);
124
124
  }
@@ -135,8 +135,8 @@ class MasterAccountApi {
135
135
  });
136
136
  });
137
137
  }
138
- corporateGroupIdGet(id_1) {
139
- return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
138
+ corporateGroupIdGet(id, options = { headers: {} }) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
140
  const localVarPath = this.basePath + '/corporate/group/{id}'
141
141
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
142
142
  let localVarQueryParameters = {};
@@ -158,7 +158,7 @@ class MasterAccountApi {
158
158
  method: 'GET',
159
159
  qs: localVarQueryParameters,
160
160
  headers: localVarHeaderParams,
161
- uri: localVarPath,
161
+ url: localVarPath,
162
162
  useQuerystring: this._useQuerystring,
163
163
  json: true,
164
164
  };
@@ -184,7 +184,7 @@ class MasterAccountApi {
184
184
  }
185
185
  }
186
186
  return new Promise((resolve, reject) => {
187
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
187
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
188
188
  if (error) {
189
189
  reject(error);
190
190
  }
@@ -202,8 +202,8 @@ class MasterAccountApi {
202
202
  });
203
203
  });
204
204
  }
205
- corporateGroupIdPut(id_1, body_1) {
206
- return __awaiter(this, arguments, void 0, function* (id, body, options = { headers: {} }) {
205
+ corporateGroupIdPut(id, body, options = { headers: {} }) {
206
+ return __awaiter(this, void 0, void 0, function* () {
207
207
  const localVarPath = this.basePath + '/corporate/group/{id}'
208
208
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
209
209
  let localVarQueryParameters = {};
@@ -228,7 +228,7 @@ class MasterAccountApi {
228
228
  method: 'PUT',
229
229
  qs: localVarQueryParameters,
230
230
  headers: localVarHeaderParams,
231
- uri: localVarPath,
231
+ url: localVarPath,
232
232
  useQuerystring: this._useQuerystring,
233
233
  json: true,
234
234
  body: models_1.ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
@@ -255,7 +255,7 @@ class MasterAccountApi {
255
255
  }
256
256
  }
257
257
  return new Promise((resolve, reject) => {
258
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
258
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
259
259
  if (error) {
260
260
  reject(error);
261
261
  }
@@ -272,8 +272,8 @@ class MasterAccountApi {
272
272
  });
273
273
  });
274
274
  }
275
- corporateGroupPost(body_1) {
276
- return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
275
+ corporateGroupPost(body, options = { headers: {} }) {
276
+ return __awaiter(this, void 0, void 0, function* () {
277
277
  const localVarPath = this.basePath + '/corporate/group';
278
278
  let localVarQueryParameters = {};
279
279
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -294,7 +294,7 @@ class MasterAccountApi {
294
294
  method: 'POST',
295
295
  qs: localVarQueryParameters,
296
296
  headers: localVarHeaderParams,
297
- uri: localVarPath,
297
+ url: localVarPath,
298
298
  useQuerystring: this._useQuerystring,
299
299
  json: true,
300
300
  body: models_1.ObjectSerializer.serialize(body, "CorporateGroupPostRequest")
@@ -321,7 +321,7 @@ class MasterAccountApi {
321
321
  }
322
322
  }
323
323
  return new Promise((resolve, reject) => {
324
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
324
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
325
325
  if (error) {
326
326
  reject(error);
327
327
  }
@@ -339,8 +339,8 @@ class MasterAccountApi {
339
339
  });
340
340
  });
341
341
  }
342
- corporateGroupUnlinkGroupIdSubAccountsPut(groupId_1, body_1) {
343
- return __awaiter(this, arguments, void 0, function* (groupId, body, options = { headers: {} }) {
342
+ corporateGroupUnlinkGroupIdSubAccountsPut(groupId, body, options = { headers: {} }) {
343
+ return __awaiter(this, void 0, void 0, function* () {
344
344
  const localVarPath = this.basePath + '/corporate/group/unlink/{groupId}/subAccounts'
345
345
  .replace('{' + 'groupId' + '}', encodeURIComponent(String(groupId)));
346
346
  let localVarQueryParameters = {};
@@ -365,7 +365,7 @@ class MasterAccountApi {
365
365
  method: 'PUT',
366
366
  qs: localVarQueryParameters,
367
367
  headers: localVarHeaderParams,
368
- uri: localVarPath,
368
+ url: localVarPath,
369
369
  useQuerystring: this._useQuerystring,
370
370
  json: true,
371
371
  body: models_1.ObjectSerializer.serialize(body, "CorporateGroupUnlinkGroupIdSubAccountsPutRequest")
@@ -392,7 +392,7 @@ class MasterAccountApi {
392
392
  }
393
393
  }
394
394
  return new Promise((resolve, reject) => {
395
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
395
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
396
396
  if (error) {
397
397
  reject(error);
398
398
  }
@@ -409,70 +409,8 @@ class MasterAccountApi {
409
409
  });
410
410
  });
411
411
  }
412
- corporateIpGet() {
413
- return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
414
- const localVarPath = this.basePath + '/corporate/ip';
415
- let localVarQueryParameters = {};
416
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
417
- const produces = ['application/json'];
418
- if (produces.indexOf('application/json') >= 0) {
419
- localVarHeaderParams.Accept = 'application/json';
420
- }
421
- else {
422
- localVarHeaderParams.Accept = produces.join(',');
423
- }
424
- let localVarFormParams = {};
425
- Object.assign(localVarHeaderParams, options.headers);
426
- let localVarUseFormData = false;
427
- let localVarRequestOptions = {
428
- method: 'GET',
429
- qs: localVarQueryParameters,
430
- headers: localVarHeaderParams,
431
- uri: localVarPath,
432
- useQuerystring: this._useQuerystring,
433
- json: true,
434
- };
435
- let authenticationPromise = Promise.resolve();
436
- if (this.authentications.apiKey.apiKey) {
437
- authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
438
- }
439
- if (this.authentications.partnerKey.apiKey) {
440
- authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
441
- }
442
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
443
- let interceptorPromise = authenticationPromise;
444
- for (const interceptor of this.interceptors) {
445
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
446
- }
447
- return interceptorPromise.then(() => {
448
- if (Object.keys(localVarFormParams).length) {
449
- if (localVarUseFormData) {
450
- localVarRequestOptions.formData = localVarFormParams;
451
- }
452
- else {
453
- localVarRequestOptions.form = localVarFormParams;
454
- }
455
- }
456
- return new Promise((resolve, reject) => {
457
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
458
- if (error) {
459
- reject(error);
460
- }
461
- else {
462
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
463
- resolve({ response: response, body: body });
464
- }
465
- else {
466
- reject(new apis_1.HttpError(response, body, response.statusCode));
467
- }
468
- }
469
- });
470
- });
471
- });
472
- });
473
- }
474
- corporateMasterAccountGet() {
475
- return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
412
+ corporateMasterAccountGet(options = { headers: {} }) {
413
+ return __awaiter(this, void 0, void 0, function* () {
476
414
  const localVarPath = this.basePath + '/corporate/masterAccount';
477
415
  let localVarQueryParameters = {};
478
416
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -490,7 +428,7 @@ class MasterAccountApi {
490
428
  method: 'GET',
491
429
  qs: localVarQueryParameters,
492
430
  headers: localVarHeaderParams,
493
- uri: localVarPath,
431
+ url: localVarPath,
494
432
  useQuerystring: this._useQuerystring,
495
433
  json: true,
496
434
  };
@@ -516,7 +454,7 @@ class MasterAccountApi {
516
454
  }
517
455
  }
518
456
  return new Promise((resolve, reject) => {
519
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
457
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
520
458
  if (error) {
521
459
  reject(error);
522
460
  }
@@ -534,8 +472,8 @@ class MasterAccountApi {
534
472
  });
535
473
  });
536
474
  }
537
- corporateSsoTokenPost(ssoTokenRequestCorporate_1) {
538
- return __awaiter(this, arguments, void 0, function* (ssoTokenRequestCorporate, options = { headers: {} }) {
475
+ corporateSsoTokenPost(ssoTokenRequestCorporate, options = { headers: {} }) {
476
+ return __awaiter(this, void 0, void 0, function* () {
539
477
  const localVarPath = this.basePath + '/corporate/ssoToken';
540
478
  let localVarQueryParameters = {};
541
479
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -556,7 +494,7 @@ class MasterAccountApi {
556
494
  method: 'POST',
557
495
  qs: localVarQueryParameters,
558
496
  headers: localVarHeaderParams,
559
- uri: localVarPath,
497
+ url: localVarPath,
560
498
  useQuerystring: this._useQuerystring,
561
499
  json: true,
562
500
  body: models_1.ObjectSerializer.serialize(ssoTokenRequestCorporate, "SsoTokenRequestCorporate")
@@ -583,7 +521,7 @@ class MasterAccountApi {
583
521
  }
584
522
  }
585
523
  return new Promise((resolve, reject) => {
586
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
524
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
587
525
  if (error) {
588
526
  reject(error);
589
527
  }
@@ -601,8 +539,8 @@ class MasterAccountApi {
601
539
  });
602
540
  });
603
541
  }
604
- corporateSubAccountGet(offset_1, limit_1) {
605
- return __awaiter(this, arguments, void 0, function* (offset, limit, options = { headers: {} }) {
542
+ corporateSubAccountGet(offset, limit, options = { headers: {} }) {
543
+ return __awaiter(this, void 0, void 0, function* () {
606
544
  const localVarPath = this.basePath + '/corporate/subAccount';
607
545
  let localVarQueryParameters = {};
608
546
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -632,7 +570,7 @@ class MasterAccountApi {
632
570
  method: 'GET',
633
571
  qs: localVarQueryParameters,
634
572
  headers: localVarHeaderParams,
635
- uri: localVarPath,
573
+ url: localVarPath,
636
574
  useQuerystring: this._useQuerystring,
637
575
  json: true,
638
576
  };
@@ -658,7 +596,7 @@ class MasterAccountApi {
658
596
  }
659
597
  }
660
598
  return new Promise((resolve, reject) => {
661
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
599
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
662
600
  if (error) {
663
601
  reject(error);
664
602
  }
@@ -676,8 +614,8 @@ class MasterAccountApi {
676
614
  });
677
615
  });
678
616
  }
679
- corporateSubAccountIdApplicationsTogglePut(id_1, toggleApplications_1) {
680
- return __awaiter(this, arguments, void 0, function* (id, toggleApplications, options = { headers: {} }) {
617
+ corporateSubAccountIdApplicationsTogglePut(id, toggleApplications, options = { headers: {} }) {
618
+ return __awaiter(this, void 0, void 0, function* () {
681
619
  const localVarPath = this.basePath + '/corporate/subAccount/{id}/applications/toggle'
682
620
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
683
621
  let localVarQueryParameters = {};
@@ -702,7 +640,7 @@ class MasterAccountApi {
702
640
  method: 'PUT',
703
641
  qs: localVarQueryParameters,
704
642
  headers: localVarHeaderParams,
705
- uri: localVarPath,
643
+ url: localVarPath,
706
644
  useQuerystring: this._useQuerystring,
707
645
  json: true,
708
646
  body: models_1.ObjectSerializer.serialize(toggleApplications, "SubAccountAppsToggleRequest")
@@ -729,7 +667,7 @@ class MasterAccountApi {
729
667
  }
730
668
  }
731
669
  return new Promise((resolve, reject) => {
732
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
670
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
733
671
  if (error) {
734
672
  reject(error);
735
673
  }
@@ -746,8 +684,8 @@ class MasterAccountApi {
746
684
  });
747
685
  });
748
686
  }
749
- corporateSubAccountIdDelete(id_1) {
750
- return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
687
+ corporateSubAccountIdDelete(id, options = { headers: {} }) {
688
+ return __awaiter(this, void 0, void 0, function* () {
751
689
  const localVarPath = this.basePath + '/corporate/subAccount/{id}'
752
690
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
753
691
  let localVarQueryParameters = {};
@@ -769,7 +707,7 @@ class MasterAccountApi {
769
707
  method: 'DELETE',
770
708
  qs: localVarQueryParameters,
771
709
  headers: localVarHeaderParams,
772
- uri: localVarPath,
710
+ url: localVarPath,
773
711
  useQuerystring: this._useQuerystring,
774
712
  json: true,
775
713
  };
@@ -795,7 +733,7 @@ class MasterAccountApi {
795
733
  }
796
734
  }
797
735
  return new Promise((resolve, reject) => {
798
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
736
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
799
737
  if (error) {
800
738
  reject(error);
801
739
  }
@@ -812,8 +750,8 @@ class MasterAccountApi {
812
750
  });
813
751
  });
814
752
  }
815
- corporateSubAccountIdGet(id_1) {
816
- return __awaiter(this, arguments, void 0, function* (id, options = { headers: {} }) {
753
+ corporateSubAccountIdGet(id, options = { headers: {} }) {
754
+ return __awaiter(this, void 0, void 0, function* () {
817
755
  const localVarPath = this.basePath + '/corporate/subAccount/{id}'
818
756
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
819
757
  let localVarQueryParameters = {};
@@ -835,7 +773,7 @@ class MasterAccountApi {
835
773
  method: 'GET',
836
774
  qs: localVarQueryParameters,
837
775
  headers: localVarHeaderParams,
838
- uri: localVarPath,
776
+ url: localVarPath,
839
777
  useQuerystring: this._useQuerystring,
840
778
  json: true,
841
779
  };
@@ -861,7 +799,7 @@ class MasterAccountApi {
861
799
  }
862
800
  }
863
801
  return new Promise((resolve, reject) => {
864
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
802
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
865
803
  if (error) {
866
804
  reject(error);
867
805
  }
@@ -879,8 +817,8 @@ class MasterAccountApi {
879
817
  });
880
818
  });
881
819
  }
882
- corporateSubAccountIdPlanPut(id_1, updatePlanDetails_1) {
883
- return __awaiter(this, arguments, void 0, function* (id, updatePlanDetails, options = { headers: {} }) {
820
+ corporateSubAccountIdPlanPut(id, updatePlanDetails, options = { headers: {} }) {
821
+ return __awaiter(this, void 0, void 0, function* () {
884
822
  const localVarPath = this.basePath + '/corporate/subAccount/{id}/plan'
885
823
  .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
886
824
  let localVarQueryParameters = {};
@@ -905,7 +843,7 @@ class MasterAccountApi {
905
843
  method: 'PUT',
906
844
  qs: localVarQueryParameters,
907
845
  headers: localVarHeaderParams,
908
- uri: localVarPath,
846
+ url: localVarPath,
909
847
  useQuerystring: this._useQuerystring,
910
848
  json: true,
911
849
  body: models_1.ObjectSerializer.serialize(updatePlanDetails, "SubAccountUpdatePlanRequest")
@@ -932,7 +870,7 @@ class MasterAccountApi {
932
870
  }
933
871
  }
934
872
  return new Promise((resolve, reject) => {
935
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
873
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
936
874
  if (error) {
937
875
  reject(error);
938
876
  }
@@ -949,8 +887,8 @@ class MasterAccountApi {
949
887
  });
950
888
  });
951
889
  }
952
- corporateSubAccountIpAssociatePost(body_1) {
953
- return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
890
+ corporateSubAccountIpAssociatePost(body, options = { headers: {} }) {
891
+ return __awaiter(this, void 0, void 0, function* () {
954
892
  const localVarPath = this.basePath + '/corporate/subAccount/ip/associate';
955
893
  let localVarQueryParameters = {};
956
894
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -971,7 +909,7 @@ class MasterAccountApi {
971
909
  method: 'POST',
972
910
  qs: localVarQueryParameters,
973
911
  headers: localVarHeaderParams,
974
- uri: localVarPath,
912
+ url: localVarPath,
975
913
  useQuerystring: this._useQuerystring,
976
914
  json: true,
977
915
  body: models_1.ObjectSerializer.serialize(body, "CorporateSubAccountIpAssociatePostRequest")
@@ -998,7 +936,7 @@ class MasterAccountApi {
998
936
  }
999
937
  }
1000
938
  return new Promise((resolve, reject) => {
1001
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
939
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1002
940
  if (error) {
1003
941
  reject(error);
1004
942
  }
@@ -1016,8 +954,8 @@ class MasterAccountApi {
1016
954
  });
1017
955
  });
1018
956
  }
1019
- corporateSubAccountIpDissociatePut(body_1) {
1020
- return __awaiter(this, arguments, void 0, function* (body, options = { headers: {} }) {
957
+ corporateSubAccountIpDissociatePut(body, options = { headers: {} }) {
958
+ return __awaiter(this, void 0, void 0, function* () {
1021
959
  const localVarPath = this.basePath + '/corporate/subAccount/ip/dissociate';
1022
960
  let localVarQueryParameters = {};
1023
961
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1038,7 +976,7 @@ class MasterAccountApi {
1038
976
  method: 'PUT',
1039
977
  qs: localVarQueryParameters,
1040
978
  headers: localVarHeaderParams,
1041
- uri: localVarPath,
979
+ url: localVarPath,
1042
980
  useQuerystring: this._useQuerystring,
1043
981
  json: true,
1044
982
  body: models_1.ObjectSerializer.serialize(body, "CorporateSubAccountIpDissociatePutRequest")
@@ -1065,7 +1003,7 @@ class MasterAccountApi {
1065
1003
  }
1066
1004
  }
1067
1005
  return new Promise((resolve, reject) => {
1068
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1006
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1069
1007
  if (error) {
1070
1008
  reject(error);
1071
1009
  }
@@ -1082,8 +1020,8 @@ class MasterAccountApi {
1082
1020
  });
1083
1021
  });
1084
1022
  }
1085
- corporateSubAccountKeyPost(createApiKeyRequest_1) {
1086
- return __awaiter(this, arguments, void 0, function* (createApiKeyRequest, options = { headers: {} }) {
1023
+ corporateSubAccountKeyPost(createApiKeyRequest, options = { headers: {} }) {
1024
+ return __awaiter(this, void 0, void 0, function* () {
1087
1025
  const localVarPath = this.basePath + '/corporate/subAccount/key';
1088
1026
  let localVarQueryParameters = {};
1089
1027
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1104,7 +1042,7 @@ class MasterAccountApi {
1104
1042
  method: 'POST',
1105
1043
  qs: localVarQueryParameters,
1106
1044
  headers: localVarHeaderParams,
1107
- uri: localVarPath,
1045
+ url: localVarPath,
1108
1046
  useQuerystring: this._useQuerystring,
1109
1047
  json: true,
1110
1048
  body: models_1.ObjectSerializer.serialize(createApiKeyRequest, "CreateApiKeyRequest")
@@ -1131,7 +1069,7 @@ class MasterAccountApi {
1131
1069
  }
1132
1070
  }
1133
1071
  return new Promise((resolve, reject) => {
1134
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1072
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1135
1073
  if (error) {
1136
1074
  reject(error);
1137
1075
  }
@@ -1149,8 +1087,8 @@ class MasterAccountApi {
1149
1087
  });
1150
1088
  });
1151
1089
  }
1152
- corporateSubAccountPost(subAccountCreate_1) {
1153
- return __awaiter(this, arguments, void 0, function* (subAccountCreate, options = { headers: {} }) {
1090
+ corporateSubAccountPost(subAccountCreate, options = { headers: {} }) {
1091
+ return __awaiter(this, void 0, void 0, function* () {
1154
1092
  const localVarPath = this.basePath + '/corporate/subAccount';
1155
1093
  let localVarQueryParameters = {};
1156
1094
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1171,7 +1109,7 @@ class MasterAccountApi {
1171
1109
  method: 'POST',
1172
1110
  qs: localVarQueryParameters,
1173
1111
  headers: localVarHeaderParams,
1174
- uri: localVarPath,
1112
+ url: localVarPath,
1175
1113
  useQuerystring: this._useQuerystring,
1176
1114
  json: true,
1177
1115
  body: models_1.ObjectSerializer.serialize(subAccountCreate, "CreateSubAccount")
@@ -1198,7 +1136,7 @@ class MasterAccountApi {
1198
1136
  }
1199
1137
  }
1200
1138
  return new Promise((resolve, reject) => {
1201
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1139
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1202
1140
  if (error) {
1203
1141
  reject(error);
1204
1142
  }
@@ -1216,8 +1154,8 @@ class MasterAccountApi {
1216
1154
  });
1217
1155
  });
1218
1156
  }
1219
- corporateSubAccountSsoTokenPost(ssoTokenRequest_1) {
1220
- return __awaiter(this, arguments, void 0, function* (ssoTokenRequest, options = { headers: {} }) {
1157
+ corporateSubAccountSsoTokenPost(ssoTokenRequest, options = { headers: {} }) {
1158
+ return __awaiter(this, void 0, void 0, function* () {
1221
1159
  const localVarPath = this.basePath + '/corporate/subAccount/ssoToken';
1222
1160
  let localVarQueryParameters = {};
1223
1161
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1238,7 +1176,7 @@ class MasterAccountApi {
1238
1176
  method: 'POST',
1239
1177
  qs: localVarQueryParameters,
1240
1178
  headers: localVarHeaderParams,
1241
- uri: localVarPath,
1179
+ url: localVarPath,
1242
1180
  useQuerystring: this._useQuerystring,
1243
1181
  json: true,
1244
1182
  body: models_1.ObjectSerializer.serialize(ssoTokenRequest, "SsoTokenRequest")
@@ -1265,7 +1203,7 @@ class MasterAccountApi {
1265
1203
  }
1266
1204
  }
1267
1205
  return new Promise((resolve, reject) => {
1268
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1206
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1269
1207
  if (error) {
1270
1208
  reject(error);
1271
1209
  }
@@ -1283,144 +1221,8 @@ class MasterAccountApi {
1283
1221
  });
1284
1222
  });
1285
1223
  }
1286
- corporateSubAccountsPlanPut(updatePlanDetails_1) {
1287
- return __awaiter(this, arguments, void 0, function* (updatePlanDetails, options = { headers: {} }) {
1288
- const localVarPath = this.basePath + '/corporate/subAccounts/plan';
1289
- let localVarQueryParameters = {};
1290
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1291
- const produces = ['application/json'];
1292
- if (produces.indexOf('application/json') >= 0) {
1293
- localVarHeaderParams.Accept = 'application/json';
1294
- }
1295
- else {
1296
- localVarHeaderParams.Accept = produces.join(',');
1297
- }
1298
- let localVarFormParams = {};
1299
- if (updatePlanDetails === null || updatePlanDetails === undefined) {
1300
- throw new Error('Required parameter updatePlanDetails was null or undefined when calling corporateSubAccountsPlanPut.');
1301
- }
1302
- Object.assign(localVarHeaderParams, options.headers);
1303
- let localVarUseFormData = false;
1304
- let localVarRequestOptions = {
1305
- method: 'PUT',
1306
- qs: localVarQueryParameters,
1307
- headers: localVarHeaderParams,
1308
- uri: localVarPath,
1309
- useQuerystring: this._useQuerystring,
1310
- json: true,
1311
- body: models_1.ObjectSerializer.serialize(updatePlanDetails, "SubAccountsUpdatePlanRequest")
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
- let interceptorPromise = authenticationPromise;
1322
- for (const interceptor of this.interceptors) {
1323
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1324
- }
1325
- return interceptorPromise.then(() => {
1326
- if (Object.keys(localVarFormParams).length) {
1327
- if (localVarUseFormData) {
1328
- localVarRequestOptions.formData = localVarFormParams;
1329
- }
1330
- else {
1331
- localVarRequestOptions.form = localVarFormParams;
1332
- }
1333
- }
1334
- return new Promise((resolve, reject) => {
1335
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1336
- if (error) {
1337
- reject(error);
1338
- }
1339
- else {
1340
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1341
- resolve({ response: response, body: body });
1342
- }
1343
- else {
1344
- reject(new apis_1.HttpError(response, body, response.statusCode));
1345
- }
1346
- }
1347
- });
1348
- });
1349
- });
1350
- });
1351
- }
1352
- corporateUserEmailPermissionsPut(email_1, body_1) {
1353
- return __awaiter(this, arguments, void 0, function* (email, body, options = { headers: {} }) {
1354
- const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
1355
- .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1356
- let localVarQueryParameters = {};
1357
- let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
1358
- const produces = ['application/json'];
1359
- if (produces.indexOf('application/json') >= 0) {
1360
- localVarHeaderParams.Accept = 'application/json';
1361
- }
1362
- else {
1363
- localVarHeaderParams.Accept = produces.join(',');
1364
- }
1365
- let localVarFormParams = {};
1366
- if (email === null || email === undefined) {
1367
- throw new Error('Required parameter email was null or undefined when calling corporateUserEmailPermissionsPut.');
1368
- }
1369
- if (body === null || body === undefined) {
1370
- throw new Error('Required parameter body was null or undefined when calling corporateUserEmailPermissionsPut.');
1371
- }
1372
- Object.assign(localVarHeaderParams, options.headers);
1373
- let localVarUseFormData = false;
1374
- let localVarRequestOptions = {
1375
- method: 'PUT',
1376
- qs: localVarQueryParameters,
1377
- headers: localVarHeaderParams,
1378
- uri: localVarPath,
1379
- useQuerystring: this._useQuerystring,
1380
- json: true,
1381
- body: models_1.ObjectSerializer.serialize(body, "CorporateUserEmailPermissionsPutRequest")
1382
- };
1383
- let authenticationPromise = Promise.resolve();
1384
- if (this.authentications.apiKey.apiKey) {
1385
- authenticationPromise = authenticationPromise.then(() => this.authentications.apiKey.applyToRequest(localVarRequestOptions));
1386
- }
1387
- if (this.authentications.partnerKey.apiKey) {
1388
- authenticationPromise = authenticationPromise.then(() => this.authentications.partnerKey.applyToRequest(localVarRequestOptions));
1389
- }
1390
- authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
1391
- let interceptorPromise = authenticationPromise;
1392
- for (const interceptor of this.interceptors) {
1393
- interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
1394
- }
1395
- return interceptorPromise.then(() => {
1396
- if (Object.keys(localVarFormParams).length) {
1397
- if (localVarUseFormData) {
1398
- localVarRequestOptions.formData = localVarFormParams;
1399
- }
1400
- else {
1401
- localVarRequestOptions.form = localVarFormParams;
1402
- }
1403
- }
1404
- return new Promise((resolve, reject) => {
1405
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1406
- if (error) {
1407
- reject(error);
1408
- }
1409
- else {
1410
- if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
1411
- resolve({ response: response, body: body });
1412
- }
1413
- else {
1414
- reject(new apis_1.HttpError(response, body, response.statusCode));
1415
- }
1416
- }
1417
- });
1418
- });
1419
- });
1420
- });
1421
- }
1422
- corporateUserInvitationActionEmailPut(action_1, email_1) {
1423
- return __awaiter(this, arguments, void 0, function* (action, email, options = { headers: {} }) {
1224
+ corporateUserInvitationActionEmailPut(action, email, options = { headers: {} }) {
1225
+ return __awaiter(this, void 0, void 0, function* () {
1424
1226
  const localVarPath = this.basePath + '/corporate/user/invitation/{action}/{email}'
1425
1227
  .replace('{' + 'action' + '}', encodeURIComponent(String(action)))
1426
1228
  .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
@@ -1446,7 +1248,7 @@ class MasterAccountApi {
1446
1248
  method: 'PUT',
1447
1249
  qs: localVarQueryParameters,
1448
1250
  headers: localVarHeaderParams,
1449
- uri: localVarPath,
1251
+ url: localVarPath,
1450
1252
  useQuerystring: this._useQuerystring,
1451
1253
  json: true,
1452
1254
  };
@@ -1472,7 +1274,7 @@ class MasterAccountApi {
1472
1274
  }
1473
1275
  }
1474
1276
  return new Promise((resolve, reject) => {
1475
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1277
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1476
1278
  if (error) {
1477
1279
  reject(error);
1478
1280
  }
@@ -1490,8 +1292,8 @@ class MasterAccountApi {
1490
1292
  });
1491
1293
  });
1492
1294
  }
1493
- corporateUserRevokeEmailDelete(email_1) {
1494
- return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
1295
+ corporateUserRevokeEmailDelete(email, options = { headers: {} }) {
1296
+ return __awaiter(this, void 0, void 0, function* () {
1495
1297
  const localVarPath = this.basePath + '/corporate/user/revoke/{email}'
1496
1298
  .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1497
1299
  let localVarQueryParameters = {};
@@ -1513,7 +1315,7 @@ class MasterAccountApi {
1513
1315
  method: 'DELETE',
1514
1316
  qs: localVarQueryParameters,
1515
1317
  headers: localVarHeaderParams,
1516
- uri: localVarPath,
1318
+ url: localVarPath,
1517
1319
  useQuerystring: this._useQuerystring,
1518
1320
  json: true,
1519
1321
  };
@@ -1539,7 +1341,7 @@ class MasterAccountApi {
1539
1341
  }
1540
1342
  }
1541
1343
  return new Promise((resolve, reject) => {
1542
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1344
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1543
1345
  if (error) {
1544
1346
  reject(error);
1545
1347
  }
@@ -1556,8 +1358,8 @@ class MasterAccountApi {
1556
1358
  });
1557
1359
  });
1558
1360
  }
1559
- getAccountActivity(startDate_1, endDate_1, email_1, limit_1, offset_1) {
1560
- return __awaiter(this, arguments, void 0, function* (startDate, endDate, email, limit, offset, options = { headers: {} }) {
1361
+ getAccountActivity(startDate, endDate, limit, offset, options = { headers: {} }) {
1362
+ return __awaiter(this, void 0, void 0, function* () {
1561
1363
  const localVarPath = this.basePath + '/organization/activities';
1562
1364
  let localVarQueryParameters = {};
1563
1365
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1575,9 +1377,6 @@ class MasterAccountApi {
1575
1377
  if (endDate !== undefined) {
1576
1378
  localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(endDate, "string");
1577
1379
  }
1578
- if (email !== undefined) {
1579
- localVarQueryParameters['email'] = models_1.ObjectSerializer.serialize(email, "string");
1580
- }
1581
1380
  if (limit !== undefined) {
1582
1381
  localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(limit, "number");
1583
1382
  }
@@ -1590,7 +1389,7 @@ class MasterAccountApi {
1590
1389
  method: 'GET',
1591
1390
  qs: localVarQueryParameters,
1592
1391
  headers: localVarHeaderParams,
1593
- uri: localVarPath,
1392
+ url: localVarPath,
1594
1393
  useQuerystring: this._useQuerystring,
1595
1394
  json: true,
1596
1395
  };
@@ -1616,7 +1415,7 @@ class MasterAccountApi {
1616
1415
  }
1617
1416
  }
1618
1417
  return new Promise((resolve, reject) => {
1619
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1418
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1620
1419
  if (error) {
1621
1420
  reject(error);
1622
1421
  }
@@ -1634,8 +1433,8 @@ class MasterAccountApi {
1634
1433
  });
1635
1434
  });
1636
1435
  }
1637
- getCorporateInvitedUsersList() {
1638
- return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
1436
+ getCorporateInvitedUsersList(options = { headers: {} }) {
1437
+ return __awaiter(this, void 0, void 0, function* () {
1639
1438
  const localVarPath = this.basePath + '/corporate/invited/users';
1640
1439
  let localVarQueryParameters = {};
1641
1440
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1653,7 +1452,7 @@ class MasterAccountApi {
1653
1452
  method: 'GET',
1654
1453
  qs: localVarQueryParameters,
1655
1454
  headers: localVarHeaderParams,
1656
- uri: localVarPath,
1455
+ url: localVarPath,
1657
1456
  useQuerystring: this._useQuerystring,
1658
1457
  json: true,
1659
1458
  };
@@ -1679,7 +1478,7 @@ class MasterAccountApi {
1679
1478
  }
1680
1479
  }
1681
1480
  return new Promise((resolve, reject) => {
1682
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1481
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1683
1482
  if (error) {
1684
1483
  reject(error);
1685
1484
  }
@@ -1697,8 +1496,8 @@ class MasterAccountApi {
1697
1496
  });
1698
1497
  });
1699
1498
  }
1700
- getCorporateUserPermission(email_1) {
1701
- return __awaiter(this, arguments, void 0, function* (email, options = { headers: {} }) {
1499
+ getCorporateUserPermission(email, options = { headers: {} }) {
1500
+ return __awaiter(this, void 0, void 0, function* () {
1702
1501
  const localVarPath = this.basePath + '/corporate/user/{email}/permissions'
1703
1502
  .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
1704
1503
  let localVarQueryParameters = {};
@@ -1720,7 +1519,7 @@ class MasterAccountApi {
1720
1519
  method: 'GET',
1721
1520
  qs: localVarQueryParameters,
1722
1521
  headers: localVarHeaderParams,
1723
- uri: localVarPath,
1522
+ url: localVarPath,
1724
1523
  useQuerystring: this._useQuerystring,
1725
1524
  json: true,
1726
1525
  };
@@ -1746,7 +1545,7 @@ class MasterAccountApi {
1746
1545
  }
1747
1546
  }
1748
1547
  return new Promise((resolve, reject) => {
1749
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1548
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1750
1549
  if (error) {
1751
1550
  reject(error);
1752
1551
  }
@@ -1764,8 +1563,8 @@ class MasterAccountApi {
1764
1563
  });
1765
1564
  });
1766
1565
  }
1767
- getSubAccountGroups() {
1768
- return __awaiter(this, arguments, void 0, function* (options = { headers: {} }) {
1566
+ getSubAccountGroups(options = { headers: {} }) {
1567
+ return __awaiter(this, void 0, void 0, function* () {
1769
1568
  const localVarPath = this.basePath + '/corporate/groups';
1770
1569
  let localVarQueryParameters = {};
1771
1570
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1783,7 +1582,7 @@ class MasterAccountApi {
1783
1582
  method: 'GET',
1784
1583
  qs: localVarQueryParameters,
1785
1584
  headers: localVarHeaderParams,
1786
- uri: localVarPath,
1585
+ url: localVarPath,
1787
1586
  useQuerystring: this._useQuerystring,
1788
1587
  json: true,
1789
1588
  };
@@ -1809,7 +1608,7 @@ class MasterAccountApi {
1809
1608
  }
1810
1609
  }
1811
1610
  return new Promise((resolve, reject) => {
1812
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1611
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1813
1612
  if (error) {
1814
1613
  reject(error);
1815
1614
  }
@@ -1827,8 +1626,8 @@ class MasterAccountApi {
1827
1626
  });
1828
1627
  });
1829
1628
  }
1830
- inviteAdminUser(sendInvitation_1) {
1831
- return __awaiter(this, arguments, void 0, function* (sendInvitation, options = { headers: {} }) {
1629
+ inviteAdminUser(sendInvitation, options = { headers: {} }) {
1630
+ return __awaiter(this, void 0, void 0, function* () {
1832
1631
  const localVarPath = this.basePath + '/corporate/user/invitation/send';
1833
1632
  let localVarQueryParameters = {};
1834
1633
  let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
@@ -1849,7 +1648,7 @@ class MasterAccountApi {
1849
1648
  method: 'POST',
1850
1649
  qs: localVarQueryParameters,
1851
1650
  headers: localVarHeaderParams,
1852
- uri: localVarPath,
1651
+ url: localVarPath,
1853
1652
  useQuerystring: this._useQuerystring,
1854
1653
  json: true,
1855
1654
  body: models_1.ObjectSerializer.serialize(sendInvitation, "InviteAdminUser")
@@ -1876,7 +1675,7 @@ class MasterAccountApi {
1876
1675
  }
1877
1676
  }
1878
1677
  return new Promise((resolve, reject) => {
1879
- (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
1678
+ (0, requestCompat_1.default)(localVarRequestOptions, (error, response, body) => {
1880
1679
  if (error) {
1881
1680
  reject(error);
1882
1681
  }