@cosmotech/aip-client 0.3.0-dev2 → 0.4.0-dev1

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 (498) hide show
  1. package/README.md +49 -41
  2. package/api/budget-api.ts +7 -7
  3. package/api/default-api.ts +1 -1
  4. package/api/impact-api.ts +90 -1
  5. package/api/investment-api.ts +55 -1254
  6. package/api/metric-api.ts +1 -1
  7. package/api/metric-costs-api.ts +1 -1
  8. package/api/metric-costs-per-year-api.ts +1 -1
  9. package/api/objective-api.ts +1 -509
  10. package/api/objective-weight-api.ts +1 -1
  11. package/api/objective-weights-api.ts +1 -1
  12. package/api/option-api.ts +28 -481
  13. package/api/portfolio-api.ts +601 -0
  14. package/api/portfolio-investment-api.ts +545 -0
  15. package/api/portfolio-kpiapi.ts +772 -0
  16. package/api/preferred-option-api.ts +1 -1
  17. package/api/value-framework-api.ts +61 -1189
  18. package/api/value-framework-costs-api.ts +1 -1
  19. package/api/value-framework-weights-api.ts +1 -1
  20. package/api.ts +4 -1
  21. package/base.ts +1 -1
  22. package/common.ts +1 -1
  23. package/configuration.ts +1 -1
  24. package/dist/api/budget-api.d.ts +5 -5
  25. package/dist/api/budget-api.js +7 -7
  26. package/dist/api/default-api.d.ts +1 -1
  27. package/dist/api/default-api.js +1 -1
  28. package/dist/api/impact-api.d.ts +42 -1
  29. package/dist/api/impact-api.js +85 -1
  30. package/dist/api/investment-api.d.ts +1 -551
  31. package/dist/api/investment-api.js +57 -1189
  32. package/dist/api/metric-api.d.ts +1 -1
  33. package/dist/api/metric-api.js +1 -1
  34. package/dist/api/metric-costs-api.d.ts +1 -1
  35. package/dist/api/metric-costs-api.js +1 -1
  36. package/dist/api/metric-costs-per-year-api.d.ts +1 -1
  37. package/dist/api/metric-costs-per-year-api.js +1 -1
  38. package/dist/api/objective-api.d.ts +1 -233
  39. package/dist/api/objective-api.js +1 -479
  40. package/dist/api/objective-weight-api.d.ts +1 -1
  41. package/dist/api/objective-weight-api.js +1 -1
  42. package/dist/api/objective-weights-api.d.ts +1 -1
  43. package/dist/api/objective-weights-api.js +1 -1
  44. package/dist/api/option-api.d.ts +13 -224
  45. package/dist/api/option-api.js +28 -458
  46. package/dist/api/portfolio-api.d.ts +279 -0
  47. package/dist/api/portfolio-api.js +575 -0
  48. package/dist/api/portfolio-investment-api.d.ts +258 -0
  49. package/dist/api/portfolio-investment-api.js +526 -0
  50. package/dist/api/portfolio-kpiapi.d.ts +361 -0
  51. package/dist/api/portfolio-kpiapi.js +740 -0
  52. package/dist/api/preferred-option-api.d.ts +1 -1
  53. package/dist/api/preferred-option-api.js +1 -1
  54. package/dist/api/value-framework-api.d.ts +1 -519
  55. package/dist/api/value-framework-api.js +61 -1128
  56. package/dist/api/value-framework-costs-api.d.ts +1 -1
  57. package/dist/api/value-framework-costs-api.js +1 -1
  58. package/dist/api/value-framework-weights-api.d.ts +1 -1
  59. package/dist/api/value-framework-weights-api.js +1 -1
  60. package/dist/api.d.ts +4 -1
  61. package/dist/api.js +4 -1
  62. package/dist/base.d.ts +1 -1
  63. package/dist/base.js +1 -1
  64. package/dist/common.d.ts +1 -1
  65. package/dist/common.js +1 -1
  66. package/dist/configuration.d.ts +1 -1
  67. package/dist/configuration.js +1 -1
  68. package/dist/esm/api/budget-api.d.ts +5 -5
  69. package/dist/esm/api/budget-api.js +7 -7
  70. package/dist/esm/api/default-api.d.ts +1 -1
  71. package/dist/esm/api/default-api.js +1 -1
  72. package/dist/esm/api/impact-api.d.ts +42 -1
  73. package/dist/esm/api/impact-api.js +85 -1
  74. package/dist/esm/api/investment-api.d.ts +1 -551
  75. package/dist/esm/api/investment-api.js +56 -1188
  76. package/dist/esm/api/metric-api.d.ts +1 -1
  77. package/dist/esm/api/metric-api.js +1 -1
  78. package/dist/esm/api/metric-costs-api.d.ts +1 -1
  79. package/dist/esm/api/metric-costs-api.js +1 -1
  80. package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
  81. package/dist/esm/api/metric-costs-per-year-api.js +1 -1
  82. package/dist/esm/api/objective-api.d.ts +1 -233
  83. package/dist/esm/api/objective-api.js +1 -479
  84. package/dist/esm/api/objective-weight-api.d.ts +1 -1
  85. package/dist/esm/api/objective-weight-api.js +1 -1
  86. package/dist/esm/api/objective-weights-api.d.ts +1 -1
  87. package/dist/esm/api/objective-weights-api.js +1 -1
  88. package/dist/esm/api/option-api.d.ts +13 -224
  89. package/dist/esm/api/option-api.js +28 -458
  90. package/dist/esm/api/portfolio-api.d.ts +279 -0
  91. package/dist/esm/api/portfolio-api.js +568 -0
  92. package/dist/esm/api/portfolio-investment-api.d.ts +258 -0
  93. package/dist/esm/api/portfolio-investment-api.js +519 -0
  94. package/dist/esm/api/portfolio-kpiapi.d.ts +361 -0
  95. package/dist/esm/api/portfolio-kpiapi.js +733 -0
  96. package/dist/esm/api/preferred-option-api.d.ts +1 -1
  97. package/dist/esm/api/preferred-option-api.js +1 -1
  98. package/dist/esm/api/value-framework-api.d.ts +1 -519
  99. package/dist/esm/api/value-framework-api.js +61 -1128
  100. package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
  101. package/dist/esm/api/value-framework-costs-api.js +1 -1
  102. package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
  103. package/dist/esm/api/value-framework-weights-api.js +1 -1
  104. package/dist/esm/api.d.ts +4 -1
  105. package/dist/esm/api.js +4 -1
  106. package/dist/esm/base.d.ts +1 -1
  107. package/dist/esm/base.js +1 -1
  108. package/dist/esm/common.d.ts +1 -1
  109. package/dist/esm/common.js +1 -1
  110. package/dist/esm/configuration.d.ts +1 -1
  111. package/dist/esm/configuration.js +1 -1
  112. package/dist/esm/index.d.ts +1 -1
  113. package/dist/esm/index.js +1 -1
  114. package/dist/esm/models/budget-bulk-delete-request.d.ts +3 -3
  115. package/dist/esm/models/budget-bulk-delete-request.js +1 -1
  116. package/dist/esm/models/budget-create.d.ts +1 -1
  117. package/dist/esm/models/budget-create.js +1 -1
  118. package/dist/esm/models/budget-investment-response.d.ts +1 -1
  119. package/dist/esm/models/budget-investment-response.js +1 -1
  120. package/dist/esm/models/budget-link-options-request.d.ts +1 -1
  121. package/dist/esm/models/budget-link-options-request.js +1 -1
  122. package/dist/esm/models/budget-option-response.d.ts +1 -1
  123. package/dist/esm/models/budget-option-response.js +1 -1
  124. package/dist/esm/models/budget-overview-response.d.ts +1 -1
  125. package/dist/esm/models/budget-overview-response.js +1 -1
  126. package/dist/esm/models/budget-response.d.ts +1 -1
  127. package/dist/esm/models/budget-response.js +1 -1
  128. package/dist/esm/models/budget-update.d.ts +1 -1
  129. package/dist/esm/models/budget-update.js +1 -1
  130. package/dist/esm/models/bulk-delete-request.d.ts +1 -1
  131. package/dist/esm/models/bulk-delete-request.js +1 -1
  132. package/dist/esm/models/evolution-type.d.ts +1 -1
  133. package/dist/esm/models/evolution-type.js +1 -1
  134. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  135. package/dist/esm/models/httpvalidation-error.js +1 -1
  136. package/dist/esm/models/impact-apiresponse.d.ts +1 -2
  137. package/dist/esm/models/impact-apiresponse.js +1 -1
  138. package/dist/esm/models/impact-bulk-item.d.ts +33 -0
  139. package/dist/esm/models/impact-bulk-item.js +14 -0
  140. package/dist/esm/models/impact-create.d.ts +1 -5
  141. package/dist/esm/models/impact-create.js +1 -1
  142. package/dist/esm/models/impact-update.d.ts +1 -2
  143. package/dist/esm/models/impact-update.js +1 -1
  144. package/dist/esm/models/index.d.ts +23 -0
  145. package/dist/esm/models/index.js +23 -0
  146. package/dist/esm/models/investment-create.d.ts +1 -1
  147. package/dist/esm/models/investment-create.js +1 -1
  148. package/dist/esm/models/investment-overview-response.d.ts +1 -1
  149. package/dist/esm/models/investment-overview-response.js +1 -1
  150. package/dist/esm/models/investment-response.d.ts +1 -1
  151. package/dist/esm/models/investment-response.js +1 -1
  152. package/dist/esm/models/investment-update.d.ts +1 -1
  153. package/dist/esm/models/investment-update.js +1 -1
  154. package/dist/esm/models/location-inner.d.ts +1 -1
  155. package/dist/esm/models/location-inner.js +1 -1
  156. package/dist/esm/models/measurement-type.d.ts +1 -1
  157. package/dist/esm/models/measurement-type.js +1 -1
  158. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  159. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  160. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  161. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  162. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  163. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  164. package/dist/esm/models/metric-create.d.ts +1 -1
  165. package/dist/esm/models/metric-create.js +1 -1
  166. package/dist/esm/models/metric-performance-response.d.ts +21 -0
  167. package/dist/esm/models/metric-performance-response.js +14 -0
  168. package/dist/esm/models/metric-performance-year.d.ts +18 -0
  169. package/dist/esm/models/metric-performance-year.js +14 -0
  170. package/dist/esm/models/metric-response.d.ts +1 -1
  171. package/dist/esm/models/metric-response.js +1 -1
  172. package/dist/esm/models/metric-type.d.ts +1 -1
  173. package/dist/esm/models/metric-type.js +1 -1
  174. package/dist/esm/models/metric-update.d.ts +1 -1
  175. package/dist/esm/models/metric-update.js +1 -1
  176. package/dist/esm/models/monetized-impact-response.d.ts +18 -0
  177. package/dist/esm/models/monetized-impact-response.js +14 -0
  178. package/dist/esm/models/monetized-impact-year.d.ts +19 -0
  179. package/dist/esm/models/monetized-impact-year.js +14 -0
  180. package/dist/esm/models/objective-create.d.ts +1 -1
  181. package/dist/esm/models/objective-create.js +1 -1
  182. package/dist/esm/models/objective-response.d.ts +1 -1
  183. package/dist/esm/models/objective-response.js +1 -1
  184. package/dist/esm/models/objective-update.d.ts +1 -1
  185. package/dist/esm/models/objective-update.js +1 -1
  186. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  187. package/dist/esm/models/objective-weight-create.js +1 -1
  188. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  189. package/dist/esm/models/objective-weight-response.js +1 -1
  190. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  191. package/dist/esm/models/objective-weight-update.js +1 -1
  192. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  193. package/dist/esm/models/option-chart-kpi.js +1 -1
  194. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  195. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  196. package/dist/esm/models/option-create.d.ts +1 -1
  197. package/dist/esm/models/option-create.js +1 -1
  198. package/dist/esm/models/option-overview-response.d.ts +1 -1
  199. package/dist/esm/models/option-overview-response.js +1 -1
  200. package/dist/esm/models/option-response.d.ts +1 -1
  201. package/dist/esm/models/option-response.js +1 -1
  202. package/dist/esm/models/option-update.d.ts +1 -1
  203. package/dist/esm/models/option-update.js +1 -1
  204. package/dist/esm/models/portfolio-budget-expenditure-response.d.ts +21 -0
  205. package/dist/esm/models/portfolio-budget-expenditure-response.js +14 -0
  206. package/dist/esm/models/portfolio-budget-expenditure-year.d.ts +18 -0
  207. package/dist/esm/models/portfolio-budget-expenditure-year.js +14 -0
  208. package/dist/esm/models/portfolio-budget-usage-item.d.ts +28 -0
  209. package/dist/esm/models/portfolio-budget-usage-item.js +14 -0
  210. package/dist/esm/models/portfolio-bulk-delete-request.d.ts +20 -0
  211. package/dist/esm/models/portfolio-bulk-delete-request.js +14 -0
  212. package/dist/esm/models/portfolio-create.d.ts +21 -0
  213. package/dist/esm/models/portfolio-create.js +14 -0
  214. package/dist/esm/models/portfolio-investment-bulk-add-request.d.ts +20 -0
  215. package/dist/esm/models/portfolio-investment-bulk-add-request.js +14 -0
  216. package/dist/esm/models/portfolio-investment-bulk-add-response.d.ts +24 -0
  217. package/dist/esm/models/portfolio-investment-bulk-add-response.js +14 -0
  218. package/dist/esm/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
  219. package/dist/esm/models/portfolio-investment-bulk-delete-request.js +14 -0
  220. package/dist/esm/models/portfolio-investment-response.d.ts +25 -0
  221. package/dist/esm/models/portfolio-investment-response.js +14 -0
  222. package/dist/esm/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
  223. package/dist/esm/models/portfolio-kpidistribution-budget-item.js +14 -0
  224. package/dist/esm/models/portfolio-kpidistribution-response.d.ts +20 -0
  225. package/dist/esm/models/portfolio-kpidistribution-response.js +14 -0
  226. package/dist/esm/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
  227. package/dist/esm/models/portfolio-kpidistribution-year-overrun.js +14 -0
  228. package/dist/esm/models/portfolio-kpidistribution-year-value.d.ts +18 -0
  229. package/dist/esm/models/portfolio-kpidistribution-year-value.js +14 -0
  230. package/dist/esm/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
  231. package/dist/esm/models/portfolio-kpioverrun-distribution-response.js +14 -0
  232. package/dist/esm/models/portfolio-kpiresponse.d.ts +31 -0
  233. package/dist/esm/models/portfolio-kpiresponse.js +14 -0
  234. package/dist/esm/models/portfolio-overview-item-response.d.ts +40 -0
  235. package/dist/esm/models/portfolio-overview-item-response.js +14 -0
  236. package/dist/esm/models/portfolio-response.d.ts +25 -0
  237. package/dist/esm/models/portfolio-response.js +14 -0
  238. package/dist/esm/models/portfolio-update.d.ts +18 -0
  239. package/dist/esm/models/portfolio-update.js +14 -0
  240. package/dist/esm/models/preferred-option-request.d.ts +1 -1
  241. package/dist/esm/models/preferred-option-request.js +1 -1
  242. package/dist/esm/models/preferred-option-response.d.ts +1 -1
  243. package/dist/esm/models/preferred-option-response.js +1 -1
  244. package/dist/esm/models/validation-error.d.ts +1 -1
  245. package/dist/esm/models/validation-error.js +1 -1
  246. package/dist/esm/models/value-framework-create.d.ts +1 -1
  247. package/dist/esm/models/value-framework-create.js +1 -1
  248. package/dist/esm/models/value-framework-response.d.ts +1 -1
  249. package/dist/esm/models/value-framework-response.js +1 -1
  250. package/dist/esm/models/value-framework-update.d.ts +1 -1
  251. package/dist/esm/models/value-framework-update.js +1 -1
  252. package/dist/index.d.ts +1 -1
  253. package/dist/index.js +1 -1
  254. package/dist/models/budget-bulk-delete-request.d.ts +3 -3
  255. package/dist/models/budget-bulk-delete-request.js +1 -1
  256. package/dist/models/budget-create.d.ts +1 -1
  257. package/dist/models/budget-create.js +1 -1
  258. package/dist/models/budget-investment-response.d.ts +1 -1
  259. package/dist/models/budget-investment-response.js +1 -1
  260. package/dist/models/budget-link-options-request.d.ts +1 -1
  261. package/dist/models/budget-link-options-request.js +1 -1
  262. package/dist/models/budget-option-response.d.ts +1 -1
  263. package/dist/models/budget-option-response.js +1 -1
  264. package/dist/models/budget-overview-response.d.ts +1 -1
  265. package/dist/models/budget-overview-response.js +1 -1
  266. package/dist/models/budget-response.d.ts +1 -1
  267. package/dist/models/budget-response.js +1 -1
  268. package/dist/models/budget-update.d.ts +1 -1
  269. package/dist/models/budget-update.js +1 -1
  270. package/dist/models/bulk-delete-request.d.ts +1 -1
  271. package/dist/models/bulk-delete-request.js +1 -1
  272. package/dist/models/evolution-type.d.ts +1 -1
  273. package/dist/models/evolution-type.js +1 -1
  274. package/dist/models/httpvalidation-error.d.ts +1 -1
  275. package/dist/models/httpvalidation-error.js +1 -1
  276. package/dist/models/impact-apiresponse.d.ts +1 -2
  277. package/dist/models/impact-apiresponse.js +1 -1
  278. package/dist/models/impact-bulk-item.d.ts +33 -0
  279. package/dist/models/impact-bulk-item.js +15 -0
  280. package/dist/models/impact-create.d.ts +1 -5
  281. package/dist/models/impact-create.js +1 -1
  282. package/dist/models/impact-update.d.ts +1 -2
  283. package/dist/models/impact-update.js +1 -1
  284. package/dist/models/index.d.ts +23 -0
  285. package/dist/models/index.js +23 -0
  286. package/dist/models/investment-create.d.ts +1 -1
  287. package/dist/models/investment-create.js +1 -1
  288. package/dist/models/investment-overview-response.d.ts +1 -1
  289. package/dist/models/investment-overview-response.js +1 -1
  290. package/dist/models/investment-response.d.ts +1 -1
  291. package/dist/models/investment-response.js +1 -1
  292. package/dist/models/investment-update.d.ts +1 -1
  293. package/dist/models/investment-update.js +1 -1
  294. package/dist/models/location-inner.d.ts +1 -1
  295. package/dist/models/location-inner.js +1 -1
  296. package/dist/models/measurement-type.d.ts +1 -1
  297. package/dist/models/measurement-type.js +1 -1
  298. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  299. package/dist/models/metric-costs-per-year-create.js +1 -1
  300. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  301. package/dist/models/metric-costs-per-year-response.js +1 -1
  302. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  303. package/dist/models/metric-costs-per-year-update.js +1 -1
  304. package/dist/models/metric-create.d.ts +1 -1
  305. package/dist/models/metric-create.js +1 -1
  306. package/dist/models/metric-performance-response.d.ts +21 -0
  307. package/dist/models/metric-performance-response.js +15 -0
  308. package/dist/models/metric-performance-year.d.ts +18 -0
  309. package/dist/models/metric-performance-year.js +15 -0
  310. package/dist/models/metric-response.d.ts +1 -1
  311. package/dist/models/metric-response.js +1 -1
  312. package/dist/models/metric-type.d.ts +1 -1
  313. package/dist/models/metric-type.js +1 -1
  314. package/dist/models/metric-update.d.ts +1 -1
  315. package/dist/models/metric-update.js +1 -1
  316. package/dist/models/monetized-impact-response.d.ts +18 -0
  317. package/dist/models/monetized-impact-response.js +15 -0
  318. package/dist/models/monetized-impact-year.d.ts +19 -0
  319. package/dist/models/monetized-impact-year.js +15 -0
  320. package/dist/models/objective-create.d.ts +1 -1
  321. package/dist/models/objective-create.js +1 -1
  322. package/dist/models/objective-response.d.ts +1 -1
  323. package/dist/models/objective-response.js +1 -1
  324. package/dist/models/objective-update.d.ts +1 -1
  325. package/dist/models/objective-update.js +1 -1
  326. package/dist/models/objective-weight-create.d.ts +1 -1
  327. package/dist/models/objective-weight-create.js +1 -1
  328. package/dist/models/objective-weight-response.d.ts +1 -1
  329. package/dist/models/objective-weight-response.js +1 -1
  330. package/dist/models/objective-weight-update.d.ts +1 -1
  331. package/dist/models/objective-weight-update.js +1 -1
  332. package/dist/models/option-chart-kpi.d.ts +1 -1
  333. package/dist/models/option-chart-kpi.js +1 -1
  334. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  335. package/dist/models/option-chart-kpis-yearly.js +1 -1
  336. package/dist/models/option-create.d.ts +1 -1
  337. package/dist/models/option-create.js +1 -1
  338. package/dist/models/option-overview-response.d.ts +1 -1
  339. package/dist/models/option-overview-response.js +1 -1
  340. package/dist/models/option-response.d.ts +1 -1
  341. package/dist/models/option-response.js +1 -1
  342. package/dist/models/option-update.d.ts +1 -1
  343. package/dist/models/option-update.js +1 -1
  344. package/dist/models/portfolio-budget-expenditure-response.d.ts +21 -0
  345. package/dist/models/portfolio-budget-expenditure-response.js +15 -0
  346. package/dist/models/portfolio-budget-expenditure-year.d.ts +18 -0
  347. package/dist/models/portfolio-budget-expenditure-year.js +15 -0
  348. package/dist/models/portfolio-budget-usage-item.d.ts +28 -0
  349. package/dist/models/portfolio-budget-usage-item.js +15 -0
  350. package/dist/models/portfolio-bulk-delete-request.d.ts +20 -0
  351. package/dist/models/portfolio-bulk-delete-request.js +15 -0
  352. package/dist/models/portfolio-create.d.ts +21 -0
  353. package/dist/models/portfolio-create.js +15 -0
  354. package/dist/models/portfolio-investment-bulk-add-request.d.ts +20 -0
  355. package/dist/models/portfolio-investment-bulk-add-request.js +15 -0
  356. package/dist/models/portfolio-investment-bulk-add-response.d.ts +24 -0
  357. package/dist/models/portfolio-investment-bulk-add-response.js +15 -0
  358. package/dist/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
  359. package/dist/models/portfolio-investment-bulk-delete-request.js +15 -0
  360. package/dist/models/portfolio-investment-response.d.ts +25 -0
  361. package/dist/models/portfolio-investment-response.js +15 -0
  362. package/dist/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
  363. package/dist/models/portfolio-kpidistribution-budget-item.js +15 -0
  364. package/dist/models/portfolio-kpidistribution-response.d.ts +20 -0
  365. package/dist/models/portfolio-kpidistribution-response.js +15 -0
  366. package/dist/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
  367. package/dist/models/portfolio-kpidistribution-year-overrun.js +15 -0
  368. package/dist/models/portfolio-kpidistribution-year-value.d.ts +18 -0
  369. package/dist/models/portfolio-kpidistribution-year-value.js +15 -0
  370. package/dist/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
  371. package/dist/models/portfolio-kpioverrun-distribution-response.js +15 -0
  372. package/dist/models/portfolio-kpiresponse.d.ts +31 -0
  373. package/dist/models/portfolio-kpiresponse.js +15 -0
  374. package/dist/models/portfolio-overview-item-response.d.ts +40 -0
  375. package/dist/models/portfolio-overview-item-response.js +15 -0
  376. package/dist/models/portfolio-response.d.ts +25 -0
  377. package/dist/models/portfolio-response.js +15 -0
  378. package/dist/models/portfolio-update.d.ts +18 -0
  379. package/dist/models/portfolio-update.js +15 -0
  380. package/dist/models/preferred-option-request.d.ts +1 -1
  381. package/dist/models/preferred-option-request.js +1 -1
  382. package/dist/models/preferred-option-response.d.ts +1 -1
  383. package/dist/models/preferred-option-response.js +1 -1
  384. package/dist/models/validation-error.d.ts +1 -1
  385. package/dist/models/validation-error.js +1 -1
  386. package/dist/models/value-framework-create.d.ts +1 -1
  387. package/dist/models/value-framework-create.js +1 -1
  388. package/dist/models/value-framework-response.d.ts +1 -1
  389. package/dist/models/value-framework-response.js +1 -1
  390. package/dist/models/value-framework-update.d.ts +1 -1
  391. package/dist/models/value-framework-update.js +1 -1
  392. package/docs/BudgetApi.md +4 -4
  393. package/docs/BudgetBulkDeleteRequest.md +2 -2
  394. package/docs/ImpactAPIResponse.md +0 -2
  395. package/docs/ImpactApi.md +60 -0
  396. package/docs/ImpactBulkItem.md +27 -0
  397. package/docs/ImpactCreate.md +0 -2
  398. package/docs/ImpactUpdate.md +0 -2
  399. package/docs/InvestmentApi.md +29 -851
  400. package/docs/MetricPerformanceResponse.md +27 -0
  401. package/docs/MetricPerformanceYear.md +23 -0
  402. package/docs/MonetizedImpactResponse.md +21 -0
  403. package/docs/MonetizedImpactYear.md +25 -0
  404. package/docs/ObjectiveApi.md +0 -351
  405. package/docs/OptionApi.md +7 -312
  406. package/docs/PortfolioApi.md +395 -0
  407. package/docs/PortfolioBudgetExpenditureResponse.md +27 -0
  408. package/docs/PortfolioBudgetExpenditureYear.md +23 -0
  409. package/docs/PortfolioBudgetUsageItem.md +31 -0
  410. package/docs/PortfolioBulkDeleteRequest.md +21 -0
  411. package/docs/PortfolioCreate.md +23 -0
  412. package/docs/PortfolioInvestmentApi.md +350 -0
  413. package/docs/PortfolioInvestmentBulkAddRequest.md +21 -0
  414. package/docs/PortfolioInvestmentBulkAddResponse.md +23 -0
  415. package/docs/PortfolioInvestmentBulkDeleteRequest.md +21 -0
  416. package/docs/PortfolioInvestmentResponse.md +25 -0
  417. package/docs/PortfolioKPIApi.md +508 -0
  418. package/docs/PortfolioKPIDistributionBudgetItem.md +25 -0
  419. package/docs/PortfolioKPIDistributionResponse.md +25 -0
  420. package/docs/PortfolioKPIDistributionYearOverrun.md +23 -0
  421. package/docs/PortfolioKPIDistributionYearValue.md +23 -0
  422. package/docs/PortfolioKPIOverrunDistributionResponse.md +23 -0
  423. package/docs/PortfolioKPIResponse.md +31 -0
  424. package/docs/PortfolioOverviewItemResponse.md +43 -0
  425. package/docs/PortfolioResponse.md +31 -0
  426. package/docs/PortfolioUpdate.md +23 -0
  427. package/docs/ValueFrameworkApi.md +7 -778
  428. package/index.ts +1 -1
  429. package/models/budget-bulk-delete-request.ts +3 -3
  430. package/models/budget-create.ts +1 -1
  431. package/models/budget-investment-response.ts +1 -1
  432. package/models/budget-link-options-request.ts +1 -1
  433. package/models/budget-option-response.ts +1 -1
  434. package/models/budget-overview-response.ts +1 -1
  435. package/models/budget-response.ts +1 -1
  436. package/models/budget-update.ts +1 -1
  437. package/models/bulk-delete-request.ts +1 -1
  438. package/models/evolution-type.ts +1 -1
  439. package/models/httpvalidation-error.ts +1 -1
  440. package/models/impact-apiresponse.ts +1 -2
  441. package/models/impact-bulk-item.ts +43 -0
  442. package/models/impact-create.ts +1 -5
  443. package/models/impact-update.ts +1 -2
  444. package/models/index.ts +23 -0
  445. package/models/investment-create.ts +1 -1
  446. package/models/investment-overview-response.ts +1 -1
  447. package/models/investment-response.ts +1 -1
  448. package/models/investment-update.ts +1 -1
  449. package/models/location-inner.ts +1 -1
  450. package/models/measurement-type.ts +1 -1
  451. package/models/metric-costs-per-year-create.ts +1 -1
  452. package/models/metric-costs-per-year-response.ts +1 -1
  453. package/models/metric-costs-per-year-update.ts +1 -1
  454. package/models/metric-create.ts +1 -1
  455. package/models/metric-performance-response.ts +29 -0
  456. package/models/metric-performance-year.ts +24 -0
  457. package/models/metric-response.ts +1 -1
  458. package/models/metric-type.ts +1 -1
  459. package/models/metric-update.ts +1 -1
  460. package/models/monetized-impact-response.ts +26 -0
  461. package/models/monetized-impact-year.ts +25 -0
  462. package/models/objective-create.ts +1 -1
  463. package/models/objective-response.ts +1 -1
  464. package/models/objective-update.ts +1 -1
  465. package/models/objective-weight-create.ts +1 -1
  466. package/models/objective-weight-response.ts +1 -1
  467. package/models/objective-weight-update.ts +1 -1
  468. package/models/option-chart-kpi.ts +1 -1
  469. package/models/option-chart-kpis-yearly.ts +1 -1
  470. package/models/option-create.ts +1 -1
  471. package/models/option-overview-response.ts +1 -1
  472. package/models/option-response.ts +1 -1
  473. package/models/option-update.ts +1 -1
  474. package/models/portfolio-budget-expenditure-response.ts +29 -0
  475. package/models/portfolio-budget-expenditure-year.ts +24 -0
  476. package/models/portfolio-budget-usage-item.ts +34 -0
  477. package/models/portfolio-bulk-delete-request.ts +26 -0
  478. package/models/portfolio-create.ts +27 -0
  479. package/models/portfolio-investment-bulk-add-request.ts +26 -0
  480. package/models/portfolio-investment-bulk-add-response.ts +30 -0
  481. package/models/portfolio-investment-bulk-delete-request.ts +26 -0
  482. package/models/portfolio-investment-response.ts +31 -0
  483. package/models/portfolio-kpidistribution-budget-item.ts +25 -0
  484. package/models/portfolio-kpidistribution-response.ts +28 -0
  485. package/models/portfolio-kpidistribution-year-overrun.ts +27 -0
  486. package/models/portfolio-kpidistribution-year-value.ts +24 -0
  487. package/models/portfolio-kpioverrun-distribution-response.ts +27 -0
  488. package/models/portfolio-kpiresponse.ts +37 -0
  489. package/models/portfolio-overview-item-response.ts +46 -0
  490. package/models/portfolio-response.ts +31 -0
  491. package/models/portfolio-update.ts +24 -0
  492. package/models/preferred-option-request.ts +1 -1
  493. package/models/preferred-option-response.ts +1 -1
  494. package/models/validation-error.ts +1 -1
  495. package/models/value-framework-create.ts +1 -1
  496. package/models/value-framework-response.ts +1 -1
  497. package/models/value-framework-update.ts +1 -1
  498. package/package.json +1 -1
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.3.0-dev1
8
+ * The version of the OpenAPI document: 0.4.0-dev1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -67,126 +67,6 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
67
67
  options: localVarRequestOptions,
