@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,2856 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * insuranceservice/v2/config_common.proto
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: version not set
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateGroupCoreConfigBody } from '../models';
25
+ // @ts-ignore
26
+ import { CreateGroupCoreConfigResponse } from '../models';
27
+ // @ts-ignore
28
+ import { CreateGroupGenerationBody } from '../models';
29
+ // @ts-ignore
30
+ import { CreateGroupGenerationResponse } from '../models';
31
+ // @ts-ignore
32
+ import { CreateGroupTariffRequest } from '../models';
33
+ // @ts-ignore
34
+ import { CreateGroupTariffResponse } from '../models';
35
+ // @ts-ignore
36
+ import { CreateGroupVersionBody } from '../models';
37
+ // @ts-ignore
38
+ import { CreateGroupVersionResponse } from '../models';
39
+ // @ts-ignore
40
+ import { DiscardGroupVersionResponse } from '../models';
41
+ // @ts-ignore
42
+ import { GetGroupCoreConfigResponse } from '../models';
43
+ // @ts-ignore
44
+ import { GetGroupDiffResponse } from '../models';
45
+ // @ts-ignore
46
+ import { GetGroupGenerationResponse } from '../models';
47
+ // @ts-ignore
48
+ import { GetGroupTariffFilterCatalogResponse } from '../models';
49
+ // @ts-ignore
50
+ import { GetGroupTariffResponse } from '../models';
51
+ // @ts-ignore
52
+ import { GetGroupVersionResponse } from '../models';
53
+ // @ts-ignore
54
+ import { ListGroupCoreConfigsResponse } from '../models';
55
+ // @ts-ignore
56
+ import { ListGroupGenerationsResponse } from '../models';
57
+ // @ts-ignore
58
+ import { ListGroupTariffsResponse } from '../models';
59
+ // @ts-ignore
60
+ import { ListGroupVersionsResponse } from '../models';
61
+ // @ts-ignore
62
+ import { PublishGroupCoreConfigResponse } from '../models';
63
+ // @ts-ignore
64
+ import { PublishGroupVersionBody } from '../models';
65
+ // @ts-ignore
66
+ import { PublishGroupVersionResponse } from '../models';
67
+ // @ts-ignore
68
+ import { SetActiveGroupVersionBody } from '../models';
69
+ // @ts-ignore
70
+ import { SetActiveGroupVersionResponse } from '../models';
71
+ // @ts-ignore
72
+ import { SetGroupVersionStatusBody } from '../models';
73
+ // @ts-ignore
74
+ import { SetGroupVersionStatusResponse } from '../models';
75
+ // @ts-ignore
76
+ import { Status } from '../models';
77
+ // @ts-ignore
78
+ import { UpdateGroupCoreConfigBody } from '../models';
79
+ // @ts-ignore
80
+ import { UpdateGroupCoreConfigResponse } from '../models';
81
+ // @ts-ignore
82
+ import { UpdateGroupVersionBody } from '../models';
83
+ // @ts-ignore
84
+ import { UpdateGroupVersionResponse } from '../models';
85
+ // @ts-ignore
86
+ import { ValidateGroupVersionBody } from '../models';
87
+ // @ts-ignore
88
+ import { ValidateGroupVersionResponse } from '../models';
89
+ // URLSearchParams not necessarily used
90
+ // @ts-ignore
91
+ import { URL, URLSearchParams } from 'url';
92
+ const FormData = require('form-data');
93
+ /**
94
+ * GroupTariffsApi - axios parameter creator
95
+ * @export
96
+ */
97
+ export const GroupTariffsApiAxiosParamCreator = function (configuration?: Configuration) {
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\'s slug.
103
+ * @param {CreateGroupCoreConfigBody} body
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ groupTariffServiceCreateGroupCoreConfig: async (groupTariffSlug: string, body: CreateGroupCoreConfigBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
108
+ // verify required parameter 'groupTariffSlug' is not null or undefined
109
+ assertParamExists('groupTariffServiceCreateGroupCoreConfig', 'groupTariffSlug', groupTariffSlug)
110
+ // verify required parameter 'body' is not null or undefined
111
+ assertParamExists('groupTariffServiceCreateGroupCoreConfig', 'body', body)
112
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs`
113
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)));
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ let baseAccessToken;
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+
123
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
124
+ const localVarHeaderParameter = {} as any;
125
+ const localVarQueryParameter = {} as any;
126
+
127
+
128
+
129
+ localVarHeaderParameter['Content-Type'] = 'application/json';
130
+
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ * 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`.
143
+ * @summary Adds a generation to a group tariff.
144
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
145
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
146
+ * @param {CreateGroupGenerationBody} body
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ groupTariffServiceCreateGroupGeneration: async (groupTariffSlug: string, ifMatch: string, body: CreateGroupGenerationBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ // verify required parameter 'groupTariffSlug' is not null or undefined
152
+ assertParamExists('groupTariffServiceCreateGroupGeneration', 'groupTariffSlug', groupTariffSlug)
153
+ // verify required parameter 'ifMatch' is not null or undefined
154
+ assertParamExists('groupTariffServiceCreateGroupGeneration', 'ifMatch', ifMatch)
155
+ // verify required parameter 'body' is not null or undefined
156
+ assertParamExists('groupTariffServiceCreateGroupGeneration', 'body', body)
157
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations`
158
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)));
159
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
160
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
161
+ let baseOptions;
162
+ let baseAccessToken;
163
+ if (configuration) {
164
+ baseOptions = configuration.baseOptions;
165
+ baseAccessToken = configuration.accessToken;
166
+ }
167
+
168
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
169
+ const localVarHeaderParameter = {} as any;
170
+ const localVarQueryParameter = {} as any;
171
+
172
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
173
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
174
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
175
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
176
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
177
+ if (ifMatchValue || ifMatchKeepEmpty) {
178
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
179
+ }
180
+
181
+
182
+
183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
184
+
185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
188
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
189
+
190
+ return {
191
+ url: toPathString(localVarUrlObj),
192
+ options: localVarRequestOptions,
193
+ };
194
+ },
195
+ /**
196
+ * 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.
197
+ * @summary Creates a group tariff that references one tariff.
198
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ groupTariffServiceCreateGroupTariff: async (body: CreateGroupTariffRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ // verify required parameter 'body' is not null or undefined
204
+ assertParamExists('groupTariffServiceCreateGroupTariff', 'body', body)
205
+ const localVarPath = `/insuranceservice/v2/group-tariffs`;
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ let baseAccessToken;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ baseAccessToken = configuration.accessToken;
213
+ }
214
+
215
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
216
+ const localVarHeaderParameter = {} as any;
217
+ const localVarQueryParameter = {} as any;
218
+
219
+
220
+
221
+ localVarHeaderParameter['Content-Type'] = 'application/json';
222
+
223
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
226
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
227
+
228
+ return {
229
+ url: toPathString(localVarUrlObj),
230
+ options: localVarRequestOptions,
231
+ };
232
+ },
233
+ /**
234
+ * 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.
235
+ * @summary Stores a draft group version.
236
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
237
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
238
+ * @param {CreateGroupVersionBody} body
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ groupTariffServiceCreateGroupVersion: async (groupTariffSlug: string, generation: string, body: CreateGroupVersionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
243
+ // verify required parameter 'groupTariffSlug' is not null or undefined
244
+ assertParamExists('groupTariffServiceCreateGroupVersion', 'groupTariffSlug', groupTariffSlug)
245
+ // verify required parameter 'generation' is not null or undefined
246
+ assertParamExists('groupTariffServiceCreateGroupVersion', 'generation', generation)
247
+ // verify required parameter 'body' is not null or undefined
248
+ assertParamExists('groupTariffServiceCreateGroupVersion', 'body', body)
249
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions`
250
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
251
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)));
252
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
253
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
254
+ let baseOptions;
255
+ let baseAccessToken;
256
+ if (configuration) {
257
+ baseOptions = configuration.baseOptions;
258
+ baseAccessToken = configuration.accessToken;
259
+ }
260
+
261
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
262
+ const localVarHeaderParameter = {} as any;
263
+ const localVarQueryParameter = {} as any;
264
+
265
+
266
+
267
+ localVarHeaderParameter['Content-Type'] = 'application/json';
268
+
269
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
270
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
271
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
272
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
273
+
274
+ return {
275
+ url: toPathString(localVarUrlObj),
276
+ options: localVarRequestOptions,
277
+ };
278
+ },
279
+ /**
280
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
281
+ * @summary Gives up a draft group version.
282
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
283
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
284
+ * @param {string} version The draft id or the draft\&#39;s ERN.
285
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
286
+ * @param {object} body
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ groupTariffServiceDiscardGroupVersion: async (groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
291
+ // verify required parameter 'groupTariffSlug' is not null or undefined
292
+ assertParamExists('groupTariffServiceDiscardGroupVersion', 'groupTariffSlug', groupTariffSlug)
293
+ // verify required parameter 'generation' is not null or undefined
294
+ assertParamExists('groupTariffServiceDiscardGroupVersion', 'generation', generation)
295
+ // verify required parameter 'version' is not null or undefined
296
+ assertParamExists('groupTariffServiceDiscardGroupVersion', 'version', version)
297
+ // verify required parameter 'ifMatch' is not null or undefined
298
+ assertParamExists('groupTariffServiceDiscardGroupVersion', 'ifMatch', ifMatch)
299
+ // verify required parameter 'body' is not null or undefined
300
+ assertParamExists('groupTariffServiceDiscardGroupVersion', 'body', body)
301
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}:discard`
302
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
303
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)))
304
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ let baseAccessToken;
309
+ if (configuration) {
310
+ baseOptions = configuration.baseOptions;
311
+ baseAccessToken = configuration.accessToken;
312
+ }
313
+
314
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
315
+ const localVarHeaderParameter = {} as any;
316
+ const localVarQueryParameter = {} as any;
317
+
318
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
319
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
320
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
321
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
322
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
323
+ if (ifMatchValue || ifMatchKeepEmpty) {
324
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
325
+ }
326
+
327
+
328
+
329
+ localVarHeaderParameter['Content-Type'] = 'application/json';
330
+
331
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
332
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
333
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
334
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
335
+
336
+ return {
337
+ url: toPathString(localVarUrlObj),
338
+ options: localVarRequestOptions,
339
+ };
340
+ },
341
+ /**
342
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
343
+ * @summary Returns one configuration asset of a group tariff.
344
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
345
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ groupTariffServiceGetGroupCoreConfig: async (groupTariffSlug: string, name: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
350
+ // verify required parameter 'groupTariffSlug' is not null or undefined
351
+ assertParamExists('groupTariffServiceGetGroupCoreConfig', 'groupTariffSlug', groupTariffSlug)
352
+ // verify required parameter 'name' is not null or undefined
353
+ assertParamExists('groupTariffServiceGetGroupCoreConfig', 'name', name)
354
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}`
355
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
356
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
357
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
358
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
359
+ let baseOptions;
360
+ let baseAccessToken;
361
+ if (configuration) {
362
+ baseOptions = configuration.baseOptions;
363
+ baseAccessToken = configuration.accessToken;
364
+ }
365
+
366
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
367
+ const localVarHeaderParameter = {} as any;
368
+ const localVarQueryParameter = {} as any;
369
+
370
+
371
+
372
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
373
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
374
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
375
+
376
+ return {
377
+ url: toPathString(localVarUrlObj),
378
+ options: localVarRequestOptions,
379
+ };
380
+ },
381
+ /**
382
+ * 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.
383
+ * @summary Returns the differences between a group version and an earlier one.
384
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
385
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
386
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
387
+ * @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.
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ groupTariffServiceGetGroupDiff: async (groupTariffSlug: string, generation: string, version: string, againstVersion?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
392
+ // verify required parameter 'groupTariffSlug' is not null or undefined
393
+ assertParamExists('groupTariffServiceGetGroupDiff', 'groupTariffSlug', groupTariffSlug)
394
+ // verify required parameter 'generation' is not null or undefined
395
+ assertParamExists('groupTariffServiceGetGroupDiff', 'generation', generation)
396
+ // verify required parameter 'version' is not null or undefined
397
+ assertParamExists('groupTariffServiceGetGroupDiff', 'version', version)
398
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}/diff`
399
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
400
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)))
401
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
402
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
403
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
404
+ let baseOptions;
405
+ let baseAccessToken;
406
+ if (configuration) {
407
+ baseOptions = configuration.baseOptions;
408
+ baseAccessToken = configuration.accessToken;
409
+ }
410
+
411
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
412
+ const localVarHeaderParameter = {} as any;
413
+ const localVarQueryParameter = {} as any;
414
+
415
+ if (againstVersion !== undefined) {
416
+ localVarQueryParameter['againstVersion'] = againstVersion;
417
+ }
418
+
419
+
420
+
421
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
422
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
423
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
424
+
425
+ return {
426
+ url: toPathString(localVarUrlObj),
427
+ options: localVarRequestOptions,
428
+ };
429
+ },
430
+ /**
431
+ * 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.
432
+ * @summary Returns one generation of a group tariff.
433
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
434
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ groupTariffServiceGetGroupGeneration: async (groupTariffSlug: string, generation: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
439
+ // verify required parameter 'groupTariffSlug' is not null or undefined
440
+ assertParamExists('groupTariffServiceGetGroupGeneration', 'groupTariffSlug', groupTariffSlug)
441
+ // verify required parameter 'generation' is not null or undefined
442
+ assertParamExists('groupTariffServiceGetGroupGeneration', 'generation', generation)
443
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}`
444
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
445
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)));
446
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
447
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
448
+ let baseOptions;
449
+ let baseAccessToken;
450
+ if (configuration) {
451
+ baseOptions = configuration.baseOptions;
452
+ baseAccessToken = configuration.accessToken;
453
+ }
454
+
455
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
456
+ const localVarHeaderParameter = {} as any;
457
+ const localVarQueryParameter = {} as any;
458
+
459
+
460
+
461
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
464
+
465
+ return {
466
+ url: toPathString(localVarUrlObj),
467
+ options: localVarRequestOptions,
468
+ };
469
+ },
470
+ /**
471
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
472
+ * @summary Returns one group tariff.
473
+ * @param {string} slug The group tariff\&#39;s slug.
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ groupTariffServiceGetGroupTariff: async (slug: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
478
+ // verify required parameter 'slug' is not null or undefined
479
+ assertParamExists('groupTariffServiceGetGroupTariff', 'slug', slug)
480
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{slug}`
481
+ .replace(`{${"slug"}}`, encodeURIComponent(String(slug)));
482
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
483
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
484
+ let baseOptions;
485
+ let baseAccessToken;
486
+ if (configuration) {
487
+ baseOptions = configuration.baseOptions;
488
+ baseAccessToken = configuration.accessToken;
489
+ }
490
+
491
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
492
+ const localVarHeaderParameter = {} as any;
493
+ const localVarQueryParameter = {} as any;
494
+
495
+
496
+
497
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
499
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
500
+
501
+ return {
502
+ url: toPathString(localVarUrlObj),
503
+ options: localVarRequestOptions,
504
+ };
505
+ },
506
+ /**
507
+ * 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`.
508
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ groupTariffServiceGetGroupTariffFilterCatalog: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
513
+ const localVarPath = `/insuranceservice/v2/group-tariffs:filterCatalog`;
514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ let baseAccessToken;
518
+ if (configuration) {
519
+ baseOptions = configuration.baseOptions;
520
+ baseAccessToken = configuration.accessToken;
521
+ }
522
+
523
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
524
+ const localVarHeaderParameter = {} as any;
525
+ const localVarQueryParameter = {} as any;
526
+
527
+
528
+
529
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
530
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
531
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
532
+
533
+ return {
534
+ url: toPathString(localVarUrlObj),
535
+ options: localVarRequestOptions,
536
+ };
537
+ },
538
+ /**
539
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
540
+ * @summary Returns one version of a group generation.
541
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
542
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
543
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
544
+ * @param {*} [options] Override http request option.
545
+ * @throws {RequiredError}
546
+ */
547
+ groupTariffServiceGetGroupVersion: async (groupTariffSlug: string, generation: string, version: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
548
+ // verify required parameter 'groupTariffSlug' is not null or undefined
549
+ assertParamExists('groupTariffServiceGetGroupVersion', 'groupTariffSlug', groupTariffSlug)
550
+ // verify required parameter 'generation' is not null or undefined
551
+ assertParamExists('groupTariffServiceGetGroupVersion', 'generation', generation)
552
+ // verify required parameter 'version' is not null or undefined
553
+ assertParamExists('groupTariffServiceGetGroupVersion', 'version', version)
554
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}`
555
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
556
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)))
557
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
559
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
560
+ let baseOptions;
561
+ let baseAccessToken;
562
+ if (configuration) {
563
+ baseOptions = configuration.baseOptions;
564
+ baseAccessToken = configuration.accessToken;
565
+ }
566
+
567
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
568
+ const localVarHeaderParameter = {} as any;
569
+ const localVarQueryParameter = {} as any;
570
+
571
+
572
+
573
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
574
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
575
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
576
+
577
+ return {
578
+ url: toPathString(localVarUrlObj),
579
+ options: localVarRequestOptions,
580
+ };
581
+ },
582
+ /**
583
+ * 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`.
584
+ * @summary Lists the configuration assets of a group tariff, oldest first.
585
+ * @param {number} [pageSize]
586
+ * @param {string} [pageToken]
587
+ * @param {string} [filter]
588
+ * @param {string} [search]
589
+ * @param {string} [order]
590
+ * @param {string} [expand]
591
+ * @param {string} [filters]
592
+ * @param {*} [options] Override http request option.
593
+ * @throws {RequiredError}
594
+ */
595
+ groupTariffServiceListGroupCoreConfigs: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
596
+ const localVarPath = `/insuranceservice/v2/group-tariff-core-configs`;
597
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
598
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
599
+ let baseOptions;
600
+ let baseAccessToken;
601
+ if (configuration) {
602
+ baseOptions = configuration.baseOptions;
603
+ baseAccessToken = configuration.accessToken;
604
+ }
605
+
606
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
607
+ const localVarHeaderParameter = {} as any;
608
+ const localVarQueryParameter = {} as any;
609
+
610
+ if (pageSize !== undefined) {
611
+ localVarQueryParameter['pageSize'] = pageSize;
612
+ }
613
+
614
+ if (pageToken !== undefined) {
615
+ localVarQueryParameter['pageToken'] = pageToken;
616
+ }
617
+
618
+ if (filter !== undefined) {
619
+ localVarQueryParameter['filter'] = filter;
620
+ }
621
+
622
+ if (search !== undefined) {
623
+ localVarQueryParameter['search'] = search;
624
+ }
625
+
626
+ if (order !== undefined) {
627
+ localVarQueryParameter['order'] = order;
628
+ }
629
+
630
+ if (expand !== undefined) {
631
+ localVarQueryParameter['expand'] = expand;
632
+ }
633
+
634
+ if (filters !== undefined) {
635
+ localVarQueryParameter['filters'] = filters;
636
+ }
637
+
638
+
639
+
640
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
642
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
643
+
644
+ return {
645
+ url: toPathString(localVarUrlObj),
646
+ options: localVarRequestOptions,
647
+ };
648
+ },
649
+ /**
650
+ * 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`.
651
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
652
+ * @param {number} [pageSize]
653
+ * @param {string} [pageToken]
654
+ * @param {string} [filter]
655
+ * @param {string} [search]
656
+ * @param {string} [order]
657
+ * @param {string} [expand]
658
+ * @param {string} [filters]
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ */
662
+ groupTariffServiceListGroupGenerations: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
663
+ const localVarPath = `/insuranceservice/v2/group-tariff-generations`;
664
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
665
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
666
+ let baseOptions;
667
+ let baseAccessToken;
668
+ if (configuration) {
669
+ baseOptions = configuration.baseOptions;
670
+ baseAccessToken = configuration.accessToken;
671
+ }
672
+
673
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
674
+ const localVarHeaderParameter = {} as any;
675
+ const localVarQueryParameter = {} as any;
676
+
677
+ if (pageSize !== undefined) {
678
+ localVarQueryParameter['pageSize'] = pageSize;
679
+ }
680
+
681
+ if (pageToken !== undefined) {
682
+ localVarQueryParameter['pageToken'] = pageToken;
683
+ }
684
+
685
+ if (filter !== undefined) {
686
+ localVarQueryParameter['filter'] = filter;
687
+ }
688
+
689
+ if (search !== undefined) {
690
+ localVarQueryParameter['search'] = search;
691
+ }
692
+
693
+ if (order !== undefined) {
694
+ localVarQueryParameter['order'] = order;
695
+ }
696
+
697
+ if (expand !== undefined) {
698
+ localVarQueryParameter['expand'] = expand;
699
+ }
700
+
701
+ if (filters !== undefined) {
702
+ localVarQueryParameter['filters'] = filters;
703
+ }
704
+
705
+
706
+
707
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
708
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
709
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
710
+
711
+ return {
712
+ url: toPathString(localVarUrlObj),
713
+ options: localVarRequestOptions,
714
+ };
715
+ },
716
+ /**
717
+ * 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`.
718
+ * @summary Lists the group tariffs.
719
+ * @param {number} [pageSize]
720
+ * @param {string} [pageToken]
721
+ * @param {string} [filter]
722
+ * @param {string} [search]
723
+ * @param {string} [order]
724
+ * @param {string} [expand]
725
+ * @param {string} [filters]
726
+ * @param {*} [options] Override http request option.
727
+ * @throws {RequiredError}
728
+ */
729
+ groupTariffServiceListGroupTariffs: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
730
+ const localVarPath = `/insuranceservice/v2/group-tariffs`;
731
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
732
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
733
+ let baseOptions;
734
+ let baseAccessToken;
735
+ if (configuration) {
736
+ baseOptions = configuration.baseOptions;
737
+ baseAccessToken = configuration.accessToken;
738
+ }
739
+
740
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
741
+ const localVarHeaderParameter = {} as any;
742
+ const localVarQueryParameter = {} as any;
743
+
744
+ if (pageSize !== undefined) {
745
+ localVarQueryParameter['pageSize'] = pageSize;
746
+ }
747
+
748
+ if (pageToken !== undefined) {
749
+ localVarQueryParameter['pageToken'] = pageToken;
750
+ }
751
+
752
+ if (filter !== undefined) {
753
+ localVarQueryParameter['filter'] = filter;
754
+ }
755
+
756
+ if (search !== undefined) {
757
+ localVarQueryParameter['search'] = search;
758
+ }
759
+
760
+ if (order !== undefined) {
761
+ localVarQueryParameter['order'] = order;
762
+ }
763
+
764
+ if (expand !== undefined) {
765
+ localVarQueryParameter['expand'] = expand;
766
+ }
767
+
768
+ if (filters !== undefined) {
769
+ localVarQueryParameter['filters'] = filters;
770
+ }
771
+
772
+
773
+
774
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
775
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
776
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
777
+
778
+ return {
779
+ url: toPathString(localVarUrlObj),
780
+ options: localVarRequestOptions,
781
+ };
782
+ },
783
+ /**
784
+ * 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.
785
+ * @summary Lists the versions of a group generation, oldest first.
786
+ * @param {number} [pageSize]
787
+ * @param {string} [pageToken]
788
+ * @param {string} [filter]
789
+ * @param {string} [search]
790
+ * @param {string} [order]
791
+ * @param {string} [expand]
792
+ * @param {string} [filters]
793
+ * @param {*} [options] Override http request option.
794
+ * @throws {RequiredError}
795
+ */
796
+ groupTariffServiceListGroupVersions: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
797
+ const localVarPath = `/insuranceservice/v2/group-tariff-versions`;
798
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
799
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
800
+ let baseOptions;
801
+ let baseAccessToken;
802
+ if (configuration) {
803
+ baseOptions = configuration.baseOptions;
804
+ baseAccessToken = configuration.accessToken;
805
+ }
806
+
807
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
808
+ const localVarHeaderParameter = {} as any;
809
+ const localVarQueryParameter = {} as any;
810
+
811
+ if (pageSize !== undefined) {
812
+ localVarQueryParameter['pageSize'] = pageSize;
813
+ }
814
+
815
+ if (pageToken !== undefined) {
816
+ localVarQueryParameter['pageToken'] = pageToken;
817
+ }
818
+
819
+ if (filter !== undefined) {
820
+ localVarQueryParameter['filter'] = filter;
821
+ }
822
+
823
+ if (search !== undefined) {
824
+ localVarQueryParameter['search'] = search;
825
+ }
826
+
827
+ if (order !== undefined) {
828
+ localVarQueryParameter['order'] = order;
829
+ }
830
+
831
+ if (expand !== undefined) {
832
+ localVarQueryParameter['expand'] = expand;
833
+ }
834
+
835
+ if (filters !== undefined) {
836
+ localVarQueryParameter['filters'] = filters;
837
+ }
838
+
839
+
840
+
841
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
842
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
843
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
844
+
845
+ return {
846
+ url: toPathString(localVarUrlObj),
847
+ options: localVarRequestOptions,
848
+ };
849
+ },
850
+ /**
851
+ * 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.
852
+ * @summary Publishes a draft configuration asset.
853
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
854
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
855
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
856
+ * @param {object} body
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ groupTariffServicePublishGroupCoreConfig: async (groupTariffSlug: string, name: string, ifMatch: string, body: object, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
861
+ // verify required parameter 'groupTariffSlug' is not null or undefined
862
+ assertParamExists('groupTariffServicePublishGroupCoreConfig', 'groupTariffSlug', groupTariffSlug)
863
+ // verify required parameter 'name' is not null or undefined
864
+ assertParamExists('groupTariffServicePublishGroupCoreConfig', 'name', name)
865
+ // verify required parameter 'ifMatch' is not null or undefined
866
+ assertParamExists('groupTariffServicePublishGroupCoreConfig', 'ifMatch', ifMatch)
867
+ // verify required parameter 'body' is not null or undefined
868
+ assertParamExists('groupTariffServicePublishGroupCoreConfig', 'body', body)
869
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}:publish`
870
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
871
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
872
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
873
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
874
+ let baseOptions;
875
+ let baseAccessToken;
876
+ if (configuration) {
877
+ baseOptions = configuration.baseOptions;
878
+ baseAccessToken = configuration.accessToken;
879
+ }
880
+
881
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
882
+ const localVarHeaderParameter = {} as any;
883
+ const localVarQueryParameter = {} as any;
884
+
885
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
886
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
887
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
888
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
889
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
890
+ if (ifMatchValue || ifMatchKeepEmpty) {
891
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
892
+ }
893
+
894
+
895
+
896
+ localVarHeaderParameter['Content-Type'] = 'application/json';
897
+
898
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
899
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
900
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
901
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
902
+
903
+ return {
904
+ url: toPathString(localVarUrlObj),
905
+ options: localVarRequestOptions,
906
+ };
907
+ },
908
+ /**
909
+ * 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.
910
+ * @summary Publishes a group version when the publish gate passes.
911
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
912
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
913
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
914
+ * @param {PublishGroupVersionBody} body
915
+ * @param {*} [options] Override http request option.
916
+ * @throws {RequiredError}
917
+ */
918
+ groupTariffServicePublishGroupVersion: async (groupTariffSlug: string, generation: string, ifMatch: string, body: PublishGroupVersionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
919
+ // verify required parameter 'groupTariffSlug' is not null or undefined
920
+ assertParamExists('groupTariffServicePublishGroupVersion', 'groupTariffSlug', groupTariffSlug)
921
+ // verify required parameter 'generation' is not null or undefined
922
+ assertParamExists('groupTariffServicePublishGroupVersion', 'generation', generation)
923
+ // verify required parameter 'ifMatch' is not null or undefined
924
+ assertParamExists('groupTariffServicePublishGroupVersion', 'ifMatch', ifMatch)
925
+ // verify required parameter 'body' is not null or undefined
926
+ assertParamExists('groupTariffServicePublishGroupVersion', 'body', body)
927
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions:publish`
928
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
929
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)));
930
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
931
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
932
+ let baseOptions;
933
+ let baseAccessToken;
934
+ if (configuration) {
935
+ baseOptions = configuration.baseOptions;
936
+ baseAccessToken = configuration.accessToken;
937
+ }
938
+
939
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
940
+ const localVarHeaderParameter = {} as any;
941
+ const localVarQueryParameter = {} as any;
942
+
943
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
944
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
945
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
946
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
947
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
948
+ if (ifMatchValue || ifMatchKeepEmpty) {
949
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
950
+ }
951
+
952
+
953
+
954
+ localVarHeaderParameter['Content-Type'] = 'application/json';
955
+
956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
958
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
959
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
960
+
961
+ return {
962
+ url: toPathString(localVarUrlObj),
963
+ options: localVarRequestOptions,
964
+ };
965
+ },
966
+ /**
967
+ * 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.
968
+ * @summary Makes a published version of a generation its active version.
969
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
970
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
971
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
972
+ * @param {SetActiveGroupVersionBody} body
973
+ * @param {*} [options] Override http request option.
974
+ * @throws {RequiredError}
975
+ */
976
+ groupTariffServiceSetActiveGroupVersion: async (groupTariffSlug: string, generation: string, ifMatch: string, body: SetActiveGroupVersionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
977
+ // verify required parameter 'groupTariffSlug' is not null or undefined
978
+ assertParamExists('groupTariffServiceSetActiveGroupVersion', 'groupTariffSlug', groupTariffSlug)
979
+ // verify required parameter 'generation' is not null or undefined
980
+ assertParamExists('groupTariffServiceSetActiveGroupVersion', 'generation', generation)
981
+ // verify required parameter 'ifMatch' is not null or undefined
982
+ assertParamExists('groupTariffServiceSetActiveGroupVersion', 'ifMatch', ifMatch)
983
+ // verify required parameter 'body' is not null or undefined
984
+ assertParamExists('groupTariffServiceSetActiveGroupVersion', 'body', body)
985
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}:activate`
986
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
987
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)));
988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
990
+ let baseOptions;
991
+ let baseAccessToken;
992
+ if (configuration) {
993
+ baseOptions = configuration.baseOptions;
994
+ baseAccessToken = configuration.accessToken;
995
+ }
996
+
997
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
998
+ const localVarHeaderParameter = {} as any;
999
+ const localVarQueryParameter = {} as any;
1000
+
1001
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
1002
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
1003
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1004
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1005
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
1006
+ if (ifMatchValue || ifMatchKeepEmpty) {
1007
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1008
+ }
1009
+
1010
+
1011
+
1012
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1013
+
1014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1017
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1018
+
1019
+ return {
1020
+ url: toPathString(localVarUrlObj),
1021
+ options: localVarRequestOptions,
1022
+ };
1023
+ },
1024
+ /**
1025
+ * 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.
1026
+ * @summary Moves a group version to another status.
1027
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1028
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1029
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
1030
+ * @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.
1031
+ * @param {SetGroupVersionStatusBody} body
1032
+ * @param {*} [options] Override http request option.
1033
+ * @throws {RequiredError}
1034
+ */
1035
+ groupTariffServiceSetGroupVersionStatus: async (groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: SetGroupVersionStatusBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1036
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1037
+ assertParamExists('groupTariffServiceSetGroupVersionStatus', 'groupTariffSlug', groupTariffSlug)
1038
+ // verify required parameter 'generation' is not null or undefined
1039
+ assertParamExists('groupTariffServiceSetGroupVersionStatus', 'generation', generation)
1040
+ // verify required parameter 'version' is not null or undefined
1041
+ assertParamExists('groupTariffServiceSetGroupVersionStatus', 'version', version)
1042
+ // verify required parameter 'ifMatch' is not null or undefined
1043
+ assertParamExists('groupTariffServiceSetGroupVersionStatus', 'ifMatch', ifMatch)
1044
+ // verify required parameter 'body' is not null or undefined
1045
+ assertParamExists('groupTariffServiceSetGroupVersionStatus', 'body', body)
1046
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}:setStatus`
1047
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
1048
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)))
1049
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
1050
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1051
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1052
+ let baseOptions;
1053
+ let baseAccessToken;
1054
+ if (configuration) {
1055
+ baseOptions = configuration.baseOptions;
1056
+ baseAccessToken = configuration.accessToken;
1057
+ }
1058
+
1059
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1060
+ const localVarHeaderParameter = {} as any;
1061
+ const localVarQueryParameter = {} as any;
1062
+
1063
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
1064
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
1065
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1066
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1067
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
1068
+ if (ifMatchValue || ifMatchKeepEmpty) {
1069
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1070
+ }
1071
+
1072
+
1073
+
1074
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1075
+
1076
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1077
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1078
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1079
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1080
+
1081
+ return {
1082
+ url: toPathString(localVarUrlObj),
1083
+ options: localVarRequestOptions,
1084
+ };
1085
+ },
1086
+ /**
1087
+ * 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.
1088
+ * @summary Rewrites the content of a draft configuration asset.
1089
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1090
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1091
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1092
+ * @param {UpdateGroupCoreConfigBody} body
1093
+ * @param {*} [options] Override http request option.
1094
+ * @throws {RequiredError}
1095
+ */
1096
+ groupTariffServiceUpdateGroupCoreConfig: async (groupTariffSlug: string, name: string, ifMatch: string, body: UpdateGroupCoreConfigBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1097
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1098
+ assertParamExists('groupTariffServiceUpdateGroupCoreConfig', 'groupTariffSlug', groupTariffSlug)
1099
+ // verify required parameter 'name' is not null or undefined
1100
+ assertParamExists('groupTariffServiceUpdateGroupCoreConfig', 'name', name)
1101
+ // verify required parameter 'ifMatch' is not null or undefined
1102
+ assertParamExists('groupTariffServiceUpdateGroupCoreConfig', 'ifMatch', ifMatch)
1103
+ // verify required parameter 'body' is not null or undefined
1104
+ assertParamExists('groupTariffServiceUpdateGroupCoreConfig', 'body', body)
1105
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/group-core-configs/{name}`
1106
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
1107
+ .replace(`{${"name"}}`, encodeURIComponent(String(name)));
1108
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1109
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1110
+ let baseOptions;
1111
+ let baseAccessToken;
1112
+ if (configuration) {
1113
+ baseOptions = configuration.baseOptions;
1114
+ baseAccessToken = configuration.accessToken;
1115
+ }
1116
+
1117
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1118
+ const localVarHeaderParameter = {} as any;
1119
+ const localVarQueryParameter = {} as any;
1120
+
1121
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
1122
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
1123
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1124
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1125
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
1126
+ if (ifMatchValue || ifMatchKeepEmpty) {
1127
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1128
+ }
1129
+
1130
+
1131
+
1132
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1133
+
1134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1137
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1138
+
1139
+ return {
1140
+ url: toPathString(localVarUrlObj),
1141
+ options: localVarRequestOptions,
1142
+ };
1143
+ },
1144
+ /**
1145
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1146
+ * @summary Rewrites the manifest of a draft group version.
1147
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1148
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1149
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1150
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1151
+ * @param {UpdateGroupVersionBody} body
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ */
1155
+ groupTariffServiceUpdateGroupVersion: async (groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: UpdateGroupVersionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1156
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1157
+ assertParamExists('groupTariffServiceUpdateGroupVersion', 'groupTariffSlug', groupTariffSlug)
1158
+ // verify required parameter 'generation' is not null or undefined
1159
+ assertParamExists('groupTariffServiceUpdateGroupVersion', 'generation', generation)
1160
+ // verify required parameter 'version' is not null or undefined
1161
+ assertParamExists('groupTariffServiceUpdateGroupVersion', 'version', version)
1162
+ // verify required parameter 'ifMatch' is not null or undefined
1163
+ assertParamExists('groupTariffServiceUpdateGroupVersion', 'ifMatch', ifMatch)
1164
+ // verify required parameter 'body' is not null or undefined
1165
+ assertParamExists('groupTariffServiceUpdateGroupVersion', 'body', body)
1166
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions/{version}`
1167
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
1168
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)))
1169
+ .replace(`{${"version"}}`, encodeURIComponent(String(version)));
1170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1172
+ let baseOptions;
1173
+ let baseAccessToken;
1174
+ if (configuration) {
1175
+ baseOptions = configuration.baseOptions;
1176
+ baseAccessToken = configuration.accessToken;
1177
+ }
1178
+
1179
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1180
+ const localVarHeaderParameter = {} as any;
1181
+ const localVarQueryParameter = {} as any;
1182
+
1183
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
1184
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
1185
+ const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
1186
+ const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
1187
+ const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
1188
+ if (ifMatchValue || ifMatchKeepEmpty) {
1189
+ localVarHeaderParameter['If-Match'] = String(ifMatchValue);
1190
+ }
1191
+
1192
+
1193
+
1194
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1195
+
1196
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1197
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1198
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1199
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1200
+
1201
+ return {
1202
+ url: toPathString(localVarUrlObj),
1203
+ options: localVarRequestOptions,
1204
+ };
1205
+ },
1206
+ /**
1207
+ * 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.
1208
+ * @summary Checks a manifest against the publish gate without saving anything.
1209
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1210
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1211
+ * @param {ValidateGroupVersionBody} body
1212
+ * @param {*} [options] Override http request option.
1213
+ * @throws {RequiredError}
1214
+ */
1215
+ groupTariffServiceValidateGroupVersion: async (groupTariffSlug: string, generation: string, body: ValidateGroupVersionBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1216
+ // verify required parameter 'groupTariffSlug' is not null or undefined
1217
+ assertParamExists('groupTariffServiceValidateGroupVersion', 'groupTariffSlug', groupTariffSlug)
1218
+ // verify required parameter 'generation' is not null or undefined
1219
+ assertParamExists('groupTariffServiceValidateGroupVersion', 'generation', generation)
1220
+ // verify required parameter 'body' is not null or undefined
1221
+ assertParamExists('groupTariffServiceValidateGroupVersion', 'body', body)
1222
+ const localVarPath = `/insuranceservice/v2/group-tariffs/{groupTariffSlug}/generations/{generation}/versions:validate`
1223
+ .replace(`{${"groupTariffSlug"}}`, encodeURIComponent(String(groupTariffSlug)))
1224
+ .replace(`{${"generation"}}`, encodeURIComponent(String(generation)));
1225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1226
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1227
+ let baseOptions;
1228
+ let baseAccessToken;
1229
+ if (configuration) {
1230
+ baseOptions = configuration.baseOptions;
1231
+ baseAccessToken = configuration.accessToken;
1232
+ }
1233
+
1234
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1235
+ const localVarHeaderParameter = {} as any;
1236
+ const localVarQueryParameter = {} as any;
1237
+
1238
+
1239
+
1240
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1241
+
1242
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1243
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1244
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1245
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1246
+
1247
+ return {
1248
+ url: toPathString(localVarUrlObj),
1249
+ options: localVarRequestOptions,
1250
+ };
1251
+ },
1252
+ }
1253
+ };
1254
+
1255
+ /**
1256
+ * GroupTariffsApi - functional programming interface
1257
+ * @export
1258
+ */
1259
+ export const GroupTariffsApiFp = function(configuration?: Configuration) {
1260
+ const localVarAxiosParamCreator = GroupTariffsApiAxiosParamCreator(configuration)
1261
+ return {
1262
+ /**
1263
+ * 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.
1264
+ * @summary Creates a draft configuration asset of a group tariff.
1265
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1266
+ * @param {CreateGroupCoreConfigBody} body
1267
+ * @param {*} [options] Override http request option.
1268
+ * @throws {RequiredError}
1269
+ */
1270
+ async groupTariffServiceCreateGroupCoreConfig(groupTariffSlug: string, body: CreateGroupCoreConfigBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateGroupCoreConfigResponse>> {
1271
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceCreateGroupCoreConfig(groupTariffSlug, body, options);
1272
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1273
+ },
1274
+ /**
1275
+ * 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`.
1276
+ * @summary Adds a generation to a group tariff.
1277
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1278
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
1279
+ * @param {CreateGroupGenerationBody} body
1280
+ * @param {*} [options] Override http request option.
1281
+ * @throws {RequiredError}
1282
+ */
1283
+ async groupTariffServiceCreateGroupGeneration(groupTariffSlug: string, ifMatch: string, body: CreateGroupGenerationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateGroupGenerationResponse>> {
1284
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceCreateGroupGeneration(groupTariffSlug, ifMatch, body, options);
1285
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1286
+ },
1287
+ /**
1288
+ * 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.
1289
+ * @summary Creates a group tariff that references one tariff.
1290
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ async groupTariffServiceCreateGroupTariff(body: CreateGroupTariffRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateGroupTariffResponse>> {
1295
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceCreateGroupTariff(body, options);
1296
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1297
+ },
1298
+ /**
1299
+ * 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.
1300
+ * @summary Stores a draft group version.
1301
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1302
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1303
+ * @param {CreateGroupVersionBody} body
1304
+ * @param {*} [options] Override http request option.
1305
+ * @throws {RequiredError}
1306
+ */
1307
+ async groupTariffServiceCreateGroupVersion(groupTariffSlug: string, generation: string, body: CreateGroupVersionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateGroupVersionResponse>> {
1308
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceCreateGroupVersion(groupTariffSlug, generation, body, options);
1309
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1310
+ },
1311
+ /**
1312
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
1313
+ * @summary Gives up a draft group version.
1314
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1315
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1316
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1317
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1318
+ * @param {object} body
1319
+ * @param {*} [options] Override http request option.
1320
+ * @throws {RequiredError}
1321
+ */
1322
+ async groupTariffServiceDiscardGroupVersion(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DiscardGroupVersionResponse>> {
1323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceDiscardGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options);
1324
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1325
+ },
1326
+ /**
1327
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
1328
+ * @summary Returns one configuration asset of a group tariff.
1329
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1330
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1331
+ * @param {*} [options] Override http request option.
1332
+ * @throws {RequiredError}
1333
+ */
1334
+ async groupTariffServiceGetGroupCoreConfig(groupTariffSlug: string, name: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupCoreConfigResponse>> {
1335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupCoreConfig(groupTariffSlug, name, options);
1336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1337
+ },
1338
+ /**
1339
+ * 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.
1340
+ * @summary Returns the differences between a group version and an earlier one.
1341
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1342
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1343
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
1344
+ * @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.
1345
+ * @param {*} [options] Override http request option.
1346
+ * @throws {RequiredError}
1347
+ */
1348
+ async groupTariffServiceGetGroupDiff(groupTariffSlug: string, generation: string, version: string, againstVersion?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupDiffResponse>> {
1349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupDiff(groupTariffSlug, generation, version, againstVersion, options);
1350
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1351
+ },
1352
+ /**
1353
+ * 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.
1354
+ * @summary Returns one generation of a group tariff.
1355
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1356
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ async groupTariffServiceGetGroupGeneration(groupTariffSlug: string, generation: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupGenerationResponse>> {
1361
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupGeneration(groupTariffSlug, generation, options);
1362
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1363
+ },
1364
+ /**
1365
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
1366
+ * @summary Returns one group tariff.
1367
+ * @param {string} slug The group tariff\&#39;s slug.
1368
+ * @param {*} [options] Override http request option.
1369
+ * @throws {RequiredError}
1370
+ */
1371
+ async groupTariffServiceGetGroupTariff(slug: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupTariffResponse>> {
1372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupTariff(slug, options);
1373
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1374
+ },
1375
+ /**
1376
+ * 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`.
1377
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
1378
+ * @param {*} [options] Override http request option.
1379
+ * @throws {RequiredError}
1380
+ */
1381
+ async groupTariffServiceGetGroupTariffFilterCatalog(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupTariffFilterCatalogResponse>> {
1382
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupTariffFilterCatalog(options);
1383
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1384
+ },
1385
+ /**
1386
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
1387
+ * @summary Returns one version of a group generation.
1388
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1389
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1390
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
1391
+ * @param {*} [options] Override http request option.
1392
+ * @throws {RequiredError}
1393
+ */
1394
+ async groupTariffServiceGetGroupVersion(groupTariffSlug: string, generation: string, version: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetGroupVersionResponse>> {
1395
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceGetGroupVersion(groupTariffSlug, generation, version, options);
1396
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1397
+ },
1398
+ /**
1399
+ * 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`.
1400
+ * @summary Lists the configuration assets of a group tariff, oldest first.
1401
+ * @param {number} [pageSize]
1402
+ * @param {string} [pageToken]
1403
+ * @param {string} [filter]
1404
+ * @param {string} [search]
1405
+ * @param {string} [order]
1406
+ * @param {string} [expand]
1407
+ * @param {string} [filters]
1408
+ * @param {*} [options] Override http request option.
1409
+ * @throws {RequiredError}
1410
+ */
1411
+ async groupTariffServiceListGroupCoreConfigs(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGroupCoreConfigsResponse>> {
1412
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceListGroupCoreConfigs(pageSize, pageToken, filter, search, order, expand, filters, options);
1413
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1414
+ },
1415
+ /**
1416
+ * 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`.
1417
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
1418
+ * @param {number} [pageSize]
1419
+ * @param {string} [pageToken]
1420
+ * @param {string} [filter]
1421
+ * @param {string} [search]
1422
+ * @param {string} [order]
1423
+ * @param {string} [expand]
1424
+ * @param {string} [filters]
1425
+ * @param {*} [options] Override http request option.
1426
+ * @throws {RequiredError}
1427
+ */
1428
+ async groupTariffServiceListGroupGenerations(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGroupGenerationsResponse>> {
1429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceListGroupGenerations(pageSize, pageToken, filter, search, order, expand, filters, options);
1430
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1431
+ },
1432
+ /**
1433
+ * 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`.
1434
+ * @summary Lists the group tariffs.
1435
+ * @param {number} [pageSize]
1436
+ * @param {string} [pageToken]
1437
+ * @param {string} [filter]
1438
+ * @param {string} [search]
1439
+ * @param {string} [order]
1440
+ * @param {string} [expand]
1441
+ * @param {string} [filters]
1442
+ * @param {*} [options] Override http request option.
1443
+ * @throws {RequiredError}
1444
+ */
1445
+ async groupTariffServiceListGroupTariffs(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGroupTariffsResponse>> {
1446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceListGroupTariffs(pageSize, pageToken, filter, search, order, expand, filters, options);
1447
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1448
+ },
1449
+ /**
1450
+ * 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.
1451
+ * @summary Lists the versions of a group generation, oldest first.
1452
+ * @param {number} [pageSize]
1453
+ * @param {string} [pageToken]
1454
+ * @param {string} [filter]
1455
+ * @param {string} [search]
1456
+ * @param {string} [order]
1457
+ * @param {string} [expand]
1458
+ * @param {string} [filters]
1459
+ * @param {*} [options] Override http request option.
1460
+ * @throws {RequiredError}
1461
+ */
1462
+ async groupTariffServiceListGroupVersions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListGroupVersionsResponse>> {
1463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceListGroupVersions(pageSize, pageToken, filter, search, order, expand, filters, options);
1464
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1465
+ },
1466
+ /**
1467
+ * 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.
1468
+ * @summary Publishes a draft configuration asset.
1469
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1470
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1471
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1472
+ * @param {object} body
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ async groupTariffServicePublishGroupCoreConfig(groupTariffSlug: string, name: string, ifMatch: string, body: object, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishGroupCoreConfigResponse>> {
1477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServicePublishGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options);
1478
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1479
+ },
1480
+ /**
1481
+ * 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.
1482
+ * @summary Publishes a group version when the publish gate passes.
1483
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1484
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1485
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1486
+ * @param {PublishGroupVersionBody} body
1487
+ * @param {*} [options] Override http request option.
1488
+ * @throws {RequiredError}
1489
+ */
1490
+ async groupTariffServicePublishGroupVersion(groupTariffSlug: string, generation: string, ifMatch: string, body: PublishGroupVersionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PublishGroupVersionResponse>> {
1491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServicePublishGroupVersion(groupTariffSlug, generation, ifMatch, body, options);
1492
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1493
+ },
1494
+ /**
1495
+ * 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.
1496
+ * @summary Makes a published version of a generation its active version.
1497
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1498
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1499
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1500
+ * @param {SetActiveGroupVersionBody} body
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ async groupTariffServiceSetActiveGroupVersion(groupTariffSlug: string, generation: string, ifMatch: string, body: SetActiveGroupVersionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetActiveGroupVersionResponse>> {
1505
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceSetActiveGroupVersion(groupTariffSlug, generation, ifMatch, body, options);
1506
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1507
+ },
1508
+ /**
1509
+ * 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.
1510
+ * @summary Moves a group version to another status.
1511
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1512
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1513
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
1514
+ * @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.
1515
+ * @param {SetGroupVersionStatusBody} body
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ */
1519
+ async groupTariffServiceSetGroupVersionStatus(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: SetGroupVersionStatusBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetGroupVersionStatusResponse>> {
1520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceSetGroupVersionStatus(groupTariffSlug, generation, version, ifMatch, body, options);
1521
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1522
+ },
1523
+ /**
1524
+ * 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.
1525
+ * @summary Rewrites the content of a draft configuration asset.
1526
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1527
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1528
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1529
+ * @param {UpdateGroupCoreConfigBody} body
1530
+ * @param {*} [options] Override http request option.
1531
+ * @throws {RequiredError}
1532
+ */
1533
+ async groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug: string, name: string, ifMatch: string, body: UpdateGroupCoreConfigBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateGroupCoreConfigResponse>> {
1534
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options);
1535
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1536
+ },
1537
+ /**
1538
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1539
+ * @summary Rewrites the manifest of a draft group version.
1540
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1541
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1542
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1543
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1544
+ * @param {UpdateGroupVersionBody} body
1545
+ * @param {*} [options] Override http request option.
1546
+ * @throws {RequiredError}
1547
+ */
1548
+ async groupTariffServiceUpdateGroupVersion(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: UpdateGroupVersionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateGroupVersionResponse>> {
1549
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceUpdateGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options);
1550
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1551
+ },
1552
+ /**
1553
+ * 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.
1554
+ * @summary Checks a manifest against the publish gate without saving anything.
1555
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1556
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1557
+ * @param {ValidateGroupVersionBody} body
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ async groupTariffServiceValidateGroupVersion(groupTariffSlug: string, generation: string, body: ValidateGroupVersionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateGroupVersionResponse>> {
1562
+ const localVarAxiosArgs = await localVarAxiosParamCreator.groupTariffServiceValidateGroupVersion(groupTariffSlug, generation, body, options);
1563
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1564
+ },
1565
+ }
1566
+ };
1567
+
1568
+ /**
1569
+ * GroupTariffsApi - factory interface
1570
+ * @export
1571
+ */
1572
+ export const GroupTariffsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1573
+ const localVarFp = GroupTariffsApiFp(configuration)
1574
+ return {
1575
+ /**
1576
+ * 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.
1577
+ * @summary Creates a draft configuration asset of a group tariff.
1578
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1579
+ * @param {CreateGroupCoreConfigBody} body
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ groupTariffServiceCreateGroupCoreConfig(groupTariffSlug: string, body: CreateGroupCoreConfigBody, options?: any): AxiosPromise<CreateGroupCoreConfigResponse> {
1584
+ return localVarFp.groupTariffServiceCreateGroupCoreConfig(groupTariffSlug, body, options).then((request) => request(axios, basePath));
1585
+ },
1586
+ /**
1587
+ * 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`.
1588
+ * @summary Adds a generation to a group tariff.
1589
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1590
+ * @param {string} ifMatch The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
1591
+ * @param {CreateGroupGenerationBody} body
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ */
1595
+ groupTariffServiceCreateGroupGeneration(groupTariffSlug: string, ifMatch: string, body: CreateGroupGenerationBody, options?: any): AxiosPromise<CreateGroupGenerationResponse> {
1596
+ return localVarFp.groupTariffServiceCreateGroupGeneration(groupTariffSlug, ifMatch, body, options).then((request) => request(axios, basePath));
1597
+ },
1598
+ /**
1599
+ * 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.
1600
+ * @summary Creates a group tariff that references one tariff.
1601
+ * @param {CreateGroupTariffRequest} body The request of &#x60;CreateGroupTariff&#x60;.
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ */
1605
+ groupTariffServiceCreateGroupTariff(body: CreateGroupTariffRequest, options?: any): AxiosPromise<CreateGroupTariffResponse> {
1606
+ return localVarFp.groupTariffServiceCreateGroupTariff(body, options).then((request) => request(axios, basePath));
1607
+ },
1608
+ /**
1609
+ * 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.
1610
+ * @summary Stores a draft group version.
1611
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1612
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1613
+ * @param {CreateGroupVersionBody} body
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ groupTariffServiceCreateGroupVersion(groupTariffSlug: string, generation: string, body: CreateGroupVersionBody, options?: any): AxiosPromise<CreateGroupVersionResponse> {
1618
+ return localVarFp.groupTariffServiceCreateGroupVersion(groupTariffSlug, generation, body, options).then((request) => request(axios, basePath));
1619
+ },
1620
+ /**
1621
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
1622
+ * @summary Gives up a draft group version.
1623
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1624
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1625
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1626
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1627
+ * @param {object} body
1628
+ * @param {*} [options] Override http request option.
1629
+ * @throws {RequiredError}
1630
+ */
1631
+ groupTariffServiceDiscardGroupVersion(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: object, options?: any): AxiosPromise<DiscardGroupVersionResponse> {
1632
+ return localVarFp.groupTariffServiceDiscardGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options).then((request) => request(axios, basePath));
1633
+ },
1634
+ /**
1635
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
1636
+ * @summary Returns one configuration asset of a group tariff.
1637
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1638
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1639
+ * @param {*} [options] Override http request option.
1640
+ * @throws {RequiredError}
1641
+ */
1642
+ groupTariffServiceGetGroupCoreConfig(groupTariffSlug: string, name: string, options?: any): AxiosPromise<GetGroupCoreConfigResponse> {
1643
+ return localVarFp.groupTariffServiceGetGroupCoreConfig(groupTariffSlug, name, options).then((request) => request(axios, basePath));
1644
+ },
1645
+ /**
1646
+ * 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.
1647
+ * @summary Returns the differences between a group version and an earlier one.
1648
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1649
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1650
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;.
1651
+ * @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.
1652
+ * @param {*} [options] Override http request option.
1653
+ * @throws {RequiredError}
1654
+ */
1655
+ groupTariffServiceGetGroupDiff(groupTariffSlug: string, generation: string, version: string, againstVersion?: string, options?: any): AxiosPromise<GetGroupDiffResponse> {
1656
+ return localVarFp.groupTariffServiceGetGroupDiff(groupTariffSlug, generation, version, againstVersion, options).then((request) => request(axios, basePath));
1657
+ },
1658
+ /**
1659
+ * 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.
1660
+ * @summary Returns one generation of a group tariff.
1661
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1662
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1663
+ * @param {*} [options] Override http request option.
1664
+ * @throws {RequiredError}
1665
+ */
1666
+ groupTariffServiceGetGroupGeneration(groupTariffSlug: string, generation: string, options?: any): AxiosPromise<GetGroupGenerationResponse> {
1667
+ return localVarFp.groupTariffServiceGetGroupGeneration(groupTariffSlug, generation, options).then((request) => request(axios, basePath));
1668
+ },
1669
+ /**
1670
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
1671
+ * @summary Returns one group tariff.
1672
+ * @param {string} slug The group tariff\&#39;s slug.
1673
+ * @param {*} [options] Override http request option.
1674
+ * @throws {RequiredError}
1675
+ */
1676
+ groupTariffServiceGetGroupTariff(slug: string, options?: any): AxiosPromise<GetGroupTariffResponse> {
1677
+ return localVarFp.groupTariffServiceGetGroupTariff(slug, options).then((request) => request(axios, basePath));
1678
+ },
1679
+ /**
1680
+ * 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`.
1681
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
1682
+ * @param {*} [options] Override http request option.
1683
+ * @throws {RequiredError}
1684
+ */
1685
+ groupTariffServiceGetGroupTariffFilterCatalog(options?: any): AxiosPromise<GetGroupTariffFilterCatalogResponse> {
1686
+ return localVarFp.groupTariffServiceGetGroupTariffFilterCatalog(options).then((request) => request(axios, basePath));
1687
+ },
1688
+ /**
1689
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
1690
+ * @summary Returns one version of a group generation.
1691
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1692
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1693
+ * @param {string} version The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
1694
+ * @param {*} [options] Override http request option.
1695
+ * @throws {RequiredError}
1696
+ */
1697
+ groupTariffServiceGetGroupVersion(groupTariffSlug: string, generation: string, version: string, options?: any): AxiosPromise<GetGroupVersionResponse> {
1698
+ return localVarFp.groupTariffServiceGetGroupVersion(groupTariffSlug, generation, version, options).then((request) => request(axios, basePath));
1699
+ },
1700
+ /**
1701
+ * 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`.
1702
+ * @summary Lists the configuration assets of a group tariff, oldest first.
1703
+ * @param {number} [pageSize]
1704
+ * @param {string} [pageToken]
1705
+ * @param {string} [filter]
1706
+ * @param {string} [search]
1707
+ * @param {string} [order]
1708
+ * @param {string} [expand]
1709
+ * @param {string} [filters]
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ */
1713
+ groupTariffServiceListGroupCoreConfigs(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListGroupCoreConfigsResponse> {
1714
+ return localVarFp.groupTariffServiceListGroupCoreConfigs(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1715
+ },
1716
+ /**
1717
+ * 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`.
1718
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
1719
+ * @param {number} [pageSize]
1720
+ * @param {string} [pageToken]
1721
+ * @param {string} [filter]
1722
+ * @param {string} [search]
1723
+ * @param {string} [order]
1724
+ * @param {string} [expand]
1725
+ * @param {string} [filters]
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ */
1729
+ groupTariffServiceListGroupGenerations(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListGroupGenerationsResponse> {
1730
+ return localVarFp.groupTariffServiceListGroupGenerations(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1731
+ },
1732
+ /**
1733
+ * 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`.
1734
+ * @summary Lists the group tariffs.
1735
+ * @param {number} [pageSize]
1736
+ * @param {string} [pageToken]
1737
+ * @param {string} [filter]
1738
+ * @param {string} [search]
1739
+ * @param {string} [order]
1740
+ * @param {string} [expand]
1741
+ * @param {string} [filters]
1742
+ * @param {*} [options] Override http request option.
1743
+ * @throws {RequiredError}
1744
+ */
1745
+ groupTariffServiceListGroupTariffs(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListGroupTariffsResponse> {
1746
+ return localVarFp.groupTariffServiceListGroupTariffs(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1747
+ },
1748
+ /**
1749
+ * 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.
1750
+ * @summary Lists the versions of a group generation, oldest first.
1751
+ * @param {number} [pageSize]
1752
+ * @param {string} [pageToken]
1753
+ * @param {string} [filter]
1754
+ * @param {string} [search]
1755
+ * @param {string} [order]
1756
+ * @param {string} [expand]
1757
+ * @param {string} [filters]
1758
+ * @param {*} [options] Override http request option.
1759
+ * @throws {RequiredError}
1760
+ */
1761
+ groupTariffServiceListGroupVersions(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListGroupVersionsResponse> {
1762
+ return localVarFp.groupTariffServiceListGroupVersions(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
1763
+ },
1764
+ /**
1765
+ * 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.
1766
+ * @summary Publishes a draft configuration asset.
1767
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1768
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1769
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1770
+ * @param {object} body
1771
+ * @param {*} [options] Override http request option.
1772
+ * @throws {RequiredError}
1773
+ */
1774
+ groupTariffServicePublishGroupCoreConfig(groupTariffSlug: string, name: string, ifMatch: string, body: object, options?: any): AxiosPromise<PublishGroupCoreConfigResponse> {
1775
+ return localVarFp.groupTariffServicePublishGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options).then((request) => request(axios, basePath));
1776
+ },
1777
+ /**
1778
+ * 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.
1779
+ * @summary Publishes a group version when the publish gate passes.
1780
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1781
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1782
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1783
+ * @param {PublishGroupVersionBody} body
1784
+ * @param {*} [options] Override http request option.
1785
+ * @throws {RequiredError}
1786
+ */
1787
+ groupTariffServicePublishGroupVersion(groupTariffSlug: string, generation: string, ifMatch: string, body: PublishGroupVersionBody, options?: any): AxiosPromise<PublishGroupVersionResponse> {
1788
+ return localVarFp.groupTariffServicePublishGroupVersion(groupTariffSlug, generation, ifMatch, body, options).then((request) => request(axios, basePath));
1789
+ },
1790
+ /**
1791
+ * 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.
1792
+ * @summary Makes a published version of a generation its active version.
1793
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1794
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1795
+ * @param {string} ifMatch The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1796
+ * @param {SetActiveGroupVersionBody} body
1797
+ * @param {*} [options] Override http request option.
1798
+ * @throws {RequiredError}
1799
+ */
1800
+ groupTariffServiceSetActiveGroupVersion(groupTariffSlug: string, generation: string, ifMatch: string, body: SetActiveGroupVersionBody, options?: any): AxiosPromise<SetActiveGroupVersionResponse> {
1801
+ return localVarFp.groupTariffServiceSetActiveGroupVersion(groupTariffSlug, generation, ifMatch, body, options).then((request) => request(axios, basePath));
1802
+ },
1803
+ /**
1804
+ * 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.
1805
+ * @summary Moves a group version to another status.
1806
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1807
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1808
+ * @param {string} version The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
1809
+ * @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.
1810
+ * @param {SetGroupVersionStatusBody} body
1811
+ * @param {*} [options] Override http request option.
1812
+ * @throws {RequiredError}
1813
+ */
1814
+ groupTariffServiceSetGroupVersionStatus(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: SetGroupVersionStatusBody, options?: any): AxiosPromise<SetGroupVersionStatusResponse> {
1815
+ return localVarFp.groupTariffServiceSetGroupVersionStatus(groupTariffSlug, generation, version, ifMatch, body, options).then((request) => request(axios, basePath));
1816
+ },
1817
+ /**
1818
+ * 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.
1819
+ * @summary Rewrites the content of a draft configuration asset.
1820
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1821
+ * @param {string} name The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
1822
+ * @param {string} ifMatch The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1823
+ * @param {UpdateGroupCoreConfigBody} body
1824
+ * @param {*} [options] Override http request option.
1825
+ * @throws {RequiredError}
1826
+ */
1827
+ groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug: string, name: string, ifMatch: string, body: UpdateGroupCoreConfigBody, options?: any): AxiosPromise<UpdateGroupCoreConfigResponse> {
1828
+ return localVarFp.groupTariffServiceUpdateGroupCoreConfig(groupTariffSlug, name, ifMatch, body, options).then((request) => request(axios, basePath));
1829
+ },
1830
+ /**
1831
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
1832
+ * @summary Rewrites the manifest of a draft group version.
1833
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1834
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1835
+ * @param {string} version The draft id or the draft\&#39;s ERN.
1836
+ * @param {string} ifMatch The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1837
+ * @param {UpdateGroupVersionBody} body
1838
+ * @param {*} [options] Override http request option.
1839
+ * @throws {RequiredError}
1840
+ */
1841
+ groupTariffServiceUpdateGroupVersion(groupTariffSlug: string, generation: string, version: string, ifMatch: string, body: UpdateGroupVersionBody, options?: any): AxiosPromise<UpdateGroupVersionResponse> {
1842
+ return localVarFp.groupTariffServiceUpdateGroupVersion(groupTariffSlug, generation, version, ifMatch, body, options).then((request) => request(axios, basePath));
1843
+ },
1844
+ /**
1845
+ * 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.
1846
+ * @summary Checks a manifest against the publish gate without saving anything.
1847
+ * @param {string} groupTariffSlug The group tariff\&#39;s slug.
1848
+ * @param {string} generation The generation\&#39;s name, such as &#x60;2026&#x60;.
1849
+ * @param {ValidateGroupVersionBody} body
1850
+ * @param {*} [options] Override http request option.
1851
+ * @throws {RequiredError}
1852
+ */
1853
+ groupTariffServiceValidateGroupVersion(groupTariffSlug: string, generation: string, body: ValidateGroupVersionBody, options?: any): AxiosPromise<ValidateGroupVersionResponse> {
1854
+ return localVarFp.groupTariffServiceValidateGroupVersion(groupTariffSlug, generation, body, options).then((request) => request(axios, basePath));
1855
+ },
1856
+ };
1857
+ };
1858
+
1859
+ /**
1860
+ * Request parameters for groupTariffServiceCreateGroupCoreConfig operation in GroupTariffsApi.
1861
+ * @export
1862
+ * @interface GroupTariffsApiGroupTariffServiceCreateGroupCoreConfigRequest
1863
+ */
1864
+ export interface GroupTariffsApiGroupTariffServiceCreateGroupCoreConfigRequest {
1865
+ /**
1866
+ * The group tariff\&#39;s slug.
1867
+ * @type {string}
1868
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupCoreConfig
1869
+ */
1870
+ readonly groupTariffSlug: string
1871
+
1872
+ /**
1873
+ *
1874
+ * @type {CreateGroupCoreConfigBody}
1875
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupCoreConfig
1876
+ */
1877
+ readonly body: CreateGroupCoreConfigBody
1878
+ }
1879
+
1880
+ /**
1881
+ * Request parameters for groupTariffServiceCreateGroupGeneration operation in GroupTariffsApi.
1882
+ * @export
1883
+ * @interface GroupTariffsApiGroupTariffServiceCreateGroupGenerationRequest
1884
+ */
1885
+ export interface GroupTariffsApiGroupTariffServiceCreateGroupGenerationRequest {
1886
+ /**
1887
+ * The group tariff\&#39;s slug.
1888
+ * @type {string}
1889
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupGeneration
1890
+ */
1891
+ readonly groupTariffSlug: string
1892
+
1893
+ /**
1894
+ * The group tariff\&#39;s &#x60;etag&#x60; as last read, sent back unchanged: adding a generation changes the group tariff.
1895
+ * @type {string}
1896
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupGeneration
1897
+ */
1898
+ readonly ifMatch: string
1899
+
1900
+ /**
1901
+ *
1902
+ * @type {CreateGroupGenerationBody}
1903
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupGeneration
1904
+ */
1905
+ readonly body: CreateGroupGenerationBody
1906
+ }
1907
+
1908
+ /**
1909
+ * Request parameters for groupTariffServiceCreateGroupTariff operation in GroupTariffsApi.
1910
+ * @export
1911
+ * @interface GroupTariffsApiGroupTariffServiceCreateGroupTariffRequest
1912
+ */
1913
+ export interface GroupTariffsApiGroupTariffServiceCreateGroupTariffRequest {
1914
+ /**
1915
+ * The request of &#x60;CreateGroupTariff&#x60;.
1916
+ * @type {CreateGroupTariffRequest}
1917
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupTariff
1918
+ */
1919
+ readonly body: CreateGroupTariffRequest
1920
+ }
1921
+
1922
+ /**
1923
+ * Request parameters for groupTariffServiceCreateGroupVersion operation in GroupTariffsApi.
1924
+ * @export
1925
+ * @interface GroupTariffsApiGroupTariffServiceCreateGroupVersionRequest
1926
+ */
1927
+ export interface GroupTariffsApiGroupTariffServiceCreateGroupVersionRequest {
1928
+ /**
1929
+ * The group tariff\&#39;s slug.
1930
+ * @type {string}
1931
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupVersion
1932
+ */
1933
+ readonly groupTariffSlug: string
1934
+
1935
+ /**
1936
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
1937
+ * @type {string}
1938
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupVersion
1939
+ */
1940
+ readonly generation: string
1941
+
1942
+ /**
1943
+ *
1944
+ * @type {CreateGroupVersionBody}
1945
+ * @memberof GroupTariffsApiGroupTariffServiceCreateGroupVersion
1946
+ */
1947
+ readonly body: CreateGroupVersionBody
1948
+ }
1949
+
1950
+ /**
1951
+ * Request parameters for groupTariffServiceDiscardGroupVersion operation in GroupTariffsApi.
1952
+ * @export
1953
+ * @interface GroupTariffsApiGroupTariffServiceDiscardGroupVersionRequest
1954
+ */
1955
+ export interface GroupTariffsApiGroupTariffServiceDiscardGroupVersionRequest {
1956
+ /**
1957
+ * The group tariff\&#39;s slug.
1958
+ * @type {string}
1959
+ * @memberof GroupTariffsApiGroupTariffServiceDiscardGroupVersion
1960
+ */
1961
+ readonly groupTariffSlug: string
1962
+
1963
+ /**
1964
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
1965
+ * @type {string}
1966
+ * @memberof GroupTariffsApiGroupTariffServiceDiscardGroupVersion
1967
+ */
1968
+ readonly generation: string
1969
+
1970
+ /**
1971
+ * The draft id or the draft\&#39;s ERN.
1972
+ * @type {string}
1973
+ * @memberof GroupTariffsApiGroupTariffServiceDiscardGroupVersion
1974
+ */
1975
+ readonly version: string
1976
+
1977
+ /**
1978
+ * The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
1979
+ * @type {string}
1980
+ * @memberof GroupTariffsApiGroupTariffServiceDiscardGroupVersion
1981
+ */
1982
+ readonly ifMatch: string
1983
+
1984
+ /**
1985
+ *
1986
+ * @type {object}
1987
+ * @memberof GroupTariffsApiGroupTariffServiceDiscardGroupVersion
1988
+ */
1989
+ readonly body: object
1990
+ }
1991
+
1992
+ /**
1993
+ * Request parameters for groupTariffServiceGetGroupCoreConfig operation in GroupTariffsApi.
1994
+ * @export
1995
+ * @interface GroupTariffsApiGroupTariffServiceGetGroupCoreConfigRequest
1996
+ */
1997
+ export interface GroupTariffsApiGroupTariffServiceGetGroupCoreConfigRequest {
1998
+ /**
1999
+ * The group tariff\&#39;s slug.
2000
+ * @type {string}
2001
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupCoreConfig
2002
+ */
2003
+ readonly groupTariffSlug: string
2004
+
2005
+ /**
2006
+ * The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
2007
+ * @type {string}
2008
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupCoreConfig
2009
+ */
2010
+ readonly name: string
2011
+ }
2012
+
2013
+ /**
2014
+ * Request parameters for groupTariffServiceGetGroupDiff operation in GroupTariffsApi.
2015
+ * @export
2016
+ * @interface GroupTariffsApiGroupTariffServiceGetGroupDiffRequest
2017
+ */
2018
+ export interface GroupTariffsApiGroupTariffServiceGetGroupDiffRequest {
2019
+ /**
2020
+ * The group tariff\&#39;s slug.
2021
+ * @type {string}
2022
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupDiff
2023
+ */
2024
+ readonly groupTariffSlug: string
2025
+
2026
+ /**
2027
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2028
+ * @type {string}
2029
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupDiff
2030
+ */
2031
+ readonly generation: string
2032
+
2033
+ /**
2034
+ * The version\&#39;s number, such as &#x60;1.3&#x60;.
2035
+ * @type {string}
2036
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupDiff
2037
+ */
2038
+ readonly version: string
2039
+
2040
+ /**
2041
+ * 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.
2042
+ * @type {string}
2043
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupDiff
2044
+ */
2045
+ readonly againstVersion?: string
2046
+ }
2047
+
2048
+ /**
2049
+ * Request parameters for groupTariffServiceGetGroupGeneration operation in GroupTariffsApi.
2050
+ * @export
2051
+ * @interface GroupTariffsApiGroupTariffServiceGetGroupGenerationRequest
2052
+ */
2053
+ export interface GroupTariffsApiGroupTariffServiceGetGroupGenerationRequest {
2054
+ /**
2055
+ * The group tariff\&#39;s slug.
2056
+ * @type {string}
2057
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupGeneration
2058
+ */
2059
+ readonly groupTariffSlug: string
2060
+
2061
+ /**
2062
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2063
+ * @type {string}
2064
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupGeneration
2065
+ */
2066
+ readonly generation: string
2067
+ }
2068
+
2069
+ /**
2070
+ * Request parameters for groupTariffServiceGetGroupTariff operation in GroupTariffsApi.
2071
+ * @export
2072
+ * @interface GroupTariffsApiGroupTariffServiceGetGroupTariffRequest
2073
+ */
2074
+ export interface GroupTariffsApiGroupTariffServiceGetGroupTariffRequest {
2075
+ /**
2076
+ * The group tariff\&#39;s slug.
2077
+ * @type {string}
2078
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupTariff
2079
+ */
2080
+ readonly slug: string
2081
+ }
2082
+
2083
+ /**
2084
+ * Request parameters for groupTariffServiceGetGroupVersion operation in GroupTariffsApi.
2085
+ * @export
2086
+ * @interface GroupTariffsApiGroupTariffServiceGetGroupVersionRequest
2087
+ */
2088
+ export interface GroupTariffsApiGroupTariffServiceGetGroupVersionRequest {
2089
+ /**
2090
+ * The group tariff\&#39;s slug.
2091
+ * @type {string}
2092
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupVersion
2093
+ */
2094
+ readonly groupTariffSlug: string
2095
+
2096
+ /**
2097
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2098
+ * @type {string}
2099
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupVersion
2100
+ */
2101
+ readonly generation: string
2102
+
2103
+ /**
2104
+ * The version\&#39;s number, such as &#x60;1.3&#x60;, or, for a draft, its draft id or ERN.
2105
+ * @type {string}
2106
+ * @memberof GroupTariffsApiGroupTariffServiceGetGroupVersion
2107
+ */
2108
+ readonly version: string
2109
+ }
2110
+
2111
+ /**
2112
+ * Request parameters for groupTariffServiceListGroupCoreConfigs operation in GroupTariffsApi.
2113
+ * @export
2114
+ * @interface GroupTariffsApiGroupTariffServiceListGroupCoreConfigsRequest
2115
+ */
2116
+ export interface GroupTariffsApiGroupTariffServiceListGroupCoreConfigsRequest {
2117
+ /**
2118
+ *
2119
+ * @type {number}
2120
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2121
+ */
2122
+ readonly pageSize?: number
2123
+
2124
+ /**
2125
+ *
2126
+ * @type {string}
2127
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2128
+ */
2129
+ readonly pageToken?: string
2130
+
2131
+ /**
2132
+ *
2133
+ * @type {string}
2134
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2135
+ */
2136
+ readonly filter?: string
2137
+
2138
+ /**
2139
+ *
2140
+ * @type {string}
2141
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2142
+ */
2143
+ readonly search?: string
2144
+
2145
+ /**
2146
+ *
2147
+ * @type {string}
2148
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2149
+ */
2150
+ readonly order?: string
2151
+
2152
+ /**
2153
+ *
2154
+ * @type {string}
2155
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2156
+ */
2157
+ readonly expand?: string
2158
+
2159
+ /**
2160
+ *
2161
+ * @type {string}
2162
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupCoreConfigs
2163
+ */
2164
+ readonly filters?: string
2165
+ }
2166
+
2167
+ /**
2168
+ * Request parameters for groupTariffServiceListGroupGenerations operation in GroupTariffsApi.
2169
+ * @export
2170
+ * @interface GroupTariffsApiGroupTariffServiceListGroupGenerationsRequest
2171
+ */
2172
+ export interface GroupTariffsApiGroupTariffServiceListGroupGenerationsRequest {
2173
+ /**
2174
+ *
2175
+ * @type {number}
2176
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2177
+ */
2178
+ readonly pageSize?: number
2179
+
2180
+ /**
2181
+ *
2182
+ * @type {string}
2183
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2184
+ */
2185
+ readonly pageToken?: string
2186
+
2187
+ /**
2188
+ *
2189
+ * @type {string}
2190
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2191
+ */
2192
+ readonly filter?: string
2193
+
2194
+ /**
2195
+ *
2196
+ * @type {string}
2197
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2198
+ */
2199
+ readonly search?: string
2200
+
2201
+ /**
2202
+ *
2203
+ * @type {string}
2204
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2205
+ */
2206
+ readonly order?: string
2207
+
2208
+ /**
2209
+ *
2210
+ * @type {string}
2211
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2212
+ */
2213
+ readonly expand?: string
2214
+
2215
+ /**
2216
+ *
2217
+ * @type {string}
2218
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupGenerations
2219
+ */
2220
+ readonly filters?: string
2221
+ }
2222
+
2223
+ /**
2224
+ * Request parameters for groupTariffServiceListGroupTariffs operation in GroupTariffsApi.
2225
+ * @export
2226
+ * @interface GroupTariffsApiGroupTariffServiceListGroupTariffsRequest
2227
+ */
2228
+ export interface GroupTariffsApiGroupTariffServiceListGroupTariffsRequest {
2229
+ /**
2230
+ *
2231
+ * @type {number}
2232
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2233
+ */
2234
+ readonly pageSize?: number
2235
+
2236
+ /**
2237
+ *
2238
+ * @type {string}
2239
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2240
+ */
2241
+ readonly pageToken?: string
2242
+
2243
+ /**
2244
+ *
2245
+ * @type {string}
2246
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2247
+ */
2248
+ readonly filter?: string
2249
+
2250
+ /**
2251
+ *
2252
+ * @type {string}
2253
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2254
+ */
2255
+ readonly search?: string
2256
+
2257
+ /**
2258
+ *
2259
+ * @type {string}
2260
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2261
+ */
2262
+ readonly order?: string
2263
+
2264
+ /**
2265
+ *
2266
+ * @type {string}
2267
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2268
+ */
2269
+ readonly expand?: string
2270
+
2271
+ /**
2272
+ *
2273
+ * @type {string}
2274
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupTariffs
2275
+ */
2276
+ readonly filters?: string
2277
+ }
2278
+
2279
+ /**
2280
+ * Request parameters for groupTariffServiceListGroupVersions operation in GroupTariffsApi.
2281
+ * @export
2282
+ * @interface GroupTariffsApiGroupTariffServiceListGroupVersionsRequest
2283
+ */
2284
+ export interface GroupTariffsApiGroupTariffServiceListGroupVersionsRequest {
2285
+ /**
2286
+ *
2287
+ * @type {number}
2288
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2289
+ */
2290
+ readonly pageSize?: number
2291
+
2292
+ /**
2293
+ *
2294
+ * @type {string}
2295
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2296
+ */
2297
+ readonly pageToken?: string
2298
+
2299
+ /**
2300
+ *
2301
+ * @type {string}
2302
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2303
+ */
2304
+ readonly filter?: string
2305
+
2306
+ /**
2307
+ *
2308
+ * @type {string}
2309
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2310
+ */
2311
+ readonly search?: string
2312
+
2313
+ /**
2314
+ *
2315
+ * @type {string}
2316
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2317
+ */
2318
+ readonly order?: string
2319
+
2320
+ /**
2321
+ *
2322
+ * @type {string}
2323
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2324
+ */
2325
+ readonly expand?: string
2326
+
2327
+ /**
2328
+ *
2329
+ * @type {string}
2330
+ * @memberof GroupTariffsApiGroupTariffServiceListGroupVersions
2331
+ */
2332
+ readonly filters?: string
2333
+ }
2334
+
2335
+ /**
2336
+ * Request parameters for groupTariffServicePublishGroupCoreConfig operation in GroupTariffsApi.
2337
+ * @export
2338
+ * @interface GroupTariffsApiGroupTariffServicePublishGroupCoreConfigRequest
2339
+ */
2340
+ export interface GroupTariffsApiGroupTariffServicePublishGroupCoreConfigRequest {
2341
+ /**
2342
+ * The group tariff\&#39;s slug.
2343
+ * @type {string}
2344
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupCoreConfig
2345
+ */
2346
+ readonly groupTariffSlug: string
2347
+
2348
+ /**
2349
+ * The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
2350
+ * @type {string}
2351
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupCoreConfig
2352
+ */
2353
+ readonly name: string
2354
+
2355
+ /**
2356
+ * The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
2357
+ * @type {string}
2358
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupCoreConfig
2359
+ */
2360
+ readonly ifMatch: string
2361
+
2362
+ /**
2363
+ *
2364
+ * @type {object}
2365
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupCoreConfig
2366
+ */
2367
+ readonly body: object
2368
+ }
2369
+
2370
+ /**
2371
+ * Request parameters for groupTariffServicePublishGroupVersion operation in GroupTariffsApi.
2372
+ * @export
2373
+ * @interface GroupTariffsApiGroupTariffServicePublishGroupVersionRequest
2374
+ */
2375
+ export interface GroupTariffsApiGroupTariffServicePublishGroupVersionRequest {
2376
+ /**
2377
+ * The group tariff\&#39;s slug.
2378
+ * @type {string}
2379
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupVersion
2380
+ */
2381
+ readonly groupTariffSlug: string
2382
+
2383
+ /**
2384
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2385
+ * @type {string}
2386
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupVersion
2387
+ */
2388
+ readonly generation: string
2389
+
2390
+ /**
2391
+ * The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
2392
+ * @type {string}
2393
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupVersion
2394
+ */
2395
+ readonly ifMatch: string
2396
+
2397
+ /**
2398
+ *
2399
+ * @type {PublishGroupVersionBody}
2400
+ * @memberof GroupTariffsApiGroupTariffServicePublishGroupVersion
2401
+ */
2402
+ readonly body: PublishGroupVersionBody
2403
+ }
2404
+
2405
+ /**
2406
+ * Request parameters for groupTariffServiceSetActiveGroupVersion operation in GroupTariffsApi.
2407
+ * @export
2408
+ * @interface GroupTariffsApiGroupTariffServiceSetActiveGroupVersionRequest
2409
+ */
2410
+ export interface GroupTariffsApiGroupTariffServiceSetActiveGroupVersionRequest {
2411
+ /**
2412
+ * The group tariff\&#39;s slug.
2413
+ * @type {string}
2414
+ * @memberof GroupTariffsApiGroupTariffServiceSetActiveGroupVersion
2415
+ */
2416
+ readonly groupTariffSlug: string
2417
+
2418
+ /**
2419
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2420
+ * @type {string}
2421
+ * @memberof GroupTariffsApiGroupTariffServiceSetActiveGroupVersion
2422
+ */
2423
+ readonly generation: string
2424
+
2425
+ /**
2426
+ * The generation\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
2427
+ * @type {string}
2428
+ * @memberof GroupTariffsApiGroupTariffServiceSetActiveGroupVersion
2429
+ */
2430
+ readonly ifMatch: string
2431
+
2432
+ /**
2433
+ *
2434
+ * @type {SetActiveGroupVersionBody}
2435
+ * @memberof GroupTariffsApiGroupTariffServiceSetActiveGroupVersion
2436
+ */
2437
+ readonly body: SetActiveGroupVersionBody
2438
+ }
2439
+
2440
+ /**
2441
+ * Request parameters for groupTariffServiceSetGroupVersionStatus operation in GroupTariffsApi.
2442
+ * @export
2443
+ * @interface GroupTariffsApiGroupTariffServiceSetGroupVersionStatusRequest
2444
+ */
2445
+ export interface GroupTariffsApiGroupTariffServiceSetGroupVersionStatusRequest {
2446
+ /**
2447
+ * The group tariff\&#39;s slug.
2448
+ * @type {string}
2449
+ * @memberof GroupTariffsApiGroupTariffServiceSetGroupVersionStatus
2450
+ */
2451
+ readonly groupTariffSlug: string
2452
+
2453
+ /**
2454
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2455
+ * @type {string}
2456
+ * @memberof GroupTariffsApiGroupTariffServiceSetGroupVersionStatus
2457
+ */
2458
+ readonly generation: string
2459
+
2460
+ /**
2461
+ * The version: its number (&#x60;1.2&#x60;), its ERN or, for a draft, its draft id.
2462
+ * @type {string}
2463
+ * @memberof GroupTariffsApiGroupTariffServiceSetGroupVersionStatus
2464
+ */
2465
+ readonly version: string
2466
+
2467
+ /**
2468
+ * 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.
2469
+ * @type {string}
2470
+ * @memberof GroupTariffsApiGroupTariffServiceSetGroupVersionStatus
2471
+ */
2472
+ readonly ifMatch: string
2473
+
2474
+ /**
2475
+ *
2476
+ * @type {SetGroupVersionStatusBody}
2477
+ * @memberof GroupTariffsApiGroupTariffServiceSetGroupVersionStatus
2478
+ */
2479
+ readonly body: SetGroupVersionStatusBody
2480
+ }
2481
+
2482
+ /**
2483
+ * Request parameters for groupTariffServiceUpdateGroupCoreConfig operation in GroupTariffsApi.
2484
+ * @export
2485
+ * @interface GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfigRequest
2486
+ */
2487
+ export interface GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfigRequest {
2488
+ /**
2489
+ * The group tariff\&#39;s slug.
2490
+ * @type {string}
2491
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfig
2492
+ */
2493
+ readonly groupTariffSlug: string
2494
+
2495
+ /**
2496
+ * The asset\&#39;s name, such as &#x60;group_core.v1&#x60;.
2497
+ * @type {string}
2498
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfig
2499
+ */
2500
+ readonly name: string
2501
+
2502
+ /**
2503
+ * The asset\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
2504
+ * @type {string}
2505
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfig
2506
+ */
2507
+ readonly ifMatch: string
2508
+
2509
+ /**
2510
+ *
2511
+ * @type {UpdateGroupCoreConfigBody}
2512
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfig
2513
+ */
2514
+ readonly body: UpdateGroupCoreConfigBody
2515
+ }
2516
+
2517
+ /**
2518
+ * Request parameters for groupTariffServiceUpdateGroupVersion operation in GroupTariffsApi.
2519
+ * @export
2520
+ * @interface GroupTariffsApiGroupTariffServiceUpdateGroupVersionRequest
2521
+ */
2522
+ export interface GroupTariffsApiGroupTariffServiceUpdateGroupVersionRequest {
2523
+ /**
2524
+ * The group tariff\&#39;s slug.
2525
+ * @type {string}
2526
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupVersion
2527
+ */
2528
+ readonly groupTariffSlug: string
2529
+
2530
+ /**
2531
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2532
+ * @type {string}
2533
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupVersion
2534
+ */
2535
+ readonly generation: string
2536
+
2537
+ /**
2538
+ * The draft id or the draft\&#39;s ERN.
2539
+ * @type {string}
2540
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupVersion
2541
+ */
2542
+ readonly version: string
2543
+
2544
+ /**
2545
+ * The draft\&#39;s &#x60;etag&#x60; as last read, sent back unchanged.
2546
+ * @type {string}
2547
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupVersion
2548
+ */
2549
+ readonly ifMatch: string
2550
+
2551
+ /**
2552
+ *
2553
+ * @type {UpdateGroupVersionBody}
2554
+ * @memberof GroupTariffsApiGroupTariffServiceUpdateGroupVersion
2555
+ */
2556
+ readonly body: UpdateGroupVersionBody
2557
+ }
2558
+
2559
+ /**
2560
+ * Request parameters for groupTariffServiceValidateGroupVersion operation in GroupTariffsApi.
2561
+ * @export
2562
+ * @interface GroupTariffsApiGroupTariffServiceValidateGroupVersionRequest
2563
+ */
2564
+ export interface GroupTariffsApiGroupTariffServiceValidateGroupVersionRequest {
2565
+ /**
2566
+ * The group tariff\&#39;s slug.
2567
+ * @type {string}
2568
+ * @memberof GroupTariffsApiGroupTariffServiceValidateGroupVersion
2569
+ */
2570
+ readonly groupTariffSlug: string
2571
+
2572
+ /**
2573
+ * The generation\&#39;s name, such as &#x60;2026&#x60;.
2574
+ * @type {string}
2575
+ * @memberof GroupTariffsApiGroupTariffServiceValidateGroupVersion
2576
+ */
2577
+ readonly generation: string
2578
+
2579
+ /**
2580
+ *
2581
+ * @type {ValidateGroupVersionBody}
2582
+ * @memberof GroupTariffsApiGroupTariffServiceValidateGroupVersion
2583
+ */
2584
+ readonly body: ValidateGroupVersionBody
2585
+ }
2586
+
2587
+ /**
2588
+ * GroupTariffsApi - object-oriented interface
2589
+ * @export
2590
+ * @class GroupTariffsApi
2591
+ * @extends {BaseAPI}
2592
+ */
2593
+ export class GroupTariffsApi extends BaseAPI {
2594
+ /**
2595
+ * 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.
2596
+ * @summary Creates a draft configuration asset of a group tariff.
2597
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupCoreConfigRequest} requestParameters Request parameters.
2598
+ * @param {*} [options] Override http request option.
2599
+ * @throws {RequiredError}
2600
+ * @memberof GroupTariffsApi
2601
+ */
2602
+ public groupTariffServiceCreateGroupCoreConfig(requestParameters: GroupTariffsApiGroupTariffServiceCreateGroupCoreConfigRequest, options?: AxiosRequestConfig) {
2603
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceCreateGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2604
+ }
2605
+
2606
+ /**
2607
+ * 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`.
2608
+ * @summary Adds a generation to a group tariff.
2609
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupGenerationRequest} requestParameters Request parameters.
2610
+ * @param {*} [options] Override http request option.
2611
+ * @throws {RequiredError}
2612
+ * @memberof GroupTariffsApi
2613
+ */
2614
+ public groupTariffServiceCreateGroupGeneration(requestParameters: GroupTariffsApiGroupTariffServiceCreateGroupGenerationRequest, options?: AxiosRequestConfig) {
2615
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceCreateGroupGeneration(requestParameters.groupTariffSlug, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2616
+ }
2617
+
2618
+ /**
2619
+ * 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.
2620
+ * @summary Creates a group tariff that references one tariff.
2621
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupTariffRequest} requestParameters Request parameters.
2622
+ * @param {*} [options] Override http request option.
2623
+ * @throws {RequiredError}
2624
+ * @memberof GroupTariffsApi
2625
+ */
2626
+ public groupTariffServiceCreateGroupTariff(requestParameters: GroupTariffsApiGroupTariffServiceCreateGroupTariffRequest, options?: AxiosRequestConfig) {
2627
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceCreateGroupTariff(requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2628
+ }
2629
+
2630
+ /**
2631
+ * 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.
2632
+ * @summary Stores a draft group version.
2633
+ * @param {GroupTariffsApiGroupTariffServiceCreateGroupVersionRequest} requestParameters Request parameters.
2634
+ * @param {*} [options] Override http request option.
2635
+ * @throws {RequiredError}
2636
+ * @memberof GroupTariffsApi
2637
+ */
2638
+ public groupTariffServiceCreateGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceCreateGroupVersionRequest, options?: AxiosRequestConfig) {
2639
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceCreateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2640
+ }
2641
+
2642
+ /**
2643
+ * The draft becomes `DISCARDED`. It is not deleted: it stays and cannot change.
2644
+ * @summary Gives up a draft group version.
2645
+ * @param {GroupTariffsApiGroupTariffServiceDiscardGroupVersionRequest} requestParameters Request parameters.
2646
+ * @param {*} [options] Override http request option.
2647
+ * @throws {RequiredError}
2648
+ * @memberof GroupTariffsApi
2649
+ */
2650
+ public groupTariffServiceDiscardGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceDiscardGroupVersionRequest, options?: AxiosRequestConfig) {
2651
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceDiscardGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2652
+ }
2653
+
2654
+ /**
2655
+ * The asset is found by the group tariff\'s slug and the asset\'s name, such as `group_core.v1`.
2656
+ * @summary Returns one configuration asset of a group tariff.
2657
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupCoreConfigRequest} requestParameters Request parameters.
2658
+ * @param {*} [options] Override http request option.
2659
+ * @throws {RequiredError}
2660
+ * @memberof GroupTariffsApi
2661
+ */
2662
+ public groupTariffServiceGetGroupCoreConfig(requestParameters: GroupTariffsApiGroupTariffServiceGetGroupCoreConfigRequest, options?: AxiosRequestConfig) {
2663
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2664
+ }
2665
+
2666
+ /**
2667
+ * 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.
2668
+ * @summary Returns the differences between a group version and an earlier one.
2669
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupDiffRequest} requestParameters Request parameters.
2670
+ * @param {*} [options] Override http request option.
2671
+ * @throws {RequiredError}
2672
+ * @memberof GroupTariffsApi
2673
+ */
2674
+ public groupTariffServiceGetGroupDiff(requestParameters: GroupTariffsApiGroupTariffServiceGetGroupDiffRequest, options?: AxiosRequestConfig) {
2675
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupDiff(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.againstVersion, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2676
+ }
2677
+
2678
+ /**
2679
+ * 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.
2680
+ * @summary Returns one generation of a group tariff.
2681
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupGenerationRequest} requestParameters Request parameters.
2682
+ * @param {*} [options] Override http request option.
2683
+ * @throws {RequiredError}
2684
+ * @memberof GroupTariffsApi
2685
+ */
2686
+ public groupTariffServiceGetGroupGeneration(requestParameters: GroupTariffsApiGroupTariffServiceGetGroupGenerationRequest, options?: AxiosRequestConfig) {
2687
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupGeneration(requestParameters.groupTariffSlug, requestParameters.generation, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2688
+ }
2689
+
2690
+ /**
2691
+ * The group tariff is found by its slug. Its `etag` goes in the `If-Match` header of the calls that change it.
2692
+ * @summary Returns one group tariff.
2693
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupTariffRequest} requestParameters Request parameters.
2694
+ * @param {*} [options] Override http request option.
2695
+ * @throws {RequiredError}
2696
+ * @memberof GroupTariffsApi
2697
+ */
2698
+ public groupTariffServiceGetGroupTariff(requestParameters: GroupTariffsApiGroupTariffServiceGetGroupTariffRequest, options?: AxiosRequestConfig) {
2699
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupTariff(requestParameters.slug, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2700
+ }
2701
+
2702
+ /**
2703
+ * 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`.
2704
+ * @summary Returns the filter catalog of the group tariff list: the fields a client can filter it by.
2705
+ * @param {*} [options] Override http request option.
2706
+ * @throws {RequiredError}
2707
+ * @memberof GroupTariffsApi
2708
+ */
2709
+ public groupTariffServiceGetGroupTariffFilterCatalog(options?: AxiosRequestConfig) {
2710
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupTariffFilterCatalog(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2711
+ }
2712
+
2713
+ /**
2714
+ * `version` is a number such as `1.3`, a version ERN or, for a draft, a draft id.
2715
+ * @summary Returns one version of a group generation.
2716
+ * @param {GroupTariffsApiGroupTariffServiceGetGroupVersionRequest} requestParameters Request parameters.
2717
+ * @param {*} [options] Override http request option.
2718
+ * @throws {RequiredError}
2719
+ * @memberof GroupTariffsApi
2720
+ */
2721
+ public groupTariffServiceGetGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceGetGroupVersionRequest, options?: AxiosRequestConfig) {
2722
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceGetGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2723
+ }
2724
+
2725
+ /**
2726
+ * 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`.
2727
+ * @summary Lists the configuration assets of a group tariff, oldest first.
2728
+ * @param {GroupTariffsApiGroupTariffServiceListGroupCoreConfigsRequest} requestParameters Request parameters.
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ * @memberof GroupTariffsApi
2732
+ */
2733
+ public groupTariffServiceListGroupCoreConfigs(requestParameters: GroupTariffsApiGroupTariffServiceListGroupCoreConfigsRequest = {}, options?: AxiosRequestConfig) {
2734
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceListGroupCoreConfigs(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2735
+ }
2736
+
2737
+ /**
2738
+ * 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`.
2739
+ * @summary Lists the generations of a group tariff, ordered by `validFrom`.
2740
+ * @param {GroupTariffsApiGroupTariffServiceListGroupGenerationsRequest} requestParameters Request parameters.
2741
+ * @param {*} [options] Override http request option.
2742
+ * @throws {RequiredError}
2743
+ * @memberof GroupTariffsApi
2744
+ */
2745
+ public groupTariffServiceListGroupGenerations(requestParameters: GroupTariffsApiGroupTariffServiceListGroupGenerationsRequest = {}, options?: AxiosRequestConfig) {
2746
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceListGroupGenerations(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2747
+ }
2748
+
2749
+ /**
2750
+ * 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`.
2751
+ * @summary Lists the group tariffs.
2752
+ * @param {GroupTariffsApiGroupTariffServiceListGroupTariffsRequest} requestParameters Request parameters.
2753
+ * @param {*} [options] Override http request option.
2754
+ * @throws {RequiredError}
2755
+ * @memberof GroupTariffsApi
2756
+ */
2757
+ public groupTariffServiceListGroupTariffs(requestParameters: GroupTariffsApiGroupTariffServiceListGroupTariffsRequest = {}, options?: AxiosRequestConfig) {
2758
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceListGroupTariffs(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2759
+ }
2760
+
2761
+ /**
2762
+ * 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.
2763
+ * @summary Lists the versions of a group generation, oldest first.
2764
+ * @param {GroupTariffsApiGroupTariffServiceListGroupVersionsRequest} requestParameters Request parameters.
2765
+ * @param {*} [options] Override http request option.
2766
+ * @throws {RequiredError}
2767
+ * @memberof GroupTariffsApi
2768
+ */
2769
+ public groupTariffServiceListGroupVersions(requestParameters: GroupTariffsApiGroupTariffServiceListGroupVersionsRequest = {}, options?: AxiosRequestConfig) {
2770
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceListGroupVersions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2771
+ }
2772
+
2773
+ /**
2774
+ * 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.
2775
+ * @summary Publishes a draft configuration asset.
2776
+ * @param {GroupTariffsApiGroupTariffServicePublishGroupCoreConfigRequest} requestParameters Request parameters.
2777
+ * @param {*} [options] Override http request option.
2778
+ * @throws {RequiredError}
2779
+ * @memberof GroupTariffsApi
2780
+ */
2781
+ public groupTariffServicePublishGroupCoreConfig(requestParameters: GroupTariffsApiGroupTariffServicePublishGroupCoreConfigRequest, options?: AxiosRequestConfig) {
2782
+ return GroupTariffsApiFp(this.configuration).groupTariffServicePublishGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2783
+ }
2784
+
2785
+ /**
2786
+ * 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.
2787
+ * @summary Publishes a group version when the publish gate passes.
2788
+ * @param {GroupTariffsApiGroupTariffServicePublishGroupVersionRequest} requestParameters Request parameters.
2789
+ * @param {*} [options] Override http request option.
2790
+ * @throws {RequiredError}
2791
+ * @memberof GroupTariffsApi
2792
+ */
2793
+ public groupTariffServicePublishGroupVersion(requestParameters: GroupTariffsApiGroupTariffServicePublishGroupVersionRequest, options?: AxiosRequestConfig) {
2794
+ return GroupTariffsApiFp(this.configuration).groupTariffServicePublishGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2795
+ }
2796
+
2797
+ /**
2798
+ * 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.
2799
+ * @summary Makes a published version of a generation its active version.
2800
+ * @param {GroupTariffsApiGroupTariffServiceSetActiveGroupVersionRequest} requestParameters Request parameters.
2801
+ * @param {*} [options] Override http request option.
2802
+ * @throws {RequiredError}
2803
+ * @memberof GroupTariffsApi
2804
+ */
2805
+ public groupTariffServiceSetActiveGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceSetActiveGroupVersionRequest, options?: AxiosRequestConfig) {
2806
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceSetActiveGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2807
+ }
2808
+
2809
+ /**
2810
+ * 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.
2811
+ * @summary Moves a group version to another status.
2812
+ * @param {GroupTariffsApiGroupTariffServiceSetGroupVersionStatusRequest} requestParameters Request parameters.
2813
+ * @param {*} [options] Override http request option.
2814
+ * @throws {RequiredError}
2815
+ * @memberof GroupTariffsApi
2816
+ */
2817
+ public groupTariffServiceSetGroupVersionStatus(requestParameters: GroupTariffsApiGroupTariffServiceSetGroupVersionStatusRequest, options?: AxiosRequestConfig) {
2818
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceSetGroupVersionStatus(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2819
+ }
2820
+
2821
+ /**
2822
+ * 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.
2823
+ * @summary Rewrites the content of a draft configuration asset.
2824
+ * @param {GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfigRequest} requestParameters Request parameters.
2825
+ * @param {*} [options] Override http request option.
2826
+ * @throws {RequiredError}
2827
+ * @memberof GroupTariffsApi
2828
+ */
2829
+ public groupTariffServiceUpdateGroupCoreConfig(requestParameters: GroupTariffsApiGroupTariffServiceUpdateGroupCoreConfigRequest, options?: AxiosRequestConfig) {
2830
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceUpdateGroupCoreConfig(requestParameters.groupTariffSlug, requestParameters.name, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2831
+ }
2832
+
2833
+ /**
2834
+ * Only an open draft can be rewritten. The response lists the contract issues found in the new manifest.
2835
+ * @summary Rewrites the manifest of a draft group version.
2836
+ * @param {GroupTariffsApiGroupTariffServiceUpdateGroupVersionRequest} requestParameters Request parameters.
2837
+ * @param {*} [options] Override http request option.
2838
+ * @throws {RequiredError}
2839
+ * @memberof GroupTariffsApi
2840
+ */
2841
+ public groupTariffServiceUpdateGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceUpdateGroupVersionRequest, options?: AxiosRequestConfig) {
2842
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceUpdateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.version, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2843
+ }
2844
+
2845
+ /**
2846
+ * 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.
2847
+ * @summary Checks a manifest against the publish gate without saving anything.
2848
+ * @param {GroupTariffsApiGroupTariffServiceValidateGroupVersionRequest} requestParameters Request parameters.
2849
+ * @param {*} [options] Override http request option.
2850
+ * @throws {RequiredError}
2851
+ * @memberof GroupTariffsApi
2852
+ */
2853
+ public groupTariffServiceValidateGroupVersion(requestParameters: GroupTariffsApiGroupTariffServiceValidateGroupVersionRequest, options?: AxiosRequestConfig) {
2854
+ return GroupTariffsApiFp(this.configuration).groupTariffServiceValidateGroupVersion(requestParameters.groupTariffSlug, requestParameters.generation, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
2855
+ }
2856
+ }