@emilgroup/insurance-v2-sdk-node 0.0.0-stage → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1009) hide show
  1. package/.openapi-generator/FILES +341 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +83 -2
  5. package/api/group-policies-api.ts +2699 -0
  6. package/api/group-tariffs-api.ts +2856 -0
  7. package/api/jobs-api.ts +760 -0
  8. package/api/leads-api.ts +2118 -0
  9. package/api/policies-api.ts +2427 -0
  10. package/api/tariffs-api.ts +6383 -0
  11. package/api.ts +41 -0
  12. package/base.ts +396 -0
  13. package/common.ts +200 -0
  14. package/configuration.ts +118 -0
  15. package/dist/api/group-policies-api.d.ts +1518 -0
  16. package/dist/api/group-policies-api.js +2157 -0
  17. package/dist/api/group-tariffs-api.d.ts +1625 -0
  18. package/dist/api/group-tariffs-api.js +2236 -0
  19. package/dist/api/jobs-api.d.ts +426 -0
  20. package/dist/api/jobs-api.js +712 -0
  21. package/dist/api/leads-api.d.ts +1189 -0
  22. package/dist/api/leads-api.js +1744 -0
  23. package/dist/api/policies-api.d.ts +1373 -0
  24. package/dist/api/policies-api.js +1921 -0
  25. package/dist/api/tariffs-api.d.ts +3636 -0
  26. package/dist/api/tariffs-api.js +4898 -0
  27. package/dist/api.d.ts +17 -0
  28. package/dist/api.js +35 -0
  29. package/dist/base.d.ts +97 -0
  30. package/dist/base.js +493 -0
  31. package/dist/common.d.ts +92 -0
  32. package/dist/common.js +278 -0
  33. package/dist/configuration.d.ts +96 -0
  34. package/dist/configuration.js +52 -0
  35. package/dist/index.d.ts +15 -0
  36. package/dist/index.js +36 -0
  37. package/dist/models/accept-lead-body.d.ts +30 -0
  38. package/dist/models/accept-lead-body.js +15 -0
  39. package/dist/models/accept-lead-response.d.ts +39 -0
  40. package/dist/models/accept-lead-response.js +15 -0
  41. package/dist/models/activate-group-policy-body.d.ts +24 -0
  42. package/dist/models/activate-group-policy-body.js +15 -0
  43. package/dist/models/activate-group-policy-response.d.ts +32 -0
  44. package/dist/models/activate-group-policy-response.js +15 -0
  45. package/dist/models/actor.d.ts +21 -0
  46. package/dist/models/actor.js +25 -0
  47. package/dist/models/analyze-config-file-body.d.ts +68 -0
  48. package/dist/models/analyze-config-file-body.js +15 -0
  49. package/dist/models/analyze-config-file-response.d.ts +88 -0
  50. package/dist/models/analyze-config-file-response.js +15 -0
  51. package/dist/models/any.d.ts +25 -0
  52. package/dist/models/any.js +15 -0
  53. package/dist/models/applied-factor.d.ts +30 -0
  54. package/dist/models/applied-factor.js +15 -0
  55. package/dist/models/approval-role.d.ts +30 -0
  56. package/dist/models/approval-role.js +15 -0
  57. package/dist/models/asset-status.d.ts +22 -0
  58. package/dist/models/asset-status.js +26 -0
  59. package/dist/models/available-group-tariff.d.ts +44 -0
  60. package/dist/models/available-group-tariff.js +15 -0
  61. package/dist/models/available-tariff.d.ts +55 -0
  62. package/dist/models/available-tariff.js +15 -0
  63. package/dist/models/available-transition.d.ts +55 -0
  64. package/dist/models/available-transition.js +15 -0
  65. package/dist/models/available-version.d.ts +92 -0
  66. package/dist/models/available-version.js +15 -0
  67. package/dist/models/billing-config.d.ts +36 -0
  68. package/dist/models/billing-config.js +15 -0
  69. package/dist/models/calculate-group-policy-adjustments-body.d.ts +43 -0
  70. package/dist/models/calculate-group-policy-adjustments-body.js +15 -0
  71. package/dist/models/calculate-group-policy-adjustments-response.d.ts +37 -0
  72. package/dist/models/calculate-group-policy-adjustments-response.js +15 -0
  73. package/dist/models/cancel-job-response.d.ts +25 -0
  74. package/dist/models/cancel-job-response.js +15 -0
  75. package/dist/models/change-kind.d.ts +22 -0
  76. package/dist/models/change-kind.js +26 -0
  77. package/dist/models/check-group-policy-upgrade-body.d.ts +30 -0
  78. package/dist/models/check-group-policy-upgrade-body.js +15 -0
  79. package/dist/models/check-group-policy-upgrade-response.d.ts +25 -0
  80. package/dist/models/check-group-policy-upgrade-response.js +15 -0
  81. package/dist/models/check-policy-upgrade-body.d.ts +30 -0
  82. package/dist/models/check-policy-upgrade-body.js +15 -0
  83. package/dist/models/check-policy-upgrade-response.d.ts +25 -0
  84. package/dist/models/check-policy-upgrade-response.js +15 -0
  85. package/dist/models/child-fallback.d.ts +21 -0
  86. package/dist/models/child-fallback.js +25 -0
  87. package/dist/models/configuration-pin.d.ts +42 -0
  88. package/dist/models/configuration-pin.js +15 -0
  89. package/dist/models/conflict-reason.d.ts +36 -0
  90. package/dist/models/conflict-reason.js +15 -0
  91. package/dist/models/contract-default-kind.d.ts +23 -0
  92. package/dist/models/contract-default-kind.js +27 -0
  93. package/dist/models/contract-unresolved-reason.d.ts +20 -0
  94. package/dist/models/contract-unresolved-reason.js +24 -0
  95. package/dist/models/core-config-file-kind.d.ts +21 -0
  96. package/dist/models/core-config-file-kind.js +25 -0
  97. package/dist/models/core-config-file.d.ts +151 -0
  98. package/dist/models/core-config-file.js +15 -0
  99. package/dist/models/core-config.d.ts +127 -0
  100. package/dist/models/core-config.js +15 -0
  101. package/dist/models/correct-group-policy-body.d.ts +61 -0
  102. package/dist/models/correct-group-policy-body.js +15 -0
  103. package/dist/models/correct-group-policy-response.d.ts +31 -0
  104. package/dist/models/correct-group-policy-response.js +15 -0
  105. package/dist/models/correct-policy-body.d.ts +55 -0
  106. package/dist/models/correct-policy-body.js +15 -0
  107. package/dist/models/correct-policy-response.d.ts +44 -0
  108. package/dist/models/correct-policy-response.js +15 -0
  109. package/dist/models/coverage-amount.d.ts +30 -0
  110. package/dist/models/coverage-amount.js +15 -0
  111. package/dist/models/coverage-approval-limit.d.ts +30 -0
  112. package/dist/models/coverage-approval-limit.js +15 -0
  113. package/dist/models/coverage-billing.d.ts +30 -0
  114. package/dist/models/coverage-billing.js +15 -0
  115. package/dist/models/coverage-category.d.ts +56 -0
  116. package/dist/models/coverage-category.js +15 -0
  117. package/dist/models/coverage-deductible.d.ts +67 -0
  118. package/dist/models/coverage-deductible.js +15 -0
  119. package/dist/models/coverage-detail.d.ts +53 -0
  120. package/dist/models/coverage-detail.js +15 -0
  121. package/dist/models/coverage-group-policy.d.ts +42 -0
  122. package/dist/models/coverage-group-policy.js +15 -0
  123. package/dist/models/coverage-insured-object.d.ts +42 -0
  124. package/dist/models/coverage-insured-object.js +15 -0
  125. package/dist/models/coverage-named.d.ts +37 -0
  126. package/dist/models/coverage-named.js +15 -0
  127. package/dist/models/coverage-policy.d.ts +55 -0
  128. package/dist/models/coverage-policy.js +15 -0
  129. package/dist/models/coverage-term-detail.d.ts +49 -0
  130. package/dist/models/coverage-term-detail.js +15 -0
  131. package/dist/models/coverage-variant.d.ts +30 -0
  132. package/dist/models/coverage-variant.js +15 -0
  133. package/dist/models/coverage-waiting-period.d.ts +42 -0
  134. package/dist/models/coverage-waiting-period.js +15 -0
  135. package/dist/models/create-config-file-upload-body.d.ts +30 -0
  136. package/dist/models/create-config-file-upload-body.js +15 -0
  137. package/dist/models/create-config-file-upload-response.d.ts +36 -0
  138. package/dist/models/create-config-file-upload-response.js +15 -0
  139. package/dist/models/create-core-config-body.d.ts +42 -0
  140. package/dist/models/create-core-config-body.js +15 -0
  141. package/dist/models/create-core-config-response.d.ts +25 -0
  142. package/dist/models/create-core-config-response.js +15 -0
  143. package/dist/models/create-detail-export-job-request.d.ts +56 -0
  144. package/dist/models/create-detail-export-job-request.js +15 -0
  145. package/dist/models/create-detail-export-job-response.d.ts +25 -0
  146. package/dist/models/create-detail-export-job-response.js +15 -0
  147. package/dist/models/create-export-job-request.d.ts +68 -0
  148. package/dist/models/create-export-job-request.js +15 -0
  149. package/dist/models/create-export-job-response.d.ts +25 -0
  150. package/dist/models/create-export-job-response.js +15 -0
  151. package/dist/models/create-generation-body.d.ts +42 -0
  152. package/dist/models/create-generation-body.js +15 -0
  153. package/dist/models/create-generation-response.d.ts +32 -0
  154. package/dist/models/create-generation-response.js +15 -0
  155. package/dist/models/create-group-core-config-body.d.ts +42 -0
  156. package/dist/models/create-group-core-config-body.js +15 -0
  157. package/dist/models/create-group-core-config-response.d.ts +25 -0
  158. package/dist/models/create-group-core-config-response.js +15 -0
  159. package/dist/models/create-group-generation-body.d.ts +30 -0
  160. package/dist/models/create-group-generation-body.js +15 -0
  161. package/dist/models/create-group-generation-response.d.ts +25 -0
  162. package/dist/models/create-group-generation-response.js +15 -0
  163. package/dist/models/create-group-policy-request.d.ts +68 -0
  164. package/dist/models/create-group-policy-request.js +15 -0
  165. package/dist/models/create-group-policy-response.d.ts +32 -0
  166. package/dist/models/create-group-policy-response.js +15 -0
  167. package/dist/models/create-group-tariff-request.d.ts +48 -0
  168. package/dist/models/create-group-tariff-request.js +15 -0
  169. package/dist/models/create-group-tariff-response.d.ts +25 -0
  170. package/dist/models/create-group-tariff-response.js +15 -0
  171. package/dist/models/create-group-version-body.d.ts +30 -0
  172. package/dist/models/create-group-version-body.js +15 -0
  173. package/dist/models/create-group-version-response.d.ts +25 -0
  174. package/dist/models/create-group-version-response.js +15 -0
  175. package/dist/models/create-lead-import-upload-request.d.ts +30 -0
  176. package/dist/models/create-lead-import-upload-request.js +15 -0
  177. package/dist/models/create-lead-import-upload-response.d.ts +36 -0
  178. package/dist/models/create-lead-import-upload-response.js +15 -0
  179. package/dist/models/create-lead-request.d.ts +56 -0
  180. package/dist/models/create-lead-request.js +15 -0
  181. package/dist/models/create-lead-response.d.ts +32 -0
  182. package/dist/models/create-lead-response.js +15 -0
  183. package/dist/models/create-line-of-insurance-request.d.ts +32 -0
  184. package/dist/models/create-line-of-insurance-request.js +15 -0
  185. package/dist/models/create-line-of-insurance-response.d.ts +25 -0
  186. package/dist/models/create-line-of-insurance-response.js +15 -0
  187. package/dist/models/create-policy-request.d.ts +67 -0
  188. package/dist/models/create-policy-request.js +15 -0
  189. package/dist/models/create-policy-response.d.ts +32 -0
  190. package/dist/models/create-policy-response.js +15 -0
  191. package/dist/models/create-tariff-request.d.ts +48 -0
  192. package/dist/models/create-tariff-request.js +15 -0
  193. package/dist/models/create-tariff-response.d.ts +25 -0
  194. package/dist/models/create-tariff-response.js +15 -0
  195. package/dist/models/create-version-body.d.ts +30 -0
  196. package/dist/models/create-version-body.js +15 -0
  197. package/dist/models/create-version-response.d.ts +25 -0
  198. package/dist/models/create-version-response.js +15 -0
  199. package/dist/models/delete-factor-response.d.ts +25 -0
  200. package/dist/models/delete-factor-response.js +15 -0
  201. package/dist/models/delete-named-range-file-response.d.ts +25 -0
  202. package/dist/models/delete-named-range-file-response.js +15 -0
  203. package/dist/models/detach-policy-body.d.ts +30 -0
  204. package/dist/models/detach-policy-body.js +15 -0
  205. package/dist/models/detach-policy-response.d.ts +38 -0
  206. package/dist/models/detach-policy-response.js +15 -0
  207. package/dist/models/discard-core-config-response.d.ts +25 -0
  208. package/dist/models/discard-core-config-response.js +15 -0
  209. package/dist/models/discard-group-version-response.d.ts +25 -0
  210. package/dist/models/discard-group-version-response.js +15 -0
  211. package/dist/models/discard-version-response.d.ts +25 -0
  212. package/dist/models/discard-version-response.js +15 -0
  213. package/dist/models/endorse-policy-body.d.ts +37 -0
  214. package/dist/models/endorse-policy-body.js +15 -0
  215. package/dist/models/endorse-policy-response.d.ts +32 -0
  216. package/dist/models/endorse-policy-response.js +15 -0
  217. package/dist/models/estimate-error.d.ts +36 -0
  218. package/dist/models/estimate-error.js +15 -0
  219. package/dist/models/estimate-lead-premium-response.d.ts +25 -0
  220. package/dist/models/estimate-lead-premium-response.js +15 -0
  221. package/dist/models/estimate-policy-premium-response.d.ts +25 -0
  222. package/dist/models/estimate-policy-premium-response.js +15 -0
  223. package/dist/models/export-column.d.ts +36 -0
  224. package/dist/models/export-column.js +15 -0
  225. package/dist/models/expression-context.d.ts +37 -0
  226. package/dist/models/expression-context.js +15 -0
  227. package/dist/models/expression-kind.d.ts +21 -0
  228. package/dist/models/expression-kind.js +25 -0
  229. package/dist/models/expression-problem.d.ts +48 -0
  230. package/dist/models/expression-problem.js +15 -0
  231. package/dist/models/factor-row.d.ts +36 -0
  232. package/dist/models/factor-row.js +15 -0
  233. package/dist/models/field-source.d.ts +21 -0
  234. package/dist/models/field-source.js +25 -0
  235. package/dist/models/file-cell-ref.d.ts +30 -0
  236. package/dist/models/file-cell-ref.js +15 -0
  237. package/dist/models/file-detected.d.ts +72 -0
  238. package/dist/models/file-detected.js +15 -0
  239. package/dist/models/file-finding.d.ts +60 -0
  240. package/dist/models/file-finding.js +15 -0
  241. package/dist/models/file-preview-cell.d.ts +36 -0
  242. package/dist/models/file-preview-cell.js +15 -0
  243. package/dist/models/file-preview-row.d.ts +31 -0
  244. package/dist/models/file-preview-row.js +15 -0
  245. package/dist/models/file-preview.d.ts +37 -0
  246. package/dist/models/file-preview.js +15 -0
  247. package/dist/models/file-read-options.d.ts +48 -0
  248. package/dist/models/file-read-options.js +15 -0
  249. package/dist/models/file-report.d.ts +79 -0
  250. package/dist/models/file-report.js +15 -0
  251. package/dist/models/filter-field-versions.d.ts +30 -0
  252. package/dist/models/filter-field-versions.js +15 -0
  253. package/dist/models/filter-field.d.ts +110 -0
  254. package/dist/models/filter-field.js +15 -0
  255. package/dist/models/filter-value.d.ts +37 -0
  256. package/dist/models/filter-value.js +15 -0
  257. package/dist/models/gate-report.d.ts +68 -0
  258. package/dist/models/gate-report.js +15 -0
  259. package/dist/models/generation.d.ts +102 -0
  260. package/dist/models/generation.js +15 -0
  261. package/dist/models/get-core-config-policy-data-schema-response.d.ts +24 -0
  262. package/dist/models/get-core-config-policy-data-schema-response.js +15 -0
  263. package/dist/models/get-core-config-response.d.ts +25 -0
  264. package/dist/models/get-core-config-response.js +15 -0
  265. package/dist/models/get-core-config-schema-response.d.ts +24 -0
  266. package/dist/models/get-core-config-schema-response.js +15 -0
  267. package/dist/models/get-coverage-at-date-response.d.ts +111 -0
  268. package/dist/models/get-coverage-at-date-response.js +15 -0
  269. package/dist/models/get-diff-response.d.ts +25 -0
  270. package/dist/models/get-diff-response.js +15 -0
  271. package/dist/models/get-factor-file-response.d.ts +61 -0
  272. package/dist/models/get-factor-file-response.js +15 -0
  273. package/dist/models/get-factor-response.d.ts +37 -0
  274. package/dist/models/get-factor-response.js +15 -0
  275. package/dist/models/get-generation-response.d.ts +25 -0
  276. package/dist/models/get-generation-response.js +15 -0
  277. package/dist/models/get-group-core-config-response.d.ts +25 -0
  278. package/dist/models/get-group-core-config-response.js +15 -0
  279. package/dist/models/get-group-diff-response.d.ts +25 -0
  280. package/dist/models/get-group-diff-response.js +15 -0
  281. package/dist/models/get-group-generation-response.d.ts +25 -0
  282. package/dist/models/get-group-generation-response.js +15 -0
  283. package/dist/models/get-group-policy-filter-catalog-response.d.ts +31 -0
  284. package/dist/models/get-group-policy-filter-catalog-response.js +15 -0
  285. package/dist/models/get-group-policy-member-filter-catalog-response.d.ts +31 -0
  286. package/dist/models/get-group-policy-member-filter-catalog-response.js +15 -0
  287. package/dist/models/get-group-policy-member-schema-response.d.ts +49 -0
  288. package/dist/models/get-group-policy-member-schema-response.js +15 -0
  289. package/dist/models/get-group-policy-partner-history-response.d.ts +25 -0
  290. package/dist/models/get-group-policy-partner-history-response.js +15 -0
  291. package/dist/models/get-group-policy-premium-summary-response.d.ts +25 -0
  292. package/dist/models/get-group-policy-premium-summary-response.js +15 -0
  293. package/dist/models/get-group-policy-response.d.ts +45 -0
  294. package/dist/models/get-group-policy-response.js +15 -0
  295. package/dist/models/get-group-policy-timeline-response.d.ts +25 -0
  296. package/dist/models/get-group-policy-timeline-response.js +15 -0
  297. package/dist/models/get-group-tariff-filter-catalog-response.d.ts +31 -0
  298. package/dist/models/get-group-tariff-filter-catalog-response.js +15 -0
  299. package/dist/models/get-group-tariff-response.d.ts +25 -0
  300. package/dist/models/get-group-tariff-response.js +15 -0
  301. package/dist/models/get-group-version-response.d.ts +25 -0
  302. package/dist/models/get-group-version-response.js +15 -0
  303. package/dist/models/get-job-download-response.d.ts +25 -0
  304. package/dist/models/get-job-download-response.js +15 -0
  305. package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
  306. package/dist/models/get-job-filter-catalog-response.js +15 -0
  307. package/dist/models/get-job-response.d.ts +25 -0
  308. package/dist/models/get-job-response.js +15 -0
  309. package/dist/models/get-lead-filter-catalog-response.d.ts +44 -0
  310. package/dist/models/get-lead-filter-catalog-response.js +15 -0
  311. package/dist/models/get-lead-import-job-response.d.ts +25 -0
  312. package/dist/models/get-lead-import-job-response.js +15 -0
  313. package/dist/models/get-lead-import-template-response.d.ts +56 -0
  314. package/dist/models/get-lead-import-template-response.js +15 -0
  315. package/dist/models/get-lead-response.d.ts +32 -0
  316. package/dist/models/get-lead-response.js +15 -0
  317. package/dist/models/get-lead-schema-response.d.ts +55 -0
  318. package/dist/models/get-lead-schema-response.js +15 -0
  319. package/dist/models/get-lead-version-response.d.ts +25 -0
  320. package/dist/models/get-lead-version-response.js +15 -0
  321. package/dist/models/get-named-range-file-response.d.ts +61 -0
  322. package/dist/models/get-named-range-file-response.js +15 -0
  323. package/dist/models/get-named-range-response.d.ts +37 -0
  324. package/dist/models/get-named-range-response.js +15 -0
  325. package/dist/models/get-policy-filter-catalog-response.d.ts +44 -0
  326. package/dist/models/get-policy-filter-catalog-response.js +15 -0
  327. package/dist/models/get-policy-partner-history-response.d.ts +25 -0
  328. package/dist/models/get-policy-partner-history-response.js +15 -0
  329. package/dist/models/get-policy-response.d.ts +51 -0
  330. package/dist/models/get-policy-response.js +15 -0
  331. package/dist/models/get-policy-schema-response.d.ts +49 -0
  332. package/dist/models/get-policy-schema-response.js +15 -0
  333. package/dist/models/get-policy-timeline-response.d.ts +25 -0
  334. package/dist/models/get-policy-timeline-response.js +15 -0
  335. package/dist/models/get-resolved-billing-config-response.d.ts +44 -0
  336. package/dist/models/get-resolved-billing-config-response.js +15 -0
  337. package/dist/models/get-resolved-contract-data-response.d.ts +37 -0
  338. package/dist/models/get-resolved-contract-data-response.js +15 -0
  339. package/dist/models/get-resolved-core-config-response.d.ts +39 -0
  340. package/dist/models/get-resolved-core-config-response.js +15 -0
  341. package/dist/models/get-resolved-tariff-coverage-response.d.ts +50 -0
  342. package/dist/models/get-resolved-tariff-coverage-response.js +15 -0
  343. package/dist/models/get-tariff-filter-catalog-response.d.ts +31 -0
  344. package/dist/models/get-tariff-filter-catalog-response.js +15 -0
  345. package/dist/models/get-tariff-response.d.ts +25 -0
  346. package/dist/models/get-tariff-response.js +15 -0
  347. package/dist/models/get-version-response.d.ts +25 -0
  348. package/dist/models/get-version-response.js +15 -0
  349. package/dist/models/golden-case-delta.d.ts +36 -0
  350. package/dist/models/golden-case-delta.js +15 -0
  351. package/dist/models/group-policy-list-entry.d.ts +57 -0
  352. package/dist/models/group-policy-list-entry.js +15 -0
  353. package/dist/models/group-policy-segment.d.ts +38 -0
  354. package/dist/models/group-policy-segment.js +15 -0
  355. package/dist/models/group-policy-status.d.ts +22 -0
  356. package/dist/models/group-policy-status.js +26 -0
  357. package/dist/models/group-policy.d.ts +124 -0
  358. package/dist/models/group-policy.js +15 -0
  359. package/dist/models/group-premium-summary.d.ts +69 -0
  360. package/dist/models/group-premium-summary.js +15 -0
  361. package/dist/models/group-tariff-version.d.ts +146 -0
  362. package/dist/models/group-tariff-version.js +15 -0
  363. package/dist/models/group-tariff.d.ts +109 -0
  364. package/dist/models/group-tariff.js +15 -0
  365. package/dist/models/highlight.d.ts +30 -0
  366. package/dist/models/highlight.js +15 -0
  367. package/dist/models/import-file.d.ts +36 -0
  368. package/dist/models/import-file.js +15 -0
  369. package/dist/models/import-leads-request.d.ts +86 -0
  370. package/dist/models/import-leads-request.js +15 -0
  371. package/dist/models/import-leads-response.d.ts +32 -0
  372. package/dist/models/import-leads-response.js +15 -0
  373. package/dist/models/index.d.ts +322 -0
  374. package/dist/models/index.js +338 -0
  375. package/dist/models/insured-person.d.ts +24 -0
  376. package/dist/models/insured-person.js +15 -0
  377. package/dist/models/job-download.d.ts +36 -0
  378. package/dist/models/job-download.js +15 -0
  379. package/dist/models/job-error.d.ts +30 -0
  380. package/dist/models/job-error.js +15 -0
  381. package/dist/models/job-progress.d.ts +36 -0
  382. package/dist/models/job-progress.js +15 -0
  383. package/dist/models/job.d.ts +134 -0
  384. package/dist/models/job.js +15 -0
  385. package/dist/models/lead-import-counts.d.ts +48 -0
  386. package/dist/models/lead-import-counts.js +15 -0
  387. package/dist/models/lead-import-item.d.ts +86 -0
  388. package/dist/models/lead-import-item.js +15 -0
  389. package/dist/models/lead-import-job.d.ts +128 -0
  390. package/dist/models/lead-import-job.js +15 -0
  391. package/dist/models/lead-import-template-column.d.ts +79 -0
  392. package/dist/models/lead-import-template-column.js +15 -0
  393. package/dist/models/lead-import-template-value.d.ts +30 -0
  394. package/dist/models/lead-import-template-value.js +15 -0
  395. package/dist/models/lead-status.d.ts +43 -0
  396. package/dist/models/lead-status.js +15 -0
  397. package/dist/models/lead-version.d.ts +73 -0
  398. package/dist/models/lead-version.js +15 -0
  399. package/dist/models/lead.d.ts +124 -0
  400. package/dist/models/lead.js +15 -0
  401. package/dist/models/liable-party.d.ts +36 -0
  402. package/dist/models/liable-party.js +15 -0
  403. package/dist/models/line-of-insurance.d.ts +68 -0
  404. package/dist/models/line-of-insurance.js +15 -0
  405. package/dist/models/list-approval-roles-response.d.ts +37 -0
  406. package/dist/models/list-approval-roles-response.js +15 -0
  407. package/dist/models/list-available-group-tariffs-response.d.ts +37 -0
  408. package/dist/models/list-available-group-tariffs-response.js +15 -0
  409. package/dist/models/list-available-versions-response.d.ts +37 -0
  410. package/dist/models/list-available-versions-response.js +15 -0
  411. package/dist/models/list-core-configs-response.d.ts +37 -0
  412. package/dist/models/list-core-configs-response.js +15 -0
  413. package/dist/models/list-generations-response.d.ts +37 -0
  414. package/dist/models/list-generations-response.js +15 -0
  415. package/dist/models/list-group-core-configs-response.d.ts +37 -0
  416. package/dist/models/list-group-core-configs-response.js +15 -0
  417. package/dist/models/list-group-generations-response.d.ts +37 -0
  418. package/dist/models/list-group-generations-response.js +15 -0
  419. package/dist/models/list-group-policies-response.d.ts +37 -0
  420. package/dist/models/list-group-policies-response.js +15 -0
  421. package/dist/models/list-group-policy-members-response.d.ts +37 -0
  422. package/dist/models/list-group-policy-members-response.js +15 -0
  423. package/dist/models/list-group-policy-upgrade-targets-response.d.ts +37 -0
  424. package/dist/models/list-group-policy-upgrade-targets-response.js +15 -0
  425. package/dist/models/list-group-tariffs-response.d.ts +37 -0
  426. package/dist/models/list-group-tariffs-response.js +15 -0
  427. package/dist/models/list-group-versions-response.d.ts +37 -0
  428. package/dist/models/list-group-versions-response.js +15 -0
  429. package/dist/models/list-jobs-response.d.ts +37 -0
  430. package/dist/models/list-jobs-response.js +15 -0
  431. package/dist/models/list-lead-versions-response.d.ts +37 -0
  432. package/dist/models/list-lead-versions-response.js +15 -0
  433. package/dist/models/list-leads-response.d.ts +37 -0
  434. package/dist/models/list-leads-response.js +15 -0
  435. package/dist/models/list-lines-of-insurance-response.d.ts +37 -0
  436. package/dist/models/list-lines-of-insurance-response.js +15 -0
  437. package/dist/models/list-partner-roles-response.d.ts +37 -0
  438. package/dist/models/list-partner-roles-response.js +15 -0
  439. package/dist/models/list-partner-types-response.d.ts +37 -0
  440. package/dist/models/list-partner-types-response.js +15 -0
  441. package/dist/models/list-policies-response.d.ts +37 -0
  442. package/dist/models/list-policies-response.js +15 -0
  443. package/dist/models/list-policy-filter-values-response.d.ts +37 -0
  444. package/dist/models/list-policy-filter-values-response.js +15 -0
  445. package/dist/models/list-policy-snapshots-response.d.ts +37 -0
  446. package/dist/models/list-policy-snapshots-response.js +15 -0
  447. package/dist/models/list-policy-upgrade-targets-response.d.ts +37 -0
  448. package/dist/models/list-policy-upgrade-targets-response.js +15 -0
  449. package/dist/models/list-request.d.ts +60 -0
  450. package/dist/models/list-request.js +15 -0
  451. package/dist/models/list-tariffs-response.d.ts +37 -0
  452. package/dist/models/list-tariffs-response.js +15 -0
  453. package/dist/models/list-versions-response.d.ts +37 -0
  454. package/dist/models/list-versions-response.js +15 -0
  455. package/dist/models/localized-text.d.ts +30 -0
  456. package/dist/models/localized-text.js +15 -0
  457. package/dist/models/manifest-diff.d.ts +44 -0
  458. package/dist/models/manifest-diff.js +15 -0
  459. package/dist/models/match.d.ts +69 -0
  460. package/dist/models/match.js +15 -0
  461. package/dist/models/member-projection.d.ts +93 -0
  462. package/dist/models/member-projection.js +15 -0
  463. package/dist/models/money.d.ts +30 -0
  464. package/dist/models/money.js +15 -0
  465. package/dist/models/named-range-name.d.ts +30 -0
  466. package/dist/models/named-range-name.js +15 -0
  467. package/dist/models/named-range-row.d.ts +30 -0
  468. package/dist/models/named-range-row.js +15 -0
  469. package/dist/models/partner-draft.d.ts +30 -0
  470. package/dist/models/partner-draft.js +15 -0
  471. package/dist/models/partner-link.d.ts +36 -0
  472. package/dist/models/partner-link.js +15 -0
  473. package/dist/models/partner-period.d.ts +42 -0
  474. package/dist/models/partner-period.js +15 -0
  475. package/dist/models/partner-role-catalog-entry.d.ts +48 -0
  476. package/dist/models/partner-role-catalog-entry.js +15 -0
  477. package/dist/models/partner-role-rule.d.ts +60 -0
  478. package/dist/models/partner-role-rule.js +15 -0
  479. package/dist/models/partner-type-catalog-entry.d.ts +36 -0
  480. package/dist/models/partner-type-catalog-entry.js +15 -0
  481. package/dist/models/policy-list-entry.d.ts +45 -0
  482. package/dist/models/policy-list-entry.js +15 -0
  483. package/dist/models/policy-membership.d.ts +21 -0
  484. package/dist/models/policy-membership.js +25 -0
  485. package/dist/models/policy-segment.d.ts +38 -0
  486. package/dist/models/policy-segment.js +15 -0
  487. package/dist/models/policy-slice-summary.d.ts +79 -0
  488. package/dist/models/policy-slice-summary.js +15 -0
  489. package/dist/models/policy-status.d.ts +21 -0
  490. package/dist/models/policy-status.js +25 -0
  491. package/dist/models/policy.d.ts +138 -0
  492. package/dist/models/policy.js +15 -0
  493. package/dist/models/policyholder-ref.d.ts +43 -0
  494. package/dist/models/policyholder-ref.js +15 -0
  495. package/dist/models/premium-adjustment-basis.d.ts +31 -0
  496. package/dist/models/premium-adjustment-basis.js +15 -0
  497. package/dist/models/premium-adjustment.d.ts +86 -0
  498. package/dist/models/premium-adjustment.js +15 -0
  499. package/dist/models/premium-engine.d.ts +36 -0
  500. package/dist/models/premium-engine.js +15 -0
  501. package/dist/models/premium-estimate.d.ts +88 -0
  502. package/dist/models/premium-estimate.js +15 -0
  503. package/dist/models/premium-item.d.ts +84 -0
  504. package/dist/models/premium-item.js +15 -0
  505. package/dist/models/premium-summary-basis.d.ts +36 -0
  506. package/dist/models/premium-summary-basis.js +15 -0
  507. package/dist/models/premium-tier.d.ts +30 -0
  508. package/dist/models/premium-tier.js +15 -0
  509. package/dist/models/premium-totals.d.ts +43 -0
  510. package/dist/models/premium-totals.js +15 -0
  511. package/dist/models/premium.d.ts +108 -0
  512. package/dist/models/premium.js +15 -0
  513. package/dist/models/preview-group-policy-correction-body.d.ts +55 -0
  514. package/dist/models/preview-group-policy-correction-body.js +15 -0
  515. package/dist/models/preview-group-policy-correction-response.d.ts +31 -0
  516. package/dist/models/preview-group-policy-correction-response.js +15 -0
  517. package/dist/models/preview-group-policy-termination-body.d.ts +43 -0
  518. package/dist/models/preview-group-policy-termination-body.js +15 -0
  519. package/dist/models/preview-group-policy-termination-response.d.ts +32 -0
  520. package/dist/models/preview-group-policy-termination-response.js +15 -0
  521. package/dist/models/preview-policy-correction-body.d.ts +42 -0
  522. package/dist/models/preview-policy-correction-body.js +15 -0
  523. package/dist/models/preview-policy-correction-response.d.ts +38 -0
  524. package/dist/models/preview-policy-correction-response.js +15 -0
  525. package/dist/models/publish-core-config-response.d.ts +25 -0
  526. package/dist/models/publish-core-config-response.js +15 -0
  527. package/dist/models/publish-group-core-config-response.d.ts +25 -0
  528. package/dist/models/publish-group-core-config-response.js +15 -0
  529. package/dist/models/publish-group-version-body.d.ts +36 -0
  530. package/dist/models/publish-group-version-body.js +15 -0
  531. package/dist/models/publish-group-version-response.d.ts +39 -0
  532. package/dist/models/publish-group-version-response.js +15 -0
  533. package/dist/models/publish-version-body.d.ts +36 -0
  534. package/dist/models/publish-version-body.js +15 -0
  535. package/dist/models/publish-version-response.d.ts +39 -0
  536. package/dist/models/publish-version-response.js +15 -0
  537. package/dist/models/put-core-config-document-body.d.ts +24 -0
  538. package/dist/models/put-core-config-document-body.js +15 -0
  539. package/dist/models/put-core-config-document-response.d.ts +32 -0
  540. package/dist/models/put-core-config-document-response.js +15 -0
  541. package/dist/models/put-factor-file-body.d.ts +73 -0
  542. package/dist/models/put-factor-file-body.js +15 -0
  543. package/dist/models/put-factor-file-response.d.ts +32 -0
  544. package/dist/models/put-factor-file-response.js +15 -0
  545. package/dist/models/put-named-range-file-body.d.ts +68 -0
  546. package/dist/models/put-named-range-file-body.js +15 -0
  547. package/dist/models/put-named-range-file-response.d.ts +32 -0
  548. package/dist/models/put-named-range-file-response.js +15 -0
  549. package/dist/models/put-named-range-json-body.d.ts +24 -0
  550. package/dist/models/put-named-range-json-body.js +15 -0
  551. package/dist/models/put-named-range-json-response.d.ts +32 -0
  552. package/dist/models/put-named-range-json-response.js +15 -0
  553. package/dist/models/ref-change.d.ts +43 -0
  554. package/dist/models/ref-change.js +15 -0
  555. package/dist/models/refresh-lead-response.d.ts +32 -0
  556. package/dist/models/refresh-lead-response.js +15 -0
  557. package/dist/models/register-lead-partners-response.d.ts +39 -0
  558. package/dist/models/register-lead-partners-response.js +15 -0
  559. package/dist/models/renew-group-policy-body.d.ts +30 -0
  560. package/dist/models/renew-group-policy-body.js +15 -0
  561. package/dist/models/renew-group-policy-response.d.ts +39 -0
  562. package/dist/models/renew-group-policy-response.js +15 -0
  563. package/dist/models/report-item.d.ts +49 -0
  564. package/dist/models/report-item.js +15 -0
  565. package/dist/models/report-severity.d.ts +21 -0
  566. package/dist/models/report-severity.js +25 -0
  567. package/dist/models/resolved-contract-field.d.ts +50 -0
  568. package/dist/models/resolved-contract-field.js +15 -0
  569. package/dist/models/resolved-factor.d.ts +49 -0
  570. package/dist/models/resolved-factor.js +15 -0
  571. package/dist/models/resolved-named-range.d.ts +43 -0
  572. package/dist/models/resolved-named-range.js +15 -0
  573. package/dist/models/resolved-partner.d.ts +61 -0
  574. package/dist/models/resolved-partner.js +15 -0
  575. package/dist/models/set-active-group-version-body.d.ts +24 -0
  576. package/dist/models/set-active-group-version-body.js +15 -0
  577. package/dist/models/set-active-group-version-response.d.ts +25 -0
  578. package/dist/models/set-active-group-version-response.js +15 -0
  579. package/dist/models/set-active-version-body.d.ts +24 -0
  580. package/dist/models/set-active-version-body.js +15 -0
  581. package/dist/models/set-active-version-response.d.ts +25 -0
  582. package/dist/models/set-active-version-response.js +15 -0
  583. package/dist/models/set-group-version-status-body.d.ts +37 -0
  584. package/dist/models/set-group-version-status-body.js +15 -0
  585. package/dist/models/set-group-version-status-response.d.ts +39 -0
  586. package/dist/models/set-group-version-status-response.js +15 -0
  587. package/dist/models/set-version-status-body.d.ts +37 -0
  588. package/dist/models/set-version-status-body.js +15 -0
  589. package/dist/models/set-version-status-response.d.ts +39 -0
  590. package/dist/models/set-version-status-response.js +15 -0
  591. package/dist/models/slice.d.ts +30 -0
  592. package/dist/models/slice.js +15 -0
  593. package/dist/models/snapshot-envelope.d.ts +42 -0
  594. package/dist/models/snapshot-envelope.js +15 -0
  595. package/dist/models/status-kind.d.ts +23 -0
  596. package/dist/models/status-kind.js +27 -0
  597. package/dist/models/status.d.ts +37 -0
  598. package/dist/models/status.js +15 -0
  599. package/dist/models/tariff-version.d.ts +146 -0
  600. package/dist/models/tariff-version.js +15 -0
  601. package/dist/models/tariff.d.ts +109 -0
  602. package/dist/models/tariff.js +15 -0
  603. package/dist/models/tax-amount.d.ts +42 -0
  604. package/dist/models/tax-amount.js +15 -0
  605. package/dist/models/terminate-group-policy-body.d.ts +49 -0
  606. package/dist/models/terminate-group-policy-body.js +15 -0
  607. package/dist/models/terminate-group-policy-response.d.ts +39 -0
  608. package/dist/models/terminate-group-policy-response.js +15 -0
  609. package/dist/models/terminate-policy-body.d.ts +30 -0
  610. package/dist/models/terminate-policy-body.js +15 -0
  611. package/dist/models/terminate-policy-response.d.ts +32 -0
  612. package/dist/models/terminate-policy-response.js +15 -0
  613. package/dist/models/transition-lead-body.d.ts +30 -0
  614. package/dist/models/transition-lead-body.js +15 -0
  615. package/dist/models/transition-lead-response.d.ts +32 -0
  616. package/dist/models/transition-lead-response.js +15 -0
  617. package/dist/models/update-core-config-body.d.ts +24 -0
  618. package/dist/models/update-core-config-body.js +15 -0
  619. package/dist/models/update-core-config-response.d.ts +25 -0
  620. package/dist/models/update-core-config-response.js +15 -0
  621. package/dist/models/update-generation-body.d.ts +30 -0
  622. package/dist/models/update-generation-body.js +15 -0
  623. package/dist/models/update-generation-response.d.ts +25 -0
  624. package/dist/models/update-generation-response.js +15 -0
  625. package/dist/models/update-group-core-config-body.d.ts +30 -0
  626. package/dist/models/update-group-core-config-body.js +15 -0
  627. package/dist/models/update-group-core-config-response.d.ts +25 -0
  628. package/dist/models/update-group-core-config-response.js +15 -0
  629. package/dist/models/update-group-policy-body.d.ts +50 -0
  630. package/dist/models/update-group-policy-body.js +15 -0
  631. package/dist/models/update-group-policy-response.d.ts +32 -0
  632. package/dist/models/update-group-policy-response.js +15 -0
  633. package/dist/models/update-group-version-body.d.ts +24 -0
  634. package/dist/models/update-group-version-body.js +15 -0
  635. package/dist/models/update-group-version-response.d.ts +25 -0
  636. package/dist/models/update-group-version-response.js +15 -0
  637. package/dist/models/update-lead-body.d.ts +44 -0
  638. package/dist/models/update-lead-body.js +15 -0
  639. package/dist/models/update-lead-response.d.ts +32 -0
  640. package/dist/models/update-lead-response.js +15 -0
  641. package/dist/models/update-tariff-body.d.ts +36 -0
  642. package/dist/models/update-tariff-body.js +15 -0
  643. package/dist/models/update-tariff-response.d.ts +25 -0
  644. package/dist/models/update-tariff-response.js +15 -0
  645. package/dist/models/update-version-body.d.ts +24 -0
  646. package/dist/models/update-version-body.js +15 -0
  647. package/dist/models/update-version-response.d.ts +25 -0
  648. package/dist/models/update-version-response.js +15 -0
  649. package/dist/models/upgrade-check-result.d.ts +62 -0
  650. package/dist/models/upgrade-check-result.js +15 -0
  651. package/dist/models/upgrade-group-policy-body.d.ts +30 -0
  652. package/dist/models/upgrade-group-policy-body.js +15 -0
  653. package/dist/models/upgrade-group-policy-response.d.ts +39 -0
  654. package/dist/models/upgrade-group-policy-response.js +15 -0
  655. package/dist/models/upgrade-issue.d.ts +42 -0
  656. package/dist/models/upgrade-issue.js +15 -0
  657. package/dist/models/upgrade-policy-body.d.ts +30 -0
  658. package/dist/models/upgrade-policy-body.js +15 -0
  659. package/dist/models/upgrade-policy-response.d.ts +39 -0
  660. package/dist/models/upgrade-policy-response.js +15 -0
  661. package/dist/models/upgrade-target.d.ts +48 -0
  662. package/dist/models/upgrade-target.js +15 -0
  663. package/dist/models/validate-core-config-expression-body.d.ts +31 -0
  664. package/dist/models/validate-core-config-expression-body.js +15 -0
  665. package/dist/models/validate-core-config-expression-response.d.ts +25 -0
  666. package/dist/models/validate-core-config-expression-response.js +15 -0
  667. package/dist/models/validate-core-config-response.d.ts +25 -0
  668. package/dist/models/validate-core-config-response.js +15 -0
  669. package/dist/models/validate-group-version-body.d.ts +30 -0
  670. package/dist/models/validate-group-version-body.js +15 -0
  671. package/dist/models/validate-group-version-response.d.ts +25 -0
  672. package/dist/models/validate-group-version-response.js +15 -0
  673. package/dist/models/validate-version-body.d.ts +24 -0
  674. package/dist/models/validate-version-body.js +15 -0
  675. package/dist/models/validate-version-response.d.ts +25 -0
  676. package/dist/models/validate-version-response.js +15 -0
  677. package/dist/models/validation-issue.d.ts +36 -0
  678. package/dist/models/validation-issue.js +15 -0
  679. package/dist/models/validation-report.d.ts +31 -0
  680. package/dist/models/validation-report.js +15 -0
  681. package/dist/models/version-status.d.ts +24 -0
  682. package/dist/models/version-status.js +28 -0
  683. package/git_push.sh +57 -0
  684. package/index.ts +19 -0
  685. package/models/accept-lead-body.ts +36 -0
  686. package/models/accept-lead-response.ts +45 -0
  687. package/models/activate-group-policy-body.ts +30 -0
  688. package/models/activate-group-policy-response.ts +38 -0
  689. package/models/actor.ts +31 -0
  690. package/models/analyze-config-file-body.ts +74 -0
  691. package/models/analyze-config-file-response.ts +94 -0
  692. package/models/any.ts +32 -0
  693. package/models/applied-factor.ts +36 -0
  694. package/models/approval-role.ts +36 -0
  695. package/models/asset-status.ts +32 -0
  696. package/models/available-group-tariff.ts +50 -0
  697. package/models/available-tariff.ts +61 -0
  698. package/models/available-transition.ts +61 -0
  699. package/models/available-version.ts +98 -0
  700. package/models/billing-config.ts +42 -0
  701. package/models/calculate-group-policy-adjustments-body.ts +49 -0
  702. package/models/calculate-group-policy-adjustments-response.ts +43 -0
  703. package/models/cancel-job-response.ts +31 -0
  704. package/models/change-kind.ts +32 -0
  705. package/models/check-group-policy-upgrade-body.ts +36 -0
  706. package/models/check-group-policy-upgrade-response.ts +31 -0
  707. package/models/check-policy-upgrade-body.ts +36 -0
  708. package/models/check-policy-upgrade-response.ts +31 -0
  709. package/models/child-fallback.ts +31 -0
  710. package/models/configuration-pin.ts +48 -0
  711. package/models/conflict-reason.ts +42 -0
  712. package/models/contract-default-kind.ts +33 -0
  713. package/models/contract-unresolved-reason.ts +30 -0
  714. package/models/core-config-file-kind.ts +31 -0
  715. package/models/core-config-file.ts +157 -0
  716. package/models/core-config.ts +133 -0
  717. package/models/correct-group-policy-body.ts +67 -0
  718. package/models/correct-group-policy-response.ts +37 -0
  719. package/models/correct-policy-body.ts +61 -0
  720. package/models/correct-policy-response.ts +50 -0
  721. package/models/coverage-amount.ts +36 -0
  722. package/models/coverage-approval-limit.ts +36 -0
  723. package/models/coverage-billing.ts +36 -0
  724. package/models/coverage-category.ts +62 -0
  725. package/models/coverage-deductible.ts +73 -0
  726. package/models/coverage-detail.ts +59 -0
  727. package/models/coverage-group-policy.ts +48 -0
  728. package/models/coverage-insured-object.ts +48 -0
  729. package/models/coverage-named.ts +43 -0
  730. package/models/coverage-policy.ts +61 -0
  731. package/models/coverage-term-detail.ts +55 -0
  732. package/models/coverage-variant.ts +36 -0
  733. package/models/coverage-waiting-period.ts +48 -0
  734. package/models/create-config-file-upload-body.ts +36 -0
  735. package/models/create-config-file-upload-response.ts +42 -0
  736. package/models/create-core-config-body.ts +48 -0
  737. package/models/create-core-config-response.ts +31 -0
  738. package/models/create-detail-export-job-request.ts +60 -0
  739. package/models/create-detail-export-job-response.ts +31 -0
  740. package/models/create-export-job-request.ts +74 -0
  741. package/models/create-export-job-response.ts +31 -0
  742. package/models/create-generation-body.ts +48 -0
  743. package/models/create-generation-response.ts +38 -0
  744. package/models/create-group-core-config-body.ts +48 -0
  745. package/models/create-group-core-config-response.ts +31 -0
  746. package/models/create-group-generation-body.ts +36 -0
  747. package/models/create-group-generation-response.ts +31 -0
  748. package/models/create-group-policy-request.ts +74 -0
  749. package/models/create-group-policy-response.ts +38 -0
  750. package/models/create-group-tariff-request.ts +54 -0
  751. package/models/create-group-tariff-response.ts +31 -0
  752. package/models/create-group-version-body.ts +36 -0
  753. package/models/create-group-version-response.ts +31 -0
  754. package/models/create-lead-import-upload-request.ts +36 -0
  755. package/models/create-lead-import-upload-response.ts +42 -0
  756. package/models/create-lead-request.ts +62 -0
  757. package/models/create-lead-response.ts +38 -0
  758. package/models/create-line-of-insurance-request.ts +36 -0
  759. package/models/create-line-of-insurance-response.ts +31 -0
  760. package/models/create-policy-request.ts +73 -0
  761. package/models/create-policy-response.ts +38 -0
  762. package/models/create-tariff-request.ts +54 -0
  763. package/models/create-tariff-response.ts +31 -0
  764. package/models/create-version-body.ts +36 -0
  765. package/models/create-version-response.ts +31 -0
  766. package/models/delete-factor-response.ts +31 -0
  767. package/models/delete-named-range-file-response.ts +31 -0
  768. package/models/detach-policy-body.ts +36 -0
  769. package/models/detach-policy-response.ts +44 -0
  770. package/models/discard-core-config-response.ts +31 -0
  771. package/models/discard-group-version-response.ts +31 -0
  772. package/models/discard-version-response.ts +31 -0
  773. package/models/endorse-policy-body.ts +43 -0
  774. package/models/endorse-policy-response.ts +38 -0
  775. package/models/estimate-error.ts +42 -0
  776. package/models/estimate-lead-premium-response.ts +31 -0
  777. package/models/estimate-policy-premium-response.ts +31 -0
  778. package/models/export-column.ts +42 -0
  779. package/models/expression-context.ts +43 -0
  780. package/models/expression-kind.ts +31 -0
  781. package/models/expression-problem.ts +54 -0
  782. package/models/factor-row.ts +42 -0
  783. package/models/field-source.ts +31 -0
  784. package/models/file-cell-ref.ts +36 -0
  785. package/models/file-detected.ts +78 -0
  786. package/models/file-finding.ts +66 -0
  787. package/models/file-preview-cell.ts +42 -0
  788. package/models/file-preview-row.ts +37 -0
  789. package/models/file-preview.ts +43 -0
  790. package/models/file-read-options.ts +54 -0
  791. package/models/file-report.ts +85 -0
  792. package/models/filter-field-versions.ts +36 -0
  793. package/models/filter-field.ts +116 -0
  794. package/models/filter-value.ts +43 -0
  795. package/models/gate-report.ts +74 -0
  796. package/models/generation.ts +108 -0
  797. package/models/get-core-config-policy-data-schema-response.ts +30 -0
  798. package/models/get-core-config-response.ts +31 -0
  799. package/models/get-core-config-schema-response.ts +30 -0
  800. package/models/get-coverage-at-date-response.ts +115 -0
  801. package/models/get-diff-response.ts +31 -0
  802. package/models/get-factor-file-response.ts +67 -0
  803. package/models/get-factor-response.ts +43 -0
  804. package/models/get-generation-response.ts +31 -0
  805. package/models/get-group-core-config-response.ts +31 -0
  806. package/models/get-group-diff-response.ts +31 -0
  807. package/models/get-group-generation-response.ts +31 -0
  808. package/models/get-group-policy-filter-catalog-response.ts +37 -0
  809. package/models/get-group-policy-member-filter-catalog-response.ts +37 -0
  810. package/models/get-group-policy-member-schema-response.ts +55 -0
  811. package/models/get-group-policy-partner-history-response.ts +31 -0
  812. package/models/get-group-policy-premium-summary-response.ts +31 -0
  813. package/models/get-group-policy-response.ts +51 -0
  814. package/models/get-group-policy-timeline-response.ts +31 -0
  815. package/models/get-group-tariff-filter-catalog-response.ts +37 -0
  816. package/models/get-group-tariff-response.ts +31 -0
  817. package/models/get-group-version-response.ts +31 -0
  818. package/models/get-job-download-response.ts +31 -0
  819. package/models/get-job-filter-catalog-response.ts +37 -0
  820. package/models/get-job-response.ts +31 -0
  821. package/models/get-lead-filter-catalog-response.ts +50 -0
  822. package/models/get-lead-import-job-response.ts +31 -0
  823. package/models/get-lead-import-template-response.ts +62 -0
  824. package/models/get-lead-response.ts +38 -0
  825. package/models/get-lead-schema-response.ts +61 -0
  826. package/models/get-lead-version-response.ts +31 -0
  827. package/models/get-named-range-file-response.ts +67 -0
  828. package/models/get-named-range-response.ts +43 -0
  829. package/models/get-policy-filter-catalog-response.ts +50 -0
  830. package/models/get-policy-partner-history-response.ts +31 -0
  831. package/models/get-policy-response.ts +57 -0
  832. package/models/get-policy-schema-response.ts +55 -0
  833. package/models/get-policy-timeline-response.ts +31 -0
  834. package/models/get-resolved-billing-config-response.ts +48 -0
  835. package/models/get-resolved-contract-data-response.ts +43 -0
  836. package/models/get-resolved-core-config-response.ts +45 -0
  837. package/models/get-resolved-tariff-coverage-response.ts +54 -0
  838. package/models/get-tariff-filter-catalog-response.ts +37 -0
  839. package/models/get-tariff-response.ts +31 -0
  840. package/models/get-version-response.ts +31 -0
  841. package/models/golden-case-delta.ts +42 -0
  842. package/models/group-policy-list-entry.ts +63 -0
  843. package/models/group-policy-segment.ts +44 -0
  844. package/models/group-policy-status.ts +32 -0
  845. package/models/group-policy.ts +130 -0
  846. package/models/group-premium-summary.ts +75 -0
  847. package/models/group-tariff-version.ts +152 -0
  848. package/models/group-tariff.ts +115 -0
  849. package/models/highlight.ts +36 -0
  850. package/models/import-file.ts +42 -0
  851. package/models/import-leads-request.ts +92 -0
  852. package/models/import-leads-response.ts +38 -0
  853. package/models/index.ts +322 -0
  854. package/models/insured-person.ts +30 -0
  855. package/models/job-download.ts +42 -0
  856. package/models/job-error.ts +36 -0
  857. package/models/job-progress.ts +42 -0
  858. package/models/job.ts +140 -0
  859. package/models/lead-import-counts.ts +54 -0
  860. package/models/lead-import-item.ts +92 -0
  861. package/models/lead-import-job.ts +134 -0
  862. package/models/lead-import-template-column.ts +85 -0
  863. package/models/lead-import-template-value.ts +36 -0
  864. package/models/lead-status.ts +49 -0
  865. package/models/lead-version.ts +79 -0
  866. package/models/lead.ts +130 -0
  867. package/models/liable-party.ts +42 -0
  868. package/models/line-of-insurance.ts +72 -0
  869. package/models/list-approval-roles-response.ts +43 -0
  870. package/models/list-available-group-tariffs-response.ts +43 -0
  871. package/models/list-available-versions-response.ts +43 -0
  872. package/models/list-core-configs-response.ts +43 -0
  873. package/models/list-generations-response.ts +43 -0
  874. package/models/list-group-core-configs-response.ts +43 -0
  875. package/models/list-group-generations-response.ts +43 -0
  876. package/models/list-group-policies-response.ts +43 -0
  877. package/models/list-group-policy-members-response.ts +43 -0
  878. package/models/list-group-policy-upgrade-targets-response.ts +43 -0
  879. package/models/list-group-tariffs-response.ts +43 -0
  880. package/models/list-group-versions-response.ts +43 -0
  881. package/models/list-jobs-response.ts +43 -0
  882. package/models/list-lead-versions-response.ts +43 -0
  883. package/models/list-leads-response.ts +43 -0
  884. package/models/list-lines-of-insurance-response.ts +43 -0
  885. package/models/list-partner-roles-response.ts +43 -0
  886. package/models/list-partner-types-response.ts +43 -0
  887. package/models/list-policies-response.ts +43 -0
  888. package/models/list-policy-filter-values-response.ts +43 -0
  889. package/models/list-policy-snapshots-response.ts +43 -0
  890. package/models/list-policy-upgrade-targets-response.ts +43 -0
  891. package/models/list-request.ts +66 -0
  892. package/models/list-tariffs-response.ts +43 -0
  893. package/models/list-versions-response.ts +43 -0
  894. package/models/localized-text.ts +36 -0
  895. package/models/manifest-diff.ts +50 -0
  896. package/models/match.ts +75 -0
  897. package/models/member-projection.ts +99 -0
  898. package/models/money.ts +36 -0
  899. package/models/named-range-name.ts +36 -0
  900. package/models/named-range-row.ts +36 -0
  901. package/models/partner-draft.ts +36 -0
  902. package/models/partner-link.ts +42 -0
  903. package/models/partner-period.ts +48 -0
  904. package/models/partner-role-catalog-entry.ts +54 -0
  905. package/models/partner-role-rule.ts +66 -0
  906. package/models/partner-type-catalog-entry.ts +42 -0
  907. package/models/policy-list-entry.ts +51 -0
  908. package/models/policy-membership.ts +31 -0
  909. package/models/policy-segment.ts +44 -0
  910. package/models/policy-slice-summary.ts +85 -0
  911. package/models/policy-status.ts +31 -0
  912. package/models/policy.ts +144 -0
  913. package/models/policyholder-ref.ts +49 -0
  914. package/models/premium-adjustment-basis.ts +37 -0
  915. package/models/premium-adjustment.ts +92 -0
  916. package/models/premium-engine.ts +42 -0
  917. package/models/premium-estimate.ts +94 -0
  918. package/models/premium-item.ts +90 -0
  919. package/models/premium-summary-basis.ts +42 -0
  920. package/models/premium-tier.ts +36 -0
  921. package/models/premium-totals.ts +49 -0
  922. package/models/premium.ts +114 -0
  923. package/models/preview-group-policy-correction-body.ts +61 -0
  924. package/models/preview-group-policy-correction-response.ts +37 -0
  925. package/models/preview-group-policy-termination-body.ts +49 -0
  926. package/models/preview-group-policy-termination-response.ts +38 -0
  927. package/models/preview-policy-correction-body.ts +48 -0
  928. package/models/preview-policy-correction-response.ts +44 -0
  929. package/models/publish-core-config-response.ts +31 -0
  930. package/models/publish-group-core-config-response.ts +31 -0
  931. package/models/publish-group-version-body.ts +42 -0
  932. package/models/publish-group-version-response.ts +45 -0
  933. package/models/publish-version-body.ts +42 -0
  934. package/models/publish-version-response.ts +45 -0
  935. package/models/put-core-config-document-body.ts +30 -0
  936. package/models/put-core-config-document-response.ts +38 -0
  937. package/models/put-factor-file-body.ts +79 -0
  938. package/models/put-factor-file-response.ts +38 -0
  939. package/models/put-named-range-file-body.ts +74 -0
  940. package/models/put-named-range-file-response.ts +38 -0
  941. package/models/put-named-range-json-body.ts +30 -0
  942. package/models/put-named-range-json-response.ts +38 -0
  943. package/models/ref-change.ts +49 -0
  944. package/models/refresh-lead-response.ts +38 -0
  945. package/models/register-lead-partners-response.ts +45 -0
  946. package/models/renew-group-policy-body.ts +36 -0
  947. package/models/renew-group-policy-response.ts +45 -0
  948. package/models/report-item.ts +55 -0
  949. package/models/report-severity.ts +31 -0
  950. package/models/resolved-contract-field.ts +56 -0
  951. package/models/resolved-factor.ts +55 -0
  952. package/models/resolved-named-range.ts +49 -0
  953. package/models/resolved-partner.ts +67 -0
  954. package/models/set-active-group-version-body.ts +30 -0
  955. package/models/set-active-group-version-response.ts +31 -0
  956. package/models/set-active-version-body.ts +30 -0
  957. package/models/set-active-version-response.ts +31 -0
  958. package/models/set-group-version-status-body.ts +43 -0
  959. package/models/set-group-version-status-response.ts +45 -0
  960. package/models/set-version-status-body.ts +43 -0
  961. package/models/set-version-status-response.ts +45 -0
  962. package/models/slice.ts +36 -0
  963. package/models/snapshot-envelope.ts +48 -0
  964. package/models/status-kind.ts +33 -0
  965. package/models/status.ts +43 -0
  966. package/models/tariff-version.ts +152 -0
  967. package/models/tariff.ts +115 -0
  968. package/models/tax-amount.ts +48 -0
  969. package/models/terminate-group-policy-body.ts +55 -0
  970. package/models/terminate-group-policy-response.ts +45 -0
  971. package/models/terminate-policy-body.ts +36 -0
  972. package/models/terminate-policy-response.ts +38 -0
  973. package/models/transition-lead-body.ts +36 -0
  974. package/models/transition-lead-response.ts +38 -0
  975. package/models/update-core-config-body.ts +30 -0
  976. package/models/update-core-config-response.ts +31 -0
  977. package/models/update-generation-body.ts +36 -0
  978. package/models/update-generation-response.ts +31 -0
  979. package/models/update-group-core-config-body.ts +36 -0
  980. package/models/update-group-core-config-response.ts +31 -0
  981. package/models/update-group-policy-body.ts +56 -0
  982. package/models/update-group-policy-response.ts +38 -0
  983. package/models/update-group-version-body.ts +30 -0
  984. package/models/update-group-version-response.ts +31 -0
  985. package/models/update-lead-body.ts +50 -0
  986. package/models/update-lead-response.ts +38 -0
  987. package/models/update-tariff-body.ts +42 -0
  988. package/models/update-tariff-response.ts +31 -0
  989. package/models/update-version-body.ts +30 -0
  990. package/models/update-version-response.ts +31 -0
  991. package/models/upgrade-check-result.ts +68 -0
  992. package/models/upgrade-group-policy-body.ts +36 -0
  993. package/models/upgrade-group-policy-response.ts +45 -0
  994. package/models/upgrade-issue.ts +48 -0
  995. package/models/upgrade-policy-body.ts +36 -0
  996. package/models/upgrade-policy-response.ts +45 -0
  997. package/models/upgrade-target.ts +54 -0
  998. package/models/validate-core-config-expression-body.ts +37 -0
  999. package/models/validate-core-config-expression-response.ts +31 -0
  1000. package/models/validate-core-config-response.ts +31 -0
  1001. package/models/validate-group-version-body.ts +36 -0
  1002. package/models/validate-group-version-response.ts +31 -0
  1003. package/models/validate-version-body.ts +30 -0
  1004. package/models/validate-version-response.ts +31 -0
  1005. package/models/validation-issue.ts +42 -0
  1006. package/models/validation-report.ts +37 -0
  1007. package/models/version-status.ts +34 -0
  1008. package/package.json +27 -4
  1009. package/tsconfig.json +23 -0