68
68
  };
69
69
  }),
70
- /**
71
- * Create a new impact under this option.
72
- * @summary Create an impact for this option
73
- * @param {string} optionId UUID of the option
74
- * @param {string} investmentId UUID of the investment
75
- * @param {ImpactCreate} impactCreate
76
- * @param {*} [options] Override http request option.
77
- * @throws {RequiredError}
78
- */
79
- createImpactForOption: (optionId_1, investmentId_1, impactCreate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, impactCreate_1, ...args_1], void 0, function* (optionId, investmentId, impactCreate, options = {}) {
80
- // verify required parameter 'optionId' is not null or undefined
81
- (0, common_1.assertParamExists)('createImpactForOption', 'optionId', optionId);
82
- // verify required parameter 'investmentId' is not null or undefined
83
- (0, common_1.assertParamExists)('createImpactForOption', 'investmentId', investmentId);
84
- // verify required parameter 'impactCreate' is not null or undefined
85
- (0, common_1.assertParamExists)('createImpactForOption', 'impactCreate', impactCreate);
86
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
87
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
88
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
89
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
90
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
91
- let baseOptions;
92
- if (configuration) {
93
- baseOptions = configuration.baseOptions;
94
- }
95
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
96
- const localVarHeaderParameter = {};
97
- const localVarQueryParameter = {};
98
- // authentication OAuth2AuthorizationCodeBearer required
99
- // oauth required
100
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
101
- localVarHeaderParameter['Content-Type'] = 'application/json';
102
- localVarHeaderParameter['Accept'] = 'application/json';
103
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
104
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
105
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
106
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactCreate, localVarRequestOptions, configuration);
107
- return {
108
- url: (0, common_1.toPathString)(localVarUrlObj),
109
- options: localVarRequestOptions,
110
- };
111
- }),
112
- /**
113
- * Create a new option under this investment.
114
- * @summary Create an option for this investment
115
- * @param {string} investmentId UUID of the investment
116
- * @param {OptionCreate} optionCreate
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- createOptionForInvestment: (investmentId_1, optionCreate_1, ...args_1) => __awaiter(this, [investmentId_1, optionCreate_1, ...args_1], void 0, function* (investmentId, optionCreate, options = {}) {
121
- // verify required parameter 'investmentId' is not null or undefined
122
- (0, common_1.assertParamExists)('createOptionForInvestment', 'investmentId', investmentId);
123
- // verify required parameter 'optionCreate' is not null or undefined
124
- (0, common_1.assertParamExists)('createOptionForInvestment', 'optionCreate', optionCreate);
125
- const localVarPath = `/investment/{investment_id}/option/`
126
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
127
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
128
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
129
- let baseOptions;
130
- if (configuration) {
131
- baseOptions = configuration.baseOptions;
132
- }
133
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
134
- const localVarHeaderParameter = {};
135
- const localVarQueryParameter = {};
136
- // authentication OAuth2AuthorizationCodeBearer required
137
- // oauth required
138
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
139
- localVarHeaderParameter['Content-Type'] = 'application/json';
140
- localVarHeaderParameter['Accept'] = 'application/json';
141
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
144
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionCreate, localVarRequestOptions, configuration);
145
- return {
146
- url: (0, common_1.toPathString)(localVarUrlObj),
147
- options: localVarRequestOptions,
148
- };
149
- }),
150
- /**
151
- * Delete an existing impact by its ID.
152
- * @summary Delete an impact for this option
153
- * @param {string} impactId UUID of the impact
154
- * @param {string} optionId UUID of the option
155
- * @param {string} investmentId UUID of the investment
156
- * @param {*} [options] Override http request option.
157
- * @throws {RequiredError}
158
- */
159
- deleteImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
160
- // verify required parameter 'impactId' is not null or undefined
161
- (0, common_1.assertParamExists)('deleteImpactForOption', 'impactId', impactId);
162
- // verify required parameter 'optionId' is not null or undefined
163
- (0, common_1.assertParamExists)('deleteImpactForOption', 'optionId', optionId);
164
- // verify required parameter 'investmentId' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteImpactForOption', 'investmentId', investmentId);
166
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
167
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
168
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
169
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
170
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
171
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
172
- let baseOptions;
173
- if (configuration) {
174
- baseOptions = configuration.baseOptions;
175
- }
176
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
177
- const localVarHeaderParameter = {};
178
- const localVarQueryParameter = {};
179
- // authentication OAuth2AuthorizationCodeBearer required
180
- // oauth required
181
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
182
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
183
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
- return {
186
- url: (0, common_1.toPathString)(localVarUrlObj),
187
- options: localVarRequestOptions,
188
- };
189
- }),
190
70
  /**
191
71
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
192
72
  * @summary Delete an investment
@@ -219,128 +99,6 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
219
99
  options: localVarRequestOptions,
220
100
  };
221
101
  }),
222
- /**
223
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
224
- * @summary Delete an option for this investment
225
- * @param {string} optionId UUID of the option
226
- * @param {string} investmentId UUID of the investment
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- deleteOptionForInvestment: (optionId_1, investmentId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, ...args_1], void 0, function* (optionId, investmentId, options = {}) {
231
- // verify required parameter 'optionId' is not null or undefined
232
- (0, common_1.assertParamExists)('deleteOptionForInvestment', 'optionId', optionId);
233
- // verify required parameter 'investmentId' is not null or undefined
234
- (0, common_1.assertParamExists)('deleteOptionForInvestment', 'investmentId', investmentId);
235
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
236
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
237
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
238
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
239
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
240
- let baseOptions;
241
- if (configuration) {
242
- baseOptions = configuration.baseOptions;
243
- }
244
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
245
- const localVarHeaderParameter = {};
246
- const localVarQueryParameter = {};
247
- // authentication OAuth2AuthorizationCodeBearer required
248
- // oauth required
249
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
250
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
253
- return {
254
- url: (0, common_1.toPathString)(localVarUrlObj),
255
- options: localVarRequestOptions,
256
- };
257
- }),
258
- /**
259
- * Retrieve a specific impact for the option.
260
- * @summary Get an impact for this option
261
- * @param {string} impactId UUID of the impact
262
- * @param {string} optionId UUID of the option
263
- * @param {string} investmentId UUID of the investment
264
- * @param {*} [options] Override http request option.
265
- * @throws {RequiredError}
266
- */
267
- getImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
268
- // verify required parameter 'impactId' is not null or undefined
269
- (0, common_1.assertParamExists)('getImpactForOption', 'impactId', impactId);
270
- // verify required parameter 'optionId' is not null or undefined
271
- (0, common_1.assertParamExists)('getImpactForOption', 'optionId', optionId);
272
- // verify required parameter 'investmentId' is not null or undefined
273
- (0, common_1.assertParamExists)('getImpactForOption', 'investmentId', investmentId);
274
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
275
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
276
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
277
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
278
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
280
- let baseOptions;
281
- if (configuration) {
282
- baseOptions = configuration.baseOptions;
283
- }
284
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
285
- const localVarHeaderParameter = {};
286
- const localVarQueryParameter = {};
287
- // authentication OAuth2AuthorizationCodeBearer required
288
- // oauth required
289
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
290
- localVarHeaderParameter['Accept'] = 'application/json';
291
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
292
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
294
- return {
295
- url: (0, common_1.toPathString)(localVarUrlObj),
296
- options: localVarRequestOptions,
297
- };
298
- }),
299
- /**
300
- * Retrieve a paginated list of all impacts for a specific option.
301
- * @summary List impacts for this option
302
- * @param {string} optionId UUID of the option
303
- * @param {string} investmentId UUID of the investment
304
- * @param {number} [offset] Number of records to skip
305
- * @param {number} [limit] Max number of records to return
306
- * @param {*} [options] Override http request option.
307
- * @throws {RequiredError}
308
- */
309
- getImpactsForOption: (optionId_1, investmentId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, offset_1, limit_1, ...args_1], void 0, function* (optionId, investmentId, offset, limit, options = {}) {
310
- // verify required parameter 'optionId' is not null or undefined
311
- (0, common_1.assertParamExists)('getImpactsForOption', 'optionId', optionId);
312
- // verify required parameter 'investmentId' is not null or undefined
313
- (0, common_1.assertParamExists)('getImpactsForOption', 'investmentId', investmentId);
314
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
315
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
316
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
317
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
318
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
319
- let baseOptions;
320
- if (configuration) {
321
- baseOptions = configuration.baseOptions;
322
- }
323
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
324
- const localVarHeaderParameter = {};
325
- const localVarQueryParameter = {};
326
- // authentication OAuth2AuthorizationCodeBearer required
327
- // oauth required
328
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
329
- if (offset !== undefined) {
330
- localVarQueryParameter['offset'] = offset;
331
- }
332
- if (limit !== undefined) {
333
- localVarQueryParameter['limit'] = limit;
334
- }
335
- localVarHeaderParameter['Accept'] = 'application/json';
336
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
337
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
338
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
339
- return {
340
- url: (0, common_1.toPathString)(localVarUrlObj),
341
- options: localVarRequestOptions,
342
- };
343
- }),
344
102
  /**
345
103
  * Retrieve a single investment by its ID.
346
104
  * @summary Get an investment by ID
@@ -447,20 +205,19 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
447
205
  };
448
206
  }),
449
207
  /**
450
- * Retrieve a specific option for the investment.
451
- * @summary Get an option for this investment
452
- * @param {string} optionId UUID of the option
208
+ * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
209
+ * @summary Partially update an investment
453
210
  * @param {string} investmentId UUID of the investment
211
+ * @param {InvestmentUpdate} investmentUpdate
454
212
  * @param {*} [options] Override http request option.
455
213
  * @throws {RequiredError}
456
214
  */
