@emilgroup/insurance-sdk-node 1.36.0 → 1.36.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 (310) hide show
  1. package/README.md +2 -2
  2. package/dist/api/default-api.d.ts +66 -0
  3. package/dist/api/default-api.js +200 -0
  4. package/dist/api/insured-object-types-api.d.ts +141 -0
  5. package/dist/api/insured-object-types-api.js +258 -0
  6. package/dist/api/insured-objects-api.d.ts +318 -0
  7. package/dist/api/insured-objects-api.js +539 -0
  8. package/dist/api/lead-statuses-api.d.ts +265 -0
  9. package/dist/api/lead-statuses-api.js +505 -0
  10. package/dist/api/leads-api.d.ts +626 -0
  11. package/dist/api/leads-api.js +1024 -0
  12. package/dist/api/named-ranges-api.d.ts +376 -0
  13. package/dist/api/named-ranges-api.js +634 -0
  14. package/dist/api/policies-api.d.ts +722 -0
  15. package/dist/api/policies-api.js +1141 -0
  16. package/dist/api/premium-formulas-api.d.ts +433 -0
  17. package/dist/api/premium-formulas-api.js +727 -0
  18. package/dist/api/product-factors-api.d.ts +493 -0
  19. package/dist/api/product-factors-api.js +788 -0
  20. package/dist/api/product-fields-api.d.ts +477 -0
  21. package/dist/api/product-fields-api.js +757 -0
  22. package/dist/api/product-versions-api.d.ts +189 -0
  23. package/dist/api/product-versions-api.js +346 -0
  24. package/dist/api/products-api.d.ts +485 -0
  25. package/dist/api/products-api.js +772 -0
  26. package/dist/api.d.ts +23 -0
  27. package/dist/api.js +41 -0
  28. package/dist/base.d.ts +78 -0
  29. package/dist/base.js +394 -0
  30. package/dist/common.d.ts +92 -0
  31. package/dist/common.js +277 -0
  32. package/dist/configuration.d.ts +90 -0
  33. package/dist/configuration.js +44 -0
  34. package/dist/index.d.ts +15 -0
  35. package/dist/index.js +36 -0
  36. package/dist/models/activate-policy-request-dto.d.ts +24 -0
  37. package/dist/models/activate-policy-request-dto.js +15 -0
  38. package/dist/models/activate-policy-response-class.d.ts +25 -0
  39. package/dist/models/activate-policy-response-class.js +15 -0
  40. package/dist/models/calculate-custom-premium-request-dto.d.ts +35 -0
  41. package/dist/models/calculate-custom-premium-request-dto.js +20 -0
  42. package/dist/models/calculate-premium-request-dto.d.ts +38 -0
  43. package/dist/models/calculate-premium-request-dto.js +15 -0
  44. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  45. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  46. package/dist/models/clone-product-version-request-dto.d.ts +36 -0
  47. package/dist/models/clone-product-version-request-dto.js +15 -0
  48. package/dist/models/create-account-request-dto.d.ts +120 -0
  49. package/dist/models/create-account-request-dto.js +26 -0
  50. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  51. package/dist/models/create-bank-account-request-dto.js +15 -0
  52. package/dist/models/create-custom-application-request-dto.d.ts +41 -0
  53. package/dist/models/create-custom-application-request-dto.js +20 -0
  54. package/dist/models/create-dummy-policy-request-dto.d.ts +44 -0
  55. package/dist/models/create-dummy-policy-request-dto.js +15 -0
  56. package/dist/models/create-insured-object-request-dto.d.ts +60 -0
  57. package/dist/models/create-insured-object-request-dto.js +15 -0
  58. package/dist/models/create-insured-object-response-class.d.ts +25 -0
  59. package/dist/models/create-insured-object-response-class.js +15 -0
  60. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  61. package/dist/models/create-lead-async-response-class.js +15 -0
  62. package/dist/models/create-lead-policy-request-dto.d.ts +56 -0
  63. package/dist/models/create-lead-policy-request-dto.js +15 -0
  64. package/dist/models/create-lead-request-dto.d.ts +96 -0
  65. package/dist/models/create-lead-request-dto.js +15 -0
  66. package/dist/models/create-lead-response-class.d.ts +25 -0
  67. package/dist/models/create-lead-response-class.js +15 -0
  68. package/dist/models/create-lead-status-request-dto.d.ts +30 -0
  69. package/dist/models/create-lead-status-request-dto.js +15 -0
  70. package/dist/models/create-lead-status-response-class.d.ts +25 -0
  71. package/dist/models/create-lead-status-response-class.js +15 -0
  72. package/dist/models/create-named-range-request-dto.d.ts +55 -0
  73. package/dist/models/create-named-range-request-dto.js +15 -0
  74. package/dist/models/create-named-range-response-class.d.ts +25 -0
  75. package/dist/models/create-named-range-response-class.js +15 -0
  76. package/dist/models/create-named-request-s3-data-class.d.ts +30 -0
  77. package/dist/models/create-named-request-s3-data-class.js +15 -0
  78. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  79. package/dist/models/create-payment-method-request-dto.js +15 -0
  80. package/dist/models/create-policy-request-dto.d.ts +62 -0
  81. package/dist/models/create-policy-request-dto.js +15 -0
  82. package/dist/models/create-policy-response-class.d.ts +25 -0
  83. package/dist/models/create-policy-response-class.js +15 -0
  84. package/dist/models/create-premium-formula-request-dto.d.ts +105 -0
  85. package/dist/models/create-premium-formula-request-dto.js +39 -0
  86. package/dist/models/create-premium-formula-response-class.d.ts +25 -0
  87. package/dist/models/create-premium-formula-response-class.js +15 -0
  88. package/dist/models/create-product-field-request-dto.d.ts +137 -0
  89. package/dist/models/create-product-field-request-dto.js +20 -0
  90. package/dist/models/create-product-field-response-class.d.ts +25 -0
  91. package/dist/models/create-product-field-response-class.js +15 -0
  92. package/dist/models/create-product-request-dto.d.ts +85 -0
  93. package/dist/models/create-product-request-dto.js +51 -0
  94. package/dist/models/create-product-response-class.d.ts +25 -0
  95. package/dist/models/create-product-response-class.js +15 -0
  96. package/dist/models/csv-product-factor-dto.d.ts +48 -0
  97. package/dist/models/csv-product-factor-dto.js +15 -0
  98. package/dist/models/delete-request-dto.d.ts +24 -0
  99. package/dist/models/delete-request-dto.js +15 -0
  100. package/dist/models/delete-response-class.d.ts +24 -0
  101. package/dist/models/delete-response-class.js +15 -0
  102. package/dist/models/empty-response-class.d.ts +24 -0
  103. package/dist/models/empty-response-class.js +15 -0
  104. package/dist/models/get-insured-object-response-class.d.ts +25 -0
  105. package/dist/models/get-insured-object-response-class.js +15 -0
  106. package/dist/models/get-lead-response-class.d.ts +25 -0
  107. package/dist/models/get-lead-response-class.js +15 -0
  108. package/dist/models/get-lead-status-response-class.d.ts +25 -0
  109. package/dist/models/get-lead-status-response-class.js +15 -0
  110. package/dist/models/get-named-range-response-class.d.ts +25 -0
  111. package/dist/models/get-named-range-response-class.js +15 -0
  112. package/dist/models/get-policy-data-by-date-request-dto.d.ts +30 -0
  113. package/dist/models/get-policy-data-by-date-request-dto.js +15 -0
  114. package/dist/models/get-policy-request-dto.d.ts +30 -0
  115. package/dist/models/get-policy-request-dto.js +15 -0
  116. package/dist/models/get-policy-response-class.d.ts +25 -0
  117. package/dist/models/get-policy-response-class.js +15 -0
  118. package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
  119. package/dist/models/get-premium-formula-request-dto.js +15 -0
  120. package/dist/models/get-premium-formula-response-class.d.ts +25 -0
  121. package/dist/models/get-premium-formula-response-class.js +15 -0
  122. package/dist/models/get-product-factor-response-class.d.ts +32 -0
  123. package/dist/models/get-product-factor-response-class.js +15 -0
  124. package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
  125. package/dist/models/get-product-factor-value-request-dto.js +15 -0
  126. package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
  127. package/dist/models/get-product-factor-value-response-class.js +15 -0
  128. package/dist/models/get-product-factors-for-version-request-dto.d.ts +36 -0
  129. package/dist/models/get-product-factors-for-version-request-dto.js +15 -0
  130. package/dist/models/get-product-factors-for-version-response-class.d.ts +25 -0
  131. package/dist/models/get-product-factors-for-version-response-class.js +15 -0
  132. package/dist/models/get-product-field-request-dto.d.ts +24 -0
  133. package/dist/models/get-product-field-request-dto.js +15 -0
  134. package/dist/models/get-product-field-response-class.d.ts +25 -0
  135. package/dist/models/get-product-field-response-class.js +15 -0
  136. package/dist/models/get-product-request-dto.d.ts +42 -0
  137. package/dist/models/get-product-request-dto.js +15 -0
  138. package/dist/models/get-product-response-class.d.ts +25 -0
  139. package/dist/models/get-product-response-class.js +15 -0
  140. package/dist/models/get-product-version-request-dto.d.ts +36 -0
  141. package/dist/models/get-product-version-request-dto.js +15 -0
  142. package/dist/models/get-product-version-response-class.d.ts +25 -0
  143. package/dist/models/get-product-version-response-class.js +15 -0
  144. package/dist/models/grouped-product-factor-class.d.ts +37 -0
  145. package/dist/models/grouped-product-factor-class.js +15 -0
  146. package/dist/models/grouped-product-factor-value-class.d.ts +42 -0
  147. package/dist/models/grouped-product-factor-value-class.js +15 -0
  148. package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
  149. package/dist/models/grouped-product-factors-response-class.js +15 -0
  150. package/dist/models/grpc-patch-lead-request-dto.d.ts +102 -0
  151. package/dist/models/grpc-patch-lead-request-dto.js +15 -0
  152. package/dist/models/grpc-update-lead-request-dto.d.ts +102 -0
  153. package/dist/models/grpc-update-lead-request-dto.js +15 -0
  154. package/dist/models/index.d.ts +136 -0
  155. package/dist/models/index.js +152 -0
  156. package/dist/models/inline-response200.d.ts +54 -0
  157. package/dist/models/inline-response200.js +15 -0
  158. package/dist/models/inline-response503.d.ts +54 -0
  159. package/dist/models/inline-response503.js +15 -0
  160. package/dist/models/insured-object-class.d.ts +85 -0
  161. package/dist/models/insured-object-class.js +15 -0
  162. package/dist/models/insured-object-type-class.d.ts +48 -0
  163. package/dist/models/insured-object-type-class.js +15 -0
  164. package/dist/models/invoice-item-class.d.ts +117 -0
  165. package/dist/models/invoice-item-class.js +24 -0
  166. package/dist/models/invoice-status-class.d.ts +47 -0
  167. package/dist/models/invoice-status-class.js +20 -0
  168. package/dist/models/lead-bank-account-class.d.ts +30 -0
  169. package/dist/models/lead-bank-account-class.js +15 -0
  170. package/dist/models/lead-class.d.ts +133 -0
  171. package/dist/models/lead-class.js +15 -0
  172. package/dist/models/lead-status-class.d.ts +36 -0
  173. package/dist/models/lead-status-class.js +15 -0
  174. package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
  175. package/dist/models/list-insured-object-types-response-class.js +15 -0
  176. package/dist/models/list-insured-objects-response-class.d.ts +31 -0
  177. package/dist/models/list-insured-objects-response-class.js +15 -0
  178. package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
  179. package/dist/models/list-lead-statuses-response-class.js +15 -0
  180. package/dist/models/list-leads-response-class.d.ts +43 -0
  181. package/dist/models/list-leads-response-class.js +15 -0
  182. package/dist/models/list-named-ranges-response-class.d.ts +30 -0
  183. package/dist/models/list-named-ranges-response-class.js +15 -0
  184. package/dist/models/list-policies-response-class.d.ts +43 -0
  185. package/dist/models/list-policies-response-class.js +15 -0
  186. package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
  187. package/dist/models/list-premium-formulas-response-class.js +15 -0
  188. package/dist/models/list-product-factors-response-class.d.ts +31 -0
  189. package/dist/models/list-product-factors-response-class.js +15 -0
  190. package/dist/models/list-product-field-types-response-class.d.ts +31 -0
  191. package/dist/models/list-product-field-types-response-class.js +15 -0
  192. package/dist/models/list-product-fields-response-class.d.ts +31 -0
  193. package/dist/models/list-product-fields-response-class.js +15 -0
  194. package/dist/models/list-products-response-class.d.ts +31 -0
  195. package/dist/models/list-products-response-class.js +15 -0
  196. package/dist/models/list-request-dto.d.ts +54 -0
  197. package/dist/models/list-request-dto.js +15 -0
  198. package/dist/models/named-range-class.d.ts +78 -0
  199. package/dist/models/named-range-class.js +15 -0
  200. package/dist/models/patch-lead-request-dto.d.ts +90 -0
  201. package/dist/models/patch-lead-request-dto.js +15 -0
  202. package/dist/models/patch-lead-response-class.d.ts +25 -0
  203. package/dist/models/patch-lead-response-class.js +15 -0
  204. package/dist/models/patch-policy-request-dto.d.ts +50 -0
  205. package/dist/models/patch-policy-request-dto.js +15 -0
  206. package/dist/models/patch-policy-response-class.d.ts +25 -0
  207. package/dist/models/patch-policy-response-class.js +15 -0
  208. package/dist/models/policy-class.d.ts +128 -0
  209. package/dist/models/policy-class.js +15 -0
  210. package/dist/models/policy-object-class.d.ts +60 -0
  211. package/dist/models/policy-object-class.js +15 -0
  212. package/dist/models/policy-object-dto.d.ts +42 -0
  213. package/dist/models/policy-object-dto.js +15 -0
  214. package/dist/models/policy-premium-class.d.ts +49 -0
  215. package/dist/models/policy-premium-class.js +15 -0
  216. package/dist/models/policy-premium-item-class.d.ts +55 -0
  217. package/dist/models/policy-premium-item-class.js +15 -0
  218. package/dist/models/policy-version-class.d.ts +55 -0
  219. package/dist/models/policy-version-class.js +15 -0
  220. package/dist/models/premium-formula-class.d.ts +96 -0
  221. package/dist/models/premium-formula-class.js +15 -0
  222. package/dist/models/premium-override-dto.d.ts +55 -0
  223. package/dist/models/premium-override-dto.js +27 -0
  224. package/dist/models/premium-override-request-class.d.ts +25 -0
  225. package/dist/models/premium-override-request-class.js +15 -0
  226. package/dist/models/premium-override-request-dto.d.ts +25 -0
  227. package/dist/models/premium-override-request-dto.js +15 -0
  228. package/dist/models/product-class.d.ts +80 -0
  229. package/dist/models/product-class.js +15 -0
  230. package/dist/models/product-factor-class.d.ts +61 -0
  231. package/dist/models/product-factor-class.js +15 -0
  232. package/dist/models/product-factor-for-version-class.d.ts +61 -0
  233. package/dist/models/product-factor-for-version-class.js +15 -0
  234. package/dist/models/product-factor-value-class.d.ts +60 -0
  235. package/dist/models/product-factor-value-class.js +15 -0
  236. package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
  237. package/dist/models/product-factor-value-for-version-class.js +15 -0
  238. package/dist/models/product-field-class.d.ts +132 -0
  239. package/dist/models/product-field-class.js +15 -0
  240. package/dist/models/product-field-type-class.d.ts +48 -0
  241. package/dist/models/product-field-type-class.js +15 -0
  242. package/dist/models/product-version-class.d.ts +61 -0
  243. package/dist/models/product-version-class.js +22 -0
  244. package/dist/models/sepa-dto.d.ts +30 -0
  245. package/dist/models/sepa-dto.js +15 -0
  246. package/dist/models/shared-create-lead-policy-request-dto.d.ts +56 -0
  247. package/dist/models/shared-create-lead-policy-request-dto.js +15 -0
  248. package/dist/models/shared-invoice-class.d.ts +150 -0
  249. package/dist/models/shared-invoice-class.js +30 -0
  250. package/dist/models/shared-lead-policy-object-dto.d.ts +42 -0
  251. package/dist/models/shared-lead-policy-object-dto.js +15 -0
  252. package/dist/models/shared-product-field-class.d.ts +132 -0
  253. package/dist/models/shared-product-field-class.js +15 -0
  254. package/dist/models/shared-update-named-range-request-dto.d.ts +42 -0
  255. package/dist/models/shared-update-named-range-request-dto.js +15 -0
  256. package/dist/models/shared-update-premium-formula-request-dto.d.ts +111 -0
  257. package/dist/models/shared-update-premium-formula-request-dto.js +39 -0
  258. package/dist/models/store-product-factors-request-dto.d.ts +31 -0
  259. package/dist/models/store-product-factors-request-dto.js +15 -0
  260. package/dist/models/store-product-factors-response-class.d.ts +25 -0
  261. package/dist/models/store-product-factors-response-class.js +15 -0
  262. package/dist/models/suspend-policy-request-dto.d.ts +24 -0
  263. package/dist/models/suspend-policy-request-dto.js +15 -0
  264. package/dist/models/suspend-policy-response-class.d.ts +25 -0
  265. package/dist/models/suspend-policy-response-class.js +15 -0
  266. package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
  267. package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
  268. package/dist/models/terminate-policy-request-dto.d.ts +44 -0
  269. package/dist/models/terminate-policy-request-dto.js +29 -0
  270. package/dist/models/terminate-policy-response-class.d.ts +25 -0
  271. package/dist/models/terminate-policy-response-class.js +15 -0
  272. package/dist/models/timeslice-class.d.ts +62 -0
  273. package/dist/models/timeslice-class.js +15 -0
  274. package/dist/models/update-insured-object-request-dto.d.ts +66 -0
  275. package/dist/models/update-insured-object-request-dto.js +15 -0
  276. package/dist/models/update-lead-request-dto.d.ts +90 -0
  277. package/dist/models/update-lead-request-dto.js +15 -0
  278. package/dist/models/update-lead-response-class.d.ts +25 -0
  279. package/dist/models/update-lead-response-class.js +15 -0
  280. package/dist/models/update-named-range-request-dto.d.ts +36 -0
  281. package/dist/models/update-named-range-request-dto.js +15 -0
  282. package/dist/models/update-named-range-response-class.d.ts +25 -0
  283. package/dist/models/update-named-range-response-class.js +15 -0
  284. package/dist/models/update-policy-request-dto.d.ts +76 -0
  285. package/dist/models/update-policy-request-dto.js +23 -0
  286. package/dist/models/update-policy-response-class.d.ts +25 -0
  287. package/dist/models/update-policy-response-class.js +15 -0
  288. package/dist/models/update-premium-formula-request-dto.d.ts +105 -0
  289. package/dist/models/update-premium-formula-request-dto.js +39 -0
  290. package/dist/models/update-premium-formula-response-class.d.ts +25 -0
  291. package/dist/models/update-premium-formula-response-class.js +15 -0
  292. package/dist/models/update-product-field-request-dto.d.ts +143 -0
  293. package/dist/models/update-product-field-request-dto.js +20 -0
  294. package/dist/models/update-product-field-response-class.d.ts +25 -0
  295. package/dist/models/update-product-field-response-class.js +15 -0
  296. package/dist/models/update-product-request-dto.d.ts +42 -0
  297. package/dist/models/update-product-request-dto.js +15 -0
  298. package/dist/models/update-product-response-class.d.ts +25 -0
  299. package/dist/models/update-product-response-class.js +15 -0
  300. package/dist/models/update-product-version-request-dto.d.ts +43 -0
  301. package/dist/models/update-product-version-request-dto.js +22 -0
  302. package/dist/models/update-product-version-response-class.d.ts +25 -0
  303. package/dist/models/update-product-version-response-class.js +15 -0
  304. package/dist/models/uploaded-document-dto.d.ts +24 -0
  305. package/dist/models/uploaded-document-dto.js +15 -0
  306. package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
  307. package/dist/models/validate-product-factors-request-dto.js +15 -0
  308. package/dist/models/withdraw-policy-response-class.d.ts +25 -0
  309. package/dist/models/withdraw-policy-response-class.js +15 -0
  310. package/package.json +2 -2