@@ -0,0 +1,1744 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * insuranceservice/v2/config_common.proto
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: version not set
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.LeadsApi = exports.LeadsApiFactory = exports.LeadsApiFp = exports.LeadsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * LeadsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var LeadsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ *
101
+ * @summary Turns an accepted lead into a policy.
102
+ * @param {string} code The lead\&#39;s code.
103
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
104
+ * @param {AcceptLeadBody} body
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ leadServiceAcceptLead: function (code, ifMatch, body, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
112
+ var _a;
113
+ return __generator(this, function (_b) {
114
+ // verify required parameter 'code' is not null or undefined
115
+ (0, common_1.assertParamExists)('leadServiceAcceptLead', 'code', code);
116
+ // verify required parameter 'ifMatch' is not null or undefined
117
+ (0, common_1.assertParamExists)('leadServiceAcceptLead', 'ifMatch', ifMatch);
118
+ // verify required parameter 'body' is not null or undefined
119
+ (0, common_1.assertParamExists)('leadServiceAcceptLead', 'body', body);
120
+ localVarPath = "/insuranceservice/v2/leads/{code}:accept"
121
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
122
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ baseAccessToken = configuration.accessToken;
126
+ }
127
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
+ localVarHeaderParameter = {};
129
+ localVarQueryParameter = {};
130
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
131
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
132
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
133
+ if (ifMatchValue || ifMatchKeepEmpty) {
134
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
135
+ }
136
+ localVarHeaderParameter['Content-Type'] = 'application/json';
137
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
138
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
140
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
141
+ return [2 /*return*/, {
142
+ url: (0, common_1.toPathString)(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ }];
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ *
150
+ * @summary Creates a lead.
151
+ * @param {CreateLeadRequest} body The request of &#x60;CreateLead&#x60;.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ leadServiceCreateLead: function (body, options) {
156
+ if (options === void 0) { options = {}; }
157
+ return __awaiter(_this, void 0, void 0, function () {
158
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
+ return __generator(this, function (_a) {
160
+ // verify required parameter 'body' is not null or undefined
161
+ (0, common_1.assertParamExists)('leadServiceCreateLead', 'body', body);
162
+ localVarPath = "/insuranceservice/v2/leads";
163
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ localVarHeaderParameter['Content-Type'] = 'application/json';
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
175
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
176
+ return [2 /*return*/, {
177
+ url: (0, common_1.toPathString)(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ }];
180
+ });
181
+ });
182
+ },
183
+ /**
184
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
185
+ * @summary Starts the upload of a file to import.
186
+ * @param {CreateLeadImportUploadRequest} body The request of &#x60;CreateLeadImportUpload&#x60;.
187
+ * @param {*} [options] Override http request option.
188
+ * @throws {RequiredError}
189
+ */
190
+ leadServiceCreateLeadImportUpload: function (body, options) {
191
+ if (options === void 0) { options = {}; }
192
+ return __awaiter(_this, void 0, void 0, function () {
193
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
194
+ return __generator(this, function (_a) {
195
+ // verify required parameter 'body' is not null or undefined
196
+ (0, common_1.assertParamExists)('leadServiceCreateLeadImportUpload', 'body', body);
197
+ localVarPath = "/insuranceservice/v2/leads:import-upload";
198
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ baseAccessToken = configuration.accessToken;
202
+ }
203
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
204
+ localVarHeaderParameter = {};
205
+ localVarQueryParameter = {};
206
+ localVarHeaderParameter['Content-Type'] = 'application/json';
207
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
208
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
210
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
211
+ return [2 /*return*/, {
212
+ url: (0, common_1.toPathString)(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ }];
215
+ });
216
+ });
217
+ },
218
+ /**
219
+ *
220
+ * @summary Compares the premium of a lead with a fresh estimate.
221
+ * @param {string} code The lead\&#39;s code.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ leadServiceEstimateLeadPremium: function (code, options) {
226
+ if (options === void 0) { options = {}; }
227
+ return __awaiter(_this, void 0, void 0, function () {
228
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
229
+ return __generator(this, function (_a) {
230
+ // verify required parameter 'code' is not null or undefined
231
+ (0, common_1.assertParamExists)('leadServiceEstimateLeadPremium', 'code', code);
232
+ localVarPath = "/insuranceservice/v2/leads/{code}/premium-estimate"
233
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
234
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
235
+ if (configuration) {
236
+ baseOptions = configuration.baseOptions;
237
+ baseAccessToken = configuration.accessToken;
238
+ }
239
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
240
+ localVarHeaderParameter = {};
241
+ localVarQueryParameter = {};
242
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
243
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
245
+ return [2 /*return*/, {
246
+ url: (0, common_1.toPathString)(localVarUrlObj),
247
+ options: localVarRequestOptions,
248
+ }];
249
+ });
250
+ });
251
+ },
252
+ /**
253
+ *
254
+ * @summary Returns one lead with the transitions it can take.
255
+ * @param {string} code The lead\&#39;s code.
256
+ * @param {*} [options] Override http request option.
257
+ * @throws {RequiredError}
258
+ */
259
+ leadServiceGetLead: function (code, options) {
260
+ if (options === void 0) { options = {}; }
261
+ return __awaiter(_this, void 0, void 0, function () {
262
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
+ return __generator(this, function (_a) {
264
+ // verify required parameter 'code' is not null or undefined
265
+ (0, common_1.assertParamExists)('leadServiceGetLead', 'code', code);
266
+ localVarPath = "/insuranceservice/v2/leads/{code}"
267
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
268
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
274
+ localVarHeaderParameter = {};
275
+ localVarQueryParameter = {};
276
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
277
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
278
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
279
+ return [2 /*return*/, {
280
+ url: (0, common_1.toPathString)(localVarUrlObj),
281
+ options: localVarRequestOptions,
282
+ }];
283
+ });
284
+ });
285
+ },
286
+ /**
287
+ *
288
+ * @summary Returns the filter catalog of the lead list: the fields a client can filter it by.
289
+ * @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, the catalog holds the system fields only.
290
+ * @param {*} [options] Override http request option.
291
+ * @throws {RequiredError}
292
+ */
293
+ leadServiceGetLeadFilterCatalog: function (tariffSlug, options) {
294
+ if (options === void 0) { options = {}; }
295
+ return __awaiter(_this, void 0, void 0, function () {
296
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
297
+ return __generator(this, function (_a) {
298
+ localVarPath = "/insuranceservice/v2/leads:filterCatalog";
299
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
300
+ if (configuration) {
301
+ baseOptions = configuration.baseOptions;
302
+ baseAccessToken = configuration.accessToken;
303
+ }
304
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
305
+ localVarHeaderParameter = {};
306
+ localVarQueryParameter = {};
307
+ if (tariffSlug !== undefined) {
308
+ localVarQueryParameter['tariffSlug'] = tariffSlug;
309
+ }
310
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
311
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
313
+ return [2 /*return*/, {
314
+ url: (0, common_1.toPathString)(localVarUrlObj),
315
+ options: localVarRequestOptions,
316
+ }];
317
+ });
318
+ });
319
+ },
320
+ /**
321
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
322
+ * @summary Returns the record of a lead import.
323
+ * @param {string} jobCode The code of the import\&#39;s job, as &#x60;ImportLeads&#x60; returned it.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ leadServiceGetLeadImportJob: function (jobCode, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ // verify required parameter 'jobCode' is not null or undefined
333
+ (0, common_1.assertParamExists)('leadServiceGetLeadImportJob', 'jobCode', jobCode);
334
+ localVarPath = "/insuranceservice/v2/lead-imports/{jobCode}"
335
+ .replace("{".concat("jobCode", "}"), encodeURIComponent(String(jobCode)));
336
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
337
+ if (configuration) {
338
+ baseOptions = configuration.baseOptions;
339
+ baseAccessToken = configuration.accessToken;
340
+ }
341
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
342
+ localVarHeaderParameter = {};
343
+ localVarQueryParameter = {};
344
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
345
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
347
+ return [2 /*return*/, {
348
+ url: (0, common_1.toPathString)(localVarUrlObj),
349
+ options: localVarRequestOptions,
350
+ }];
351
+ });
352
+ });
353
+ },
354
+ /**
355
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
356
+ * @summary Returns a signed link to the import template for a context and a date.
357
+ * @param {string} [parentPolicyCode] The code of the group policy whose members the rows become, for a member template. Exactly one of &#x60;parentPolicyCode&#x60; and &#x60;tariffErn&#x60; is required.
358
+ * @param {string} [tariffErn] The ERN of the tariff of a standalone template.
359
+ * @param {string} [effectiveDate] The date the version is resolved at, as a full-date (&#x60;YYYY-MM-DD&#x60;). When empty, today.
360
+ * @param {string} [format] The format of the template: &#x60;XLSX&#x60; (default), &#x60;CSV&#x60; or &#x60;JSON_SCHEMA&#x60;.
361
+ * @param {string} [locale] The language of the template: &#x60;de&#x60; (default) or &#x60;en&#x60;.
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ leadServiceGetLeadImportTemplate: function (parentPolicyCode, tariffErn, effectiveDate, format, locale, options) {
366
+ if (options === void 0) { options = {}; }
367
+ return __awaiter(_this, void 0, void 0, function () {
368
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
369
+ return __generator(this, function (_a) {
370
+ localVarPath = "/insuranceservice/v2/leads:import-template";
371
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
372
+ if (configuration) {
373
+ baseOptions = configuration.baseOptions;
374
+ baseAccessToken = configuration.accessToken;
375
+ }
376
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
377
+ localVarHeaderParameter = {};
378
+ localVarQueryParameter = {};
379
+ if (parentPolicyCode !== undefined) {
380
+ localVarQueryParameter['parentPolicyCode'] = parentPolicyCode;
381
+ }
382
+ if (tariffErn !== undefined) {
383
+ localVarQueryParameter['tariffErn'] = tariffErn;
384
+ }
385
+ if (effectiveDate !== undefined) {
386
+ localVarQueryParameter['effectiveDate'] = effectiveDate;
387
+ }
388
+ if (format !== undefined) {
389
+ localVarQueryParameter['format'] = format;
390
+ }
391
+ if (locale !== undefined) {
392
+ localVarQueryParameter['locale'] = locale;
393
+ }
394
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
395
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
396
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
397
+ return [2 /*return*/, {
398
+ url: (0, common_1.toPathString)(localVarUrlObj),
399
+ options: localVarRequestOptions,
400
+ }];
401
+ });
402
+ });
403
+ },
404
+ /**
405
+ *
406
+ * @summary Returns the schema, partner roles and lifecycle that a lead is checked against.
407
+ * @param {string} code The lead\&#39;s code.
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ leadServiceGetLeadSchema: function (code, options) {
412
+ if (options === void 0) { options = {}; }
413
+ return __awaiter(_this, void 0, void 0, function () {
414
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
415
+ return __generator(this, function (_a) {
416
+ // verify required parameter 'code' is not null or undefined
417
+ (0, common_1.assertParamExists)('leadServiceGetLeadSchema', 'code', code);
418
+ localVarPath = "/insuranceservice/v2/leads/{code}/schema"
419
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
420
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
421
+ if (configuration) {
422
+ baseOptions = configuration.baseOptions;
423
+ baseAccessToken = configuration.accessToken;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
429
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
430
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
431
+ return [2 /*return*/, {
432
+ url: (0, common_1.toPathString)(localVarUrlObj),
433
+ options: localVarRequestOptions,
434
+ }];
435
+ });
436
+ });
437
+ },
438
+ /**
439
+ *
440
+ * @summary Returns one entry of a lead\'s history.
441
+ * @param {string} code The lead\&#39;s code.
442
+ * @param {string} version The version number of the entry to return.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ leadServiceGetLeadVersion: function (code, version, options) {
447
+ if (options === void 0) { options = {}; }
448
+ return __awaiter(_this, void 0, void 0, function () {
449
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
450
+ return __generator(this, function (_a) {
451
+ // verify required parameter 'code' is not null or undefined
452
+ (0, common_1.assertParamExists)('leadServiceGetLeadVersion', 'code', code);
453
+ // verify required parameter 'version' is not null or undefined
454
+ (0, common_1.assertParamExists)('leadServiceGetLeadVersion', 'version', version);
455
+ localVarPath = "/insuranceservice/v2/leads/{code}/versions/{version}"
456
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)))
457
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
458
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
459
+ if (configuration) {
460
+ baseOptions = configuration.baseOptions;
461
+ baseAccessToken = configuration.accessToken;
462
+ }
463
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
464
+ localVarHeaderParameter = {};
465
+ localVarQueryParameter = {};
466
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
467
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
469
+ return [2 /*return*/, {
470
+ url: (0, common_1.toPathString)(localVarUrlObj),
471
+ options: localVarRequestOptions,
472
+ }];
473
+ });
474
+ });
475
+ },
476
+ /**
477
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
478
+ * @summary Imports many leads in one job.
479
+ * @param {ImportLeadsRequest} body The request of &#x60;ImportLeads&#x60;.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ leadServiceImportLeads: function (body, options) {
484
+ if (options === void 0) { options = {}; }
485
+ return __awaiter(_this, void 0, void 0, function () {
486
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
487
+ return __generator(this, function (_a) {
488
+ // verify required parameter 'body' is not null or undefined
489
+ (0, common_1.assertParamExists)('leadServiceImportLeads', 'body', body);
490
+ localVarPath = "/insuranceservice/v2/leads:import";
491
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
492
+ if (configuration) {
493
+ baseOptions = configuration.baseOptions;
494
+ baseAccessToken = configuration.accessToken;
495
+ }
496
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
497
+ localVarHeaderParameter = {};
498
+ localVarQueryParameter = {};
499
+ localVarHeaderParameter['Content-Type'] = 'application/json';
500
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
501
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
502
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
503
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
504
+ return [2 /*return*/, {
505
+ url: (0, common_1.toPathString)(localVarUrlObj),
506
+ options: localVarRequestOptions,
507
+ }];
508
+ });
509
+ });
510
+ },
511
+ /**
512
+ *
513
+ * @summary Lists the tariff versions a standalone lead can be created on today.
514
+ * @param {number} [pageSize]
515
+ * @param {string} [pageToken]
516
+ * @param {string} [filter]
517
+ * @param {string} [search]
518
+ * @param {string} [order]
519
+ * @param {string} [expand]
520
+ * @param {string} [filters]
521
+ * @param {*} [options] Override http request option.
522
+ * @throws {RequiredError}
523
+ */
524
+ leadServiceListAvailableVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
525
+ if (options === void 0) { options = {}; }
526
+ return __awaiter(_this, void 0, void 0, function () {
527
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
528
+ return __generator(this, function (_a) {
529
+ localVarPath = "/insuranceservice/v2/leads:available-versions";
530
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
531
+ if (configuration) {
532
+ baseOptions = configuration.baseOptions;
533
+ baseAccessToken = configuration.accessToken;
534
+ }
535
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
536
+ localVarHeaderParameter = {};
537
+ localVarQueryParameter = {};
538
+ if (pageSize !== undefined) {
539
+ localVarQueryParameter['pageSize'] = pageSize;
540
+ }
541
+ if (pageToken !== undefined) {
542
+ localVarQueryParameter['pageToken'] = pageToken;
543
+ }
544
+ if (filter !== undefined) {
545
+ localVarQueryParameter['filter'] = filter;
546
+ }
547
+ if (search !== undefined) {
548
+ localVarQueryParameter['search'] = search;
549
+ }
550
+ if (order !== undefined) {
551
+ localVarQueryParameter['order'] = order;
552
+ }
553
+ if (expand !== undefined) {
554
+ localVarQueryParameter['expand'] = expand;
555
+ }
556
+ if (filters !== undefined) {
557
+ localVarQueryParameter['filters'] = filters;
558
+ }
559
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
560
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
561
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
562
+ return [2 /*return*/, {
563
+ url: (0, common_1.toPathString)(localVarUrlObj),
564
+ options: localVarRequestOptions,
565
+ }];
566
+ });
567
+ });
568
+ },
569
+ /**
570
+ *
571
+ * @summary Lists the history of a lead, oldest first.
572
+ * @param {number} [pageSize]
573
+ * @param {string} [pageToken]
574
+ * @param {string} [filter]
575
+ * @param {string} [search]
576
+ * @param {string} [order]
577
+ * @param {string} [expand]
578
+ * @param {string} [filters]
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ leadServiceListLeadVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
583
+ if (options === void 0) { options = {}; }
584
+ return __awaiter(_this, void 0, void 0, function () {
585
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
586
+ return __generator(this, function (_a) {
587
+ localVarPath = "/insuranceservice/v2/lead-versions";
588
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
589
+ if (configuration) {
590
+ baseOptions = configuration.baseOptions;
591
+ baseAccessToken = configuration.accessToken;
592
+ }
593
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
594
+ localVarHeaderParameter = {};
595
+ localVarQueryParameter = {};
596
+ if (pageSize !== undefined) {
597
+ localVarQueryParameter['pageSize'] = pageSize;
598
+ }
599
+ if (pageToken !== undefined) {
600
+ localVarQueryParameter['pageToken'] = pageToken;
601
+ }
602
+ if (filter !== undefined) {
603
+ localVarQueryParameter['filter'] = filter;
604
+ }
605
+ if (search !== undefined) {
606
+ localVarQueryParameter['search'] = search;
607
+ }
608
+ if (order !== undefined) {
609
+ localVarQueryParameter['order'] = order;
610
+ }
611
+ if (expand !== undefined) {
612
+ localVarQueryParameter['expand'] = expand;
613
+ }
614
+ if (filters !== undefined) {
615
+ localVarQueryParameter['filters'] = filters;
616
+ }
617
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
618
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
619
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
620
+ return [2 /*return*/, {
621
+ url: (0, common_1.toPathString)(localVarUrlObj),
622
+ options: localVarRequestOptions,
623
+ }];
624
+ });
625
+ });
626
+ },
627
+ /**
628
+ *
629
+ * @summary Lists leads.
630
+ * @param {number} [pageSize]
631
+ * @param {string} [pageToken]
632
+ * @param {string} [filter]
633
+ * @param {string} [search]
634
+ * @param {string} [order]
635
+ * @param {string} [expand]
636
+ * @param {string} [filters]
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ leadServiceListLeads: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
641
+ if (options === void 0) { options = {}; }
642
+ return __awaiter(_this, void 0, void 0, function () {
643
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
644
+ return __generator(this, function (_a) {
645
+ localVarPath = "/insuranceservice/v2/leads";
646
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
647
+ if (configuration) {
648
+ baseOptions = configuration.baseOptions;
649
+ baseAccessToken = configuration.accessToken;
650
+ }
651
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
652
+ localVarHeaderParameter = {};
653
+ localVarQueryParameter = {};
654
+ if (pageSize !== undefined) {
655
+ localVarQueryParameter['pageSize'] = pageSize;
656
+ }
657
+ if (pageToken !== undefined) {
658
+ localVarQueryParameter['pageToken'] = pageToken;
659
+ }
660
+ if (filter !== undefined) {
661
+ localVarQueryParameter['filter'] = filter;
662
+ }
663
+ if (search !== undefined) {
664
+ localVarQueryParameter['search'] = search;
665
+ }
666
+ if (order !== undefined) {
667
+ localVarQueryParameter['order'] = order;
668
+ }
669
+ if (expand !== undefined) {
670
+ localVarQueryParameter['expand'] = expand;
671
+ }
672
+ if (filters !== undefined) {
673
+ localVarQueryParameter['filters'] = filters;
674
+ }
675
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
676
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
677
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
678
+ return [2 /*return*/, {
679
+ url: (0, common_1.toPathString)(localVarUrlObj),
680
+ options: localVarRequestOptions,
681
+ }];
682
+ });
683
+ });
684
+ },
685
+ /**
686
+ *
687
+ * @summary Moves a lead to the current configuration version and prices it again.
688
+ * @param {string} code The lead\&#39;s code.
689
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
690
+ * @param {object} body
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ leadServiceRefreshLead: function (code, ifMatch, body, options) {
695
+ if (options === void 0) { options = {}; }
696
+ return __awaiter(_this, void 0, void 0, function () {
697
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
698
+ var _a;
699
+ return __generator(this, function (_b) {
700
+ // verify required parameter 'code' is not null or undefined
701
+ (0, common_1.assertParamExists)('leadServiceRefreshLead', 'code', code);
702
+ // verify required parameter 'ifMatch' is not null or undefined
703
+ (0, common_1.assertParamExists)('leadServiceRefreshLead', 'ifMatch', ifMatch);
704
+ // verify required parameter 'body' is not null or undefined
705
+ (0, common_1.assertParamExists)('leadServiceRefreshLead', 'body', body);
706
+ localVarPath = "/insuranceservice/v2/leads/{code}:refresh"
707
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
708
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
709
+ if (configuration) {
710
+ baseOptions = configuration.baseOptions;
711
+ baseAccessToken = configuration.accessToken;
712
+ }
713
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
714
+ localVarHeaderParameter = {};
715
+ localVarQueryParameter = {};
716
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
717
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
718
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
719
+ if (ifMatchValue || ifMatchKeepEmpty) {
720
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
721
+ }
722
+ localVarHeaderParameter['Content-Type'] = 'application/json';
723
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
724
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
725
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
726
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
727
+ return [2 /*return*/, {
728
+ url: (0, common_1.toPathString)(localVarUrlObj),
729
+ options: localVarRequestOptions,
730
+ }];
731
+ });
732
+ });
733
+ },
734
+ /**
735
+ *
736
+ * @summary Registers the partner drafts of a lead with the partner service.
737
+ * @param {string} code The lead\&#39;s code.
738
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
739
+ * @param {object} body
740
+ * @param {*} [options] Override http request option.
741
+ * @throws {RequiredError}
742
+ */
743
+ leadServiceRegisterLeadPartners: function (code, ifMatch, body, options) {
744
+ if (options === void 0) { options = {}; }
745
+ return __awaiter(_this, void 0, void 0, function () {
746
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
747
+ var _a;
748
+ return __generator(this, function (_b) {
749
+ // verify required parameter 'code' is not null or undefined
750
+ (0, common_1.assertParamExists)('leadServiceRegisterLeadPartners', 'code', code);
751
+ // verify required parameter 'ifMatch' is not null or undefined
752
+ (0, common_1.assertParamExists)('leadServiceRegisterLeadPartners', 'ifMatch', ifMatch);
753
+ // verify required parameter 'body' is not null or undefined
754
+ (0, common_1.assertParamExists)('leadServiceRegisterLeadPartners', 'body', body);
755
+ localVarPath = "/insuranceservice/v2/leads/{code}/partners:register"
756
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
757
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
758
+ if (configuration) {
759
+ baseOptions = configuration.baseOptions;
760
+ baseAccessToken = configuration.accessToken;
761
+ }
762
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
763
+ localVarHeaderParameter = {};
764
+ localVarQueryParameter = {};
765
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
766
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
767
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
768
+ if (ifMatchValue || ifMatchKeepEmpty) {
769
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
770
+ }
771
+ localVarHeaderParameter['Content-Type'] = 'application/json';
772
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
773
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
774
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
775
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
776
+ return [2 /*return*/, {
777
+ url: (0, common_1.toPathString)(localVarUrlObj),
778
+ options: localVarRequestOptions,
779
+ }];
780
+ });
781
+ });
782
+ },
783
+ /**
784
+ *
785
+ * @summary Moves a lead to another status.
786
+ * @param {string} code The lead\&#39;s code.
787
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
788
+ * @param {TransitionLeadBody} body
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ leadServiceTransitionLead: function (code, ifMatch, body, options) {
793
+ if (options === void 0) { options = {}; }
794
+ return __awaiter(_this, void 0, void 0, function () {
795
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
796
+ var _a;
797
+ return __generator(this, function (_b) {
798
+ // verify required parameter 'code' is not null or undefined
799
+ (0, common_1.assertParamExists)('leadServiceTransitionLead', 'code', code);
800
+ // verify required parameter 'ifMatch' is not null or undefined
801
+ (0, common_1.assertParamExists)('leadServiceTransitionLead', 'ifMatch', ifMatch);
802
+ // verify required parameter 'body' is not null or undefined
803
+ (0, common_1.assertParamExists)('leadServiceTransitionLead', 'body', body);
804
+ localVarPath = "/insuranceservice/v2/leads/{code}:transition"
805
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
806
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
807
+ if (configuration) {
808
+ baseOptions = configuration.baseOptions;
809
+ baseAccessToken = configuration.accessToken;
810
+ }
811
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
812
+ localVarHeaderParameter = {};
813
+ localVarQueryParameter = {};
814
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
815
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
816
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
817
+ if (ifMatchValue || ifMatchKeepEmpty) {
818
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
819
+ }
820
+ localVarHeaderParameter['Content-Type'] = 'application/json';
821
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
822
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
823
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
824
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
825
+ return [2 /*return*/, {
826
+ url: (0, common_1.toPathString)(localVarUrlObj),
827
+ options: localVarRequestOptions,
828
+ }];
829
+ });
830
+ });
831
+ },
832
+ /**
833
+ *
834
+ * @summary Changes a lead.
835
+ * @param {string} code The lead\&#39;s code.
836
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
837
+ * @param {UpdateLeadBody} body
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
841
+ leadServiceUpdateLead: function (code, ifMatch, body, options) {
842
+ if (options === void 0) { options = {}; }
843
+ return __awaiter(_this, void 0, void 0, function () {
844
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
845
+ var _a;
846
+ return __generator(this, function (_b) {
847
+ // verify required parameter 'code' is not null or undefined
848
+ (0, common_1.assertParamExists)('leadServiceUpdateLead', 'code', code);
849
+ // verify required parameter 'ifMatch' is not null or undefined
850
+ (0, common_1.assertParamExists)('leadServiceUpdateLead', 'ifMatch', ifMatch);
851
+ // verify required parameter 'body' is not null or undefined
852
+ (0, common_1.assertParamExists)('leadServiceUpdateLead', 'body', body);
853
+ localVarPath = "/insuranceservice/v2/leads/{code}"
854
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
855
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
856
+ if (configuration) {
857
+ baseOptions = configuration.baseOptions;
858
+ baseAccessToken = configuration.accessToken;
859
+ }
860
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
861
+ localVarHeaderParameter = {};
862
+ localVarQueryParameter = {};
863
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
864
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
865
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
866
+ if (ifMatchValue || ifMatchKeepEmpty) {
867
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
868
+ }
869
+ localVarHeaderParameter['Content-Type'] = 'application/json';
870
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
871
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
872
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
873
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
874
+ return [2 /*return*/, {
875
+ url: (0, common_1.toPathString)(localVarUrlObj),
876
+ options: localVarRequestOptions,
877
+ }];
878
+ });
879
+ });
880
+ },
881
+ };
882
+ };
883
+ exports.LeadsApiAxiosParamCreator = LeadsApiAxiosParamCreator;
884
+ /**
885
+ * LeadsApi - functional programming interface
886
+ * @export
887
+ */
888
+ var LeadsApiFp = function (configuration) {
889
+ var localVarAxiosParamCreator = (0, exports.LeadsApiAxiosParamCreator)(configuration);
890
+ return {
891
+ /**
892
+ *
893
+ * @summary Turns an accepted lead into a policy.
894
+ * @param {string} code The lead\&#39;s code.
895
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
896
+ * @param {AcceptLeadBody} body
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ leadServiceAcceptLead: function (code, ifMatch, body, options) {
901
+ return __awaiter(this, void 0, void 0, function () {
902
+ var localVarAxiosArgs;
903
+ return __generator(this, function (_a) {
904
+ switch (_a.label) {
905
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceAcceptLead(code, ifMatch, body, options)];
906
+ case 1:
907
+ localVarAxiosArgs = _a.sent();
908
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
909
+ }
910
+ });
911
+ });
912
+ },
913
+ /**
914
+ *
915
+ * @summary Creates a lead.
916
+ * @param {CreateLeadRequest} body The request of &#x60;CreateLead&#x60;.
917
+ * @param {*} [options] Override http request option.
918
+ * @throws {RequiredError}
919
+ */
920
+ leadServiceCreateLead: function (body, options) {
921
+ return __awaiter(this, void 0, void 0, function () {
922
+ var localVarAxiosArgs;
923
+ return __generator(this, function (_a) {
924
+ switch (_a.label) {
925
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceCreateLead(body, options)];
926
+ case 1:
927
+ localVarAxiosArgs = _a.sent();
928
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
929
+ }
930
+ });
931
+ });
932
+ },
933
+ /**
934
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
935
+ * @summary Starts the upload of a file to import.
936
+ * @param {CreateLeadImportUploadRequest} body The request of &#x60;CreateLeadImportUpload&#x60;.
937
+ * @param {*} [options] Override http request option.
938
+ * @throws {RequiredError}
939
+ */
940
+ leadServiceCreateLeadImportUpload: function (body, options) {
941
+ return __awaiter(this, void 0, void 0, function () {
942
+ var localVarAxiosArgs;
943
+ return __generator(this, function (_a) {
944
+ switch (_a.label) {
945
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceCreateLeadImportUpload(body, options)];
946
+ case 1:
947
+ localVarAxiosArgs = _a.sent();
948
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
949
+ }
950
+ });
951
+ });
952
+ },
953
+ /**
954
+ *
955
+ * @summary Compares the premium of a lead with a fresh estimate.
956
+ * @param {string} code The lead\&#39;s code.
957
+ * @param {*} [options] Override http request option.
958
+ * @throws {RequiredError}
959
+ */
960
+ leadServiceEstimateLeadPremium: function (code, options) {
961
+ return __awaiter(this, void 0, void 0, function () {
962
+ var localVarAxiosArgs;
963
+ return __generator(this, function (_a) {
964
+ switch (_a.label) {
965
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceEstimateLeadPremium(code, options)];
966
+ case 1:
967
+ localVarAxiosArgs = _a.sent();
968
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
969
+ }
970
+ });
971
+ });
972
+ },
973
+ /**
974
+ *
975
+ * @summary Returns one lead with the transitions it can take.
976
+ * @param {string} code The lead\&#39;s code.
977
+ * @param {*} [options] Override http request option.
978
+ * @throws {RequiredError}
979
+ */
980
+ leadServiceGetLead: function (code, options) {
981
+ return __awaiter(this, void 0, void 0, function () {
982
+ var localVarAxiosArgs;
983
+ return __generator(this, function (_a) {
984
+ switch (_a.label) {
985
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLead(code, options)];
986
+ case 1:
987
+ localVarAxiosArgs = _a.sent();
988
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
989
+ }
990
+ });
991
+ });
992
+ },
993
+ /**
994
+ *
995
+ * @summary Returns the filter catalog of the lead list: the fields a client can filter it by.
996
+ * @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, the catalog holds the system fields only.
997
+ * @param {*} [options] Override http request option.
998
+ * @throws {RequiredError}
999
+ */
1000
+ leadServiceGetLeadFilterCatalog: function (tariffSlug, options) {
1001
+ return __awaiter(this, void 0, void 0, function () {
1002
+ var localVarAxiosArgs;
1003
+ return __generator(this, function (_a) {
1004
+ switch (_a.label) {
1005
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLeadFilterCatalog(tariffSlug, options)];
1006
+ case 1:
1007
+ localVarAxiosArgs = _a.sent();
1008
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1009
+ }
1010
+ });
1011
+ });
1012
+ },
1013
+ /**
1014
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1015
+ * @summary Returns the record of a lead import.
1016
+ * @param {string} jobCode The code of the import\&#39;s job, as &#x60;ImportLeads&#x60; returned it.
1017
+ * @param {*} [options] Override http request option.
1018
+ * @throws {RequiredError}
1019
+ */
1020
+ leadServiceGetLeadImportJob: function (jobCode, options) {
1021
+ return __awaiter(this, void 0, void 0, function () {
1022
+ var localVarAxiosArgs;
1023
+ return __generator(this, function (_a) {
1024
+ switch (_a.label) {
1025
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLeadImportJob(jobCode, options)];
1026
+ case 1:
1027
+ localVarAxiosArgs = _a.sent();
1028
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1029
+ }
1030
+ });
1031
+ });
1032
+ },
1033
+ /**
1034
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1035
+ * @summary Returns a signed link to the import template for a context and a date.
1036
+ * @param {string} [parentPolicyCode] The code of the group policy whose members the rows become, for a member template. Exactly one of &#x60;parentPolicyCode&#x60; and &#x60;tariffErn&#x60; is required.
1037
+ * @param {string} [tariffErn] The ERN of the tariff of a standalone template.
1038
+ * @param {string} [effectiveDate] The date the version is resolved at, as a full-date (&#x60;YYYY-MM-DD&#x60;). When empty, today.
1039
+ * @param {string} [format] The format of the template: &#x60;XLSX&#x60; (default), &#x60;CSV&#x60; or &#x60;JSON_SCHEMA&#x60;.
1040
+ * @param {string} [locale] The language of the template: &#x60;de&#x60; (default) or &#x60;en&#x60;.
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
1044
+ leadServiceGetLeadImportTemplate: function (parentPolicyCode, tariffErn, effectiveDate, format, locale, options) {
1045
+ return __awaiter(this, void 0, void 0, function () {
1046
+ var localVarAxiosArgs;
1047
+ return __generator(this, function (_a) {
1048
+ switch (_a.label) {
1049
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLeadImportTemplate(parentPolicyCode, tariffErn, effectiveDate, format, locale, options)];
1050
+ case 1:
1051
+ localVarAxiosArgs = _a.sent();
1052
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1053
+ }
1054
+ });
1055
+ });
1056
+ },
1057
+ /**
1058
+ *
1059
+ * @summary Returns the schema, partner roles and lifecycle that a lead is checked against.
1060
+ * @param {string} code The lead\&#39;s code.
1061
+ * @param {*} [options] Override http request option.
1062
+ * @throws {RequiredError}
1063
+ */
1064
+ leadServiceGetLeadSchema: function (code, options) {
1065
+ return __awaiter(this, void 0, void 0, function () {
1066
+ var localVarAxiosArgs;
1067
+ return __generator(this, function (_a) {
1068
+ switch (_a.label) {
1069
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLeadSchema(code, options)];
1070
+ case 1:
1071
+ localVarAxiosArgs = _a.sent();
1072
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1073
+ }
1074
+ });
1075
+ });
1076
+ },
1077
+ /**
1078
+ *
1079
+ * @summary Returns one entry of a lead\'s history.
1080
+ * @param {string} code The lead\&#39;s code.
1081
+ * @param {string} version The version number of the entry to return.
1082
+ * @param {*} [options] Override http request option.
1083
+ * @throws {RequiredError}
1084
+ */
1085
+ leadServiceGetLeadVersion: function (code, version, options) {
1086
+ return __awaiter(this, void 0, void 0, function () {
1087
+ var localVarAxiosArgs;
1088
+ return __generator(this, function (_a) {
1089
+ switch (_a.label) {
1090
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceGetLeadVersion(code, version, options)];
1091
+ case 1:
1092
+ localVarAxiosArgs = _a.sent();
1093
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1094
+ }
1095
+ });
1096
+ });
1097
+ },
1098
+ /**
1099
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1100
+ * @summary Imports many leads in one job.
1101
+ * @param {ImportLeadsRequest} body The request of &#x60;ImportLeads&#x60;.
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ leadServiceImportLeads: function (body, options) {
1106
+ return __awaiter(this, void 0, void 0, function () {
1107
+ var localVarAxiosArgs;
1108
+ return __generator(this, function (_a) {
1109
+ switch (_a.label) {
1110
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceImportLeads(body, options)];
1111
+ case 1:
1112
+ localVarAxiosArgs = _a.sent();
1113
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1114
+ }
1115
+ });
1116
+ });
1117
+ },
1118
+ /**
1119
+ *
1120
+ * @summary Lists the tariff versions a standalone lead can be created on today.
1121
+ * @param {number} [pageSize]
1122
+ * @param {string} [pageToken]
1123
+ * @param {string} [filter]
1124
+ * @param {string} [search]
1125
+ * @param {string} [order]
1126
+ * @param {string} [expand]
1127
+ * @param {string} [filters]
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ leadServiceListAvailableVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1132
+ return __awaiter(this, void 0, void 0, function () {
1133
+ var localVarAxiosArgs;
1134
+ return __generator(this, function (_a) {
1135
+ switch (_a.label) {
1136
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceListAvailableVersions(pageSize, pageToken, filter, search, order, expand, filters, options)];
1137
+ case 1:
1138
+ localVarAxiosArgs = _a.sent();
1139
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1140
+ }
1141
+ });
1142
+ });
1143
+ },
1144
+ /**
1145
+ *
1146
+ * @summary Lists the history of a lead, oldest first.
1147
+ * @param {number} [pageSize]
1148
+ * @param {string} [pageToken]
1149
+ * @param {string} [filter]
1150
+ * @param {string} [search]
1151
+ * @param {string} [order]
1152
+ * @param {string} [expand]
1153
+ * @param {string} [filters]
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ leadServiceListLeadVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1158
+ return __awaiter(this, void 0, void 0, function () {
1159
+ var localVarAxiosArgs;
1160
+ return __generator(this, function (_a) {
1161
+ switch (_a.label) {
1162
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceListLeadVersions(pageSize, pageToken, filter, search, order, expand, filters, options)];
1163
+ case 1:
1164
+ localVarAxiosArgs = _a.sent();
1165
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1166
+ }
1167
+ });
1168
+ });
1169
+ },
1170
+ /**
1171
+ *
1172
+ * @summary Lists leads.
1173
+ * @param {number} [pageSize]
1174
+ * @param {string} [pageToken]
1175
+ * @param {string} [filter]
1176
+ * @param {string} [search]
1177
+ * @param {string} [order]
1178
+ * @param {string} [expand]
1179
+ * @param {string} [filters]
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ */
1183
+ leadServiceListLeads: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1184
+ return __awaiter(this, void 0, void 0, function () {
1185
+ var localVarAxiosArgs;
1186
+ return __generator(this, function (_a) {
1187
+ switch (_a.label) {
1188
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceListLeads(pageSize, pageToken, filter, search, order, expand, filters, options)];
1189
+ case 1:
1190
+ localVarAxiosArgs = _a.sent();
1191
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1192
+ }
1193
+ });
1194
+ });
1195
+ },
1196
+ /**
1197
+ *
1198
+ * @summary Moves a lead to the current configuration version and prices it again.
1199
+ * @param {string} code The lead\&#39;s code.
1200
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1201
+ * @param {object} body
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ */
1205
+ leadServiceRefreshLead: function (code, ifMatch, body, options) {
1206
+ return __awaiter(this, void 0, void 0, function () {
1207
+ var localVarAxiosArgs;
1208
+ return __generator(this, function (_a) {
1209
+ switch (_a.label) {
1210
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceRefreshLead(code, ifMatch, body, options)];
1211
+ case 1:
1212
+ localVarAxiosArgs = _a.sent();
1213
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1214
+ }
1215
+ });
1216
+ });
1217
+ },
1218
+ /**
1219
+ *
1220
+ * @summary Registers the partner drafts of a lead with the partner service.
1221
+ * @param {string} code The lead\&#39;s code.
1222
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1223
+ * @param {object} body
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ */
1227
+ leadServiceRegisterLeadPartners: function (code, ifMatch, body, options) {
1228
+ return __awaiter(this, void 0, void 0, function () {
1229
+ var localVarAxiosArgs;
1230
+ return __generator(this, function (_a) {
1231
+ switch (_a.label) {
1232
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceRegisterLeadPartners(code, ifMatch, body, options)];
1233
+ case 1:
1234
+ localVarAxiosArgs = _a.sent();
1235
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1236
+ }
1237
+ });
1238
+ });
1239
+ },
1240
+ /**
1241
+ *
1242
+ * @summary Moves a lead to another status.
1243
+ * @param {string} code The lead\&#39;s code.
1244
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1245
+ * @param {TransitionLeadBody} body
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ */
1249
+ leadServiceTransitionLead: function (code, ifMatch, body, options) {
1250
+ return __awaiter(this, void 0, void 0, function () {
1251
+ var localVarAxiosArgs;
1252
+ return __generator(this, function (_a) {
1253
+ switch (_a.label) {
1254
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceTransitionLead(code, ifMatch, body, options)];
1255
+ case 1:
1256
+ localVarAxiosArgs = _a.sent();
1257
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1258
+ }
1259
+ });
1260
+ });
1261
+ },
1262
+ /**
1263
+ *
1264
+ * @summary Changes a lead.
1265
+ * @param {string} code The lead\&#39;s code.
1266
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1267
+ * @param {UpdateLeadBody} body
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ */
1271
+ leadServiceUpdateLead: function (code, ifMatch, body, options) {
1272
+ return __awaiter(this, void 0, void 0, function () {
1273
+ var localVarAxiosArgs;
1274
+ return __generator(this, function (_a) {
1275
+ switch (_a.label) {
1276
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.leadServiceUpdateLead(code, ifMatch, body, options)];
1277
+ case 1:
1278
+ localVarAxiosArgs = _a.sent();
1279
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1280
+ }
1281
+ });
1282
+ });
1283
+ },
1284
+ };
1285
+ };
1286
+ exports.LeadsApiFp = LeadsApiFp;
1287
+ /**
1288
+ * LeadsApi - factory interface
1289
+ * @export
1290
+ */
1291
+ var LeadsApiFactory = function (configuration, basePath, axios) {
1292
+ var localVarFp = (0, exports.LeadsApiFp)(configuration);
1293
+ return {
1294
+ /**
1295
+ *
1296
+ * @summary Turns an accepted lead into a policy.
1297
+ * @param {string} code The lead\&#39;s code.
1298
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1299
+ * @param {AcceptLeadBody} body
1300
+ * @param {*} [options] Override http request option.
1301
+ * @throws {RequiredError}
1302
+ */
1303
+ leadServiceAcceptLead: function (code, ifMatch, body, options) {
1304
+ return localVarFp.leadServiceAcceptLead(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1305
+ },
1306
+ /**
1307
+ *
1308
+ * @summary Creates a lead.
1309
+ * @param {CreateLeadRequest} body The request of &#x60;CreateLead&#x60;.
1310
+ * @param {*} [options] Override http request option.
1311
+ * @throws {RequiredError}
1312
+ */
1313
+ leadServiceCreateLead: function (body, options) {
1314
+ return localVarFp.leadServiceCreateLead(body, options).then(function (request) { return request(axios, basePath); });
1315
+ },
1316
+ /**
1317
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1318
+ * @summary Starts the upload of a file to import.
1319
+ * @param {CreateLeadImportUploadRequest} body The request of &#x60;CreateLeadImportUpload&#x60;.
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ leadServiceCreateLeadImportUpload: function (body, options) {
1324
+ return localVarFp.leadServiceCreateLeadImportUpload(body, options).then(function (request) { return request(axios, basePath); });
1325
+ },
1326
+ /**
1327
+ *
1328
+ * @summary Compares the premium of a lead with a fresh estimate.
1329
+ * @param {string} code The lead\&#39;s code.
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ leadServiceEstimateLeadPremium: function (code, options) {
1334
+ return localVarFp.leadServiceEstimateLeadPremium(code, options).then(function (request) { return request(axios, basePath); });
1335
+ },
1336
+ /**
1337
+ *
1338
+ * @summary Returns one lead with the transitions it can take.
1339
+ * @param {string} code The lead\&#39;s code.
1340
+ * @param {*} [options] Override http request option.
1341
+ * @throws {RequiredError}
1342
+ */
1343
+ leadServiceGetLead: function (code, options) {
1344
+ return localVarFp.leadServiceGetLead(code, options).then(function (request) { return request(axios, basePath); });
1345
+ },
1346
+ /**
1347
+ *
1348
+ * @summary Returns the filter catalog of the lead list: the fields a client can filter it by.
1349
+ * @param {string} [tariffSlug] The slug of the tariff whose product fields to include. When empty, the catalog holds the system fields only.
1350
+ * @param {*} [options] Override http request option.
1351
+ * @throws {RequiredError}
1352
+ */
1353
+ leadServiceGetLeadFilterCatalog: function (tariffSlug, options) {
1354
+ return localVarFp.leadServiceGetLeadFilterCatalog(tariffSlug, options).then(function (request) { return request(axios, basePath); });
1355
+ },
1356
+ /**
1357
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1358
+ * @summary Returns the record of a lead import.
1359
+ * @param {string} jobCode The code of the import\&#39;s job, as &#x60;ImportLeads&#x60; returned it.
1360
+ * @param {*} [options] Override http request option.
1361
+ * @throws {RequiredError}
1362
+ */
1363
+ leadServiceGetLeadImportJob: function (jobCode, options) {
1364
+ return localVarFp.leadServiceGetLeadImportJob(jobCode, options).then(function (request) { return request(axios, basePath); });
1365
+ },
1366
+ /**
1367
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1368
+ * @summary Returns a signed link to the import template for a context and a date.
1369
+ * @param {string} [parentPolicyCode] The code of the group policy whose members the rows become, for a member template. Exactly one of &#x60;parentPolicyCode&#x60; and &#x60;tariffErn&#x60; is required.
1370
+ * @param {string} [tariffErn] The ERN of the tariff of a standalone template.
1371
+ * @param {string} [effectiveDate] The date the version is resolved at, as a full-date (&#x60;YYYY-MM-DD&#x60;). When empty, today.
1372
+ * @param {string} [format] The format of the template: &#x60;XLSX&#x60; (default), &#x60;CSV&#x60; or &#x60;JSON_SCHEMA&#x60;.
1373
+ * @param {string} [locale] The language of the template: &#x60;de&#x60; (default) or &#x60;en&#x60;.
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ */
1377
+ leadServiceGetLeadImportTemplate: function (parentPolicyCode, tariffErn, effectiveDate, format, locale, options) {
1378
+ return localVarFp.leadServiceGetLeadImportTemplate(parentPolicyCode, tariffErn, effectiveDate, format, locale, options).then(function (request) { return request(axios, basePath); });
1379
+ },
1380
+ /**
1381
+ *
1382
+ * @summary Returns the schema, partner roles and lifecycle that a lead is checked against.
1383
+ * @param {string} code The lead\&#39;s code.
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ */
1387
+ leadServiceGetLeadSchema: function (code, options) {
1388
+ return localVarFp.leadServiceGetLeadSchema(code, options).then(function (request) { return request(axios, basePath); });
1389
+ },
1390
+ /**
1391
+ *
1392
+ * @summary Returns one entry of a lead\'s history.
1393
+ * @param {string} code The lead\&#39;s code.
1394
+ * @param {string} version The version number of the entry to return.
1395
+ * @param {*} [options] Override http request option.
1396
+ * @throws {RequiredError}
1397
+ */
1398
+ leadServiceGetLeadVersion: function (code, version, options) {
1399
+ return localVarFp.leadServiceGetLeadVersion(code, version, options).then(function (request) { return request(axios, basePath); });
1400
+ },
1401
+ /**
1402
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1403
+ * @summary Imports many leads in one job.
1404
+ * @param {ImportLeadsRequest} body The request of &#x60;ImportLeads&#x60;.
1405
+ * @param {*} [options] Override http request option.
1406
+ * @throws {RequiredError}
1407
+ */
1408
+ leadServiceImportLeads: function (body, options) {
1409
+ return localVarFp.leadServiceImportLeads(body, options).then(function (request) { return request(axios, basePath); });
1410
+ },
1411
+ /**
1412
+ *
1413
+ * @summary Lists the tariff versions a standalone lead can be created on today.
1414
+ * @param {number} [pageSize]
1415
+ * @param {string} [pageToken]
1416
+ * @param {string} [filter]
1417
+ * @param {string} [search]
1418
+ * @param {string} [order]
1419
+ * @param {string} [expand]
1420
+ * @param {string} [filters]
1421
+ * @param {*} [options] Override http request option.
1422
+ * @throws {RequiredError}
1423
+ */
1424
+ leadServiceListAvailableVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1425
+ return localVarFp.leadServiceListAvailableVersions(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1426
+ },
1427
+ /**
1428
+ *
1429
+ * @summary Lists the history of a lead, oldest first.
1430
+ * @param {number} [pageSize]
1431
+ * @param {string} [pageToken]
1432
+ * @param {string} [filter]
1433
+ * @param {string} [search]
1434
+ * @param {string} [order]
1435
+ * @param {string} [expand]
1436
+ * @param {string} [filters]
1437
+ * @param {*} [options] Override http request option.
1438
+ * @throws {RequiredError}
1439
+ */
1440
+ leadServiceListLeadVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1441
+ return localVarFp.leadServiceListLeadVersions(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1442
+ },
1443
+ /**
1444
+ *
1445
+ * @summary Lists leads.
1446
+ * @param {number} [pageSize]
1447
+ * @param {string} [pageToken]
1448
+ * @param {string} [filter]
1449
+ * @param {string} [search]
1450
+ * @param {string} [order]
1451
+ * @param {string} [expand]
1452
+ * @param {string} [filters]
1453
+ * @param {*} [options] Override http request option.
1454
+ * @throws {RequiredError}
1455
+ */
1456
+ leadServiceListLeads: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1457
+ return localVarFp.leadServiceListLeads(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1458
+ },
1459
+ /**
1460
+ *
1461
+ * @summary Moves a lead to the current configuration version and prices it again.
1462
+ * @param {string} code The lead\&#39;s code.
1463
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1464
+ * @param {object} body
1465
+ * @param {*} [options] Override http request option.
1466
+ * @throws {RequiredError}
1467
+ */
1468
+ leadServiceRefreshLead: function (code, ifMatch, body, options) {
1469
+ return localVarFp.leadServiceRefreshLead(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1470
+ },
1471
+ /**
1472
+ *
1473
+ * @summary Registers the partner drafts of a lead with the partner service.
1474
+ * @param {string} code The lead\&#39;s code.
1475
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1476
+ * @param {object} body
1477
+ * @param {*} [options] Override http request option.
1478
+ * @throws {RequiredError}
1479
+ */
1480
+ leadServiceRegisterLeadPartners: function (code, ifMatch, body, options) {
1481
+ return localVarFp.leadServiceRegisterLeadPartners(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1482
+ },
1483
+ /**
1484
+ *
1485
+ * @summary Moves a lead to another status.
1486
+ * @param {string} code The lead\&#39;s code.
1487
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1488
+ * @param {TransitionLeadBody} body
1489
+ * @param {*} [options] Override http request option.
1490
+ * @throws {RequiredError}
1491
+ */
1492
+ leadServiceTransitionLead: function (code, ifMatch, body, options) {
1493
+ return localVarFp.leadServiceTransitionLead(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1494
+ },
1495
+ /**
1496
+ *
1497
+ * @summary Changes a lead.
1498
+ * @param {string} code The lead\&#39;s code.
1499
+ * @param {string} ifMatch The lead\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1500
+ * @param {UpdateLeadBody} body
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ leadServiceUpdateLead: function (code, ifMatch, body, options) {
1505
+ return localVarFp.leadServiceUpdateLead(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1506
+ },
1507
+ };
1508
+ };
1509
+ exports.LeadsApiFactory = LeadsApiFactory;
1510
+ /**
1511
+ * LeadsApi - object-oriented interface
1512
+ * @export
1513
+ * @class LeadsApi
1514
+ * @extends {BaseAPI}
1515
+ */
1516
+ var LeadsApi = /** @class */ (function (_super) {
1517
+ __extends(LeadsApi, _super);
1518
+ function LeadsApi() {
1519
+ return _super !== null && _super.apply(this, arguments) || this;
1520
+ }
1521
+ /**
1522
+ *
1523
+ * @summary Turns an accepted lead into a policy.
1524
+ * @param {LeadsApiLeadServiceAcceptLeadRequest} requestParameters Request parameters.
1525
+ * @param {*} [options] Override http request option.
1526
+ * @throws {RequiredError}
1527
+ * @memberof LeadsApi
1528
+ */
1529
+ LeadsApi.prototype.leadServiceAcceptLead = function (requestParameters, options) {
1530
+ var _this = this;
1531
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceAcceptLead(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1532
+ };
1533
+ /**
1534
+ *
1535
+ * @summary Creates a lead.
1536
+ * @param {LeadsApiLeadServiceCreateLeadRequest} requestParameters Request parameters.
1537
+ * @param {*} [options] Override http request option.
1538
+ * @throws {RequiredError}
1539
+ * @memberof LeadsApi
1540
+ */
1541
+ LeadsApi.prototype.leadServiceCreateLead = function (requestParameters, options) {
1542
+ var _this = this;
1543
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceCreateLead(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1544
+ };
1545
+ /**
1546
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1547
+ * @summary Starts the upload of a file to import.
1548
+ * @param {LeadsApiLeadServiceCreateLeadImportUploadRequest} requestParameters Request parameters.
1549
+ * @param {*} [options] Override http request option.
1550
+ * @throws {RequiredError}
1551
+ * @memberof LeadsApi
1552
+ */
1553
+ LeadsApi.prototype.leadServiceCreateLeadImportUpload = function (requestParameters, options) {
1554
+ var _this = this;
1555
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceCreateLeadImportUpload(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1556
+ };
1557
+ /**
1558
+ *
1559
+ * @summary Compares the premium of a lead with a fresh estimate.
1560
+ * @param {LeadsApiLeadServiceEstimateLeadPremiumRequest} requestParameters Request parameters.
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ * @memberof LeadsApi
1564
+ */
1565
+ LeadsApi.prototype.leadServiceEstimateLeadPremium = function (requestParameters, options) {
1566
+ var _this = this;
1567
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceEstimateLeadPremium(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1568
+ };
1569
+ /**
1570
+ *
1571
+ * @summary Returns one lead with the transitions it can take.
1572
+ * @param {LeadsApiLeadServiceGetLeadRequest} requestParameters Request parameters.
1573
+ * @param {*} [options] Override http request option.
1574
+ * @throws {RequiredError}
1575
+ * @memberof LeadsApi
1576
+ */
1577
+ LeadsApi.prototype.leadServiceGetLead = function (requestParameters, options) {
1578
+ var _this = this;
1579
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLead(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1580
+ };
1581
+ /**
1582
+ *
1583
+ * @summary Returns the filter catalog of the lead list: the fields a client can filter it by.
1584
+ * @param {LeadsApiLeadServiceGetLeadFilterCatalogRequest} requestParameters Request parameters.
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ * @memberof LeadsApi
1588
+ */
1589
+ LeadsApi.prototype.leadServiceGetLeadFilterCatalog = function (requestParameters, options) {
1590
+ var _this = this;
1591
+ if (requestParameters === void 0) { requestParameters = {}; }
1592
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLeadFilterCatalog(requestParameters.tariffSlug, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1593
+ };
1594
+ /**
1595
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1596
+ * @summary Returns the record of a lead import.
1597
+ * @param {LeadsApiLeadServiceGetLeadImportJobRequest} requestParameters Request parameters.
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ * @memberof LeadsApi
1601
+ */
1602
+ LeadsApi.prototype.leadServiceGetLeadImportJob = function (requestParameters, options) {
1603
+ var _this = this;
1604
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLeadImportJob(requestParameters.jobCode, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1605
+ };
1606
+ /**
1607
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1608
+ * @summary Returns a signed link to the import template for a context and a date.
1609
+ * @param {LeadsApiLeadServiceGetLeadImportTemplateRequest} requestParameters Request parameters.
1610
+ * @param {*} [options] Override http request option.
1611
+ * @throws {RequiredError}
1612
+ * @memberof LeadsApi
1613
+ */
1614
+ LeadsApi.prototype.leadServiceGetLeadImportTemplate = function (requestParameters, options) {
1615
+ var _this = this;
1616
+ if (requestParameters === void 0) { requestParameters = {}; }
1617
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLeadImportTemplate(requestParameters.parentPolicyCode, requestParameters.tariffErn, requestParameters.effectiveDate, requestParameters.format, requestParameters.locale, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1618
+ };
1619
+ /**
1620
+ *
1621
+ * @summary Returns the schema, partner roles and lifecycle that a lead is checked against.
1622
+ * @param {LeadsApiLeadServiceGetLeadSchemaRequest} requestParameters Request parameters.
1623
+ * @param {*} [options] Override http request option.
1624
+ * @throws {RequiredError}
1625
+ * @memberof LeadsApi
1626
+ */
1627
+ LeadsApi.prototype.leadServiceGetLeadSchema = function (requestParameters, options) {
1628
+ var _this = this;
1629
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLeadSchema(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1630
+ };
1631
+ /**
1632
+ *
1633
+ * @summary Returns one entry of a lead\'s history.
1634
+ * @param {LeadsApiLeadServiceGetLeadVersionRequest} requestParameters Request parameters.
1635
+ * @param {*} [options] Override http request option.
1636
+ * @throws {RequiredError}
1637
+ * @memberof LeadsApi
1638
+ */
1639
+ LeadsApi.prototype.leadServiceGetLeadVersion = function (requestParameters, options) {
1640
+ var _this = this;
1641
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceGetLeadVersion(requestParameters.code, requestParameters.version, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1642
+ };
1643
+ /**
1644
+ * TODO: not available yet, the call answers Unimplemented. Remove this line when the call is built.
1645
+ * @summary Imports many leads in one job.
1646
+ * @param {LeadsApiLeadServiceImportLeadsRequest} requestParameters Request parameters.
1647
+ * @param {*} [options] Override http request option.
1648
+ * @throws {RequiredError}
1649
+ * @memberof LeadsApi
1650
+ */
1651
+ LeadsApi.prototype.leadServiceImportLeads = function (requestParameters, options) {
1652
+ var _this = this;
1653
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceImportLeads(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1654
+ };
1655
+ /**
1656
+ *
1657
+ * @summary Lists the tariff versions a standalone lead can be created on today.
1658
+ * @param {LeadsApiLeadServiceListAvailableVersionsRequest} requestParameters Request parameters.
1659
+ * @param {*} [options] Override http request option.
1660
+ * @throws {RequiredError}
1661
+ * @memberof LeadsApi
1662
+ */
1663
+ LeadsApi.prototype.leadServiceListAvailableVersions = function (requestParameters, options) {
1664
+ var _this = this;
1665
+ if (requestParameters === void 0) { requestParameters = {}; }
1666
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceListAvailableVersions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1667
+ };
1668
+ /**
1669
+ *
1670
+ * @summary Lists the history of a lead, oldest first.
1671
+ * @param {LeadsApiLeadServiceListLeadVersionsRequest} requestParameters Request parameters.
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ * @memberof LeadsApi
1675
+ */
1676
+ LeadsApi.prototype.leadServiceListLeadVersions = function (requestParameters, options) {
1677
+ var _this = this;
1678
+ if (requestParameters === void 0) { requestParameters = {}; }
1679
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceListLeadVersions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1680
+ };
1681
+ /**
1682
+ *
1683
+ * @summary Lists leads.
1684
+ * @param {LeadsApiLeadServiceListLeadsRequest} requestParameters Request parameters.
1685
+ * @param {*} [options] Override http request option.
1686
+ * @throws {RequiredError}
1687
+ * @memberof LeadsApi
1688
+ */
1689
+ LeadsApi.prototype.leadServiceListLeads = function (requestParameters, options) {
1690
+ var _this = this;
1691
+ if (requestParameters === void 0) { requestParameters = {}; }
1692
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceListLeads(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1693
+ };
1694
+ /**
1695
+ *
1696
+ * @summary Moves a lead to the current configuration version and prices it again.
1697
+ * @param {LeadsApiLeadServiceRefreshLeadRequest} requestParameters Request parameters.
1698
+ * @param {*} [options] Override http request option.
1699
+ * @throws {RequiredError}
1700
+ * @memberof LeadsApi
1701
+ */
1702
+ LeadsApi.prototype.leadServiceRefreshLead = function (requestParameters, options) {
1703
+ var _this = this;
1704
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceRefreshLead(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1705
+ };
1706
+ /**
1707
+ *
1708
+ * @summary Registers the partner drafts of a lead with the partner service.
1709
+ * @param {LeadsApiLeadServiceRegisterLeadPartnersRequest} requestParameters Request parameters.
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ * @memberof LeadsApi
1713
+ */
1714
+ LeadsApi.prototype.leadServiceRegisterLeadPartners = function (requestParameters, options) {
1715
+ var _this = this;
1716
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceRegisterLeadPartners(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1717
+ };
1718
+ /**
1719
+ *
1720
+ * @summary Moves a lead to another status.
1721
+ * @param {LeadsApiLeadServiceTransitionLeadRequest} requestParameters Request parameters.
1722
+ * @param {*} [options] Override http request option.
1723
+ * @throws {RequiredError}
1724
+ * @memberof LeadsApi
1725
+ */
1726
+ LeadsApi.prototype.leadServiceTransitionLead = function (requestParameters, options) {
1727
+ var _this = this;
1728
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceTransitionLead(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1729
+ };
1730
+ /**
1731
+ *
1732
+ * @summary Changes a lead.
1733
+ * @param {LeadsApiLeadServiceUpdateLeadRequest} requestParameters Request parameters.
1734
+ * @param {*} [options] Override http request option.
1735
+ * @throws {RequiredError}
1736
+ * @memberof LeadsApi
1737
+ */
1738
+ LeadsApi.prototype.leadServiceUpdateLead = function (requestParameters, options) {
1739
+ var _this = this;
1740
+ return (0, exports.LeadsApiFp)(this.configuration).leadServiceUpdateLead(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1741
+ };
1742
+ return LeadsApi;
1743
+ }(base_1.BaseAPI));
1744
+ exports.LeadsApi = LeadsApi;