457
- getOptionForInvestment: (optionId_1, investmentId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, ...args_1], void 0, function* (optionId, investmentId, options = {}) {
458
- // verify required parameter 'optionId' is not null or undefined
459
- (0, common_1.assertParamExists)('getOptionForInvestment', 'optionId', optionId);
215
+ patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
460
216
  // verify required parameter 'investmentId' is not null or undefined
461
- (0, common_1.assertParamExists)('getOptionForInvestment', 'investmentId', investmentId);
462
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
463
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
217
+ (0, common_1.assertParamExists)('patchInvestment', 'investmentId', investmentId);
218
+ // verify required parameter 'investmentUpdate' is not null or undefined
219
+ (0, common_1.assertParamExists)('patchInvestment', 'investmentUpdate', investmentUpdate);
220
+ const localVarPath = `/investment/{investment_id}`
464
221
  .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
465
222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
466
223
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -468,672 +225,144 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
468
225
  if (configuration) {
469
226
  baseOptions = configuration.baseOptions;
470
227
  }
471
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
472
- const localVarHeaderParameter = {};
473
- const localVarQueryParameter = {};
474
- // authentication OAuth2AuthorizationCodeBearer required
475
- // oauth required
476
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
477
- localVarHeaderParameter['Accept'] = 'application/json';
478
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
480
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
481
- return {
482
- url: (0, common_1.toPathString)(localVarUrlObj),
483
- options: localVarRequestOptions,
484
- };
485
- }),
486
- /**
487
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
488
- * @summary Get the kpis for a given option inside a value framework
489
- * @param {string} investmentId UUID of the investment
490
- * @param {string} optionId UUID of the option
491
- * @param {string} valueFrameworkId UUID of the value framework
492
- * @param {*} [options] Override http request option.
493
- * @throws {RequiredError}
494
- */
495
- getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
496
- // verify required parameter 'investmentId' is not null or undefined
497
- (0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
498
- // verify required parameter 'optionId' is not null or undefined
499
- (0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
500
- // verify required parameter 'valueFrameworkId' is not null or undefined
501
- (0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
502
- const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
503
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
504
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
505
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
506
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
507
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
508
- let baseOptions;
509
- if (configuration) {
510
- baseOptions = configuration.baseOptions;
511
- }
512
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
228
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
513
229
  const localVarHeaderParameter = {};
514
230
  const localVarQueryParameter = {};
515
231
  // authentication OAuth2AuthorizationCodeBearer required
516
232
  // oauth required
517
233
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
234
+ localVarHeaderParameter['Content-Type'] = 'application/json';
518
235
  localVarHeaderParameter['Accept'] = 'application/json';
519
236
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
520
237
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
521
238
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentUpdate, localVarRequestOptions, configuration);
522
240
  return {
523
241
  url: (0, common_1.toPathString)(localVarUrlObj),
524
242
  options: localVarRequestOptions,
525
243
  };
526
244
  }),
