@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,2236 @@
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.GroupTariffsApi = exports.GroupTariffsApiFactory = exports.GroupTariffsApiFp = exports.GroupTariffsApiAxiosParamCreator = 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
+ * GroupTariffsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var GroupTariffsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * The asset is stored as a `DRAFT`. `config` is its document and `publishedSchema` the schema that policy data is validated against; either can be left out. `basedOnName` names an asset to copy the new one from.
101
+ * @summary Creates a draft configuration asset of a group tariff.
102
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
103
+ * @param {CreateGroupCoreConfigBody} body
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ groupTariffServiceCreateGroupCoreConfig: function (groupTariffSlug, body, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ // verify required parameter 'groupTariffSlug' is not null or undefined
113
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupCoreConfig', 'groupTariffSlug', groupTariffSlug);
114
+ // verify required parameter 'body' is not null or undefined
115
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupCoreConfig', 'body', body);
116
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs"
117
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)));
118
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
119
+ if (configuration) {
120
+ baseOptions = configuration.baseOptions;
121
+ baseAccessToken = configuration.accessToken;
122
+ }
123
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
+ localVarHeaderParameter = {};
125
+ localVarQueryParameter = {};
126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
131
+ return [2 /*return*/, {
132
+ url: (0, common_1.toPathString)(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ }];
135
+ });
136
+ });
137
+ },
138
+ /**
139
+ * A generation is a period of the group tariff that starts on `validFrom`. The call needs the group tariff\'s `If-Match` because adding a generation changes the group tariff. A group generation has no draft: create its first version with `CreateGroupVersion`.
140
+ * @summary Adds a generation to a group tariff.
141
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
142
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
143
+ * @param {CreateGroupGenerationBody} body
144
+ * @param {*} [options] Override http request option.
145
+ * @throws {RequiredError}
146
+ */
147
+ groupTariffServiceCreateGroupGeneration: function (groupTariffSlug, ifMatch, body, options) {
148
+ if (options === void 0) { options = {}; }
149
+ return __awaiter(_this, void 0, void 0, function () {
150
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
151
+ var _a;
152
+ return __generator(this, function (_b) {
153
+ // verify required parameter 'groupTariffSlug' is not null or undefined
154
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupGeneration', 'groupTariffSlug', groupTariffSlug);
155
+ // verify required parameter 'ifMatch' is not null or undefined
156
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupGeneration', 'ifMatch', ifMatch);
157
+ // verify required parameter 'body' is not null or undefined
158
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupGeneration', 'body', body);
159
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations"
160
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)));
161
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ baseAccessToken = configuration.accessToken;
165
+ }
166
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
167
+ localVarHeaderParameter = {};
168
+ localVarQueryParameter = {};
169
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
170
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
171
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
172
+ if (ifMatchValue || ifMatchKeepEmpty) {
173
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
174
+ }
175
+ localVarHeaderParameter['Content-Type'] = 'application/json';
176
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
177
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
178
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
179
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
180
+ return [2 /*return*/, {
181
+ url: (0, common_1.toPathString)(localVarUrlObj),
182
+ options: localVarRequestOptions,
183
+ }];
184
+ });
185
+ });
186
+ },
187
+ /**
188
+ * The slug must be new and `tariffSlug` must name an existing tariff. With `baseGeneration` the call also creates the group tariff\'s first generation and its draft version in the same step; without it the group tariff starts empty.
189
+ * @summary Creates a group tariff that references one tariff.
190
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ groupTariffServiceCreateGroupTariff: function (body, options) {
195
+ if (options === void 0) { options = {}; }
196
+ return __awaiter(_this, void 0, void 0, function () {
197
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
198
+ return __generator(this, function (_a) {
199
+ // verify required parameter 'body' is not null or undefined
200
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupTariff', 'body', body);
201
+ localVarPath = "/insuranceservice/v2/group-tariffs";
202
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
203
+ if (configuration) {
204
+ baseOptions = configuration.baseOptions;
205
+ baseAccessToken = configuration.accessToken;
206
+ }
207
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
208
+ localVarHeaderParameter = {};
209
+ localVarQueryParameter = {};
210
+ localVarHeaderParameter['Content-Type'] = 'application/json';
211
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
212
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
214
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
215
+ return [2 /*return*/, {
216
+ url: (0, common_1.toPathString)(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ }];
219
+ });
220
+ });
221
+ },
222
+ /**
223
+ * The draft starts from `manifest`, or from the version `basedOnErn` names. It is stored even when the manifest has problems: they are listed in `validationIssues`, and the publish gate decides later.
224
+ * @summary Stores a draft group version.
225
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
226
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
227
+ * @param {CreateGroupVersionBody} body
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ groupTariffServiceCreateGroupVersion: function (groupTariffSlug, generation, body, options) {
232
+ if (options === void 0) { options = {}; }
233
+ return __awaiter(_this, void 0, void 0, function () {
234
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
235
+ return __generator(this, function (_a) {
236
+ // verify required parameter 'groupTariffSlug' is not null or undefined
237
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupVersion', 'groupTariffSlug', groupTariffSlug);
238
+ // verify required parameter 'generation' is not null or undefined
239
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupVersion', 'generation', generation);
240
+ // verify required parameter 'body' is not null or undefined
241
+ (0, common_1.assertParamExists)('groupTariffServiceCreateGroupVersion', 'body', body);
242
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions"
243
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
244
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)));
245
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ baseAccessToken = configuration.accessToken;
249
+ }
250
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
251
+ localVarHeaderParameter = {};
252
+ localVarQueryParameter = {};
253
+ localVarHeaderParameter['Content-Type'] = 'application/json';
254
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
255
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
257
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
258
+ return [2 /*return*/, {
259
+ url: (0, common_1.toPathString)(localVarUrlObj),
260
+ options: localVarRequestOptions,
261
+ }];
262
+ });
263
+ });
264
+ },
265
+ /**
266
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
267
+ * @summary Gives up a draft group version.
268
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
269
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
270
+ * @param {string} version The draft id or the draft\&#39;s ERN.
271
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
272
+ * @param {object} body
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ groupTariffServiceDiscardGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
277
+ if (options === void 0) { options = {}; }
278
+ return __awaiter(_this, void 0, void 0, function () {
279
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
280
+ var _a;
281
+ return __generator(this, function (_b) {
282
+ // verify required parameter 'groupTariffSlug' is not null or undefined
283
+ (0, common_1.assertParamExists)('groupTariffServiceDiscardGroupVersion', 'groupTariffSlug', groupTariffSlug);
284
+ // verify required parameter 'generation' is not null or undefined
285
+ (0, common_1.assertParamExists)('groupTariffServiceDiscardGroupVersion', 'generation', generation);
286
+ // verify required parameter 'version' is not null or undefined
287
+ (0, common_1.assertParamExists)('groupTariffServiceDiscardGroupVersion', 'version', version);
288
+ // verify required parameter 'ifMatch' is not null or undefined
289
+ (0, common_1.assertParamExists)('groupTariffServiceDiscardGroupVersion', 'ifMatch', ifMatch);
290
+ // verify required parameter 'body' is not null or undefined
291
+ (0, common_1.assertParamExists)('groupTariffServiceDiscardGroupVersion', 'body', body);
292
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}:discard"
293
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
294
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)))
295
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
296
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
297
+ if (configuration) {
298
+ baseOptions = configuration.baseOptions;
299
+ baseAccessToken = configuration.accessToken;
300
+ }
301
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
302
+ localVarHeaderParameter = {};
303
+ localVarQueryParameter = {};
304
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
305
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
306
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
307
+ if (ifMatchValue || ifMatchKeepEmpty) {
308
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
309
+ }
310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
311
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
315
+ return [2 /*return*/, {
316
+ url: (0, common_1.toPathString)(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ }];
319
+ });
320
+ });
321
+ },
322
+ /**
323
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
324
+ * @summary Returns one configuration asset of a group tariff.
325
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
326
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
327
+ * @param {*} [options] Override http request option.
328
+ * @throws {RequiredError}
329
+ */
330
+ groupTariffServiceGetGroupCoreConfig: function (groupTariffSlug, name, options) {
331
+ if (options === void 0) { options = {}; }
332
+ return __awaiter(_this, void 0, void 0, function () {
333
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
+ return __generator(this, function (_a) {
335
+ // verify required parameter 'groupTariffSlug' is not null or undefined
336
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupCoreConfig', 'groupTariffSlug', groupTariffSlug);
337
+ // verify required parameter 'name' is not null or undefined
338
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupCoreConfig', 'name', name);
339
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}"
340
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
341
+ .replace("{".concat("name", "}"), encodeURIComponent(String(name)));
342
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
348
+ localVarHeaderParameter = {};
349
+ localVarQueryParameter = {};
350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
351
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
+ return [2 /*return*/, {
354
+ url: (0, common_1.toPathString)(localVarUrlObj),
355
+ options: localVarRequestOptions,
356
+ }];
357
+ });
358
+ });
359
+ },
360
+ /**
361
+ * Compares the version `version` with `againstVersion`, or with its baseline when `againstVersion` is empty. The response lists the premium change of each rating case and the changed references of the manifest, each marked added, removed or changed.
362
+ * @summary Returns the differences between a group version and an earlier one.
363
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
364
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
365
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
366
+ * @param {string} [againstVersion] The ERN of the earlier version to compare with, such as the full ERN of &#x60;1.2&#x60;. Optional. Empty means the version this one is based on.
367
+ * @param {*} [options] Override http request option.
368
+ * @throws {RequiredError}
369
+ */
370
+ groupTariffServiceGetGroupDiff: function (groupTariffSlug, generation, version, againstVersion, options) {
371
+ if (options === void 0) { options = {}; }
372
+ return __awaiter(_this, void 0, void 0, function () {
373
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
374
+ return __generator(this, function (_a) {
375
+ // verify required parameter 'groupTariffSlug' is not null or undefined
376
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupDiff', 'groupTariffSlug', groupTariffSlug);
377
+ // verify required parameter 'generation' is not null or undefined
378
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupDiff', 'generation', generation);
379
+ // verify required parameter 'version' is not null or undefined
380
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupDiff', 'version', version);
381
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}/diff"
382
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
383
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)))
384
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
385
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
386
+ if (configuration) {
387
+ baseOptions = configuration.baseOptions;
388
+ baseAccessToken = configuration.accessToken;
389
+ }
390
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
391
+ localVarHeaderParameter = {};
392
+ localVarQueryParameter = {};
393
+ if (againstVersion !== undefined) {
394
+ localVarQueryParameter['againstVersion'] = againstVersion;
395
+ }
396
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
397
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
399
+ return [2 /*return*/, {
400
+ url: (0, common_1.toPathString)(localVarUrlObj),
401
+ options: localVarRequestOptions,
402
+ }];
403
+ });
404
+ });
405
+ },
406
+ /**
407
+ * The generation is found by the group tariff\'s slug and the generation\'s name. Its `etag` goes in the `If-Match` header of a publish or an activation.
408
+ * @summary Returns one generation of a group tariff.
409
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
410
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
411
+ * @param {*} [options] Override http request option.
412
+ * @throws {RequiredError}
413
+ */
414
+ groupTariffServiceGetGroupGeneration: function (groupTariffSlug, generation, options) {
415
+ if (options === void 0) { options = {}; }
416
+ return __awaiter(_this, void 0, void 0, function () {
417
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
418
+ return __generator(this, function (_a) {
419
+ // verify required parameter 'groupTariffSlug' is not null or undefined
420
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupGeneration', 'groupTariffSlug', groupTariffSlug);
421
+ // verify required parameter 'generation' is not null or undefined
422
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupGeneration', 'generation', generation);
423
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}"
424
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
425
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)));
426
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
427
+ if (configuration) {
428
+ baseOptions = configuration.baseOptions;
429
+ baseAccessToken = configuration.accessToken;
430
+ }
431
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
432
+ localVarHeaderParameter = {};
433
+ localVarQueryParameter = {};
434
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
435
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
436
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
437
+ return [2 /*return*/, {
438
+ url: (0, common_1.toPathString)(localVarUrlObj),
439
+ options: localVarRequestOptions,
440
+ }];
441
+ });
442
+ });
443
+ },
444
+ /**
445
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
446
+ * @summary Returns one group tariff.
447
+ * @param {string} slug The group tariff\&#39;s slug.
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ */
451
+ groupTariffServiceGetGroupTariff: function (slug, options) {
452
+ if (options === void 0) { options = {}; }
453
+ return __awaiter(_this, void 0, void 0, function () {
454
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
455
+ return __generator(this, function (_a) {
456
+ // verify required parameter 'slug' is not null or undefined
457
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupTariff', 'slug', slug);
458
+ localVarPath = "/insuranceservice/v2/group-tariffs/{slug}"
459
+ .replace("{".concat("slug", "}"), encodeURIComponent(String(slug)));
460
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
461
+ if (configuration) {
462
+ baseOptions = configuration.baseOptions;
463
+ baseAccessToken = configuration.accessToken;
464
+ }
465
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
466
+ localVarHeaderParameter = {};
467
+ localVarQueryParameter = {};
468
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
469
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
470
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
471
+ return [2 /*return*/, {
472
+ url: (0, common_1.toPathString)(localVarUrlObj),
473
+ options: localVarRequestOptions,
474
+ }];
475
+ });
476
+ });
477
+ },
478
+ /**
479
+ * The catalog is read for the caller\'s tenant: `lineOfInsurance` takes the keys of the standard and the added lines, with their labels, and can be filtered for `$null`. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
480
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ groupTariffServiceGetGroupTariffFilterCatalog: function (options) {
485
+ if (options === void 0) { options = {}; }
486
+ return __awaiter(_this, void 0, void 0, function () {
487
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
488
+ return __generator(this, function (_a) {
489
+ localVarPath = "/insuranceservice/v2/group-tariffs:filterCatalog";
490
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
491
+ if (configuration) {
492
+ baseOptions = configuration.baseOptions;
493
+ baseAccessToken = configuration.accessToken;
494
+ }
495
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
496
+ localVarHeaderParameter = {};
497
+ localVarQueryParameter = {};
498
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
499
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
500
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
501
+ return [2 /*return*/, {
502
+ url: (0, common_1.toPathString)(localVarUrlObj),
503
+ options: localVarRequestOptions,
504
+ }];
505
+ });
506
+ });
507
+ },
508
+ /**
509
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
510
+ * @summary Returns one version of a group generation.
511
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
512
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
513
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ groupTariffServiceGetGroupVersion: function (groupTariffSlug, generation, version, options) {
518
+ if (options === void 0) { options = {}; }
519
+ return __awaiter(_this, void 0, void 0, function () {
520
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
521
+ return __generator(this, function (_a) {
522
+ // verify required parameter 'groupTariffSlug' is not null or undefined
523
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupVersion', 'groupTariffSlug', groupTariffSlug);
524
+ // verify required parameter 'generation' is not null or undefined
525
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupVersion', 'generation', generation);
526
+ // verify required parameter 'version' is not null or undefined
527
+ (0, common_1.assertParamExists)('groupTariffServiceGetGroupVersion', 'version', version);
528
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}"
529
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
530
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)))
531
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
532
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
533
+ if (configuration) {
534
+ baseOptions = configuration.baseOptions;
535
+ baseAccessToken = configuration.accessToken;
536
+ }
537
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
538
+ localVarHeaderParameter = {};
539
+ localVarQueryParameter = {};
540
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
541
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
542
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
543
+ return [2 /*return*/, {
544
+ url: (0, common_1.toPathString)(localVarUrlObj),
545
+ options: localVarRequestOptions,
546
+ }];
547
+ });
548
+ });
549
+ },
550
+ /**
551
+ * The list is paged and holds the assets of every group tariff, ordered by group tariff slug, then name. It takes no search. - Filter: `groupTariffSlug`, `name`, `status`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `createdAt`.
552
+ * @summary Lists the configuration assets of a group tariff, oldest first.
553
+ * @param {number} [pageSize]
554
+ * @param {string} [pageToken]
555
+ * @param {string} [filter]
556
+ * @param {string} [search]
557
+ * @param {string} [order]
558
+ * @param {string} [expand]
559
+ * @param {string} [filters]
560
+ * @param {*} [options] Override http request option.
561
+ * @throws {RequiredError}
562
+ */
563
+ groupTariffServiceListGroupCoreConfigs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
564
+ if (options === void 0) { options = {}; }
565
+ return __awaiter(_this, void 0, void 0, function () {
566
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
567
+ return __generator(this, function (_a) {
568
+ localVarPath = "/insuranceservice/v2/group-tariff-core-configs";
569
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
570
+ if (configuration) {
571
+ baseOptions = configuration.baseOptions;
572
+ baseAccessToken = configuration.accessToken;
573
+ }
574
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
575
+ localVarHeaderParameter = {};
576
+ localVarQueryParameter = {};
577
+ if (pageSize !== undefined) {
578
+ localVarQueryParameter['pageSize'] = pageSize;
579
+ }
580
+ if (pageToken !== undefined) {
581
+ localVarQueryParameter['pageToken'] = pageToken;
582
+ }
583
+ if (filter !== undefined) {
584
+ localVarQueryParameter['filter'] = filter;
585
+ }
586
+ if (search !== undefined) {
587
+ localVarQueryParameter['search'] = search;
588
+ }
589
+ if (order !== undefined) {
590
+ localVarQueryParameter['order'] = order;
591
+ }
592
+ if (expand !== undefined) {
593
+ localVarQueryParameter['expand'] = expand;
594
+ }
595
+ if (filters !== undefined) {
596
+ localVarQueryParameter['filters'] = filters;
597
+ }
598
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
599
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
600
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
601
+ return [2 /*return*/, {
602
+ url: (0, common_1.toPathString)(localVarUrlObj),
603
+ options: localVarRequestOptions,
604
+ }];
605
+ });
606
+ });
607
+ },
608
+ /**
609
+ * The list is paged and holds the generations of every group tariff, ordered by group tariff slug, then `validFrom`. It takes no search. To list one group tariff\'s generations, name it in `filters`. - Filter: `groupTariffSlug`, `name`, `validFrom`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `validFrom`, `createdAt`.
610
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
611
+ * @param {number} [pageSize]
612
+ * @param {string} [pageToken]
613
+ * @param {string} [filter]
614
+ * @param {string} [search]
615
+ * @param {string} [order]
616
+ * @param {string} [expand]
617
+ * @param {string} [filters]
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ groupTariffServiceListGroupGenerations: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
622
+ if (options === void 0) { options = {}; }
623
+ return __awaiter(_this, void 0, void 0, function () {
624
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
625
+ return __generator(this, function (_a) {
626
+ localVarPath = "/insuranceservice/v2/group-tariff-generations";
627
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
628
+ if (configuration) {
629
+ baseOptions = configuration.baseOptions;
630
+ baseAccessToken = configuration.accessToken;
631
+ }
632
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
633
+ localVarHeaderParameter = {};
634
+ localVarQueryParameter = {};
635
+ if (pageSize !== undefined) {
636
+ localVarQueryParameter['pageSize'] = pageSize;
637
+ }
638
+ if (pageToken !== undefined) {
639
+ localVarQueryParameter['pageToken'] = pageToken;
640
+ }
641
+ if (filter !== undefined) {
642
+ localVarQueryParameter['filter'] = filter;
643
+ }
644
+ if (search !== undefined) {
645
+ localVarQueryParameter['search'] = search;
646
+ }
647
+ if (order !== undefined) {
648
+ localVarQueryParameter['order'] = order;
649
+ }
650
+ if (expand !== undefined) {
651
+ localVarQueryParameter['expand'] = expand;
652
+ }
653
+ if (filters !== undefined) {
654
+ localVarQueryParameter['filters'] = filters;
655
+ }
656
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
657
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
658
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
659
+ return [2 /*return*/, {
660
+ url: (0, common_1.toPathString)(localVarUrlObj),
661
+ options: localVarRequestOptions,
662
+ }];
663
+ });
664
+ });
665
+ },
666
+ /**
667
+ * Each item is a group tariff; its `match` is filled on a search and empty otherwise. The list is paged. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
668
+ * @summary Lists the group tariffs.
669
+ * @param {number} [pageSize]
670
+ * @param {string} [pageToken]
671
+ * @param {string} [filter]
672
+ * @param {string} [search]
673
+ * @param {string} [order]
674
+ * @param {string} [expand]
675
+ * @param {string} [filters]
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ groupTariffServiceListGroupTariffs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
680
+ if (options === void 0) { options = {}; }
681
+ return __awaiter(_this, void 0, void 0, function () {
682
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
683
+ return __generator(this, function (_a) {
684
+ localVarPath = "/insuranceservice/v2/group-tariffs";
685
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
686
+ if (configuration) {
687
+ baseOptions = configuration.baseOptions;
688
+ baseAccessToken = configuration.accessToken;
689
+ }
690
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
691
+ localVarHeaderParameter = {};
692
+ localVarQueryParameter = {};
693
+ if (pageSize !== undefined) {
694
+ localVarQueryParameter['pageSize'] = pageSize;
695
+ }
696
+ if (pageToken !== undefined) {
697
+ localVarQueryParameter['pageToken'] = pageToken;
698
+ }
699
+ if (filter !== undefined) {
700
+ localVarQueryParameter['filter'] = filter;
701
+ }
702
+ if (search !== undefined) {
703
+ localVarQueryParameter['search'] = search;
704
+ }
705
+ if (order !== undefined) {
706
+ localVarQueryParameter['order'] = order;
707
+ }
708
+ if (expand !== undefined) {
709
+ localVarQueryParameter['expand'] = expand;
710
+ }
711
+ if (filters !== undefined) {
712
+ localVarQueryParameter['filters'] = filters;
713
+ }
714
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
715
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
716
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
717
+ return [2 /*return*/, {
718
+ url: (0, common_1.toPathString)(localVarUrlObj),
719
+ options: localVarRequestOptions,
720
+ }];
721
+ });
722
+ });
723
+ },
724
+ /**
725
+ * The list holds the published versions and, only when `includeDrafts` is `true`, the open and the archived drafts after them. A discarded draft is never listed. To list one generation\'s versions, name the group tariff and the generation in `filters`: `groupTariffSlug`, `generation` and `includeDrafts`. Versions are sorted by `createdAt`, oldest first.
726
+ * @summary Lists the versions of a group generation, oldest first.
727
+ * @param {number} [pageSize]
728
+ * @param {string} [pageToken]
729
+ * @param {string} [filter]
730
+ * @param {string} [search]
731
+ * @param {string} [order]
732
+ * @param {string} [expand]
733
+ * @param {string} [filters]
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ groupTariffServiceListGroupVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
738
+ if (options === void 0) { options = {}; }
739
+ return __awaiter(_this, void 0, void 0, function () {
740
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
741
+ return __generator(this, function (_a) {
742
+ localVarPath = "/insuranceservice/v2/group-tariff-versions";
743
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
744
+ if (configuration) {
745
+ baseOptions = configuration.baseOptions;
746
+ baseAccessToken = configuration.accessToken;
747
+ }
748
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
749
+ localVarHeaderParameter = {};
750
+ localVarQueryParameter = {};
751
+ if (pageSize !== undefined) {
752
+ localVarQueryParameter['pageSize'] = pageSize;
753
+ }
754
+ if (pageToken !== undefined) {
755
+ localVarQueryParameter['pageToken'] = pageToken;
756
+ }
757
+ if (filter !== undefined) {
758
+ localVarQueryParameter['filter'] = filter;
759
+ }
760
+ if (search !== undefined) {
761
+ localVarQueryParameter['search'] = search;
762
+ }
763
+ if (order !== undefined) {
764
+ localVarQueryParameter['order'] = order;
765
+ }
766
+ if (expand !== undefined) {
767
+ localVarQueryParameter['expand'] = expand;
768
+ }
769
+ if (filters !== undefined) {
770
+ localVarQueryParameter['filters'] = filters;
771
+ }
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
+ return [2 /*return*/, {
776
+ url: (0, common_1.toPathString)(localVarUrlObj),
777
+ options: localVarRequestOptions,
778
+ }];
779
+ });
780
+ });
781
+ },
782
+ /**
783
+ * Runs the publish gate over the draft and, when it passes, freezes the asset as `PUBLISHED` with its digest. A published asset never changes. When the gate refuses, the call fails and carries the gate\'s report.
784
+ * @summary Publishes a draft configuration asset.
785
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
786
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
787
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
788
+ * @param {object} body
789
+ * @param {*} [options] Override http request option.
790
+ * @throws {RequiredError}
791
+ */
792
+ groupTariffServicePublishGroupCoreConfig: function (groupTariffSlug, name, 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 'groupTariffSlug' is not null or undefined
799
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupCoreConfig', 'groupTariffSlug', groupTariffSlug);
800
+ // verify required parameter 'name' is not null or undefined
801
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupCoreConfig', 'name', name);
802
+ // verify required parameter 'ifMatch' is not null or undefined
803
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupCoreConfig', 'ifMatch', ifMatch);
804
+ // verify required parameter 'body' is not null or undefined
805
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupCoreConfig', 'body', body);
806
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}:publish"
807
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
808
+ .replace("{".concat("name", "}"), encodeURIComponent(String(name)));
809
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
810
+ if (configuration) {
811
+ baseOptions = configuration.baseOptions;
812
+ baseAccessToken = configuration.accessToken;
813
+ }
814
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
815
+ localVarHeaderParameter = {};
816
+ localVarQueryParameter = {};
817
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
818
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
819
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
820
+ if (ifMatchValue || ifMatchKeepEmpty) {
821
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
822
+ }
823
+ localVarHeaderParameter['Content-Type'] = 'application/json';
824
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
825
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
826
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
827
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
828
+ return [2 /*return*/, {
829
+ url: (0, common_1.toPathString)(localVarUrlObj),
830
+ options: localVarRequestOptions,
831
+ }];
832
+ });
833
+ });
834
+ },
835
+ /**
836
+ * Runs the publish gate over `manifest`. When it passes, the version is stored as a numbered, `PUBLISHED` version; with `activate` it also becomes the active version of its major. `requestMajor` asks for a new major number. When the gate refuses, nothing is stored and the call fails with the gate\'s report. The response also carries the generation as it is after the call.
837
+ * @summary Publishes a group version when the publish gate passes.
838
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
839
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
840
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
841
+ * @param {PublishGroupVersionBody} body
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ groupTariffServicePublishGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
846
+ if (options === void 0) { options = {}; }
847
+ return __awaiter(_this, void 0, void 0, function () {
848
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
849
+ var _a;
850
+ return __generator(this, function (_b) {
851
+ // verify required parameter 'groupTariffSlug' is not null or undefined
852
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupVersion', 'groupTariffSlug', groupTariffSlug);
853
+ // verify required parameter 'generation' is not null or undefined
854
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupVersion', 'generation', generation);
855
+ // verify required parameter 'ifMatch' is not null or undefined
856
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupVersion', 'ifMatch', ifMatch);
857
+ // verify required parameter 'body' is not null or undefined
858
+ (0, common_1.assertParamExists)('groupTariffServicePublishGroupVersion', 'body', body);
859
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions:publish"
860
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
861
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)));
862
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
863
+ if (configuration) {
864
+ baseOptions = configuration.baseOptions;
865
+ baseAccessToken = configuration.accessToken;
866
+ }
867
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
868
+ localVarHeaderParameter = {};
869
+ localVarQueryParameter = {};
870
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
871
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
872
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
873
+ if (ifMatchValue || ifMatchKeepEmpty) {
874
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
875
+ }
876
+ localVarHeaderParameter['Content-Type'] = 'application/json';
877
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
878
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
879
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
880
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
881
+ return [2 /*return*/, {
882
+ url: (0, common_1.toPathString)(localVarUrlObj),
883
+ options: localVarRequestOptions,
884
+ }];
885
+ });
886
+ });
887
+ },
888
+ /**
889
+ * A major can have only one active version. The version must be published and belong to this generation; a retired version is refused. The response carries the generation with its active versions.
890
+ * @summary Makes a published version of a generation its active version.
891
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
892
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
893
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
894
+ * @param {SetActiveGroupVersionBody} body
895
+ * @param {*} [options] Override http request option.
896
+ * @throws {RequiredError}
897
+ */
898
+ groupTariffServiceSetActiveGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
899
+ if (options === void 0) { options = {}; }
900
+ return __awaiter(_this, void 0, void 0, function () {
901
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
902
+ var _a;
903
+ return __generator(this, function (_b) {
904
+ // verify required parameter 'groupTariffSlug' is not null or undefined
905
+ (0, common_1.assertParamExists)('groupTariffServiceSetActiveGroupVersion', 'groupTariffSlug', groupTariffSlug);
906
+ // verify required parameter 'generation' is not null or undefined
907
+ (0, common_1.assertParamExists)('groupTariffServiceSetActiveGroupVersion', 'generation', generation);
908
+ // verify required parameter 'ifMatch' is not null or undefined
909
+ (0, common_1.assertParamExists)('groupTariffServiceSetActiveGroupVersion', 'ifMatch', ifMatch);
910
+ // verify required parameter 'body' is not null or undefined
911
+ (0, common_1.assertParamExists)('groupTariffServiceSetActiveGroupVersion', 'body', body);
912
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}:activate"
913
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
914
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)));
915
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
916
+ if (configuration) {
917
+ baseOptions = configuration.baseOptions;
918
+ baseAccessToken = configuration.accessToken;
919
+ }
920
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
921
+ localVarHeaderParameter = {};
922
+ localVarQueryParameter = {};
923
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
924
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
925
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
926
+ if (ifMatchValue || ifMatchKeepEmpty) {
927
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
928
+ }
929
+ localVarHeaderParameter['Content-Type'] = 'application/json';
930
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
931
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
932
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
933
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
934
+ return [2 /*return*/, {
935
+ url: (0, common_1.toPathString)(localVarUrlObj),
936
+ options: localVarRequestOptions,
937
+ }];
938
+ });
939
+ });
940
+ },
941
+ /**
942
+ * The allowed moves are: - `DRAFT` to `RETIRED`: archives the draft. - `DRAFT` to `DISCARDED`: gives the draft up. - `DRAFT` to `PUBLISHED` or `ACTIVE`: runs the publish gate and assigns the number; `requestMajor` asks for a new major, and `activate` makes the new version active. A refusal carries the gate\'s report. - `PUBLISHED` to `ACTIVE`: makes it the active version of its major; a major can have only one active version. - `ACTIVE` to `PUBLISHED`: takes it off sale. - `PUBLISHED` or `ACTIVE` to `RETIRED`: forbids new pins of the version. Any other move is not allowed. A policy already in force never moves to another version.
943
+ * @summary Moves a group version to another status.
944
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
945
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
946
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
947
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; when the version is a draft, otherwise its generation\&#39;s &#x60;etag&#x60;, as last read and sent back unchanged.
948
+ * @param {SetGroupVersionStatusBody} body
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ groupTariffServiceSetGroupVersionStatus: function (groupTariffSlug, generation, version, ifMatch, body, options) {
953
+ if (options === void 0) { options = {}; }
954
+ return __awaiter(_this, void 0, void 0, function () {
955
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
956
+ var _a;
957
+ return __generator(this, function (_b) {
958
+ // verify required parameter 'groupTariffSlug' is not null or undefined
959
+ (0, common_1.assertParamExists)('groupTariffServiceSetGroupVersionStatus', 'groupTariffSlug', groupTariffSlug);
960
+ // verify required parameter 'generation' is not null or undefined
961
+ (0, common_1.assertParamExists)('groupTariffServiceSetGroupVersionStatus', 'generation', generation);
962
+ // verify required parameter 'version' is not null or undefined
963
+ (0, common_1.assertParamExists)('groupTariffServiceSetGroupVersionStatus', 'version', version);
964
+ // verify required parameter 'ifMatch' is not null or undefined
965
+ (0, common_1.assertParamExists)('groupTariffServiceSetGroupVersionStatus', 'ifMatch', ifMatch);
966
+ // verify required parameter 'body' is not null or undefined
967
+ (0, common_1.assertParamExists)('groupTariffServiceSetGroupVersionStatus', 'body', body);
968
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}:setStatus"
969
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
970
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)))
971
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
972
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
973
+ if (configuration) {
974
+ baseOptions = configuration.baseOptions;
975
+ baseAccessToken = configuration.accessToken;
976
+ }
977
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
978
+ localVarHeaderParameter = {};
979
+ localVarQueryParameter = {};
980
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
981
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
982
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
983
+ if (ifMatchValue || ifMatchKeepEmpty) {
984
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
985
+ }
986
+ localVarHeaderParameter['Content-Type'] = 'application/json';
987
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
988
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
989
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
990
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
991
+ return [2 /*return*/, {
992
+ url: (0, common_1.toPathString)(localVarUrlObj),
993
+ options: localVarRequestOptions,
994
+ }];
995
+ });
996
+ });
997
+ },
998
+ /**
999
+ * Only a draft can be rewritten. The call replaces both documents: `config` and `publishedSchema`; a `publishedSchema` that is left out empties the stored schema. The checks run when the asset is published.
1000
+ * @summary Rewrites the content of a draft configuration asset.
1001
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1002
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1003
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1004
+ * @param {UpdateGroupCoreConfigBody} body
1005
+ * @param {*} [options] Override http request option.
1006
+ * @throws {RequiredError}
1007
+ */
1008
+ groupTariffServiceUpdateGroupCoreConfig: function (groupTariffSlug, name, ifMatch, body, options) {
1009
+ if (options === void 0) { options = {}; }
1010
+ return __awaiter(_this, void 0, void 0, function () {
1011
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
1012
+ var _a;
1013
+ return __generator(this, function (_b) {
1014
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1015
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupCoreConfig', 'groupTariffSlug', groupTariffSlug);
1016
+ // verify required parameter 'name' is not null or undefined
1017
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupCoreConfig', 'name', name);
1018
+ // verify required parameter 'ifMatch' is not null or undefined
1019
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupCoreConfig', 'ifMatch', ifMatch);
1020
+ // verify required parameter 'body' is not null or undefined
1021
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupCoreConfig', 'body', body);
1022
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}"
1023
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
1024
+ .replace("{".concat("name", "}"), encodeURIComponent(String(name)));
1025
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1026
+ if (configuration) {
1027
+ baseOptions = configuration.baseOptions;
1028
+ baseAccessToken = configuration.accessToken;
1029
+ }
1030
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1031
+ localVarHeaderParameter = {};
1032
+ localVarQueryParameter = {};
1033
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1034
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1035
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
1036
+ if (ifMatchValue || ifMatchKeepEmpty) {
1037
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1038
+ }
1039
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1040
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1041
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1042
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1043
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1044
+ return [2 /*return*/, {
1045
+ url: (0, common_1.toPathString)(localVarUrlObj),
1046
+ options: localVarRequestOptions,
1047
+ }];
1048
+ });
1049
+ });
1050
+ },
1051
+ /**
1052
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1053
+ * @summary Rewrites the manifest of a draft group version.
1054
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1055
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1056
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1057
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1058
+ * @param {UpdateGroupVersionBody} body
1059
+ * @param {*} [options] Override http request option.
1060
+ * @throws {RequiredError}
1061
+ */
1062
+ groupTariffServiceUpdateGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1063
+ if (options === void 0) { options = {}; }
1064
+ return __awaiter(_this, void 0, void 0, function () {
1065
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
1066
+ var _a;
1067
+ return __generator(this, function (_b) {
1068
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1069
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupVersion', 'groupTariffSlug', groupTariffSlug);
1070
+ // verify required parameter 'generation' is not null or undefined
1071
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupVersion', 'generation', generation);
1072
+ // verify required parameter 'version' is not null or undefined
1073
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupVersion', 'version', version);
1074
+ // verify required parameter 'ifMatch' is not null or undefined
1075
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupVersion', 'ifMatch', ifMatch);
1076
+ // verify required parameter 'body' is not null or undefined
1077
+ (0, common_1.assertParamExists)('groupTariffServiceUpdateGroupVersion', 'body', body);
1078
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}"
1079
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
1080
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)))
1081
+ .replace("{".concat("version", "}"), encodeURIComponent(String(version)));
1082
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1083
+ if (configuration) {
1084
+ baseOptions = configuration.baseOptions;
1085
+ baseAccessToken = configuration.accessToken;
1086
+ }
1087
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
1088
+ localVarHeaderParameter = {};
1089
+ localVarQueryParameter = {};
1090
+ ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1091
+ ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1092
+ ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
1093
+ if (ifMatchValue || ifMatchKeepEmpty) {
1094
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1095
+ }
1096
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1097
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1098
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1099
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1100
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1101
+ return [2 /*return*/, {
1102
+ url: (0, common_1.toPathString)(localVarUrlObj),
1103
+ options: localVarRequestOptions,
1104
+ }];
1105
+ });
1106
+ });
1107
+ },
1108
+ /**
1109
+ * Runs the publish gate over `manifest` and writes nothing. A manifest the gate refuses is an answer, not an error: the report in the response says why.
1110
+ * @summary Checks a manifest against the publish gate without saving anything.
1111
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1112
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1113
+ * @param {ValidateGroupVersionBody} body
1114
+ * @param {*} [options] Override http request option.
1115
+ * @throws {RequiredError}
1116
+ */
1117
+ groupTariffServiceValidateGroupVersion: function (groupTariffSlug, generation, body, options) {
1118
+ if (options === void 0) { options = {}; }
1119
+ return __awaiter(_this, void 0, void 0, function () {
1120
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1121
+ return __generator(this, function (_a) {
1122
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1123
+ (0, common_1.assertParamExists)('groupTariffServiceValidateGroupVersion', 'groupTariffSlug', groupTariffSlug);
1124
+ // verify required parameter 'generation' is not null or undefined
1125
+ (0, common_1.assertParamExists)('groupTariffServiceValidateGroupVersion', 'generation', generation);
1126
+ // verify required parameter 'body' is not null or undefined
1127
+ (0, common_1.assertParamExists)('groupTariffServiceValidateGroupVersion', 'body', body);
1128
+ localVarPath = "/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions:validate"
1129
+ .replace("{".concat("groupTariffSlug", "}"), encodeURIComponent(String(groupTariffSlug)))
1130
+ .replace("{".concat("generation", "}"), encodeURIComponent(String(generation)));
1131
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
1132
+ if (configuration) {
1133
+ baseOptions = configuration.baseOptions;
1134
+ baseAccessToken = configuration.accessToken;
1135
+ }
1136
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1137
+ localVarHeaderParameter = {};
1138
+ localVarQueryParameter = {};
1139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1144
+ return [2 /*return*/, {
1145
+ url: (0, common_1.toPathString)(localVarUrlObj),
1146
+ options: localVarRequestOptions,
1147
+ }];
1148
+ });
1149
+ });
1150
+ },
1151
+ };
1152
+ };
1153
+ exports.GroupTariffsApiAxiosParamCreator = GroupTariffsApiAxiosParamCreator;
1154
+ /**
1155
+ * GroupTariffsApi - functional programming interface
1156
+ * @export
1157
+ */
1158
+ var GroupTariffsApiFp = function (configuration) {
1159
+ var localVarAxiosParamCreator = (0, exports.GroupTariffsApiAxiosParamCreator)(configuration);
1160
+ return {
1161
+ /**
1162
+ * The asset is stored as a `DRAFT`. `config` is its document and `publishedSchema` the schema that policy data is validated against; either can be left out. `basedOnName` names an asset to copy the new one from.
1163
+ * @summary Creates a draft configuration asset of a group tariff.
1164
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1165
+ * @param {CreateGroupCoreConfigBody} body
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ groupTariffServiceCreateGroupCoreConfig: function (groupTariffSlug, body, options) {
1170
+ return __awaiter(this, void 0, void 0, function () {
1171
+ var localVarAxiosArgs;
1172
+ return __generator(this, function (_a) {
1173
+ switch (_a.label) {
1174
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceCreateGroupCoreConfig(groupTariffSlug, body, options)];
1175
+ case 1:
1176
+ localVarAxiosArgs = _a.sent();
1177
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1178
+ }
1179
+ });
1180
+ });
1181
+ },
1182
+ /**
1183
+ * A generation is a period of the group tariff that starts on `validFrom`. The call needs the group tariff\'s `If-Match` because adding a generation changes the group tariff. A group generation has no draft: create its first version with `CreateGroupVersion`.
1184
+ * @summary Adds a generation to a group tariff.
1185
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1186
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
1187
+ * @param {CreateGroupGenerationBody} body
1188
+ * @param {*} [options] Override http request option.
1189
+ * @throws {RequiredError}
1190
+ */
1191
+ groupTariffServiceCreateGroupGeneration: function (groupTariffSlug, ifMatch, body, options) {
1192
+ return __awaiter(this, void 0, void 0, function () {
1193
+ var localVarAxiosArgs;
1194
+ return __generator(this, function (_a) {
1195
+ switch (_a.label) {
1196
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceCreateGroupGeneration(groupTariffSlug, ifMatch, body, options)];
1197
+ case 1:
1198
+ localVarAxiosArgs = _a.sent();
1199
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1200
+ }
1201
+ });
1202
+ });
1203
+ },
1204
+ /**
1205
+ * The slug must be new and `tariffSlug` must name an existing tariff. With `baseGeneration` the call also creates the group tariff\'s first generation and its draft version in the same step; without it the group tariff starts empty.
1206
+ * @summary Creates a group tariff that references one tariff.
1207
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
1208
+ * @param {*} [options] Override http request option.
1209
+ * @throws {RequiredError}
1210
+ */
1211
+ groupTariffServiceCreateGroupTariff: function (body, options) {
1212
+ return __awaiter(this, void 0, void 0, function () {
1213
+ var localVarAxiosArgs;
1214
+ return __generator(this, function (_a) {
1215
+ switch (_a.label) {
1216
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceCreateGroupTariff(body, options)];
1217
+ case 1:
1218
+ localVarAxiosArgs = _a.sent();
1219
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1220
+ }
1221
+ });
1222
+ });
1223
+ },
1224
+ /**
1225
+ * The draft starts from `manifest`, or from the version `basedOnErn` names. It is stored even when the manifest has problems: they are listed in `validationIssues`, and the publish gate decides later.
1226
+ * @summary Stores a draft group version.
1227
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1228
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1229
+ * @param {CreateGroupVersionBody} body
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ groupTariffServiceCreateGroupVersion: function (groupTariffSlug, generation, body, options) {
1234
+ return __awaiter(this, void 0, void 0, function () {
1235
+ var localVarAxiosArgs;
1236
+ return __generator(this, function (_a) {
1237
+ switch (_a.label) {
1238
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceCreateGroupVersion(groupTariffSlug, generation, body, options)];
1239
+ case 1:
1240
+ localVarAxiosArgs = _a.sent();
1241
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1242
+ }
1243
+ });
1244
+ });
1245
+ },
1246
+ /**
1247
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
1248
+ * @summary Gives up a draft group version.
1249
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1250
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1251
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1252
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1253
+ * @param {object} body
1254
+ * @param {*} [options] Override http request option.
1255
+ * @throws {RequiredError}
1256
+ */
1257
+ groupTariffServiceDiscardGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1258
+ return __awaiter(this, void 0, void 0, function () {
1259
+ var localVarAxiosArgs;
1260
+ return __generator(this, function (_a) {
1261
+ switch (_a.label) {
1262
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceDiscardGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options)];
1263
+ case 1:
1264
+ localVarAxiosArgs = _a.sent();
1265
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1266
+ }
1267
+ });
1268
+ });
1269
+ },
1270
+ /**
1271
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
1272
+ * @summary Returns one configuration asset of a group tariff.
1273
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1274
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ */
1278
+ groupTariffServiceGetGroupCoreConfig: function (groupTariffSlug, name, options) {
1279
+ return __awaiter(this, void 0, void 0, function () {
1280
+ var localVarAxiosArgs;
1281
+ return __generator(this, function (_a) {
1282
+ switch (_a.label) {
1283
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupCoreConfig(groupTariffSlug, name, options)];
1284
+ case 1:
1285
+ localVarAxiosArgs = _a.sent();
1286
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1287
+ }
1288
+ });
1289
+ });
1290
+ },
1291
+ /**
1292
+ * Compares the version `version` with `againstVersion`, or with its baseline when `againstVersion` is empty. The response lists the premium change of each rating case and the changed references of the manifest, each marked added, removed or changed.
1293
+ * @summary Returns the differences between a group version and an earlier one.
1294
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1295
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1296
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
1297
+ * @param {string} [againstVersion] The ERN of the earlier version to compare with, such as the full ERN of &#x60;1.2&#x60;. Optional. Empty means the version this one is based on.
1298
+ * @param {*} [options] Override http request option.
1299
+ * @throws {RequiredError}
1300
+ */
1301
+ groupTariffServiceGetGroupDiff: function (groupTariffSlug, generation, version, againstVersion, options) {
1302
+ return __awaiter(this, void 0, void 0, function () {
1303
+ var localVarAxiosArgs;
1304
+ return __generator(this, function (_a) {
1305
+ switch (_a.label) {
1306
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupDiff(groupTariffSlug, generation, version, againstVersion, options)];
1307
+ case 1:
1308
+ localVarAxiosArgs = _a.sent();
1309
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1310
+ }
1311
+ });
1312
+ });
1313
+ },
1314
+ /**
1315
+ * The generation is found by the group tariff\'s slug and the generation\'s name. Its `etag` goes in the `If-Match` header of a publish or an activation.
1316
+ * @summary Returns one generation of a group tariff.
1317
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1318
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ groupTariffServiceGetGroupGeneration: function (groupTariffSlug, generation, options) {
1323
+ return __awaiter(this, void 0, void 0, function () {
1324
+ var localVarAxiosArgs;
1325
+ return __generator(this, function (_a) {
1326
+ switch (_a.label) {
1327
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupGeneration(groupTariffSlug, generation, options)];
1328
+ case 1:
1329
+ localVarAxiosArgs = _a.sent();
1330
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1331
+ }
1332
+ });
1333
+ });
1334
+ },
1335
+ /**
1336
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
1337
+ * @summary Returns one group tariff.
1338
+ * @param {string} slug The group tariff\&#39;s slug.
1339
+ * @param {*} [options] Override http request option.
1340
+ * @throws {RequiredError}
1341
+ */
1342
+ groupTariffServiceGetGroupTariff: function (slug, options) {
1343
+ return __awaiter(this, void 0, void 0, function () {
1344
+ var localVarAxiosArgs;
1345
+ return __generator(this, function (_a) {
1346
+ switch (_a.label) {
1347
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupTariff(slug, options)];
1348
+ case 1:
1349
+ localVarAxiosArgs = _a.sent();
1350
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1351
+ }
1352
+ });
1353
+ });
1354
+ },
1355
+ /**
1356
+ * The catalog is read for the caller\'s tenant: `lineOfInsurance` takes the keys of the standard and the added lines, with their labels, and can be filtered for `$null`. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
1357
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
1358
+ * @param {*} [options] Override http request option.
1359
+ * @throws {RequiredError}
1360
+ */
1361
+ groupTariffServiceGetGroupTariffFilterCatalog: function (options) {
1362
+ return __awaiter(this, void 0, void 0, function () {
1363
+ var localVarAxiosArgs;
1364
+ return __generator(this, function (_a) {
1365
+ switch (_a.label) {
1366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupTariffFilterCatalog(options)];
1367
+ case 1:
1368
+ localVarAxiosArgs = _a.sent();
1369
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1370
+ }
1371
+ });
1372
+ });
1373
+ },
1374
+ /**
1375
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
1376
+ * @summary Returns one version of a group generation.
1377
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1378
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1379
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
1380
+ * @param {*} [options] Override http request option.
1381
+ * @throws {RequiredError}
1382
+ */
1383
+ groupTariffServiceGetGroupVersion: function (groupTariffSlug, generation, version, options) {
1384
+ return __awaiter(this, void 0, void 0, function () {
1385
+ var localVarAxiosArgs;
1386
+ return __generator(this, function (_a) {
1387
+ switch (_a.label) {
1388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceGetGroupVersion(groupTariffSlug, generation, version, options)];
1389
+ case 1:
1390
+ localVarAxiosArgs = _a.sent();
1391
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1392
+ }
1393
+ });
1394
+ });
1395
+ },
1396
+ /**
1397
+ * The list is paged and holds the assets of every group tariff, ordered by group tariff slug, then name. It takes no search. - Filter: `groupTariffSlug`, `name`, `status`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `createdAt`.
1398
+ * @summary Lists the configuration assets of a group tariff, oldest first.
1399
+ * @param {number} [pageSize]
1400
+ * @param {string} [pageToken]
1401
+ * @param {string} [filter]
1402
+ * @param {string} [search]
1403
+ * @param {string} [order]
1404
+ * @param {string} [expand]
1405
+ * @param {string} [filters]
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ */
1409
+ groupTariffServiceListGroupCoreConfigs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1410
+ return __awaiter(this, void 0, void 0, function () {
1411
+ var localVarAxiosArgs;
1412
+ return __generator(this, function (_a) {
1413
+ switch (_a.label) {
1414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceListGroupCoreConfigs(pageSize, pageToken, filter, search, order, expand, filters, options)];
1415
+ case 1:
1416
+ localVarAxiosArgs = _a.sent();
1417
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1418
+ }
1419
+ });
1420
+ });
1421
+ },
1422
+ /**
1423
+ * The list is paged and holds the generations of every group tariff, ordered by group tariff slug, then `validFrom`. It takes no search. To list one group tariff\'s generations, name it in `filters`. - Filter: `groupTariffSlug`, `name`, `validFrom`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `validFrom`, `createdAt`.
1424
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
1425
+ * @param {number} [pageSize]
1426
+ * @param {string} [pageToken]
1427
+ * @param {string} [filter]
1428
+ * @param {string} [search]
1429
+ * @param {string} [order]
1430
+ * @param {string} [expand]
1431
+ * @param {string} [filters]
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ groupTariffServiceListGroupGenerations: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1436
+ return __awaiter(this, void 0, void 0, function () {
1437
+ var localVarAxiosArgs;
1438
+ return __generator(this, function (_a) {
1439
+ switch (_a.label) {
1440
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceListGroupGenerations(pageSize, pageToken, filter, search, order, expand, filters, options)];
1441
+ case 1:
1442
+ localVarAxiosArgs = _a.sent();
1443
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1444
+ }
1445
+ });
1446
+ });
1447
+ },
1448
+ /**
1449
+ * Each item is a group tariff; its `match` is filled on a search and empty otherwise. The list is paged. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
1450
+ * @summary Lists the group tariffs.
1451
+ * @param {number} [pageSize]
1452
+ * @param {string} [pageToken]
1453
+ * @param {string} [filter]
1454
+ * @param {string} [search]
1455
+ * @param {string} [order]
1456
+ * @param {string} [expand]
1457
+ * @param {string} [filters]
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ */
1461
+ groupTariffServiceListGroupTariffs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1462
+ return __awaiter(this, void 0, void 0, function () {
1463
+ var localVarAxiosArgs;
1464
+ return __generator(this, function (_a) {
1465
+ switch (_a.label) {
1466
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceListGroupTariffs(pageSize, pageToken, filter, search, order, expand, filters, options)];
1467
+ case 1:
1468
+ localVarAxiosArgs = _a.sent();
1469
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1470
+ }
1471
+ });
1472
+ });
1473
+ },
1474
+ /**
1475
+ * The list holds the published versions and, only when `includeDrafts` is `true`, the open and the archived drafts after them. A discarded draft is never listed. To list one generation\'s versions, name the group tariff and the generation in `filters`: `groupTariffSlug`, `generation` and `includeDrafts`. Versions are sorted by `createdAt`, oldest first.
1476
+ * @summary Lists the versions of a group generation, oldest first.
1477
+ * @param {number} [pageSize]
1478
+ * @param {string} [pageToken]
1479
+ * @param {string} [filter]
1480
+ * @param {string} [search]
1481
+ * @param {string} [order]
1482
+ * @param {string} [expand]
1483
+ * @param {string} [filters]
1484
+ * @param {*} [options] Override http request option.
1485
+ * @throws {RequiredError}
1486
+ */
1487
+ groupTariffServiceListGroupVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1488
+ return __awaiter(this, void 0, void 0, function () {
1489
+ var localVarAxiosArgs;
1490
+ return __generator(this, function (_a) {
1491
+ switch (_a.label) {
1492
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceListGroupVersions(pageSize, pageToken, filter, search, order, expand, filters, options)];
1493
+ case 1:
1494
+ localVarAxiosArgs = _a.sent();
1495
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1496
+ }
1497
+ });
1498
+ });
1499
+ },
1500
+ /**
1501
+ * Runs the publish gate over the draft and, when it passes, freezes the asset as `PUBLISHED` with its digest. A published asset never changes. When the gate refuses, the call fails and carries the gate\'s report.
1502
+ * @summary Publishes a draft configuration asset.
1503
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1504
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1505
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1506
+ * @param {object} body
1507
+ * @param {*} [options] Override http request option.
1508
+ * @throws {RequiredError}
1509
+ */
1510
+ groupTariffServicePublishGroupCoreConfig: function (groupTariffSlug, name, ifMatch, body, options) {
1511
+ return __awaiter(this, void 0, void 0, function () {
1512
+ var localVarAxiosArgs;
1513
+ return __generator(this, function (_a) {
1514
+ switch (_a.label) {
1515
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServicePublishGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options)];
1516
+ case 1:
1517
+ localVarAxiosArgs = _a.sent();
1518
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1519
+ }
1520
+ });
1521
+ });
1522
+ },
1523
+ /**
1524
+ * Runs the publish gate over `manifest`. When it passes, the version is stored as a numbered, `PUBLISHED` version; with `activate` it also becomes the active version of its major. `requestMajor` asks for a new major number. When the gate refuses, nothing is stored and the call fails with the gate\'s report. The response also carries the generation as it is after the call.
1525
+ * @summary Publishes a group version when the publish gate passes.
1526
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1527
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1528
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1529
+ * @param {PublishGroupVersionBody} body
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ */
1533
+ groupTariffServicePublishGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
1534
+ return __awaiter(this, void 0, void 0, function () {
1535
+ var localVarAxiosArgs;
1536
+ return __generator(this, function (_a) {
1537
+ switch (_a.label) {
1538
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServicePublishGroupVersion(groupTariffSlug, generation, ifMatch, body, options)];
1539
+ case 1:
1540
+ localVarAxiosArgs = _a.sent();
1541
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1542
+ }
1543
+ });
1544
+ });
1545
+ },
1546
+ /**
1547
+ * A major can have only one active version. The version must be published and belong to this generation; a retired version is refused. The response carries the generation with its active versions.
1548
+ * @summary Makes a published version of a generation its active version.
1549
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1550
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1551
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1552
+ * @param {SetActiveGroupVersionBody} body
1553
+ * @param {*} [options] Override http request option.
1554
+ * @throws {RequiredError}
1555
+ */
1556
+ groupTariffServiceSetActiveGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
1557
+ return __awaiter(this, void 0, void 0, function () {
1558
+ var localVarAxiosArgs;
1559
+ return __generator(this, function (_a) {
1560
+ switch (_a.label) {
1561
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceSetActiveGroupVersion(groupTariffSlug, generation, ifMatch, body, options)];
1562
+ case 1:
1563
+ localVarAxiosArgs = _a.sent();
1564
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1565
+ }
1566
+ });
1567
+ });
1568
+ },
1569
+ /**
1570
+ * The allowed moves are: - `DRAFT` to `RETIRED`: archives the draft. - `DRAFT` to `DISCARDED`: gives the draft up. - `DRAFT` to `PUBLISHED` or `ACTIVE`: runs the publish gate and assigns the number; `requestMajor` asks for a new major, and `activate` makes the new version active. A refusal carries the gate\'s report. - `PUBLISHED` to `ACTIVE`: makes it the active version of its major; a major can have only one active version. - `ACTIVE` to `PUBLISHED`: takes it off sale. - `PUBLISHED` or `ACTIVE` to `RETIRED`: forbids new pins of the version. Any other move is not allowed. A policy already in force never moves to another version.
1571
+ * @summary Moves a group version to another status.
1572
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1573
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1574
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
1575
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; when the version is a draft, otherwise its generation\&#39;s &#x60;etag&#x60;, as last read and sent back unchanged.
1576
+ * @param {SetGroupVersionStatusBody} body
1577
+ * @param {*} [options] Override http request option.
1578
+ * @throws {RequiredError}
1579
+ */
1580
+ groupTariffServiceSetGroupVersionStatus: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1581
+ return __awaiter(this, void 0, void 0, function () {
1582
+ var localVarAxiosArgs;
1583
+ return __generator(this, function (_a) {
1584
+ switch (_a.label) {
1585
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceSetGroupVersionStatus(groupTariffSlug, generation, version, ifMatch, body, options)];
1586
+ case 1:
1587
+ localVarAxiosArgs = _a.sent();
1588
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1589
+ }
1590
+ });
1591
+ });
1592
+ },
1593
+ /**
1594
+ * Only a draft can be rewritten. The call replaces both documents: `config` and `publishedSchema`; a `publishedSchema` that is left out empties the stored schema. The checks run when the asset is published.
1595
+ * @summary Rewrites the content of a draft configuration asset.
1596
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1597
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1598
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1599
+ * @param {UpdateGroupCoreConfigBody} body
1600
+ * @param {*} [options] Override http request option.
1601
+ * @throws {RequiredError}
1602
+ */
1603
+ groupTariffServiceUpdateGroupCoreConfig: function (groupTariffSlug, name, ifMatch, body, options) {
1604
+ return __awaiter(this, void 0, void 0, function () {
1605
+ var localVarAxiosArgs;
1606
+ return __generator(this, function (_a) {
1607
+ switch (_a.label) {
1608
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options)];
1609
+ case 1:
1610
+ localVarAxiosArgs = _a.sent();
1611
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1612
+ }
1613
+ });
1614
+ });
1615
+ },
1616
+ /**
1617
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1618
+ * @summary Rewrites the manifest of a draft group version.
1619
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1620
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1621
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1622
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1623
+ * @param {UpdateGroupVersionBody} body
1624
+ * @param {*} [options] Override http request option.
1625
+ * @throws {RequiredError}
1626
+ */
1627
+ groupTariffServiceUpdateGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1628
+ return __awaiter(this, void 0, void 0, function () {
1629
+ var localVarAxiosArgs;
1630
+ return __generator(this, function (_a) {
1631
+ switch (_a.label) {
1632
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceUpdateGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options)];
1633
+ case 1:
1634
+ localVarAxiosArgs = _a.sent();
1635
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1636
+ }
1637
+ });
1638
+ });
1639
+ },
1640
+ /**
1641
+ * Runs the publish gate over `manifest` and writes nothing. A manifest the gate refuses is an answer, not an error: the report in the response says why.
1642
+ * @summary Checks a manifest against the publish gate without saving anything.
1643
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1644
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1645
+ * @param {ValidateGroupVersionBody} body
1646
+ * @param {*} [options] Override http request option.
1647
+ * @throws {RequiredError}
1648
+ */
1649
+ groupTariffServiceValidateGroupVersion: function (groupTariffSlug, generation, body, options) {
1650
+ return __awaiter(this, void 0, void 0, function () {
1651
+ var localVarAxiosArgs;
1652
+ return __generator(this, function (_a) {
1653
+ switch (_a.label) {
1654
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.groupTariffServiceValidateGroupVersion(groupTariffSlug, generation, body, options)];
1655
+ case 1:
1656
+ localVarAxiosArgs = _a.sent();
1657
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1658
+ }
1659
+ });
1660
+ });
1661
+ },
1662
+ };
1663
+ };
1664
+ exports.GroupTariffsApiFp = GroupTariffsApiFp;
1665
+ /**
1666
+ * GroupTariffsApi - factory interface
1667
+ * @export
1668
+ */
1669
+ var GroupTariffsApiFactory = function (configuration, basePath, axios) {
1670
+ var localVarFp = (0, exports.GroupTariffsApiFp)(configuration);
1671
+ return {
1672
+ /**
1673
+ * The asset is stored as a `DRAFT`. `config` is its document and `publishedSchema` the schema that policy data is validated against; either can be left out. `basedOnName` names an asset to copy the new one from.
1674
+ * @summary Creates a draft configuration asset of a group tariff.
1675
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1676
+ * @param {CreateGroupCoreConfigBody} body
1677
+ * @param {*} [options] Override http request option.
1678
+ * @throws {RequiredError}
1679
+ */
1680
+ groupTariffServiceCreateGroupCoreConfig: function (groupTariffSlug, body, options) {
1681
+ return localVarFp.groupTariffServiceCreateGroupCoreConfig(groupTariffSlug, body, options).then(function (request) { return request(axios, basePath); });
1682
+ },
1683
+ /**
1684
+ * A generation is a period of the group tariff that starts on `validFrom`. The call needs the group tariff\'s `If-Match` because adding a generation changes the group tariff. A group generation has no draft: create its first version with `CreateGroupVersion`.
1685
+ * @summary Adds a generation to a group tariff.
1686
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1687
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
1688
+ * @param {CreateGroupGenerationBody} body
1689
+ * @param {*} [options] Override http request option.
1690
+ * @throws {RequiredError}
1691
+ */
1692
+ groupTariffServiceCreateGroupGeneration: function (groupTariffSlug, ifMatch, body, options) {
1693
+ return localVarFp.groupTariffServiceCreateGroupGeneration(groupTariffSlug, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1694
+ },
1695
+ /**
1696
+ * The slug must be new and `tariffSlug` must name an existing tariff. With `baseGeneration` the call also creates the group tariff\'s first generation and its draft version in the same step; without it the group tariff starts empty.
1697
+ * @summary Creates a group tariff that references one tariff.
1698
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
1699
+ * @param {*} [options] Override http request option.
1700
+ * @throws {RequiredError}
1701
+ */
1702
+ groupTariffServiceCreateGroupTariff: function (body, options) {
1703
+ return localVarFp.groupTariffServiceCreateGroupTariff(body, options).then(function (request) { return request(axios, basePath); });
1704
+ },
1705
+ /**
1706
+ * The draft starts from `manifest`, or from the version `basedOnErn` names. It is stored even when the manifest has problems: they are listed in `validationIssues`, and the publish gate decides later.
1707
+ * @summary Stores a draft group version.
1708
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1709
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1710
+ * @param {CreateGroupVersionBody} body
1711
+ * @param {*} [options] Override http request option.
1712
+ * @throws {RequiredError}
1713
+ */
1714
+ groupTariffServiceCreateGroupVersion: function (groupTariffSlug, generation, body, options) {
1715
+ return localVarFp.groupTariffServiceCreateGroupVersion(groupTariffSlug, generation, body, options).then(function (request) { return request(axios, basePath); });
1716
+ },
1717
+ /**
1718
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
1719
+ * @summary Gives up a draft group version.
1720
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1721
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1722
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1723
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1724
+ * @param {object} body
1725
+ * @param {*} [options] Override http request option.
1726
+ * @throws {RequiredError}
1727
+ */
1728
+ groupTariffServiceDiscardGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1729
+ return localVarFp.groupTariffServiceDiscardGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1730
+ },
1731
+ /**
1732
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
1733
+ * @summary Returns one configuration asset of a group tariff.
1734
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1735
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1736
+ * @param {*} [options] Override http request option.
1737
+ * @throws {RequiredError}
1738
+ */
1739
+ groupTariffServiceGetGroupCoreConfig: function (groupTariffSlug, name, options) {
1740
+ return localVarFp.groupTariffServiceGetGroupCoreConfig(groupTariffSlug, name, options).then(function (request) { return request(axios, basePath); });
1741
+ },
1742
+ /**
1743
+ * Compares the version `version` with `againstVersion`, or with its baseline when `againstVersion` is empty. The response lists the premium change of each rating case and the changed references of the manifest, each marked added, removed or changed.
1744
+ * @summary Returns the differences between a group version and an earlier one.
1745
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1746
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1747
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
1748
+ * @param {string} [againstVersion] The ERN of the earlier version to compare with, such as the full ERN of &#x60;1.2&#x60;. Optional. Empty means the version this one is based on.
1749
+ * @param {*} [options] Override http request option.
1750
+ * @throws {RequiredError}
1751
+ */
1752
+ groupTariffServiceGetGroupDiff: function (groupTariffSlug, generation, version, againstVersion, options) {
1753
+ return localVarFp.groupTariffServiceGetGroupDiff(groupTariffSlug, generation, version, againstVersion, options).then(function (request) { return request(axios, basePath); });
1754
+ },
1755
+ /**
1756
+ * The generation is found by the group tariff\'s slug and the generation\'s name. Its `etag` goes in the `If-Match` header of a publish or an activation.
1757
+ * @summary Returns one generation of a group tariff.
1758
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1759
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1760
+ * @param {*} [options] Override http request option.
1761
+ * @throws {RequiredError}
1762
+ */
1763
+ groupTariffServiceGetGroupGeneration: function (groupTariffSlug, generation, options) {
1764
+ return localVarFp.groupTariffServiceGetGroupGeneration(groupTariffSlug, generation, options).then(function (request) { return request(axios, basePath); });
1765
+ },
1766
+ /**
1767
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
1768
+ * @summary Returns one group tariff.
1769
+ * @param {string} slug The group tariff\&#39;s slug.
1770
+ * @param {*} [options] Override http request option.
1771
+ * @throws {RequiredError}
1772
+ */
1773
+ groupTariffServiceGetGroupTariff: function (slug, options) {
1774
+ return localVarFp.groupTariffServiceGetGroupTariff(slug, options).then(function (request) { return request(axios, basePath); });
1775
+ },
1776
+ /**
1777
+ * The catalog is read for the caller\'s tenant: `lineOfInsurance` takes the keys of the standard and the added lines, with their labels, and can be filtered for `$null`. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
1778
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
1779
+ * @param {*} [options] Override http request option.
1780
+ * @throws {RequiredError}
1781
+ */
1782
+ groupTariffServiceGetGroupTariffFilterCatalog: function (options) {
1783
+ return localVarFp.groupTariffServiceGetGroupTariffFilterCatalog(options).then(function (request) { return request(axios, basePath); });
1784
+ },
1785
+ /**
1786
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
1787
+ * @summary Returns one version of a group generation.
1788
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1789
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1790
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
1791
+ * @param {*} [options] Override http request option.
1792
+ * @throws {RequiredError}
1793
+ */
1794
+ groupTariffServiceGetGroupVersion: function (groupTariffSlug, generation, version, options) {
1795
+ return localVarFp.groupTariffServiceGetGroupVersion(groupTariffSlug, generation, version, options).then(function (request) { return request(axios, basePath); });
1796
+ },
1797
+ /**
1798
+ * The list is paged and holds the assets of every group tariff, ordered by group tariff slug, then name. It takes no search. - Filter: `groupTariffSlug`, `name`, `status`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `createdAt`.
1799
+ * @summary Lists the configuration assets of a group tariff, oldest first.
1800
+ * @param {number} [pageSize]
1801
+ * @param {string} [pageToken]
1802
+ * @param {string} [filter]
1803
+ * @param {string} [search]
1804
+ * @param {string} [order]
1805
+ * @param {string} [expand]
1806
+ * @param {string} [filters]
1807
+ * @param {*} [options] Override http request option.
1808
+ * @throws {RequiredError}
1809
+ */
1810
+ groupTariffServiceListGroupCoreConfigs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1811
+ return localVarFp.groupTariffServiceListGroupCoreConfigs(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1812
+ },
1813
+ /**
1814
+ * The list is paged and holds the generations of every group tariff, ordered by group tariff slug, then `validFrom`. It takes no search. To list one group tariff\'s generations, name it in `filters`. - Filter: `groupTariffSlug`, `name`, `validFrom`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `validFrom`, `createdAt`.
1815
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
1816
+ * @param {number} [pageSize]
1817
+ * @param {string} [pageToken]
1818
+ * @param {string} [filter]
1819
+ * @param {string} [search]
1820
+ * @param {string} [order]
1821
+ * @param {string} [expand]
1822
+ * @param {string} [filters]
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ */
1826
+ groupTariffServiceListGroupGenerations: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1827
+ return localVarFp.groupTariffServiceListGroupGenerations(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1828
+ },
1829
+ /**
1830
+ * Each item is a group tariff; its `match` is filled on a search and empty otherwise. The list is paged. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
1831
+ * @summary Lists the group tariffs.
1832
+ * @param {number} [pageSize]
1833
+ * @param {string} [pageToken]
1834
+ * @param {string} [filter]
1835
+ * @param {string} [search]
1836
+ * @param {string} [order]
1837
+ * @param {string} [expand]
1838
+ * @param {string} [filters]
1839
+ * @param {*} [options] Override http request option.
1840
+ * @throws {RequiredError}
1841
+ */
1842
+ groupTariffServiceListGroupTariffs: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1843
+ return localVarFp.groupTariffServiceListGroupTariffs(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1844
+ },
1845
+ /**
1846
+ * The list holds the published versions and, only when `includeDrafts` is `true`, the open and the archived drafts after them. A discarded draft is never listed. To list one generation\'s versions, name the group tariff and the generation in `filters`: `groupTariffSlug`, `generation` and `includeDrafts`. Versions are sorted by `createdAt`, oldest first.
1847
+ * @summary Lists the versions of a group generation, oldest first.
1848
+ * @param {number} [pageSize]
1849
+ * @param {string} [pageToken]
1850
+ * @param {string} [filter]
1851
+ * @param {string} [search]
1852
+ * @param {string} [order]
1853
+ * @param {string} [expand]
1854
+ * @param {string} [filters]
1855
+ * @param {*} [options] Override http request option.
1856
+ * @throws {RequiredError}
1857
+ */
1858
+ groupTariffServiceListGroupVersions: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
1859
+ return localVarFp.groupTariffServiceListGroupVersions(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
1860
+ },
1861
+ /**
1862
+ * Runs the publish gate over the draft and, when it passes, freezes the asset as `PUBLISHED` with its digest. A published asset never changes. When the gate refuses, the call fails and carries the gate\'s report.
1863
+ * @summary Publishes a draft configuration asset.
1864
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1865
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1866
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1867
+ * @param {object} body
1868
+ * @param {*} [options] Override http request option.
1869
+ * @throws {RequiredError}
1870
+ */
1871
+ groupTariffServicePublishGroupCoreConfig: function (groupTariffSlug, name, ifMatch, body, options) {
1872
+ return localVarFp.groupTariffServicePublishGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1873
+ },
1874
+ /**
1875
+ * Runs the publish gate over `manifest`. When it passes, the version is stored as a numbered, `PUBLISHED` version; with `activate` it also becomes the active version of its major. `requestMajor` asks for a new major number. When the gate refuses, nothing is stored and the call fails with the gate\'s report. The response also carries the generation as it is after the call.
1876
+ * @summary Publishes a group version when the publish gate passes.
1877
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1878
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1879
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1880
+ * @param {PublishGroupVersionBody} body
1881
+ * @param {*} [options] Override http request option.
1882
+ * @throws {RequiredError}
1883
+ */
1884
+ groupTariffServicePublishGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
1885
+ return localVarFp.groupTariffServicePublishGroupVersion(groupTariffSlug, generation, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1886
+ },
1887
+ /**
1888
+ * A major can have only one active version. The version must be published and belong to this generation; a retired version is refused. The response carries the generation with its active versions.
1889
+ * @summary Makes a published version of a generation its active version.
1890
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1891
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1892
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1893
+ * @param {SetActiveGroupVersionBody} body
1894
+ * @param {*} [options] Override http request option.
1895
+ * @throws {RequiredError}
1896
+ */
1897
+ groupTariffServiceSetActiveGroupVersion: function (groupTariffSlug, generation, ifMatch, body, options) {
1898
+ return localVarFp.groupTariffServiceSetActiveGroupVersion(groupTariffSlug, generation, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1899
+ },
1900
+ /**
1901
+ * The allowed moves are: - `DRAFT` to `RETIRED`: archives the draft. - `DRAFT` to `DISCARDED`: gives the draft up. - `DRAFT` to `PUBLISHED` or `ACTIVE`: runs the publish gate and assigns the number; `requestMajor` asks for a new major, and `activate` makes the new version active. A refusal carries the gate\'s report. - `PUBLISHED` to `ACTIVE`: makes it the active version of its major; a major can have only one active version. - `ACTIVE` to `PUBLISHED`: takes it off sale. - `PUBLISHED` or `ACTIVE` to `RETIRED`: forbids new pins of the version. Any other move is not allowed. A policy already in force never moves to another version.
1902
+ * @summary Moves a group version to another status.
1903
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1904
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1905
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
1906
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; when the version is a draft, otherwise its generation\&#39;s &#x60;etag&#x60;, as last read and sent back unchanged.
1907
+ * @param {SetGroupVersionStatusBody} body
1908
+ * @param {*} [options] Override http request option.
1909
+ * @throws {RequiredError}
1910
+ */
1911
+ groupTariffServiceSetGroupVersionStatus: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1912
+ return localVarFp.groupTariffServiceSetGroupVersionStatus(groupTariffSlug, generation, version, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1913
+ },
1914
+ /**
1915
+ * Only a draft can be rewritten. The call replaces both documents: `config` and `publishedSchema`; a `publishedSchema` that is left out empties the stored schema. The checks run when the asset is published.
1916
+ * @summary Rewrites the content of a draft configuration asset.
1917
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1918
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1919
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1920
+ * @param {UpdateGroupCoreConfigBody} body
1921
+ * @param {*} [options] Override http request option.
1922
+ * @throws {RequiredError}
1923
+ */
1924
+ groupTariffServiceUpdateGroupCoreConfig: function (groupTariffSlug, name, ifMatch, body, options) {
1925
+ return localVarFp.groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1926
+ },
1927
+ /**
1928
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1929
+ * @summary Rewrites the manifest of a draft group version.
1930
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1931
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1932
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1933
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1934
+ * @param {UpdateGroupVersionBody} body
1935
+ * @param {*} [options] Override http request option.
1936
+ * @throws {RequiredError}
1937
+ */
1938
+ groupTariffServiceUpdateGroupVersion: function (groupTariffSlug, generation, version, ifMatch, body, options) {
1939
+ return localVarFp.groupTariffServiceUpdateGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
1940
+ },
1941
+ /**
1942
+ * Runs the publish gate over `manifest` and writes nothing. A manifest the gate refuses is an answer, not an error: the report in the response says why.
1943
+ * @summary Checks a manifest against the publish gate without saving anything.
1944
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1945
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1946
+ * @param {ValidateGroupVersionBody} body
1947
+ * @param {*} [options] Override http request option.
1948
+ * @throws {RequiredError}
1949
+ */
1950
+ groupTariffServiceValidateGroupVersion: function (groupTariffSlug, generation, body, options) {
1951
+ return localVarFp.groupTariffServiceValidateGroupVersion(groupTariffSlug, generation, body, options).then(function (request) { return request(axios, basePath); });
1952
+ },
1953
+ };
1954
+ };
1955
+ exports.GroupTariffsApiFactory = GroupTariffsApiFactory;
1956
+ /**
1957
+ * GroupTariffsApi - object-oriented interface
1958
+ * @export
1959
+ * @class GroupTariffsApi
1960
+ * @extends {BaseAPI}
1961
+ */
1962
+ var GroupTariffsApi = /** @class */ (function (_super) {
1963
+ __extends(GroupTariffsApi, _super);
1964
+ function GroupTariffsApi() {
1965
+ return _super !== null && _super.apply(this, arguments) || this;
1966
+ }
1967
+ /**
1968
+ * The asset is stored as a `DRAFT`. `config` is its document and `publishedSchema` the schema that policy data is validated against; either can be left out. `basedOnName` names an asset to copy the new one from.
1969
+ * @summary Creates a draft configuration asset of a group tariff.
1970
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupCoreConfigRequest} requestParameters Request parameters.
1971
+ * @param {*} [options] Override http request option.
1972
+ * @throws {RequiredError}
1973
+ * @memberof GroupTariffsApi
1974
+ */
1975
+ GroupTariffsApi.prototype.groupTariffServiceCreateGroupCoreConfig = function (requestParameters, options) {
1976
+ var _this = this;
1977
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceCreateGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1978
+ };
1979
+ /**
1980
+ * A generation is a period of the group tariff that starts on `validFrom`. The call needs the group tariff\'s `If-Match` because adding a generation changes the group tariff. A group generation has no draft: create its first version with `CreateGroupVersion`.
1981
+ * @summary Adds a generation to a group tariff.
1982
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupGenerationRequest} requestParameters Request parameters.
1983
+ * @param {*} [options] Override http request option.
1984
+ * @throws {RequiredError}
1985
+ * @memberof GroupTariffsApi
1986
+ */
1987
+ GroupTariffsApi.prototype.groupTariffServiceCreateGroupGeneration = function (requestParameters, options) {
1988
+ var _this = this;
1989
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceCreateGroupGeneration(requestParameters.groupTariffSlug, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1990
+ };
1991
+ /**
1992
+ * The slug must be new and `tariffSlug` must name an existing tariff. With `baseGeneration` the call also creates the group tariff\'s first generation and its draft version in the same step; without it the group tariff starts empty.
1993
+ * @summary Creates a group tariff that references one tariff.
1994
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupTariffRequest} requestParameters Request parameters.
1995
+ * @param {*} [options] Override http request option.
1996
+ * @throws {RequiredError}
1997
+ * @memberof GroupTariffsApi
1998
+ */
1999
+ GroupTariffsApi.prototype.groupTariffServiceCreateGroupTariff = function (requestParameters, options) {
2000
+ var _this = this;
2001
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceCreateGroupTariff(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2002
+ };
2003
+ /**
2004
+ * The draft starts from `manifest`, or from the version `basedOnErn` names. It is stored even when the manifest has problems: they are listed in `validationIssues`, and the publish gate decides later.
2005
+ * @summary Stores a draft group version.
2006
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupVersionRequest} requestParameters Request parameters.
2007
+ * @param {*} [options] Override http request option.
2008
+ * @throws {RequiredError}
2009
+ * @memberof GroupTariffsApi
2010
+ */
2011
+ GroupTariffsApi.prototype.groupTariffServiceCreateGroupVersion = function (requestParameters, options) {
2012
+ var _this = this;
2013
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceCreateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2014
+ };
2015
+ /**
2016
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
2017
+ * @summary Gives up a draft group version.
2018
+ * @param {GroupTariffsApiGroupTariffServiceDiscardGroupVersionRequest} requestParameters Request parameters.
2019
+ * @param {*} [options] Override http request option.
2020
+ * @throws {RequiredError}
2021
+ * @memberof GroupTariffsApi
2022
+ */
2023
+ GroupTariffsApi.prototype.groupTariffServiceDiscardGroupVersion = function (requestParameters, options) {
2024
+ var _this = this;
2025
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceDiscardGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2026
+ };
2027
+ /**
2028
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
2029
+ * @summary Returns one configuration asset of a group tariff.
2030
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupCoreConfigRequest} requestParameters Request parameters.
2031
+ * @param {*} [options] Override http request option.
2032
+ * @throws {RequiredError}
2033
+ * @memberof GroupTariffsApi
2034
+ */
2035
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupCoreConfig = function (requestParameters, options) {
2036
+ var _this = this;
2037
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2038
+ };
2039
+ /**
2040
+ * Compares the version `version` with `againstVersion`, or with its baseline when `againstVersion` is empty. The response lists the premium change of each rating case and the changed references of the manifest, each marked added, removed or changed.
2041
+ * @summary Returns the differences between a group version and an earlier one.
2042
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupDiffRequest} requestParameters Request parameters.
2043
+ * @param {*} [options] Override http request option.
2044
+ * @throws {RequiredError}
2045
+ * @memberof GroupTariffsApi
2046
+ */
2047
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupDiff = function (requestParameters, options) {
2048
+ var _this = this;
2049
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupDiff(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.againstVersion, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2050
+ };
2051
+ /**
2052
+ * The generation is found by the group tariff\'s slug and the generation\'s name. Its `etag` goes in the `If-Match` header of a publish or an activation.
2053
+ * @summary Returns one generation of a group tariff.
2054
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupGenerationRequest} requestParameters Request parameters.
2055
+ * @param {*} [options] Override http request option.
2056
+ * @throws {RequiredError}
2057
+ * @memberof GroupTariffsApi
2058
+ */
2059
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupGeneration = function (requestParameters, options) {
2060
+ var _this = this;
2061
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupGeneration(requestParameters.groupTariffSlug, requestParameters.generation, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2062
+ };
2063
+ /**
2064
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
2065
+ * @summary Returns one group tariff.
2066
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupTariffRequest} requestParameters Request parameters.
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ * @memberof GroupTariffsApi
2070
+ */
2071
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupTariff = function (requestParameters, options) {
2072
+ var _this = this;
2073
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupTariff(requestParameters.slug, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2074
+ };
2075
+ /**
2076
+ * The catalog is read for the caller\'s tenant: `lineOfInsurance` takes the keys of the standard and the added lines, with their labels, and can be filtered for `$null`. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
2077
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ * @memberof GroupTariffsApi
2081
+ */
2082
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupTariffFilterCatalog = function (options) {
2083
+ var _this = this;
2084
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupTariffFilterCatalog(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2085
+ };
2086
+ /**
2087
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
2088
+ * @summary Returns one version of a group generation.
2089
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupVersionRequest} requestParameters Request parameters.
2090
+ * @param {*} [options] Override http request option.
2091
+ * @throws {RequiredError}
2092
+ * @memberof GroupTariffsApi
2093
+ */
2094
+ GroupTariffsApi.prototype.groupTariffServiceGetGroupVersion = function (requestParameters, options) {
2095
+ var _this = this;
2096
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceGetGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2097
+ };
2098
+ /**
2099
+ * The list is paged and holds the assets of every group tariff, ordered by group tariff slug, then name. It takes no search. - Filter: `groupTariffSlug`, `name`, `status`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `createdAt`.
2100
+ * @summary Lists the configuration assets of a group tariff, oldest first.
2101
+ * @param {GroupTariffsApiGroupTariffServiceListGroupCoreConfigsRequest} requestParameters Request parameters.
2102
+ * @param {*} [options] Override http request option.
2103
+ * @throws {RequiredError}
2104
+ * @memberof GroupTariffsApi
2105
+ */
2106
+ GroupTariffsApi.prototype.groupTariffServiceListGroupCoreConfigs = function (requestParameters, options) {
2107
+ var _this = this;
2108
+ if (requestParameters === void 0) { requestParameters = {}; }
2109
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceListGroupCoreConfigs(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); });
2110
+ };
2111
+ /**
2112
+ * The list is paged and holds the generations of every group tariff, ordered by group tariff slug, then `validFrom`. It takes no search. To list one group tariff\'s generations, name it in `filters`. - Filter: `groupTariffSlug`, `name`, `validFrom`, `createdAt`. - Sort: `groupTariffSlug`, `name`, `validFrom`, `createdAt`.
2113
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
2114
+ * @param {GroupTariffsApiGroupTariffServiceListGroupGenerationsRequest} requestParameters Request parameters.
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ * @memberof GroupTariffsApi
2118
+ */
2119
+ GroupTariffsApi.prototype.groupTariffServiceListGroupGenerations = function (requestParameters, options) {
2120
+ var _this = this;
2121
+ if (requestParameters === void 0) { requestParameters = {}; }
2122
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceListGroupGenerations(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); });
2123
+ };
2124
+ /**
2125
+ * Each item is a group tariff; its `match` is filled on a search and empty otherwise. The list is paged. - Filter: `slug`, `name`, `tariffSlug`, `createdAt`, `createdBy`, `lineOfInsurance`. - Search: over `slug` and `name`. - Sort: `slug`, `name`, `tariffSlug`, `createdAt`.
2126
+ * @summary Lists the group tariffs.
2127
+ * @param {GroupTariffsApiGroupTariffServiceListGroupTariffsRequest} requestParameters Request parameters.
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ * @memberof GroupTariffsApi
2131
+ */
2132
+ GroupTariffsApi.prototype.groupTariffServiceListGroupTariffs = function (requestParameters, options) {
2133
+ var _this = this;
2134
+ if (requestParameters === void 0) { requestParameters = {}; }
2135
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceListGroupTariffs(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); });
2136
+ };
2137
+ /**
2138
+ * The list holds the published versions and, only when `includeDrafts` is `true`, the open and the archived drafts after them. A discarded draft is never listed. To list one generation\'s versions, name the group tariff and the generation in `filters`: `groupTariffSlug`, `generation` and `includeDrafts`. Versions are sorted by `createdAt`, oldest first.
2139
+ * @summary Lists the versions of a group generation, oldest first.
2140
+ * @param {GroupTariffsApiGroupTariffServiceListGroupVersionsRequest} requestParameters Request parameters.
2141
+ * @param {*} [options] Override http request option.
2142
+ * @throws {RequiredError}
2143
+ * @memberof GroupTariffsApi
2144
+ */
2145
+ GroupTariffsApi.prototype.groupTariffServiceListGroupVersions = function (requestParameters, options) {
2146
+ var _this = this;
2147
+ if (requestParameters === void 0) { requestParameters = {}; }
2148
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceListGroupVersions(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); });
2149
+ };
2150
+ /**
2151
+ * Runs the publish gate over the draft and, when it passes, freezes the asset as `PUBLISHED` with its digest. A published asset never changes. When the gate refuses, the call fails and carries the gate\'s report.
2152
+ * @summary Publishes a draft configuration asset.
2153
+ * @param {GroupTariffsApiGroupTariffServicePublishGroupCoreConfigRequest} requestParameters Request parameters.
2154
+ * @param {*} [options] Override http request option.
2155
+ * @throws {RequiredError}
2156
+ * @memberof GroupTariffsApi
2157
+ */
2158
+ GroupTariffsApi.prototype.groupTariffServicePublishGroupCoreConfig = function (requestParameters, options) {
2159
+ var _this = this;
2160
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServicePublishGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2161
+ };
2162
+ /**
2163
+ * Runs the publish gate over `manifest`. When it passes, the version is stored as a numbered, `PUBLISHED` version; with `activate` it also becomes the active version of its major. `requestMajor` asks for a new major number. When the gate refuses, nothing is stored and the call fails with the gate\'s report. The response also carries the generation as it is after the call.
2164
+ * @summary Publishes a group version when the publish gate passes.
2165
+ * @param {GroupTariffsApiGroupTariffServicePublishGroupVersionRequest} requestParameters Request parameters.
2166
+ * @param {*} [options] Override http request option.
2167
+ * @throws {RequiredError}
2168
+ * @memberof GroupTariffsApi
2169
+ */
2170
+ GroupTariffsApi.prototype.groupTariffServicePublishGroupVersion = function (requestParameters, options) {
2171
+ var _this = this;
2172
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServicePublishGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2173
+ };
2174
+ /**
2175
+ * A major can have only one active version. The version must be published and belong to this generation; a retired version is refused. The response carries the generation with its active versions.
2176
+ * @summary Makes a published version of a generation its active version.
2177
+ * @param {GroupTariffsApiGroupTariffServiceSetActiveGroupVersionRequest} requestParameters Request parameters.
2178
+ * @param {*} [options] Override http request option.
2179
+ * @throws {RequiredError}
2180
+ * @memberof GroupTariffsApi
2181
+ */
2182
+ GroupTariffsApi.prototype.groupTariffServiceSetActiveGroupVersion = function (requestParameters, options) {
2183
+ var _this = this;
2184
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceSetActiveGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2185
+ };
2186
+ /**
2187
+ * The allowed moves are: - `DRAFT` to `RETIRED`: archives the draft. - `DRAFT` to `DISCARDED`: gives the draft up. - `DRAFT` to `PUBLISHED` or `ACTIVE`: runs the publish gate and assigns the number; `requestMajor` asks for a new major, and `activate` makes the new version active. A refusal carries the gate\'s report. - `PUBLISHED` to `ACTIVE`: makes it the active version of its major; a major can have only one active version. - `ACTIVE` to `PUBLISHED`: takes it off sale. - `PUBLISHED` or `ACTIVE` to `RETIRED`: forbids new pins of the version. Any other move is not allowed. A policy already in force never moves to another version.
2188
+ * @summary Moves a group version to another status.
2189
+ * @param {GroupTariffsApiGroupTariffServiceSetGroupVersionStatusRequest} requestParameters Request parameters.
2190
+ * @param {*} [options] Override http request option.
2191
+ * @throws {RequiredError}
2192
+ * @memberof GroupTariffsApi
2193
+ */
2194
+ GroupTariffsApi.prototype.groupTariffServiceSetGroupVersionStatus = function (requestParameters, options) {
2195
+ var _this = this;
2196
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceSetGroupVersionStatus(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2197
+ };
2198
+ /**
2199
+ * Only a draft can be rewritten. The call replaces both documents: `config` and `publishedSchema`; a `publishedSchema` that is left out empties the stored schema. The checks run when the asset is published.
2200
+ * @summary Rewrites the content of a draft configuration asset.
2201
+ * @param {GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfigRequest} requestParameters Request parameters.
2202
+ * @param {*} [options] Override http request option.
2203
+ * @throws {RequiredError}
2204
+ * @memberof GroupTariffsApi
2205
+ */
2206
+ GroupTariffsApi.prototype.groupTariffServiceUpdateGroupCoreConfig = function (requestParameters, options) {
2207
+ var _this = this;
2208
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceUpdateGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2209
+ };
2210
+ /**
2211
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
2212
+ * @summary Rewrites the manifest of a draft group version.
2213
+ * @param {GroupTariffsApiGroupTariffServiceUpdateGroupVersionRequest} requestParameters Request parameters.
2214
+ * @param {*} [options] Override http request option.
2215
+ * @throws {RequiredError}
2216
+ * @memberof GroupTariffsApi
2217
+ */
2218
+ GroupTariffsApi.prototype.groupTariffServiceUpdateGroupVersion = function (requestParameters, options) {
2219
+ var _this = this;
2220
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceUpdateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2221
+ };
2222
+ /**
2223
+ * Runs the publish gate over `manifest` and writes nothing. A manifest the gate refuses is an answer, not an error: the report in the response says why.
2224
+ * @summary Checks a manifest against the publish gate without saving anything.
2225
+ * @param {GroupTariffsApiGroupTariffServiceValidateGroupVersionRequest} requestParameters Request parameters.
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ * @memberof GroupTariffsApi
2229
+ */
2230
+ GroupTariffsApi.prototype.groupTariffServiceValidateGroupVersion = function (requestParameters, options) {
2231
+ var _this = this;
2232
+ return (0, exports.GroupTariffsApiFp)(this.configuration).groupTariffServiceValidateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
2233
+ };
2234
+ return GroupTariffsApi;
2235
+ }(base_1.BaseAPI));
2236
+ exports.GroupTariffsApi = GroupTariffsApi;