@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,722 @@
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 { ActivatePolicyRequestDto } from '../models';
16
+ import { ActivatePolicyResponseClass } from '../models';
17
+ import { CreatePolicyRequestDto } from '../models';
18
+ import { CreatePolicyResponseClass } from '../models';
19
+ import { GetPolicyResponseClass } from '../models';
20
+ import { ListPoliciesResponseClass } from '../models';
21
+ import { PatchPolicyRequestDto } from '../models';
22
+ import { PatchPolicyResponseClass } from '../models';
23
+ import { SuspendPolicyRequestDto } from '../models';
24
+ import { SuspendPolicyResponseClass } from '../models';
25
+ import { TerminatePolicyRequestDto } from '../models';
26
+ import { TerminatePolicyResponseClass } from '../models';
27
+ import { UpdatePolicyRequestDto } from '../models';
28
+ import { UpdatePolicyResponseClass } from '../models';
29
+ import { WithdrawPolicyResponseClass } from '../models';
30
+ /**
31
+ * PoliciesApi - axios parameter creator
32
+ * @export
33
+ */
34
+ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
35
+ /**
36
+ * Request to activate an existing suspended policy by tenant.
37
+ * @summary Activate a suspended policy by tenant
38
+ * @param {string} policyCode The policy code.
39
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
40
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ activatePolicy: (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
47
+ * @summary Create the policy
48
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ createPolicy: (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ /**
55
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
56
+ * @summary Retrieve the policy
57
+ * @param {string} code Unique identifier for the object.
58
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ getPolicy: (code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ /**
65
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
66
+ * @summary Retrieve current policy version
67
+ * @param {string} code Unique identifier for the object.
68
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
69
+ * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ getPolicyDataByDate: (code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
+ /**
75
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
76
+ * @summary List policies
77
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
78
+ * @param {number} [pageSize] Page size.
79
+ * @param {string} [pageToken] Page token.
80
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
81
+ * @param {string} [search] Search query.
82
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
83
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
84
+ * @param {*} [options] Override http request option.
85
+ * @throws {RequiredError}
86
+ */
87
+ listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
88
+ /**
89
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
90
+ * @summary Update the policy
91
+ * @param {string} code Unique identifier for the object.
92
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
93
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
94
+ * @param {*} [options] Override http request option.
95
+ * @throws {RequiredError}
96
+ */
97
+ patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
98
+ /**
99
+ * Request to suspend an existing policy by tenant.
100
+ * @summary Suspend a policy by tenant
101
+ * @param {string} policyCode The policy code.
102
+ * @param {SuspendPolicyRequestDto} suspendPolicyRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ suspendPolicy: (policyCode: string, suspendPolicyRequestDto: SuspendPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
108
+ /**
109
+ * Request to terminate an existing policy by tenant.
110
+ * @summary Terminate a policy by tenant
111
+ * @param {string} policyCode The policy code.
112
+ * @param {TerminatePolicyRequestDto} terminatePolicyRequestDto
113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ terminatePolicy: (policyCode: string, terminatePolicyRequestDto: TerminatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
118
+ /**
119
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
120
+ * @summary Update the policy
121
+ * @param {string} code Unique identifier for the object.
122
+ * @param {UpdatePolicyRequestDto} updatePolicyRequestDto
123
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ updatePolicy: (code: string, updatePolicyRequestDto: UpdatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
128
+ /**
129
+ * Withdraw policy by tenant.
130
+ * @summary Withdraw policy by tenant
131
+ * @param {string} policyCode The policy code.
132
+ * @param {object} body
133
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ withdrawPolicy: (policyCode: string, body: object, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
138
+ };
139
+ /**
140
+ * PoliciesApi - functional programming interface
141
+ * @export
142
+ */
143
+ export declare const PoliciesApiFp: (configuration?: Configuration) => {
144
+ /**
145
+ * Request to activate an existing suspended policy by tenant.
146
+ * @summary Activate a suspended policy by tenant
147
+ * @param {string} policyCode The policy code.
148
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
149
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ */
153
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
154
+ /**
155
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
156
+ * @summary Create the policy
157
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
158
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
163
+ /**
164
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
165
+ * @summary Retrieve the policy
166
+ * @param {string} code Unique identifier for the object.
167
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
168
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
173
+ /**
174
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
175
+ * @summary Retrieve current policy version
176
+ * @param {string} code Unique identifier for the object.
177
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
178
+ * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
183
+ /**
184
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
185
+ * @summary List policies
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {number} [pageSize] Page size.
188
+ * @param {string} [pageToken] Page token.
189
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
190
+ * @param {string} [search] Search query.
191
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
192
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
197
+ /**
198
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
199
+ * @summary Update the policy
200
+ * @param {string} code Unique identifier for the object.
201
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
207
+ /**
208
+ * Request to suspend an existing policy by tenant.
209
+ * @summary Suspend a policy by tenant
210
+ * @param {string} policyCode The policy code.
211
+ * @param {SuspendPolicyRequestDto} suspendPolicyRequestDto
212
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ suspendPolicy(policyCode: string, suspendPolicyRequestDto: SuspendPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SuspendPolicyResponseClass>>;
217
+ /**
218
+ * Request to terminate an existing policy by tenant.
219
+ * @summary Terminate a policy by tenant
220
+ * @param {string} policyCode The policy code.
221
+ * @param {TerminatePolicyRequestDto} terminatePolicyRequestDto
222
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ */
226
+ terminatePolicy(policyCode: string, terminatePolicyRequestDto: TerminatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TerminatePolicyResponseClass>>;
227
+ /**
228
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
229
+ * @summary Update the policy
230
+ * @param {string} code Unique identifier for the object.
231
+ * @param {UpdatePolicyRequestDto} updatePolicyRequestDto
232
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
233
+ * @param {*} [options] Override http request option.
234
+ * @throws {RequiredError}
235
+ */
236
+ updatePolicy(code: string, updatePolicyRequestDto: UpdatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePolicyResponseClass>>;
237
+ /**
238
+ * Withdraw policy by tenant.
239
+ * @summary Withdraw policy by tenant
240
+ * @param {string} policyCode The policy code.
241
+ * @param {object} body
242
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyResponseClass>>;
247
+ };
248
+ /**
249
+ * PoliciesApi - factory interface
250
+ * @export
251
+ */
252
+ export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
253
+ /**
254
+ * Request to activate an existing suspended policy by tenant.
255
+ * @summary Activate a suspended policy by tenant
256
+ * @param {string} policyCode The policy code.
257
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
258
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
259
+ * @param {*} [options] Override http request option.
260
+ * @throws {RequiredError}
261
+ */
262
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
263
+ /**
264
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
265
+ * @summary Create the policy
266
+ * @param {CreatePolicyRequestDto} createPolicyRequestDto
267
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
272
+ /**
273
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
274
+ * @summary Retrieve the policy
275
+ * @param {string} code Unique identifier for the object.
276
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
277
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
278
+ * @param {*} [options] Override http request option.
279
+ * @throws {RequiredError}
280
+ */
281
+ getPolicy(code: string, authorization?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<GetPolicyResponseClass>;
282
+ /**
283
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
284
+ * @summary Retrieve current policy version
285
+ * @param {string} code Unique identifier for the object.
286
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
287
+ * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ getPolicyDataByDate(code: string, authorization?: string, timesliceDate?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
292
+ /**
293
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
294
+ * @summary List policies
295
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {number} [pageSize] Page size.
297
+ * @param {string} [pageToken] Page token.
298
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
299
+ * @param {string} [search] Search query.
300
+ * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
301
+ * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass>;
306
+ /**
307
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
308
+ * @summary Update the policy
309
+ * @param {string} code Unique identifier for the object.
310
+ * @param {PatchPolicyRequestDto} patchPolicyRequestDto
311
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
316
+ /**
317
+ * Request to suspend an existing policy by tenant.
318
+ * @summary Suspend a policy by tenant
319
+ * @param {string} policyCode The policy code.
320
+ * @param {SuspendPolicyRequestDto} suspendPolicyRequestDto
321
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
322
+ * @param {*} [options] Override http request option.
323
+ * @throws {RequiredError}
324
+ */
325
+ suspendPolicy(policyCode: string, suspendPolicyRequestDto: SuspendPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<SuspendPolicyResponseClass>;
326
+ /**
327
+ * Request to terminate an existing policy by tenant.
328
+ * @summary Terminate a policy by tenant
329
+ * @param {string} policyCode The policy code.
330
+ * @param {TerminatePolicyRequestDto} terminatePolicyRequestDto
331
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ terminatePolicy(policyCode: string, terminatePolicyRequestDto: TerminatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<TerminatePolicyResponseClass>;
336
+ /**
337
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
338
+ * @summary Update the policy
339
+ * @param {string} code Unique identifier for the object.
340
+ * @param {UpdatePolicyRequestDto} updatePolicyRequestDto
341
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ updatePolicy(code: string, updatePolicyRequestDto: UpdatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePolicyResponseClass>;
346
+ /**
347
+ * Withdraw policy by tenant.
348
+ * @summary Withdraw policy by tenant
349
+ * @param {string} policyCode The policy code.
350
+ * @param {object} body
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyResponseClass>;
356
+ };
357
+ /**
358
+ * Request parameters for activatePolicy operation in PoliciesApi.
359
+ * @export
360
+ * @interface PoliciesApiActivatePolicyRequest
361
+ */
362
+ export interface PoliciesApiActivatePolicyRequest {
363
+ /**
364
+ * The policy code.
365
+ * @type {string}
366
+ * @memberof PoliciesApiActivatePolicy
367
+ */
368
+ readonly policyCode: string;
369
+ /**
370
+ *
371
+ * @type {ActivatePolicyRequestDto}
372
+ * @memberof PoliciesApiActivatePolicy
373
+ */
374
+ readonly activatePolicyRequestDto: ActivatePolicyRequestDto;
375
+ /**
376
+ * Bearer Token: provided by the login endpoint under the name accessToken.
377
+ * @type {string}
378
+ * @memberof PoliciesApiActivatePolicy
379
+ */
380
+ readonly authorization?: string;
381
+ }
382
+ /**
383
+ * Request parameters for createPolicy operation in PoliciesApi.
384
+ * @export
385
+ * @interface PoliciesApiCreatePolicyRequest
386
+ */
387
+ export interface PoliciesApiCreatePolicyRequest {
388
+ /**
389
+ *
390
+ * @type {CreatePolicyRequestDto}
391
+ * @memberof PoliciesApiCreatePolicy
392
+ */
393
+ readonly createPolicyRequestDto: CreatePolicyRequestDto;
394
+ /**
395
+ * Bearer Token: provided by the login endpoint under the name accessToken.
396
+ * @type {string}
397
+ * @memberof PoliciesApiCreatePolicy
398
+ */
399
+ readonly authorization?: string;
400
+ }
401
+ /**
402
+ * Request parameters for getPolicy operation in PoliciesApi.
403
+ * @export
404
+ * @interface PoliciesApiGetPolicyRequest
405
+ */
406
+ export interface PoliciesApiGetPolicyRequest {
407
+ /**
408
+ * Unique identifier for the object.
409
+ * @type {string}
410
+ * @memberof PoliciesApiGetPolicy
411
+ */
412
+ readonly code: string;
413
+ /**
414
+ * Bearer Token: provided by the login endpoint under the name accessToken.
415
+ * @type {string}
416
+ * @memberof PoliciesApiGetPolicy
417
+ */
418
+ readonly authorization?: string;
419
+ /**
420
+ * You can expand policy in this endpoint. By default, versions will be an empty array.
421
+ * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
422
+ * @memberof PoliciesApiGetPolicy
423
+ */
424
+ readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
425
+ }
426
+ /**
427
+ * Request parameters for getPolicyDataByDate operation in PoliciesApi.
428
+ * @export
429
+ * @interface PoliciesApiGetPolicyDataByDateRequest
430
+ */
431
+ export interface PoliciesApiGetPolicyDataByDateRequest {
432
+ /**
433
+ * Unique identifier for the object.
434
+ * @type {string}
435
+ * @memberof PoliciesApiGetPolicyDataByDate
436
+ */
437
+ readonly code: string;
438
+ /**
439
+ * Bearer Token: provided by the login endpoint under the name accessToken.
440
+ * @type {string}
441
+ * @memberof PoliciesApiGetPolicyDataByDate
442
+ */
443
+ readonly authorization?: string;
444
+ /**
445
+ * This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices available.
446
+ * @type {string}
447
+ * @memberof PoliciesApiGetPolicyDataByDate
448
+ */
449
+ readonly timesliceDate?: string;
450
+ }
451
+ /**
452
+ * Request parameters for listPolicies operation in PoliciesApi.
453
+ * @export
454
+ * @interface PoliciesApiListPoliciesRequest
455
+ */
456
+ export interface PoliciesApiListPoliciesRequest {
457
+ /**
458
+ * Bearer Token: provided by the login endpoint under the name accessToken.
459
+ * @type {string}
460
+ * @memberof PoliciesApiListPolicies
461
+ */
462
+ readonly authorization?: string;
463
+ /**
464
+ * Page size.
465
+ * @type {number}
466
+ * @memberof PoliciesApiListPolicies
467
+ */
468
+ readonly pageSize?: number;
469
+ /**
470
+ * Page token.
471
+ * @type {string}
472
+ * @memberof PoliciesApiListPolicies
473
+ */
474
+ readonly pageToken?: string;
475
+ /**
476
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, leadCode, policyNumber, holder, policyStartDate, productVersionId, productId, accountCode, productName, statuses, createdAt, policyData&lt;/i&gt;
477
+ * @type {string}
478
+ * @memberof PoliciesApiListPolicies
479
+ */
480
+ readonly filter?: string;
481
+ /**
482
+ * Search query.
483
+ * @type {string}
484
+ * @memberof PoliciesApiListPolicies
485
+ */
486
+ readonly search?: string;
487
+ /**
488
+ * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId&lt;/i&gt;
489
+ * @type {string}
490
+ * @memberof PoliciesApiListPolicies
491
+ */
492
+ readonly order?: string;
493
+ /**
494
+ * You can expand policy versions list in this endpoint. By default, versions will be an empty array.
495
+ * @type {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'}
496
+ * @memberof PoliciesApiListPolicies
497
+ */
498
+ readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
499
+ }
500
+ /**
501
+ * Request parameters for patchPolicy operation in PoliciesApi.
502
+ * @export
503
+ * @interface PoliciesApiPatchPolicyRequest
504
+ */
505
+ export interface PoliciesApiPatchPolicyRequest {
506
+ /**
507
+ * Unique identifier for the object.
508
+ * @type {string}
509
+ * @memberof PoliciesApiPatchPolicy
510
+ */
511
+ readonly code: string;
512
+ /**
513
+ *
514
+ * @type {PatchPolicyRequestDto}
515
+ * @memberof PoliciesApiPatchPolicy
516
+ */
517
+ readonly patchPolicyRequestDto: PatchPolicyRequestDto;
518
+ /**
519
+ * Bearer Token: provided by the login endpoint under the name accessToken.
520
+ * @type {string}
521
+ * @memberof PoliciesApiPatchPolicy
522
+ */
523
+ readonly authorization?: string;
524
+ }
525
+ /**
526
+ * Request parameters for suspendPolicy operation in PoliciesApi.
527
+ * @export
528
+ * @interface PoliciesApiSuspendPolicyRequest
529
+ */
530
+ export interface PoliciesApiSuspendPolicyRequest {
531
+ /**
532
+ * The policy code.
533
+ * @type {string}
534
+ * @memberof PoliciesApiSuspendPolicy
535
+ */
536
+ readonly policyCode: string;
537
+ /**
538
+ *
539
+ * @type {SuspendPolicyRequestDto}
540
+ * @memberof PoliciesApiSuspendPolicy
541
+ */
542
+ readonly suspendPolicyRequestDto: SuspendPolicyRequestDto;
543
+ /**
544
+ * Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @type {string}
546
+ * @memberof PoliciesApiSuspendPolicy
547
+ */
548
+ readonly authorization?: string;
549
+ }
550
+ /**
551
+ * Request parameters for terminatePolicy operation in PoliciesApi.
552
+ * @export
553
+ * @interface PoliciesApiTerminatePolicyRequest
554
+ */
555
+ export interface PoliciesApiTerminatePolicyRequest {
556
+ /**
557
+ * The policy code.
558
+ * @type {string}
559
+ * @memberof PoliciesApiTerminatePolicy
560
+ */
561
+ readonly policyCode: string;
562
+ /**
563
+ *
564
+ * @type {TerminatePolicyRequestDto}
565
+ * @memberof PoliciesApiTerminatePolicy
566
+ */
567
+ readonly terminatePolicyRequestDto: TerminatePolicyRequestDto;
568
+ /**
569
+ * Bearer Token: provided by the login endpoint under the name accessToken.
570
+ * @type {string}
571
+ * @memberof PoliciesApiTerminatePolicy
572
+ */
573
+ readonly authorization?: string;
574
+ }
575
+ /**
576
+ * Request parameters for updatePolicy operation in PoliciesApi.
577
+ * @export
578
+ * @interface PoliciesApiUpdatePolicyRequest
579
+ */
580
+ export interface PoliciesApiUpdatePolicyRequest {
581
+ /**
582
+ * Unique identifier for the object.
583
+ * @type {string}
584
+ * @memberof PoliciesApiUpdatePolicy
585
+ */
586
+ readonly code: string;
587
+ /**
588
+ *
589
+ * @type {UpdatePolicyRequestDto}
590
+ * @memberof PoliciesApiUpdatePolicy
591
+ */
592
+ readonly updatePolicyRequestDto: UpdatePolicyRequestDto;
593
+ /**
594
+ * Bearer Token: provided by the login endpoint under the name accessToken.
595
+ * @type {string}
596
+ * @memberof PoliciesApiUpdatePolicy
597
+ */
598
+ readonly authorization?: string;
599
+ }
600
+ /**
601
+ * Request parameters for withdrawPolicy operation in PoliciesApi.
602
+ * @export
603
+ * @interface PoliciesApiWithdrawPolicyRequest
604
+ */
605
+ export interface PoliciesApiWithdrawPolicyRequest {
606
+ /**
607
+ * The policy code.
608
+ * @type {string}
609
+ * @memberof PoliciesApiWithdrawPolicy
610
+ */
611
+ readonly policyCode: string;
612
+ /**
613
+ *
614
+ * @type {object}
615
+ * @memberof PoliciesApiWithdrawPolicy
616
+ */
617
+ readonly body: object;
618
+ /**
619
+ * Bearer Token: provided by the login endpoint under the name accessToken.
620
+ * @type {string}
621
+ * @memberof PoliciesApiWithdrawPolicy
622
+ */
623
+ readonly authorization?: string;
624
+ }
625
+ /**
626
+ * PoliciesApi - object-oriented interface
627
+ * @export
628
+ * @class PoliciesApi
629
+ * @extends {BaseAPI}
630
+ */
631
+ export declare class PoliciesApi extends BaseAPI {
632
+ /**
633
+ * Request to activate an existing suspended policy by tenant.
634
+ * @summary Activate a suspended policy by tenant
635
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
636
+ * @param {*} [options] Override http request option.
637
+ * @throws {RequiredError}
638
+ * @memberof PoliciesApi
639
+ */
640
+ activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any>>;
641
+ /**
642
+ * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
643
+ * @summary Create the policy
644
+ * @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
645
+ * @param {*} [options] Override http request option.
646
+ * @throws {RequiredError}
647
+ * @memberof PoliciesApi
648
+ */
649
+ createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyResponseClass, any>>;
650
+ /**
651
+ * Retrieves the details of the policy that was previously created. Supply the unique policy code that was returned when you created it and Emil Api will return the corresponding policy information.
652
+ * @summary Retrieve the policy
653
+ * @param {PoliciesApiGetPolicyRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof PoliciesApi
657
+ */
658
+ getPolicy(requestParameters: PoliciesApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
659
+ /**
660
+ * This endpoint will return the current version of the policy. It is possible to filter the response by a specific date and the system will return the valid data that was (or will be) at the provided date.
661
+ * @summary Retrieve current policy version
662
+ * @param {PoliciesApiGetPolicyDataByDateRequest} requestParameters Request parameters.
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ * @memberof PoliciesApi
666
+ */
667
+ getPolicyDataByDate(requestParameters: PoliciesApiGetPolicyDataByDateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
668
+ /**
669
+ * Returns a list of policies you have previously created. The policies are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
670
+ * @summary List policies
671
+ * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ * @memberof PoliciesApi
675
+ */
676
+ listPolicies(requestParameters?: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
677
+ /**
678
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
679
+ * @summary Update the policy
680
+ * @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
681
+ * @param {*} [options] Override http request option.
682
+ * @throws {RequiredError}
683
+ * @memberof PoliciesApi
684
+ */
685
+ patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
686
+ /**
687
+ * Request to suspend an existing policy by tenant.
688
+ * @summary Suspend a policy by tenant
689
+ * @param {PoliciesApiSuspendPolicyRequest} requestParameters Request parameters.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof PoliciesApi
693
+ */
694
+ suspendPolicy(requestParameters: PoliciesApiSuspendPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SuspendPolicyResponseClass, any>>;
695
+ /**
696
+ * Request to terminate an existing policy by tenant.
697
+ * @summary Terminate a policy by tenant
698
+ * @param {PoliciesApiTerminatePolicyRequest} requestParameters Request parameters.
699
+ * @param {*} [options] Override http request option.
700
+ * @throws {RequiredError}
701
+ * @memberof PoliciesApi
702
+ */
703
+ terminatePolicy(requestParameters: PoliciesApiTerminatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TerminatePolicyResponseClass, any>>;
704
+ /**
705
+ * Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
706
+ * @summary Update the policy
707
+ * @param {PoliciesApiUpdatePolicyRequest} requestParameters Request parameters.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ * @memberof PoliciesApi
711
+ */
712
+ updatePolicy(requestParameters: PoliciesApiUpdatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePolicyResponseClass, any>>;
713
+ /**
714
+ * Withdraw policy by tenant.
715
+ * @summary Withdraw policy by tenant
716
+ * @param {PoliciesApiWithdrawPolicyRequest} requestParameters Request parameters.
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ * @memberof PoliciesApi
720
+ */
721
+ withdrawPolicy(requestParameters: PoliciesApiWithdrawPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<WithdrawPolicyResponseClass, any>>;
722
+ }