527
245
  /**
528
- * Retrieve a paginated list of all options for a specific investment.
529
- * @summary List options for this investment
530
- * @param {string} investmentId UUID of the investment
531
- * @param {number} [offset] Number of records to skip
532
- * @param {number} [limit] Max number of records to return
246
+ * Create a new investment.
247
+ * @summary Create an investment
248
+ * @param {InvestmentCreate} investmentCreate
533
249
  * @param {*} [options] Override http request option.
534
250
  * @throws {RequiredError}
535
251
  */
536
- getOptionsForInvestment: (investmentId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [investmentId_1, offset_1, limit_1, ...args_1], void 0, function* (investmentId, offset, limit, options = {}) {
537
- // verify required parameter 'investmentId' is not null or undefined
538
- (0, common_1.assertParamExists)('getOptionsForInvestment', 'investmentId', investmentId);
539
- const localVarPath = `/investment/{investment_id}/option/`
540
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
252
+ postInvestment: (investmentCreate_1, ...args_1) => __awaiter(this, [investmentCreate_1, ...args_1], void 0, function* (investmentCreate, options = {}) {
253
+ // verify required parameter 'investmentCreate' is not null or undefined
254
+ (0, common_1.assertParamExists)('postInvestment', 'investmentCreate', investmentCreate);
255
+ const localVarPath = `/investment/`;
541
256
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
542
257
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
543
258
  let baseOptions;
544
259
  if (configuration) {
545
260
  baseOptions = configuration.baseOptions;
546
261
  }
547
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
548
263
  const localVarHeaderParameter = {};
549
264
  const localVarQueryParameter = {};
550
265
  // authentication OAuth2AuthorizationCodeBearer required
551
266
  // oauth required
552
267
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
553
- if (offset !== undefined) {
554
- localVarQueryParameter['offset'] = offset;
555
- }
556
- if (limit !== undefined) {
557
- localVarQueryParameter['limit'] = limit;
558
- }
268
+ localVarHeaderParameter['Content-Type'] = 'application/json';
559
269
  localVarHeaderParameter['Accept'] = 'application/json';
560
270
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
561
271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
562
272
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
273
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentCreate, localVarRequestOptions, configuration);
563
274
  return {
564
275
  url: (0, common_1.toPathString)(localVarUrlObj),
565
276
  options: localVarRequestOptions,
566
277
  };
567
278
  }),
279
+ };
280
+ };
281
+ exports.InvestmentApiAxiosParamCreator = InvestmentApiAxiosParamCreator;
282
+ /**
283
+ * InvestmentApi - functional programming interface
284
+ */
285
+ const InvestmentApiFp = function (configuration) {
286
+ const localVarAxiosParamCreator = (0, exports.InvestmentApiAxiosParamCreator)(configuration);
287
+ return {
568
288
  /**
569
- * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
570
- * @summary Option overview table for this investment
571
- * @param {string} investmentId UUID of the investment
572
- * @param {string} valueFrameworkId UUID of the value framework
573
- * @param {*} [options] Override http request option.
574
- * @throws {RequiredError}
575
- */
576
- getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
577
- // verify required parameter 'investmentId' is not null or undefined
578
- (0, common_1.assertParamExists)('getOptionsOverview', 'investmentId', investmentId);
579
- // verify required parameter 'valueFrameworkId' is not null or undefined
580
- (0, common_1.assertParamExists)('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
581
- const localVarPath = `/investment/{investment_id}/option/overview`
582
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
583
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
584
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
585
- let baseOptions;
586
- if (configuration) {
587
- baseOptions = configuration.baseOptions;
588
- }
589
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
590
- const localVarHeaderParameter = {};
591
- const localVarQueryParameter = {};
592
- // authentication OAuth2AuthorizationCodeBearer required
593
- // oauth required
594
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
595
- if (valueFrameworkId !== undefined) {
596
- localVarQueryParameter['value_framework_id'] = valueFrameworkId;
597
- }
598
- localVarHeaderParameter['Accept'] = 'application/json';
599
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
600
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
601
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
602
- return {
603
- url: (0, common_1.toPathString)(localVarUrlObj),
604
- options: localVarRequestOptions,
605
- };
606
- }),
607
- /**
608
- * Get the preferred option for an investment.
609
- * @summary Get the preferred option for an investment
610
- * @param {string} investmentId UUID of the investment
611
- * @param {*} [options] Override http request option.
612
- * @throws {RequiredError}
613
- */
614
- getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
615
- // verify required parameter 'investmentId' is not null or undefined
616
- (0, common_1.assertParamExists)('getPreferredOption', 'investmentId', investmentId);
617
- const localVarPath = `/investment/{investment_id}/preferred_option`
618
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
619
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
620
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
621
- let baseOptions;
622
- if (configuration) {
623
- baseOptions = configuration.baseOptions;
624
- }
625
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
626
- const localVarHeaderParameter = {};
627
- const localVarQueryParameter = {};
628
- // authentication OAuth2AuthorizationCodeBearer required
629
- // oauth required
630
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
631
- localVarHeaderParameter['Accept'] = 'application/json';
632
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
633
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
634
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
635
- return {
636
- url: (0, common_1.toPathString)(localVarUrlObj),
637
- options: localVarRequestOptions,
638
- };
639
- }),
640
- /**
641
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
642
- * @summary Partially update an impact for this option
643
- * @param {string} impactId UUID of the impact
644
- * @param {string} optionId UUID of the option
645
- * @param {string} investmentId UUID of the investment
646
- * @param {ImpactUpdate} impactUpdate
647
- * @param {*} [options] Override http request option.
648
- * @throws {RequiredError}
649
- */
650
- patchImpactForOption: (impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1], void 0, function* (impactId, optionId, investmentId, impactUpdate, options = {}) {
651
- // verify required parameter 'impactId' is not null or undefined
652
- (0, common_1.assertParamExists)('patchImpactForOption', 'impactId', impactId);
653
- // verify required parameter 'optionId' is not null or undefined
654
- (0, common_1.assertParamExists)('patchImpactForOption', 'optionId', optionId);
655
- // verify required parameter 'investmentId' is not null or undefined
656
- (0, common_1.assertParamExists)('patchImpactForOption', 'investmentId', investmentId);
657
- // verify required parameter 'impactUpdate' is not null or undefined
658
- (0, common_1.assertParamExists)('patchImpactForOption', 'impactUpdate', impactUpdate);
659
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
660
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
661
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
662
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
663
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
664
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
665
- let baseOptions;
666
- if (configuration) {
667
- baseOptions = configuration.baseOptions;
668
- }
669
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
670
- const localVarHeaderParameter = {};
671
- const localVarQueryParameter = {};
672
- // authentication OAuth2AuthorizationCodeBearer required
673
- // oauth required
674
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
675
- localVarHeaderParameter['Content-Type'] = 'application/json';
676
- localVarHeaderParameter['Accept'] = 'application/json';
677
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
678
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
679
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
680
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactUpdate, localVarRequestOptions, configuration);
681
- return {
682
- url: (0, common_1.toPathString)(localVarUrlObj),
683
- options: localVarRequestOptions,
684
- };
685
- }),
686
- /**
687
- * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
688
- * @summary Partially update an investment
689
- * @param {string} investmentId UUID of the investment
690
- * @param {InvestmentUpdate} investmentUpdate
691
- * @param {*} [options] Override http request option.
692
- * @throws {RequiredError}
693
- */
694
- patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
695
- // verify required parameter 'investmentId' is not null or undefined
696
- (0, common_1.assertParamExists)('patchInvestment', 'investmentId', investmentId);
697
- // verify required parameter 'investmentUpdate' is not null or undefined
698
- (0, common_1.assertParamExists)('patchInvestment', 'investmentUpdate', investmentUpdate);
699
- const localVarPath = `/investment/{investment_id}`
700
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
701
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
703
- let baseOptions;
704
- if (configuration) {
705
- baseOptions = configuration.baseOptions;
706
- }
707
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
708
- const localVarHeaderParameter = {};
709
- const localVarQueryParameter = {};
710
- // authentication OAuth2AuthorizationCodeBearer required
711
- // oauth required
712
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
713
- localVarHeaderParameter['Content-Type'] = 'application/json';
714
- localVarHeaderParameter['Accept'] = 'application/json';
715
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
716
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
717
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
718
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentUpdate, localVarRequestOptions, configuration);
719
- return {
720
- url: (0, common_1.toPathString)(localVarUrlObj),
721
- options: localVarRequestOptions,
722
- };
723
- }),
724
- /**
725
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
726
- * @summary Partially update an option for this investment
727
- * @param {string} optionId UUID of the option
728
- * @param {string} investmentId UUID of the investment
729
- * @param {OptionUpdate} optionUpdate
730
- * @param {*} [options] Override http request option.
731
- * @throws {RequiredError}
732
- */
733
- patchOptionForInvestment: (optionId_1, investmentId_1, optionUpdate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, optionUpdate_1, ...args_1], void 0, function* (optionId, investmentId, optionUpdate, options = {}) {
734
- // verify required parameter 'optionId' is not null or undefined
735
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'optionId', optionId);
736
- // verify required parameter 'investmentId' is not null or undefined
737
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'investmentId', investmentId);
738
- // verify required parameter 'optionUpdate' is not null or undefined
739
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'optionUpdate', optionUpdate);
740
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
741
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
742
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
743
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
744
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
745
- let baseOptions;
746
- if (configuration) {
747
- baseOptions = configuration.baseOptions;
748
- }
749
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
750
- const localVarHeaderParameter = {};
751
- const localVarQueryParameter = {};
752
- // authentication OAuth2AuthorizationCodeBearer required
753
- // oauth required
754
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
755
- localVarHeaderParameter['Content-Type'] = 'application/json';
756
- localVarHeaderParameter['Accept'] = 'application/json';
757
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
758
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
759
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
760
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionUpdate, localVarRequestOptions, configuration);
761
- return {
762
- url: (0, common_1.toPathString)(localVarUrlObj),
763
- options: localVarRequestOptions,
764
- };
765
- }),
766
- /**
767
- * Create a new investment.
768
- * @summary Create an investment
769
- * @param {InvestmentCreate} investmentCreate
770
- * @param {*} [options] Override http request option.
771
- * @throws {RequiredError}
772
- */
773
- postInvestment: (investmentCreate_1, ...args_1) => __awaiter(this, [investmentCreate_1, ...args_1], void 0, function* (investmentCreate, options = {}) {
774
- // verify required parameter 'investmentCreate' is not null or undefined
775
- (0, common_1.assertParamExists)('postInvestment', 'investmentCreate', investmentCreate);
776
- const localVarPath = `/investment/`;
777
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
778
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
779
- let baseOptions;
780
- if (configuration) {
781
- baseOptions = configuration.baseOptions;
782
- }
783
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
784
- const localVarHeaderParameter = {};
785
- const localVarQueryParameter = {};
786
- // authentication OAuth2AuthorizationCodeBearer required
787
- // oauth required
788
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
789
- localVarHeaderParameter['Content-Type'] = 'application/json';
790
- localVarHeaderParameter['Accept'] = 'application/json';
791
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
792
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
793
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
794
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentCreate, localVarRequestOptions, configuration);
795
- return {
796
- url: (0, common_1.toPathString)(localVarUrlObj),
797
- options: localVarRequestOptions,
798
- };
799
- }),
800
- /**
801
- * Set the preferred option for an investment.
802
- * @summary Set the preferred option for an investment
803
- * @param {string} investmentId UUID of the investment
804
- * @param {PreferredOptionRequest} preferredOptionRequest
805
- * @param {*} [options] Override http request option.
806
- * @throws {RequiredError}
807
- */
808
- setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
809
- // verify required parameter 'investmentId' is not null or undefined
810
- (0, common_1.assertParamExists)('setPreferredOption', 'investmentId', investmentId);
811
- // verify required parameter 'preferredOptionRequest' is not null or undefined
812
- (0, common_1.assertParamExists)('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
813
- const localVarPath = `/investment/{investment_id}/preferred_option`
814
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
815
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
816
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
817
- let baseOptions;
818
- if (configuration) {
819
- baseOptions = configuration.baseOptions;
820
- }
821
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
822
- const localVarHeaderParameter = {};
823
- const localVarQueryParameter = {};
824
- // authentication OAuth2AuthorizationCodeBearer required
825
- // oauth required
826
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
827
- localVarHeaderParameter['Content-Type'] = 'application/json';
828
- localVarHeaderParameter['Accept'] = 'application/json';
829
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
830
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
831
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
832
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(preferredOptionRequest, localVarRequestOptions, configuration);
833
- return {
834
- url: (0, common_1.toPathString)(localVarUrlObj),
835
- options: localVarRequestOptions,
836
- };
837
- }),
838
- };
839
- };
840
- exports.InvestmentApiAxiosParamCreator = InvestmentApiAxiosParamCreator;
841
- /**
842
- * InvestmentApi - functional programming interface
843
- */
844
- const InvestmentApiFp = function (configuration) {
845
- const localVarAxiosParamCreator = (0, exports.InvestmentApiAxiosParamCreator)(configuration);
846
- return {
847
- /**
848
- * Delete multiple investments by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no investments are deleted. Associated options are also deleted via cascade.
849
- * @summary Bulk delete investments
850
- * @param {BulkDeleteRequest} bulkDeleteRequest
851
- * @param {*} [options] Override http request option.
852
- * @throws {RequiredError}
853
- */
854
- bulkDeleteInvestments(bulkDeleteRequest, options) {
855
- return __awaiter(this, void 0, void 0, function* () {
856
- var _a, _b, _c;
857
- const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
858
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
859
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.bulkDeleteInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
860
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
861
- });
862
- },
863
- /**
864
- * Create a new impact under this option.
865
- * @summary Create an impact for this option
866
- * @param {string} optionId UUID of the option
867
- * @param {string} investmentId UUID of the investment
868
- * @param {ImpactCreate} impactCreate
869
- * @param {*} [options] Override http request option.
870
- * @throws {RequiredError}
871
- */
872
- createImpactForOption(optionId, investmentId, impactCreate, options) {
873
- return __awaiter(this, void 0, void 0, function* () {
874
- var _a, _b, _c;
875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
876
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
877
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.createImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
878
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
879
- });
880
- },
881
- /**
882
- * Create a new option under this investment.
883
- * @summary Create an option for this investment
884
- * @param {string} investmentId UUID of the investment
885
- * @param {OptionCreate} optionCreate
886
- * @param {*} [options] Override http request option.
887
- * @throws {RequiredError}
888
- */
889
- createOptionForInvestment(investmentId, optionCreate, options) {
890
- return __awaiter(this, void 0, void 0, function* () {
891
- var _a, _b, _c;
892
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createOptionForInvestment(investmentId, optionCreate, options);
893
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
894
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.createOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
895
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
896
- });
897
- },
898
- /**
899
- * Delete an existing impact by its ID.
900
- * @summary Delete an impact for this option
901
- * @param {string} impactId UUID of the impact
902
- * @param {string} optionId UUID of the option
903
- * @param {string} investmentId UUID of the investment
904
- * @param {*} [options] Override http request option.
905
- * @throws {RequiredError}
906
- */
907
- deleteImpactForOption(impactId, optionId, investmentId, options) {
908
- return __awaiter(this, void 0, void 0, function* () {
909
- var _a, _b, _c;
910
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
911
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
912
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.deleteImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
913
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
914
- });
915
- },
916
- /**
917
- * Delete an existing investment by its ID. Associated options are also deleted via cascade.
918
- * @summary Delete an investment
919
- * @param {string} investmentId UUID of the investment
920
- * @param {*} [options] Override http request option.
921
- * @throws {RequiredError}
922
- */
923
- deleteInvestment(investmentId, options) {
924
- return __awaiter(this, void 0, void 0, function* () {
925
- var _a, _b, _c;
926
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
927
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
928
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.deleteInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
929
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
930
- });
931
- },
932
- /**
933
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
934
- * @summary Delete an option for this investment
935
- * @param {string} optionId UUID of the option
936
- * @param {string} investmentId UUID of the investment
937
- * @param {*} [options] Override http request option.
938
- * @throws {RequiredError}
939
- */
940
- deleteOptionForInvestment(optionId, investmentId, options) {
941
- return __awaiter(this, void 0, void 0, function* () {
942
- var _a, _b, _c;
943
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
944
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
945
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.deleteOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
946
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
947
- });
948
- },
949
- /**
950
- * Retrieve a specific impact for the option.
951
- * @summary Get an impact for this option
952
- * @param {string} impactId UUID of the impact
953
- * @param {string} optionId UUID of the option
954
- * @param {string} investmentId UUID of the investment
955
- * @param {*} [options] Override http request option.
956
- * @throws {RequiredError}
957
- */
958
- getImpactForOption(impactId, optionId, investmentId, options) {
959
- return __awaiter(this, void 0, void 0, function* () {
960
- var _a, _b, _c;
961
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
962
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
963
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
964
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
965
- });
966
- },
967
- /**
968
- * Retrieve a paginated list of all impacts for a specific option.
969
- * @summary List impacts for this option
970
- * @param {string} optionId UUID of the option
971
- * @param {string} investmentId UUID of the investment
972
- * @param {number} [offset] Number of records to skip
973
- * @param {number} [limit] Max number of records to return
974
- * @param {*} [options] Override http request option.
975
- * @throws {RequiredError}
976
- */
977
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
978
- return __awaiter(this, void 0, void 0, function* () {
979
- var _a, _b, _c;
980
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
981
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
982
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getImpactsForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
983
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
984
- });
985
- },
986
- /**
987
- * Retrieve a single investment by its ID.
988
- * @summary Get an investment by ID
989
- * @param {string} investmentId UUID of the investment
990
- * @param {*} [options] Override http request option.
991
- * @throws {RequiredError}
992
- */
993
- getInvestmentById(investmentId, options) {
994
- return __awaiter(this, void 0, void 0, function* () {
995
- var _a, _b, _c;
996
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
997
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
998
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestmentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
999
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1000
- });
1001
- },
1002
- /**
1003
- * Retrieve a paginated list of all investments.
1004
- * @summary List investments
1005
- * @param {number} [offset] Number of records to skip
1006
- * @param {number} [limit] Max number of records to return
1007
- * @param {*} [options] Override http request option.
1008
- * @throws {RequiredError}
1009
- */
1010
- getInvestments(offset, limit, options) {
1011
- return __awaiter(this, void 0, void 0, function* () {
1012
- var _a, _b, _c;
1013
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
1014
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1015
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1016
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1017
- });
1018
- },
1019
- /**
1020
- * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
1021
- * @summary Investment overview table
1022
- * @param {string} valueFrameworkId UUID of the value framework
289
+ * Delete multiple investments by their IDs in a single request. All provided IDs must exist if any ID is not found, the request fails with 404 and no investments are deleted. Associated options are also deleted via cascade.
290
+ * @summary Bulk delete investments
291
+ * @param {BulkDeleteRequest} bulkDeleteRequest
1023
292
  * @param {*} [options] Override http request option.
1024
293
  * @throws {RequiredError}
1025
294
  */
1026
- getInvestmentsOverview(valueFrameworkId, options) {
295
+ bulkDeleteInvestments(bulkDeleteRequest, options) {
1027
296
  return __awaiter(this, void 0, void 0, function* () {
1028
297
  var _a, _b, _c;
1029
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
1030
299
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1031
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
300
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.bulkDeleteInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1032
301
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1033
302
  });
1034
303
  },
1035
304
  /**
1036
- * Retrieve a specific option for the investment.
1037
- * @summary Get an option for this investment
1038
- * @param {string} optionId UUID of the option
305
+ * Delete an existing investment by its ID. Associated options are also deleted via cascade.
306
+ * @summary Delete an investment
1039
307
  * @param {string} investmentId UUID of the investment
1040
308
  * @param {*} [options] Override http request option.
1041
309
  * @throws {RequiredError}
1042
310
  */
1043
- getOptionForInvestment(optionId, investmentId, options) {
311
+ deleteInvestment(investmentId, options) {
1044
312
  return __awaiter(this, void 0, void 0, function* () {
1045
313
  var _a, _b, _c;
1046
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionForInvestment(optionId, investmentId, options);
314
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
1047
315
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1048
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
316
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.deleteInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1049
317
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1050
318
  });
1051
319
  },
1052
320
  /**
1053
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1054
- * @summary Get the kpis for a given option inside a value framework
321
+ * Retrieve a single investment by its ID.
322
+ * @summary Get an investment by ID
1055
323
  * @param {string} investmentId UUID of the investment
1056
- * @param {string} optionId UUID of the option
1057
- * @param {string} valueFrameworkId UUID of the value framework
1058
324
  * @param {*} [options] Override http request option.
1059
325
  * @throws {RequiredError}
1060
326
  */
1061
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
327
+ getInvestmentById(investmentId, options) {
1062
328
  return __awaiter(this, void 0, void 0, function* () {
1063
329
  var _a, _b, _c;
1064
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
1065
331
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1066
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
332
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestmentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1067
333
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1068
334
  });
1069
335
  },
1070
336
  /**
1071
- * Retrieve a paginated list of all options for a specific investment.
1072
- * @summary List options for this investment
1073
- * @param {string} investmentId UUID of the investment
337
+ * Retrieve a paginated list of all investments.
338
+ * @summary List investments
1074
339
  * @param {number} [offset] Number of records to skip
1075
340
  * @param {number} [limit] Max number of records to return
1076
341
  * @param {*} [options] Override http request option.
1077
342
  * @throws {RequiredError}
1078
343
  */
1079
- getOptionsForInvestment(investmentId, offset, limit, options) {
344
+ getInvestments(offset, limit, options) {
1080
345
  return __awaiter(this, void 0, void 0, function* () {
1081
346
  var _a, _b, _c;
1082
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsForInvestment(investmentId, offset, limit, options);
347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
1083
348
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1084
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionsForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
349
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1085
350
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1086
351
  });
1087
352
  },
1088
353
  /**
1089
- * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1090
- * @summary Option overview table for this investment
1091
- * @param {string} investmentId UUID of the investment
354
+ * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
355
+ * @summary Investment overview table
1092
356
  * @param {string} valueFrameworkId UUID of the value framework
1093
357
  * @param {*} [options] Override http request option.
1094
358
  * @throws {RequiredError}
1095
359
  */
1096
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1097
- return __awaiter(this, void 0, void 0, function* () {
1098
- var _a, _b, _c;
1099
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1100
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1101
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1102
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1103
- });
1104
- },
1105
- /**
1106
- * Get the preferred option for an investment.
1107
- * @summary Get the preferred option for an investment
1108
- * @param {string} investmentId UUID of the investment
1109
- * @param {*} [options] Override http request option.
1110
- * @throws {RequiredError}
1111
- */
1112
- getPreferredOption(investmentId, options) {
1113
- return __awaiter(this, void 0, void 0, function* () {
1114
- var _a, _b, _c;
1115
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
1116
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1117
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1118
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1119
- });
1120
- },
1121
- /**
1122
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1123
- * @summary Partially update an impact for this option
1124
- * @param {string} impactId UUID of the impact
1125
- * @param {string} optionId UUID of the option
1126
- * @param {string} investmentId UUID of the investment
1127
- * @param {ImpactUpdate} impactUpdate
1128
- * @param {*} [options] Override http request option.
1129
- * @throws {RequiredError}
1130
- */
1131
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
360
+ getInvestmentsOverview(valueFrameworkId, options) {
1132
361
  return __awaiter(this, void 0, void 0, function* () {
1133
362
  var _a, _b, _c;
1134
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
1135
364
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1136
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.patchImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
365
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1137
366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1138
367
  });
1139
368
  },
@@ -1154,24 +383,6 @@ const InvestmentApiFp = function (configuration) {
1154
383
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1155
384
  });
1156
385
  },
1157
- /**
1158
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1159
- * @summary Partially update an option for this investment
1160
- * @param {string} optionId UUID of the option
1161
- * @param {string} investmentId UUID of the investment
1162
- * @param {OptionUpdate} optionUpdate
1163
- * @param {*} [options] Override http request option.
1164
- * @throws {RequiredError}
1165
- */
1166
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1167
- return __awaiter(this, void 0, void 0, function* () {
1168
- var _a, _b, _c;
1169
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchOptionForInvestment(optionId, investmentId, optionUpdate, options);
1170
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1171
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.patchOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1172
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1173
- });
1174
- },
1175
386
  /**
1176
387
  * Create a new investment.
1177
388
  * @summary Create an investment
@@ -1188,23 +399,6 @@ const InvestmentApiFp = function (configuration) {
1188
399
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1189
400
  });
1190
401
  },
1191
- /**
1192
- * Set the preferred option for an investment.
1193
- * @summary Set the preferred option for an investment
1194
- * @param {string} investmentId UUID of the investment
1195
- * @param {PreferredOptionRequest} preferredOptionRequest
1196
- * @param {*} [options] Override http request option.
1197
- * @throws {RequiredError}
1198
- */
1199
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1200
- return __awaiter(this, void 0, void 0, function* () {
1201
- var _a, _b, _c;
1202
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
1203
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1204
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.setPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1205
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1206
- });
1207
- },
1208
402
  };