@@ -0,0 +1,626 @@
1
+ /**
2
+ * EMIL InsuranceService
3
+ * The EMIL InsuranceService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateLeadAsyncResponseClass } from '../models';
16
+ import { CreateLeadRequestDto } from '../models';
17
+ import { CreateLeadResponseClass } from '../models';
18
+ import { DeleteResponseClass } from '../models';
19
+ import { GetLeadResponseClass } from '../models';
20
+ import { ListLeadsResponseClass } from '../models';
21
+ import { PatchLeadRequestDto } from '../models';
22
+ import { PatchLeadResponseClass } from '../models';
23
+ import { UpdateLeadRequestDto } from '../models';
24
+ import { UpdateLeadResponseClass } from '../models';
25
+ /**
26
+ * LeadsApi - axios parameter creator
27
+ * @export
28
+ */
29
+ export declare const LeadsApiAxiosParamCreator: (configuration?: Configuration) => {
30
+ /**
31
+ * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
32
+ * @summary Create the lead
33
+ * @param {CreateLeadRequestDto} createLeadRequestDto
34
+ * @param {string} [authorization] Bearer Token
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ createLead: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
39
+ /**
40
+ * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
41
+ * @summary Create the lead asynchronously
42
+ * @param {CreateLeadRequestDto} createLeadRequestDto
43
+ * @param {string} [authorization] Bearer Token
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createLeadAsync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
50
+ * @summary Create the lead
51
+ * @param {CreateLeadRequestDto} createLeadRequestDto
52
+ * @param {string} [authorization] Bearer Token
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ createLeadSync: (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
59
+ * @summary Delete the lead
60
+ * @param {string} code
61
+ * @param {string} [authorization] Bearer Token
62
+ * @param {*} [options] Override http request option.
63
+ * @throws {RequiredError}
64
+ */
65
+ deleteLead: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ /**
67
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
68
+ * @summary Retrieve the lead
69
+ * @param {string} code Unique identifier for the object.
70
+ * @param {string} [authorization] Bearer Token
71
+ * @param {string} [expand]
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ getLead: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ /**
77
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
78
+ * @summary List leads
79
+ * @param {string} [authorization] Bearer Token
80
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
81
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
82
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
83
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
84
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
85
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
86
+ * @param {*} [options] Override http request option.
87
+ * @throws {RequiredError}
88
+ */
89
+ listLeads: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
90
+ /**
91
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
92
+ * @summary Patch the lead
93
+ * @param {string} code Unique identifier for the object.
94
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
95
+ * @param {string} [authorization] Bearer Token
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ patchLead: (code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
100
+ /**
101
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
102
+ * @summary Update the lead
103
+ * @param {string} code Unique identifier for the object.
104
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
105
+ * @param {string} [authorization] Bearer Token
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ updateLead: (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
110
+ /**
111
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
112
+ * @summary Update the lead
113
+ * @param {string} code Unique identifier for the object.
114
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
115
+ * @param {string} [authorization] Bearer Token
116
+ * @param {*} [options] Override http request option.
117
+ * @throws {RequiredError}
118
+ */
119
+ updateLeadSync: (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
120
+ };
121
+ /**
122
+ * LeadsApi - functional programming interface
123
+ * @export
124
+ */
125
+ export declare const LeadsApiFp: (configuration?: Configuration) => {
126
+ /**
127
+ * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
128
+ * @summary Create the lead
129
+ * @param {CreateLeadRequestDto} createLeadRequestDto
130
+ * @param {string} [authorization] Bearer Token
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
135
+ /**
136
+ * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
137
+ * @summary Create the lead asynchronously
138
+ * @param {CreateLeadRequestDto} createLeadRequestDto
139
+ * @param {string} [authorization] Bearer Token
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadAsyncResponseClass>>;
144
+ /**
145
+ * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
146
+ * @summary Create the lead
147
+ * @param {CreateLeadRequestDto} createLeadRequestDto
148
+ * @param {string} [authorization] Bearer Token
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateLeadResponseClass>>;
153
+ /**
154
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
155
+ * @summary Delete the lead
156
+ * @param {string} code
157
+ * @param {string} [authorization] Bearer Token
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ deleteLead(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
162
+ /**
163
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
164
+ * @summary Retrieve the lead
165
+ * @param {string} code Unique identifier for the object.
166
+ * @param {string} [authorization] Bearer Token
167
+ * @param {string} [expand]
168
+ * @param {*} [options] Override http request option.
169
+ * @throws {RequiredError}
170
+ */
171
+ getLead(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetLeadResponseClass>>;
172
+ /**
173
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
174
+ * @summary List leads
175
+ * @param {string} [authorization] Bearer Token
176
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
177
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
178
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
179
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
180
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
181
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListLeadsResponseClass>>;
186
+ /**
187
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
188
+ * @summary Patch the lead
189
+ * @param {string} code Unique identifier for the object.
190
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
191
+ * @param {string} [authorization] Bearer Token
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchLeadResponseClass>>;
196
+ /**
197
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
198
+ * @summary Update the lead
199
+ * @param {string} code Unique identifier for the object.
200
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
201
+ * @param {string} [authorization] Bearer Token
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
206
+ /**
207
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
208
+ * @summary Update the lead
209
+ * @param {string} code Unique identifier for the object.
210
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
211
+ * @param {string} [authorization] Bearer Token
212
+ * @param {*} [options] Override http request option.
213
+ * @throws {RequiredError}
214
+ */
215
+ updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateLeadResponseClass>>;
216
+ };
217
+ /**
218
+ * LeadsApi - factory interface
219
+ * @export
220
+ */
221
+ export declare const LeadsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
222
+ /**
223
+ * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
224
+ * @summary Create the lead
225
+ * @param {CreateLeadRequestDto} createLeadRequestDto
226
+ * @param {string} [authorization] Bearer Token
227
+ * @param {*} [options] Override http request option.
228
+ * @throws {RequiredError}
229
+ */
230
+ createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
231
+ /**
232
+ * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
233
+ * @summary Create the lead asynchronously
234
+ * @param {CreateLeadRequestDto} createLeadRequestDto
235
+ * @param {string} [authorization] Bearer Token
236
+ * @param {*} [options] Override http request option.
237
+ * @throws {RequiredError}
238
+ */
239
+ createLeadAsync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadAsyncResponseClass>;
240
+ /**
241
+ * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
242
+ * @summary Create the lead
243
+ * @param {CreateLeadRequestDto} createLeadRequestDto
244
+ * @param {string} [authorization] Bearer Token
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ createLeadSync(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<CreateLeadResponseClass>;
249
+ /**
250
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
251
+ * @summary Delete the lead
252
+ * @param {string} code
253
+ * @param {string} [authorization] Bearer Token
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ deleteLead(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass>;
258
+ /**
259
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
260
+ * @summary Retrieve the lead
261
+ * @param {string} code Unique identifier for the object.
262
+ * @param {string} [authorization] Bearer Token
263
+ * @param {string} [expand]
264
+ * @param {*} [options] Override http request option.
265
+ * @throws {RequiredError}
266
+ */
267
+ getLead(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetLeadResponseClass>;
268
+ /**
269
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
270
+ * @summary List leads
271
+ * @param {string} [authorization] Bearer Token
272
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
273
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
274
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
275
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
276
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
277
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ listLeads(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListLeadsResponseClass>;
282
+ /**
283
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
284
+ * @summary Patch the lead
285
+ * @param {string} code Unique identifier for the object.
286
+ * @param {PatchLeadRequestDto} patchLeadRequestDto
287
+ * @param {string} [authorization] Bearer Token
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ patchLead(code: string, patchLeadRequestDto: PatchLeadRequestDto, authorization?: string, options?: any): AxiosPromise<PatchLeadResponseClass>;
292
+ /**
293
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
294
+ * @summary Update the lead
295
+ * @param {string} code Unique identifier for the object.
296
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
297
+ * @param {string} [authorization] Bearer Token
298
+ * @param {*} [options] Override http request option.
299
+ * @throws {RequiredError}
300
+ */
301
+ updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
302
+ /**
303
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
304
+ * @summary Update the lead
305
+ * @param {string} code Unique identifier for the object.
306
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
307
+ * @param {string} [authorization] Bearer Token
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ updateLeadSync(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateLeadResponseClass>;
312
+ };
313
+ /**
314
+ * Request parameters for createLead operation in LeadsApi.
315
+ * @export
316
+ * @interface LeadsApiCreateLeadRequest
317
+ */
318
+ export interface LeadsApiCreateLeadRequest {
319
+ /**
320
+ *
321
+ * @type {CreateLeadRequestDto}
322
+ * @memberof LeadsApiCreateLead
323
+ */
324
+ readonly createLeadRequestDto: CreateLeadRequestDto;
325
+ /**
326
+ * Bearer Token
327
+ * @type {string}
328
+ * @memberof LeadsApiCreateLead
329
+ */
330
+ readonly authorization?: string;
331
+ }
332
+ /**
333
+ * Request parameters for createLeadAsync operation in LeadsApi.
334
+ * @export
335
+ * @interface LeadsApiCreateLeadAsyncRequest
336
+ */
337
+ export interface LeadsApiCreateLeadAsyncRequest {
338
+ /**
339
+ *
340
+ * @type {CreateLeadRequestDto}
341
+ * @memberof LeadsApiCreateLeadAsync
342
+ */
343
+ readonly createLeadRequestDto: CreateLeadRequestDto;
344
+ /**
345
+ * Bearer Token
346
+ * @type {string}
347
+ * @memberof LeadsApiCreateLeadAsync
348
+ */
349
+ readonly authorization?: string;
350
+ }
351
+ /**
352
+ * Request parameters for createLeadSync operation in LeadsApi.
353
+ * @export
354
+ * @interface LeadsApiCreateLeadSyncRequest
355
+ */
356
+ export interface LeadsApiCreateLeadSyncRequest {
357
+ /**
358
+ *
359
+ * @type {CreateLeadRequestDto}
360
+ * @memberof LeadsApiCreateLeadSync
361
+ */
362
+ readonly createLeadRequestDto: CreateLeadRequestDto;
363
+ /**
364
+ * Bearer Token
365
+ * @type {string}
366
+ * @memberof LeadsApiCreateLeadSync
367
+ */
368
+ readonly authorization?: string;
369
+ }
370
+ /**
371
+ * Request parameters for deleteLead operation in LeadsApi.
372
+ * @export
373
+ * @interface LeadsApiDeleteLeadRequest
374
+ */
375
+ export interface LeadsApiDeleteLeadRequest {
376
+ /**
377
+ *
378
+ * @type {string}
379
+ * @memberof LeadsApiDeleteLead
380
+ */
381
+ readonly code: string;
382
+ /**
383
+ * Bearer Token
384
+ * @type {string}
385
+ * @memberof LeadsApiDeleteLead
386
+ */
387
+ readonly authorization?: string;
388
+ }
389
+ /**
390
+ * Request parameters for getLead operation in LeadsApi.
391
+ * @export
392
+ * @interface LeadsApiGetLeadRequest
393
+ */
394
+ export interface LeadsApiGetLeadRequest {
395
+ /**
396
+ * Unique identifier for the object.
397
+ * @type {string}
398
+ * @memberof LeadsApiGetLead
399
+ */
400
+ readonly code: string;
401
+ /**
402
+ * Bearer Token
403
+ * @type {string}
404
+ * @memberof LeadsApiGetLead
405
+ */
406
+ readonly authorization?: string;
407
+ /**
408
+ *
409
+ * @type {string}
410
+ * @memberof LeadsApiGetLead
411
+ */
412
+ readonly expand?: string;
413
+ }
414
+ /**
415
+ * Request parameters for listLeads operation in LeadsApi.
416
+ * @export
417
+ * @interface LeadsApiListLeadsRequest
418
+ */
419
+ export interface LeadsApiListLeadsRequest {
420
+ /**
421
+ * Bearer Token
422
+ * @type {string}
423
+ * @memberof LeadsApiListLeads
424
+ */
425
+ readonly authorization?: string;
426
+ /**
427
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
428
+ * @type {any}
429
+ * @memberof LeadsApiListLeads
430
+ */
431
+ readonly pageSize?: any;
432
+ /**
433
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
434
+ * @type {any}
435
+ * @memberof LeadsApiListLeads
436
+ */
437
+ readonly pageToken?: any;
438
+ /**
439
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
440
+ * @type {any}
441
+ * @memberof LeadsApiListLeads
442
+ */
443
+ readonly filter?: any;
444
+ /**
445
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
446
+ * @type {any}
447
+ * @memberof LeadsApiListLeads
448
+ */
449
+ readonly search?: any;
450
+ /**
451
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
452
+ * @type {any}
453
+ * @memberof LeadsApiListLeads
454
+ */
455
+ readonly order?: any;
456
+ /**
457
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
458
+ * @type {any}
459
+ * @memberof LeadsApiListLeads
460
+ */
461
+ readonly expand?: any;
462
+ }
463
+ /**
464
+ * Request parameters for patchLead operation in LeadsApi.
465
+ * @export
466
+ * @interface LeadsApiPatchLeadRequest
467
+ */
468
+ export interface LeadsApiPatchLeadRequest {
469
+ /**
470
+ * Unique identifier for the object.
471
+ * @type {string}
472
+ * @memberof LeadsApiPatchLead
473
+ */
474
+ readonly code: string;
475
+ /**
476
+ *
477
+ * @type {PatchLeadRequestDto}
478
+ * @memberof LeadsApiPatchLead
479
+ */
480
+ readonly patchLeadRequestDto: PatchLeadRequestDto;
481
+ /**
482
+ * Bearer Token
483
+ * @type {string}
484
+ * @memberof LeadsApiPatchLead
485
+ */
486
+ readonly authorization?: string;
487
+ }
488
+ /**
489
+ * Request parameters for updateLead operation in LeadsApi.
490
+ * @export
491
+ * @interface LeadsApiUpdateLeadRequest
492
+ */
493
+ export interface LeadsApiUpdateLeadRequest {
494
+ /**
495
+ * Unique identifier for the object.
496
+ * @type {string}
497
+ * @memberof LeadsApiUpdateLead
498
+ */
499
+ readonly code: string;
500
+ /**
501
+ *
502
+ * @type {UpdateLeadRequestDto}
503
+ * @memberof LeadsApiUpdateLead
504
+ */
505
+ readonly updateLeadRequestDto: UpdateLeadRequestDto;
506
+ /**
507
+ * Bearer Token
508
+ * @type {string}
509
+ * @memberof LeadsApiUpdateLead
510
+ */
511
+ readonly authorization?: string;
512
+ }
513
+ /**
514
+ * Request parameters for updateLeadSync operation in LeadsApi.
515
+ * @export
516
+ * @interface LeadsApiUpdateLeadSyncRequest
517
+ */
518
+ export interface LeadsApiUpdateLeadSyncRequest {
519
+ /**
520
+ * Unique identifier for the object.
521
+ * @type {string}
522
+ * @memberof LeadsApiUpdateLeadSync
523
+ */
524
+ readonly code: string;
525
+ /**
526
+ *
527
+ * @type {UpdateLeadRequestDto}
528
+ * @memberof LeadsApiUpdateLeadSync
529
+ */
530
+ readonly updateLeadRequestDto: UpdateLeadRequestDto;
531
+ /**
532
+ * Bearer Token
533
+ * @type {string}
534
+ * @memberof LeadsApiUpdateLeadSync
535
+ */
536
+ readonly authorization?: string;
537
+ }
538
+ /**
539
+ * LeadsApi - object-oriented interface
540
+ * @export
541
+ * @class LeadsApi
542
+ * @extends {BaseAPI}
543
+ */
544
+ export declare class LeadsApi extends BaseAPI {
545
+ /**
546
+ * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
547
+ * @summary Create the lead
548
+ * @param {LeadsApiCreateLeadRequest} requestParameters Request parameters.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ * @memberof LeadsApi
552
+ */
553
+ createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
554
+ /**
555
+ * This will send the lead to the queue for creation. Should be used when creating multiple leads at the same time - also called \'batch processing\'.
556
+ * @summary Create the lead asynchronously
557
+ * @param {LeadsApiCreateLeadAsyncRequest} requestParameters Request parameters.
558
+ * @param {*} [options] Override http request option.
559
+ * @throws {RequiredError}
560
+ * @memberof LeadsApi
561
+ */
562
+ createLeadAsync(requestParameters: LeadsApiCreateLeadAsyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadAsyncResponseClass, any>>;
563
+ /**
564
+ * This endpoint initiates the creation of a lead, which is the initial step in a comprehensive workflow responsible for the creation of an account, policy, and banking information. Unlike the standard lead creation endpoint, this variant ensures that the process waits until the entire workflow is successfully completed before providing a response.
565
+ * @summary Create the lead
566
+ * @param {LeadsApiCreateLeadSyncRequest} requestParameters Request parameters.
567
+ * @param {*} [options] Override http request option.
568
+ * @throws {RequiredError}
569
+ * @memberof LeadsApi
570
+ */
571
+ createLeadSync(requestParameters: LeadsApiCreateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateLeadResponseClass, any>>;
572
+ /**
573
+ * Permanently deletes the lead. Supply the unique code that was returned when you created the lead and this will delete it.
574
+ * @summary Delete the lead
575
+ * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters.
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ * @memberof LeadsApi
579
+ */
580
+ deleteLead(requestParameters: LeadsApiDeleteLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
581
+ /**
582
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
583
+ * @summary Retrieve the lead
584
+ * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof LeadsApi
588
+ */
589
+ getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetLeadResponseClass, any>>;
590
+ /**
591
+ * Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
592
+ * @summary List leads
593
+ * @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ * @memberof LeadsApi
597
+ */
598
+ listLeads(requestParameters?: LeadsApiListLeadsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListLeadsResponseClass, any>>;
599
+ /**
600
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
601
+ * @summary Patch the lead
602
+ * @param {LeadsApiPatchLeadRequest} requestParameters Request parameters.
603
+ * @param {*} [options] Override http request option.
604
+ * @throws {RequiredError}
605
+ * @memberof LeadsApi
606
+ */
607
+ patchLead(requestParameters: LeadsApiPatchLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchLeadResponseClass, any>>;
608
+ /**
609
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
610
+ * @summary Update the lead
611
+ * @param {LeadsApiUpdateLeadRequest} requestParameters Request parameters.
612
+ * @param {*} [options] Override http request option.
613
+ * @throws {RequiredError}
614
+ * @memberof LeadsApi
615
+ */
616
+ updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any>>;
617
+ /**
618
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
619
+ * @summary Update the lead
620
+ * @param {LeadsApiUpdateLeadSyncRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof LeadsApi
624
+ */
625
+ updateLeadSync(requestParameters: LeadsApiUpdateLeadSyncRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateLeadResponseClass, any>>;
626
+ }