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

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