1209
403
  };
1210
404
  exports.InvestmentApiFp = InvestmentApiFp;
@@ -1224,41 +418,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1224
418
  bulkDeleteInvestments(bulkDeleteRequest, options) {
1225
419
  return localVarFp.bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(axios, basePath));
1226
420
  },
1227
- /**
1228
- * Create a new impact under this option.
1229
- * @summary Create an impact for this option
1230
- * @param {string} optionId UUID of the option
1231
- * @param {string} investmentId UUID of the investment
1232
- * @param {ImpactCreate} impactCreate
1233
- * @param {*} [options] Override http request option.
1234
- * @throws {RequiredError}
1235
- */
1236
- createImpactForOption(optionId, investmentId, impactCreate, options) {
1237
- return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
1238
- },
1239
- /**
1240
- * Create a new option under this investment.
1241
- * @summary Create an option for this investment
1242
- * @param {string} investmentId UUID of the investment
1243
- * @param {OptionCreate} optionCreate
1244
- * @param {*} [options] Override http request option.
1245
- * @throws {RequiredError}
1246
- */
1247
- createOptionForInvestment(investmentId, optionCreate, options) {
1248
- return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
1249
- },
1250
- /**
1251
- * Delete an existing impact by its ID.
1252
- * @summary Delete an impact for this option
1253
- * @param {string} impactId UUID of the impact
1254
- * @param {string} optionId UUID of the option
1255
- * @param {string} investmentId UUID of the investment
1256
- * @param {*} [options] Override http request option.
1257
- * @throws {RequiredError}
1258
- */
1259
- deleteImpactForOption(impactId, optionId, investmentId, options) {
1260
- return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
1261
- },
1262
421
  /**
1263
422
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
1264
423
  * @summary Delete an investment
@@ -1269,42 +428,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1269
428
  deleteInvestment(investmentId, options) {
1270
429
  return localVarFp.deleteInvestment(investmentId, options).then((request) => request(axios, basePath));
1271
430
  },
1272
- /**
1273
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1274
- * @summary Delete an option for this investment
1275
- * @param {string} optionId UUID of the option
1276
- * @param {string} investmentId UUID of the investment
1277
- * @param {*} [options] Override http request option.
1278
- * @throws {RequiredError}
1279
- */
1280
- deleteOptionForInvestment(optionId, investmentId, options) {
1281
- return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1282
- },
1283
- /**
1284
- * Retrieve a specific impact for the option.
1285
- * @summary Get an impact for this option
1286
- * @param {string} impactId UUID of the impact
1287
- * @param {string} optionId UUID of the option
1288
- * @param {string} investmentId UUID of the investment
1289
- * @param {*} [options] Override http request option.
1290
- * @throws {RequiredError}
1291
- */
1292
- getImpactForOption(impactId, optionId, investmentId, options) {
1293
- return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
1294
- },
1295
- /**
1296
- * Retrieve a paginated list of all impacts for a specific option.
1297
- * @summary List impacts for this option
1298
- * @param {string} optionId UUID of the option
1299
- * @param {string} investmentId UUID of the investment
1300
- * @param {number} [offset] Number of records to skip
1301
- * @param {number} [limit] Max number of records to return
1302
- * @param {*} [options] Override http request option.
1303
- * @throws {RequiredError}
1304
- */
1305
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
1306
- return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
1307
- },
1308
431
  /**
1309
432
  * Retrieve a single investment by its ID.
1310
433
  * @summary Get an investment by ID
@@ -1336,75 +459,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1336
459
  getInvestmentsOverview(valueFrameworkId, options) {
1337
460
  return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1338
461
  },
1339
- /**
1340
- * Retrieve a specific option for the investment.
1341
- * @summary Get an option for this investment
1342
- * @param {string} optionId UUID of the option
1343
- * @param {string} investmentId UUID of the investment
1344
- * @param {*} [options] Override http request option.
1345
- * @throws {RequiredError}
1346
- */
1347
- getOptionForInvestment(optionId, investmentId, options) {
1348
- return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1349
- },
1350
- /**
1351
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1352
- * @summary Get the kpis for a given option inside a value framework
1353
- * @param {string} investmentId UUID of the investment
1354
- * @param {string} optionId UUID of the option
1355
- * @param {string} valueFrameworkId UUID of the value framework
1356
- * @param {*} [options] Override http request option.
1357
- * @throws {RequiredError}
1358
- */
1359
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1360
- return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
1361
- },
1362
- /**
1363
- * Retrieve a paginated list of all options for a specific investment.
1364
- * @summary List options for this investment
1365
- * @param {string} investmentId UUID of the investment
1366
- * @param {number} [offset] Number of records to skip
1367
- * @param {number} [limit] Max number of records to return
1368
- * @param {*} [options] Override http request option.
1369
- * @throws {RequiredError}
1370
- */
1371
- getOptionsForInvestment(investmentId, offset, limit, options) {
1372
- return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1373
- },
1374
- /**
1375
- * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1376
- * @summary Option overview table for this investment
1377
- * @param {string} investmentId UUID of the investment
1378
- * @param {string} valueFrameworkId UUID of the value framework
1379
- * @param {*} [options] Override http request option.
1380
- * @throws {RequiredError}
1381
- */
1382
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1383
- return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1384
- },
1385
- /**
1386
- * Get the preferred option for an investment.
1387
- * @summary Get the preferred option for an investment
1388
- * @param {string} investmentId UUID of the investment
1389
- * @param {*} [options] Override http request option.
1390
- * @throws {RequiredError}
1391
- */
1392
- getPreferredOption(investmentId, options) {
1393
- return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
1394
- },
1395
- /**
1396
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1397
- * @summary Partially update an impact for this option
1398
- * @param {string} impactId UUID of the impact
1399
- * @param {string} optionId UUID of the option
1400
- * @param {string} investmentId UUID of the investment
1401
- * @param {ImpactUpdate} impactUpdate
1402
- * @param {*} [options] Override http request option.
1403
- * @throws {RequiredError}
1404
- */
1405
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
1406
- return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
1407
- },
1408
462
  /**
1409
463
  * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1410
464
  * @summary Partially update an investment
@@ -1416,18 +470,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1416
470
  patchInvestment(investmentId, investmentUpdate, options) {
1417
471
  return localVarFp.patchInvestment(investmentId, investmentUpdate, options).then((request) => request(axios, basePath));
1418
472
  },
1419
- /**
1420
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1421
- * @summary Partially update an option for this investment
1422
- * @param {string} optionId UUID of the option
1423
- * @param {string} investmentId UUID of the investment
1424
- * @param {OptionUpdate} optionUpdate
1425
- * @param {*} [options] Override http request option.
1426
- * @throws {RequiredError}
1427
- */
1428
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1429
- return localVarFp.patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(axios, basePath));
1430
- },
1431
473
  /**
1432
474
  * Create a new investment.
1433
475
  * @summary Create an investment
@@ -1438,17 +480,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1438
480
  postInvestment(investmentCreate, options) {
1439
481
  return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
1440
482
  },
1441
- /**
1442
- * Set the preferred option for an investment.
1443
- * @summary Set the preferred option for an investment
1444
- * @param {string} investmentId UUID of the investment
1445
- * @param {PreferredOptionRequest} preferredOptionRequest
1446
- * @param {*} [options] Override http request option.
1447
- * @throws {RequiredError}
1448
- */
1449
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1450
- return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
1451
- },
1452
483
  };
1453
484
  };
1454
485
  exports.InvestmentApiFactory = InvestmentApiFactory;
@@ -1466,41 +497,6 @@ class InvestmentApi extends base_1.BaseAPI {
1466
497
  bulkDeleteInvestments(bulkDeleteRequest, options) {
1467
498
  return (0, exports.InvestmentApiFp)(this.configuration).bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
1468
499
  }
1469
- /**
1470
- * Create a new impact under this option.
1471
- * @summary Create an impact for this option
1472
- * @param {string} optionId UUID of the option
1473
- * @param {string} investmentId UUID of the investment
1474
- * @param {ImpactCreate} impactCreate
1475
- * @param {*} [options] Override http request option.
1476
- * @throws {RequiredError}
1477
- */
1478
- createImpactForOption(optionId, investmentId, impactCreate, options) {
1479
- return (0, exports.InvestmentApiFp)(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
1480
- }
1481
- /**
1482
- * Create a new option under this investment.
1483
- * @summary Create an option for this investment
1484
- * @param {string} investmentId UUID of the investment
1485
- * @param {OptionCreate} optionCreate
1486
- * @param {*} [options] Override http request option.
1487
- * @throws {RequiredError}
1488
- */
1489
- createOptionForInvestment(investmentId, optionCreate, options) {
1490
- return (0, exports.InvestmentApiFp)(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
1491
- }
1492
- /**
1493
- * Delete an existing impact by its ID.
1494
- * @summary Delete an impact for this option
1495
- * @param {string} impactId UUID of the impact
1496
- * @param {string} optionId UUID of the option
1497
- * @param {string} investmentId UUID of the investment
1498
- * @param {*} [options] Override http request option.
1499
- * @throws {RequiredError}
1500
- */
1501
- deleteImpactForOption(impactId, optionId, investmentId, options) {
1502
- return (0, exports.InvestmentApiFp)(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1503
- }
1504
500
  /**
1505
501
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
1506
502
  * @summary Delete an investment
@@ -1511,42 +507,6 @@ class InvestmentApi extends base_1.BaseAPI {
1511
507
  deleteInvestment(investmentId, options) {
1512
508
  return (0, exports.InvestmentApiFp)(this.configuration).deleteInvestment(investmentId, options).then((request) => request(this.axios, this.basePath));
1513
509
  }
1514
- /**
1515
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1516
- * @summary Delete an option for this investment
1517
- * @param {string} optionId UUID of the option
1518
- * @param {string} investmentId UUID of the investment
1519
- * @param {*} [options] Override http request option.
1520
- * @throws {RequiredError}
1521
- */
1522
- deleteOptionForInvestment(optionId, investmentId, options) {
1523
- return (0, exports.InvestmentApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1524
- }
1525
- /**
1526
- * Retrieve a specific impact for the option.
1527
- * @summary Get an impact for this option
1528
- * @param {string} impactId UUID of the impact
1529
- * @param {string} optionId UUID of the option
1530
- * @param {string} investmentId UUID of the investment
1531
- * @param {*} [options] Override http request option.
1532
- * @throws {RequiredError}
1533
- */
1534
- getImpactForOption(impactId, optionId, investmentId, options) {
1535
- return (0, exports.InvestmentApiFp)(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1536
- }
1537
- /**
1538
- * Retrieve a paginated list of all impacts for a specific option.
1539
- * @summary List impacts for this option
1540
- * @param {string} optionId UUID of the option
1541
- * @param {string} investmentId UUID of the investment
1542
- * @param {number} [offset] Number of records to skip
1543
- * @param {number} [limit] Max number of records to return
1544
- * @param {*} [options] Override http request option.
1545
- * @throws {RequiredError}
1546
- */
1547
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
1548
- return (0, exports.InvestmentApiFp)(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1549
- }
1550
510
  /**
1551
511
  * Retrieve a single investment by its ID.
1552
512
  * @summary Get an investment by ID
@@ -1578,75 +538,6 @@ class InvestmentApi extends base_1.BaseAPI {
1578
538
  getInvestmentsOverview(valueFrameworkId, options) {
1579
539
  return (0, exports.InvestmentApiFp)(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1580
540
  }
1581
- /**
1582
- * Retrieve a specific option for the investment.
1583
- * @summary Get an option for this investment
1584
- * @param {string} optionId UUID of the option
1585
- * @param {string} investmentId UUID of the investment
1586
- * @param {*} [options] Override http request option.
1587
- * @throws {RequiredError}
1588
- */
1589
- getOptionForInvestment(optionId, investmentId, options) {
1590
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1591
- }
1592
- /**
1593
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1594
- * @summary Get the kpis for a given option inside a value framework
1595
- * @param {string} investmentId UUID of the investment
1596
- * @param {string} optionId UUID of the option
1597
- * @param {string} valueFrameworkId UUID of the value framework
1598
- * @param {*} [options] Override http request option.
1599
- * @throws {RequiredError}
1600
- */
1601
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1602
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1603
- }
1604
- /**
1605
- * Retrieve a paginated list of all options for a specific investment.
1606
- * @summary List options for this investment
1607
- * @param {string} investmentId UUID of the investment
1608
- * @param {number} [offset] Number of records to skip
1609
- * @param {number} [limit] Max number of records to return
1610
- * @param {*} [options] Override http request option.
1611
- * @throws {RequiredError}
1612
- */
1613
- getOptionsForInvestment(investmentId, offset, limit, options) {
1614
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1615
- }
1616
- /**
1617
- * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1618
- * @summary Option overview table for this investment
1619
- * @param {string} investmentId UUID of the investment
1620
- * @param {string} valueFrameworkId UUID of the value framework
1621
- * @param {*} [options] Override http request option.
1622
- * @throws {RequiredError}
1623
- */
1624
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1625
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1626
- }
1627
- /**
1628
- * Get the preferred option for an investment.
1629
- * @summary Get the preferred option for an investment
1630
- * @param {string} investmentId UUID of the investment
1631
- * @param {*} [options] Override http request option.
1632
- * @throws {RequiredError}
1633
- */
1634
- getPreferredOption(investmentId, options) {
1635
- return (0, exports.InvestmentApiFp)(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1636
- }
1637
- /**
1638
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1639
- * @summary Partially update an impact for this option
1640
- * @param {string} impactId UUID of the impact
1641
- * @param {string} optionId UUID of the option
1642
- * @param {string} investmentId UUID of the investment
1643
- * @param {ImpactUpdate} impactUpdate
1644
- * @param {*} [options] Override http request option.
1645
- * @throws {RequiredError}
1646
- */
1647
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
1648
- return (0, exports.InvestmentApiFp)(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
1649
- }
1650
541
  /**
1651
542
  * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1652
543
  * @summary Partially update an investment
@@ -1658,18 +549,6 @@ class InvestmentApi extends base_1.BaseAPI {
1658
549
  patchInvestment(investmentId, investmentUpdate, options) {
1659
550
  return (0, exports.InvestmentApiFp)(this.configuration).patchInvestment(investmentId, investmentUpdate, options).then((request) => request(this.axios, this.basePath));
1660
551
  }
1661
- /**
1662
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1663
- * @summary Partially update an option for this investment
1664
- * @param {string} optionId UUID of the option
1665
- * @param {string} investmentId UUID of the investment
1666
- * @param {OptionUpdate} optionUpdate
1667
- * @param {*} [options] Override http request option.
1668
- * @throws {RequiredError}
1669
- */
1670
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1671
- return (0, exports.InvestmentApiFp)(this.configuration).patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(this.axios, this.basePath));
1672
- }
1673
552
  /**
1674
553
  * Create a new investment.
1675
554
  * @summary Create an investment
@@ -1680,16 +559,5 @@ class InvestmentApi extends base_1.BaseAPI {
1680
559
  postInvestment(investmentCreate, options) {
1681
560
  return (0, exports.InvestmentApiFp)(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
1682
561
  }
1683
- /**
1684
- * Set the preferred option for an investment.
1685
- * @summary Set the preferred option for an investment
1686
- * @param {string} investmentId UUID of the investment
1687
- * @param {PreferredOptionRequest} preferredOptionRequest
1688
- * @param {*} [options] Override http request option.
1689
- * @throws {RequiredError}
1690
- */
1691
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1692
- return (0, exports.InvestmentApiFp)(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1693
- }
1694
562
  }
1695
563
  exports.InvestmentApi = InvestmentApi;