@cosmotech/aip-client 0.3.0-dev1 → 0.3.0-dev3

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 (344) hide show
  1. package/README.md +6 -40
  2. package/api/budget-api.ts +1 -1
  3. package/api/default-api.ts +1 -1
  4. package/api/impact-api.ts +90 -1
  5. package/api/investment-api.ts +68 -1193
  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 +1 -454
  13. package/api/preferred-option-api.ts +1 -1
  14. package/api/value-framework-api.ts +61 -1189
  15. package/api/value-framework-costs-api.ts +1 -1
  16. package/api/value-framework-weights-api.ts +1 -1
  17. package/api.ts +1 -1
  18. package/base.ts +1 -1
  19. package/common.ts +1 -1
  20. package/configuration.ts +1 -1
  21. package/dist/api/budget-api.d.ts +1 -1
  22. package/dist/api/budget-api.js +1 -1
  23. package/dist/api/default-api.d.ts +1 -1
  24. package/dist/api/default-api.js +1 -1
  25. package/dist/api/impact-api.d.ts +42 -1
  26. package/dist/api/impact-api.js +85 -1
  27. package/dist/api/investment-api.d.ts +18 -535
  28. package/dist/api/investment-api.js +79 -1142
  29. package/dist/api/metric-api.d.ts +1 -1
  30. package/dist/api/metric-api.js +1 -1
  31. package/dist/api/metric-costs-api.d.ts +1 -1
  32. package/dist/api/metric-costs-api.js +1 -1
  33. package/dist/api/metric-costs-per-year-api.d.ts +1 -1
  34. package/dist/api/metric-costs-per-year-api.js +1 -1
  35. package/dist/api/objective-api.d.ts +1 -233
  36. package/dist/api/objective-api.js +1 -479
  37. package/dist/api/objective-weight-api.d.ts +1 -1
  38. package/dist/api/objective-weight-api.js +1 -1
  39. package/dist/api/objective-weights-api.d.ts +1 -1
  40. package/dist/api/objective-weights-api.js +1 -1
  41. package/dist/api/option-api.d.ts +1 -212
  42. package/dist/api/option-api.js +1 -431
  43. package/dist/api/preferred-option-api.d.ts +1 -1
  44. package/dist/api/preferred-option-api.js +1 -1
  45. package/dist/api/value-framework-api.d.ts +1 -519
  46. package/dist/api/value-framework-api.js +61 -1128
  47. package/dist/api/value-framework-costs-api.d.ts +1 -1
  48. package/dist/api/value-framework-costs-api.js +1 -1
  49. package/dist/api/value-framework-weights-api.d.ts +1 -1
  50. package/dist/api/value-framework-weights-api.js +1 -1
  51. package/dist/api.d.ts +1 -1
  52. package/dist/api.js +1 -1
  53. package/dist/base.d.ts +1 -1
  54. package/dist/base.js +1 -1
  55. package/dist/common.d.ts +1 -1
  56. package/dist/common.js +1 -1
  57. package/dist/configuration.d.ts +1 -1
  58. package/dist/configuration.js +1 -1
  59. package/dist/esm/api/budget-api.d.ts +1 -1
  60. package/dist/esm/api/budget-api.js +1 -1
  61. package/dist/esm/api/default-api.d.ts +1 -1
  62. package/dist/esm/api/default-api.js +1 -1
  63. package/dist/esm/api/impact-api.d.ts +42 -1
  64. package/dist/esm/api/impact-api.js +85 -1
  65. package/dist/esm/api/investment-api.d.ts +18 -535
  66. package/dist/esm/api/investment-api.js +78 -1141
  67. package/dist/esm/api/metric-api.d.ts +1 -1
  68. package/dist/esm/api/metric-api.js +1 -1
  69. package/dist/esm/api/metric-costs-api.d.ts +1 -1
  70. package/dist/esm/api/metric-costs-api.js +1 -1
  71. package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
  72. package/dist/esm/api/metric-costs-per-year-api.js +1 -1
  73. package/dist/esm/api/objective-api.d.ts +1 -233
  74. package/dist/esm/api/objective-api.js +1 -479
  75. package/dist/esm/api/objective-weight-api.d.ts +1 -1
  76. package/dist/esm/api/objective-weight-api.js +1 -1
  77. package/dist/esm/api/objective-weights-api.d.ts +1 -1
  78. package/dist/esm/api/objective-weights-api.js +1 -1
  79. package/dist/esm/api/option-api.d.ts +1 -212
  80. package/dist/esm/api/option-api.js +1 -431
  81. package/dist/esm/api/preferred-option-api.d.ts +1 -1
  82. package/dist/esm/api/preferred-option-api.js +1 -1
  83. package/dist/esm/api/value-framework-api.d.ts +1 -519
  84. package/dist/esm/api/value-framework-api.js +61 -1128
  85. package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
  86. package/dist/esm/api/value-framework-costs-api.js +1 -1
  87. package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
  88. package/dist/esm/api/value-framework-weights-api.js +1 -1
  89. package/dist/esm/api.d.ts +1 -1
  90. package/dist/esm/api.js +1 -1
  91. package/dist/esm/base.d.ts +1 -1
  92. package/dist/esm/base.js +1 -1
  93. package/dist/esm/common.d.ts +1 -1
  94. package/dist/esm/common.js +1 -1
  95. package/dist/esm/configuration.d.ts +1 -1
  96. package/dist/esm/configuration.js +1 -1
  97. package/dist/esm/index.d.ts +1 -1
  98. package/dist/esm/index.js +1 -1
  99. package/dist/esm/models/budget-bulk-delete-request.d.ts +1 -1
  100. package/dist/esm/models/budget-bulk-delete-request.js +1 -1
  101. package/dist/esm/models/budget-create.d.ts +1 -1
  102. package/dist/esm/models/budget-create.js +1 -1
  103. package/dist/esm/models/budget-investment-response.d.ts +1 -1
  104. package/dist/esm/models/budget-investment-response.js +1 -1
  105. package/dist/esm/models/budget-link-options-request.d.ts +1 -1
  106. package/dist/esm/models/budget-link-options-request.js +1 -1
  107. package/dist/esm/models/budget-option-response.d.ts +1 -1
  108. package/dist/esm/models/budget-option-response.js +1 -1
  109. package/dist/esm/models/budget-overview-response.d.ts +1 -1
  110. package/dist/esm/models/budget-overview-response.js +1 -1
  111. package/dist/esm/models/budget-response.d.ts +1 -1
  112. package/dist/esm/models/budget-response.js +1 -1
  113. package/dist/esm/models/budget-update.d.ts +1 -1
  114. package/dist/esm/models/budget-update.js +1 -1
  115. package/dist/esm/models/bulk-delete-request.d.ts +20 -0
  116. package/dist/esm/models/bulk-delete-request.js +14 -0
  117. package/dist/esm/models/evolution-type.d.ts +1 -1
  118. package/dist/esm/models/evolution-type.js +1 -1
  119. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  120. package/dist/esm/models/httpvalidation-error.js +1 -1
  121. package/dist/esm/models/impact-apiresponse.d.ts +1 -1
  122. package/dist/esm/models/impact-apiresponse.js +1 -1
  123. package/dist/esm/models/impact-bulk-item.d.ts +37 -0
  124. package/dist/esm/models/impact-bulk-item.js +14 -0
  125. package/dist/esm/models/impact-create.d.ts +1 -1
  126. package/dist/esm/models/impact-create.js +1 -1
  127. package/dist/esm/models/impact-update.d.ts +1 -1
  128. package/dist/esm/models/impact-update.js +1 -1
  129. package/dist/esm/models/index.d.ts +2 -0
  130. package/dist/esm/models/index.js +2 -0
  131. package/dist/esm/models/investment-create.d.ts +1 -1
  132. package/dist/esm/models/investment-create.js +1 -1
  133. package/dist/esm/models/investment-overview-response.d.ts +1 -1
  134. package/dist/esm/models/investment-overview-response.js +1 -1
  135. package/dist/esm/models/investment-response.d.ts +1 -1
  136. package/dist/esm/models/investment-response.js +1 -1
  137. package/dist/esm/models/investment-update.d.ts +1 -1
  138. package/dist/esm/models/investment-update.js +1 -1
  139. package/dist/esm/models/location-inner.d.ts +1 -1
  140. package/dist/esm/models/location-inner.js +1 -1
  141. package/dist/esm/models/measurement-type.d.ts +1 -1
  142. package/dist/esm/models/measurement-type.js +1 -1
  143. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  144. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  145. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  146. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  147. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  148. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  149. package/dist/esm/models/metric-create.d.ts +1 -1
  150. package/dist/esm/models/metric-create.js +1 -1
  151. package/dist/esm/models/metric-response.d.ts +1 -1
  152. package/dist/esm/models/metric-response.js +1 -1
  153. package/dist/esm/models/metric-type.d.ts +1 -1
  154. package/dist/esm/models/metric-type.js +1 -1
  155. package/dist/esm/models/metric-update.d.ts +1 -1
  156. package/dist/esm/models/metric-update.js +1 -1
  157. package/dist/esm/models/objective-create.d.ts +1 -1
  158. package/dist/esm/models/objective-create.js +1 -1
  159. package/dist/esm/models/objective-response.d.ts +1 -1
  160. package/dist/esm/models/objective-response.js +1 -1
  161. package/dist/esm/models/objective-update.d.ts +1 -1
  162. package/dist/esm/models/objective-update.js +1 -1
  163. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  164. package/dist/esm/models/objective-weight-create.js +1 -1
  165. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  166. package/dist/esm/models/objective-weight-response.js +1 -1
  167. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  168. package/dist/esm/models/objective-weight-update.js +1 -1
  169. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  170. package/dist/esm/models/option-chart-kpi.js +1 -1
  171. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  172. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  173. package/dist/esm/models/option-create.d.ts +1 -1
  174. package/dist/esm/models/option-create.js +1 -1
  175. package/dist/esm/models/option-overview-response.d.ts +1 -1
  176. package/dist/esm/models/option-overview-response.js +1 -1
  177. package/dist/esm/models/option-response.d.ts +1 -1
  178. package/dist/esm/models/option-response.js +1 -1
  179. package/dist/esm/models/option-update.d.ts +1 -1
  180. package/dist/esm/models/option-update.js +1 -1
  181. package/dist/esm/models/preferred-option-request.d.ts +1 -1
  182. package/dist/esm/models/preferred-option-request.js +1 -1
  183. package/dist/esm/models/preferred-option-response.d.ts +1 -1
  184. package/dist/esm/models/preferred-option-response.js +1 -1
  185. package/dist/esm/models/validation-error.d.ts +1 -1
  186. package/dist/esm/models/validation-error.js +1 -1
  187. package/dist/esm/models/value-framework-create.d.ts +1 -1
  188. package/dist/esm/models/value-framework-create.js +1 -1
  189. package/dist/esm/models/value-framework-response.d.ts +1 -1
  190. package/dist/esm/models/value-framework-response.js +1 -1
  191. package/dist/esm/models/value-framework-update.d.ts +1 -1
  192. package/dist/esm/models/value-framework-update.js +1 -1
  193. package/dist/index.d.ts +1 -1
  194. package/dist/index.js +1 -1
  195. package/dist/models/budget-bulk-delete-request.d.ts +1 -1
  196. package/dist/models/budget-bulk-delete-request.js +1 -1
  197. package/dist/models/budget-create.d.ts +1 -1
  198. package/dist/models/budget-create.js +1 -1
  199. package/dist/models/budget-investment-response.d.ts +1 -1
  200. package/dist/models/budget-investment-response.js +1 -1
  201. package/dist/models/budget-link-options-request.d.ts +1 -1
  202. package/dist/models/budget-link-options-request.js +1 -1
  203. package/dist/models/budget-option-response.d.ts +1 -1
  204. package/dist/models/budget-option-response.js +1 -1
  205. package/dist/models/budget-overview-response.d.ts +1 -1
  206. package/dist/models/budget-overview-response.js +1 -1
  207. package/dist/models/budget-response.d.ts +1 -1
  208. package/dist/models/budget-response.js +1 -1
  209. package/dist/models/budget-update.d.ts +1 -1
  210. package/dist/models/budget-update.js +1 -1
  211. package/dist/models/bulk-delete-request.d.ts +20 -0
  212. package/dist/models/bulk-delete-request.js +15 -0
  213. package/dist/models/evolution-type.d.ts +1 -1
  214. package/dist/models/evolution-type.js +1 -1
  215. package/dist/models/httpvalidation-error.d.ts +1 -1
  216. package/dist/models/httpvalidation-error.js +1 -1
  217. package/dist/models/impact-apiresponse.d.ts +1 -1
  218. package/dist/models/impact-apiresponse.js +1 -1
  219. package/dist/models/impact-bulk-item.d.ts +37 -0
  220. package/dist/models/impact-bulk-item.js +15 -0
  221. package/dist/models/impact-create.d.ts +1 -1
  222. package/dist/models/impact-create.js +1 -1
  223. package/dist/models/impact-update.d.ts +1 -1
  224. package/dist/models/impact-update.js +1 -1
  225. package/dist/models/index.d.ts +2 -0
  226. package/dist/models/index.js +2 -0
  227. package/dist/models/investment-create.d.ts +1 -1
  228. package/dist/models/investment-create.js +1 -1
  229. package/dist/models/investment-overview-response.d.ts +1 -1
  230. package/dist/models/investment-overview-response.js +1 -1
  231. package/dist/models/investment-response.d.ts +1 -1
  232. package/dist/models/investment-response.js +1 -1
  233. package/dist/models/investment-update.d.ts +1 -1
  234. package/dist/models/investment-update.js +1 -1
  235. package/dist/models/location-inner.d.ts +1 -1
  236. package/dist/models/location-inner.js +1 -1
  237. package/dist/models/measurement-type.d.ts +1 -1
  238. package/dist/models/measurement-type.js +1 -1
  239. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  240. package/dist/models/metric-costs-per-year-create.js +1 -1
  241. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  242. package/dist/models/metric-costs-per-year-response.js +1 -1
  243. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  244. package/dist/models/metric-costs-per-year-update.js +1 -1
  245. package/dist/models/metric-create.d.ts +1 -1
  246. package/dist/models/metric-create.js +1 -1
  247. package/dist/models/metric-response.d.ts +1 -1
  248. package/dist/models/metric-response.js +1 -1
  249. package/dist/models/metric-type.d.ts +1 -1
  250. package/dist/models/metric-type.js +1 -1
  251. package/dist/models/metric-update.d.ts +1 -1
  252. package/dist/models/metric-update.js +1 -1
  253. package/dist/models/objective-create.d.ts +1 -1
  254. package/dist/models/objective-create.js +1 -1
  255. package/dist/models/objective-response.d.ts +1 -1
  256. package/dist/models/objective-response.js +1 -1
  257. package/dist/models/objective-update.d.ts +1 -1
  258. package/dist/models/objective-update.js +1 -1
  259. package/dist/models/objective-weight-create.d.ts +1 -1
  260. package/dist/models/objective-weight-create.js +1 -1
  261. package/dist/models/objective-weight-response.d.ts +1 -1
  262. package/dist/models/objective-weight-response.js +1 -1
  263. package/dist/models/objective-weight-update.d.ts +1 -1
  264. package/dist/models/objective-weight-update.js +1 -1
  265. package/dist/models/option-chart-kpi.d.ts +1 -1
  266. package/dist/models/option-chart-kpi.js +1 -1
  267. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  268. package/dist/models/option-chart-kpis-yearly.js +1 -1
  269. package/dist/models/option-create.d.ts +1 -1
  270. package/dist/models/option-create.js +1 -1
  271. package/dist/models/option-overview-response.d.ts +1 -1
  272. package/dist/models/option-overview-response.js +1 -1
  273. package/dist/models/option-response.d.ts +1 -1
  274. package/dist/models/option-response.js +1 -1
  275. package/dist/models/option-update.d.ts +1 -1
  276. package/dist/models/option-update.js +1 -1
  277. package/dist/models/preferred-option-request.d.ts +1 -1
  278. package/dist/models/preferred-option-request.js +1 -1
  279. package/dist/models/preferred-option-response.d.ts +1 -1
  280. package/dist/models/preferred-option-response.js +1 -1
  281. package/dist/models/validation-error.d.ts +1 -1
  282. package/dist/models/validation-error.js +1 -1
  283. package/dist/models/value-framework-create.d.ts +1 -1
  284. package/dist/models/value-framework-create.js +1 -1
  285. package/dist/models/value-framework-response.d.ts +1 -1
  286. package/dist/models/value-framework-response.js +1 -1
  287. package/dist/models/value-framework-update.d.ts +1 -1
  288. package/dist/models/value-framework-update.js +1 -1
  289. package/docs/BulkDeleteRequest.md +21 -0
  290. package/docs/ImpactApi.md +60 -0
  291. package/docs/ImpactBulkItem.md +29 -0
  292. package/docs/InvestmentApi.md +43 -811
  293. package/docs/ObjectiveApi.md +0 -351
  294. package/docs/OptionApi.md +0 -305
  295. package/docs/ValueFrameworkApi.md +7 -778
  296. package/index.ts +1 -1
  297. package/models/budget-bulk-delete-request.ts +1 -1
  298. package/models/budget-create.ts +1 -1
  299. package/models/budget-investment-response.ts +1 -1
  300. package/models/budget-link-options-request.ts +1 -1
  301. package/models/budget-option-response.ts +1 -1
  302. package/models/budget-overview-response.ts +1 -1
  303. package/models/budget-response.ts +1 -1
  304. package/models/budget-update.ts +1 -1
  305. package/models/bulk-delete-request.ts +26 -0
  306. package/models/evolution-type.ts +1 -1
  307. package/models/httpvalidation-error.ts +1 -1
  308. package/models/impact-apiresponse.ts +1 -1
  309. package/models/impact-bulk-item.ts +47 -0
  310. package/models/impact-create.ts +1 -1
  311. package/models/impact-update.ts +1 -1
  312. package/models/index.ts +2 -0
  313. package/models/investment-create.ts +1 -1
  314. package/models/investment-overview-response.ts +1 -1
  315. package/models/investment-response.ts +1 -1
  316. package/models/investment-update.ts +1 -1
  317. package/models/location-inner.ts +1 -1
  318. package/models/measurement-type.ts +1 -1
  319. package/models/metric-costs-per-year-create.ts +1 -1
  320. package/models/metric-costs-per-year-response.ts +1 -1
  321. package/models/metric-costs-per-year-update.ts +1 -1
  322. package/models/metric-create.ts +1 -1
  323. package/models/metric-response.ts +1 -1
  324. package/models/metric-type.ts +1 -1
  325. package/models/metric-update.ts +1 -1
  326. package/models/objective-create.ts +1 -1
  327. package/models/objective-response.ts +1 -1
  328. package/models/objective-update.ts +1 -1
  329. package/models/objective-weight-create.ts +1 -1
  330. package/models/objective-weight-response.ts +1 -1
  331. package/models/objective-weight-update.ts +1 -1
  332. package/models/option-chart-kpi.ts +1 -1
  333. package/models/option-chart-kpis-yearly.ts +1 -1
  334. package/models/option-create.ts +1 -1
  335. package/models/option-overview-response.ts +1 -1
  336. package/models/option-response.ts +1 -1
  337. package/models/option-update.ts +1 -1
  338. package/models/preferred-option-request.ts +1 -1
  339. package/models/preferred-option-response.ts +1 -1
  340. package/models/validation-error.ts +1 -1
  341. package/models/value-framework-create.ts +1 -1
  342. package/models/value-framework-response.ts +1 -1
  343. package/models/value-framework-update.ts +1 -1
  344. package/package.json +1 -1
@@ -4,31 +4,18 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
- |[**createImpactForOption**](#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option|
8
- |[**createOptionForInvestment**](#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment|
9
- |[**deleteImpactForOption**](#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option|
7
+ |[**bulkDeleteInvestments**](#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments|
10
8
  |[**deleteInvestment**](#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment|
11
- |[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
12
- |[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
13
- |[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
14
9
  |[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
15
10
  |[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
16
11
  |[**getInvestmentsOverview**](#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table|
17
- |[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
18
- |[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
19
- |[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
20
- |[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
21
- |[**getPreferredOption**](#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment|
22
- |[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
23
12
  |[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
24
- |[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
25
13
  |[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
26
- |[**setPreferredOption**](#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment|
27
14
 
28
- # **createImpactForOption**
29
- > ImpactAPIResponse createImpactForOption(impactCreate)
15
+ # **bulkDeleteInvestments**
16
+ > bulkDeleteInvestments(bulkDeleteRequest)
30
17
 
31
- Create a new impact under this option.
18
+ 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.
32
19
 
33
20
  ### Example
34
21
 
@@ -36,522 +23,16 @@ Create a new impact under this option.
36
23
  import {
37
24
  InvestmentApi,
38
25
  Configuration,
39
- ImpactCreate
26
+ BulkDeleteRequest
40
27
  } from '@cosmotech/aip-client';
41
28
 
42
29
  const configuration = new Configuration();
43
30
  const apiInstance = new InvestmentApi(configuration);
44
31
 
45
- let optionId: string; //UUID of the option (default to undefined)
46
- let investmentId: string; //UUID of the investment (default to undefined)
47
- let impactCreate: ImpactCreate; //
48
-
49
- const { status, data } = await apiInstance.createImpactForOption(
50
- optionId,
51
- investmentId,
52
- impactCreate
53
- );
54
- ```
55
-
56
- ### Parameters
57
-
58
- |Name | Type | Description | Notes|
59
- |------------- | ------------- | ------------- | -------------|
60
- | **impactCreate** | **ImpactCreate**| | |
61
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
62
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
63
-
64
-
65
- ### Return type
66
-
67
- **ImpactAPIResponse**
68
-
69
- ### Authorization
70
-
71
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
72
-
73
- ### HTTP request headers
74
-
75
- - **Content-Type**: application/json
76
- - **Accept**: application/json
77
-
78
-
79
- ### HTTP response details
80
- | Status code | Description | Response headers |
81
- |-------------|-------------|------------------|
82
- |**201** | Impact created successfully | - |
83
- |**400** | Invalid input or constraint violation | - |
84
- |**404** | Investment or option not found | - |
85
-
86
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
87
-
88
- # **createOptionForInvestment**
89
- > OptionResponse createOptionForInvestment(optionCreate)
90
-
91
- Create a new option under this investment.
92
-
93
- ### Example
94
-
95
- ```typescript
96
- import {
97
- InvestmentApi,
98
- Configuration,
99
- OptionCreate
100
- } from '@cosmotech/aip-client';
101
-
102
- const configuration = new Configuration();
103
- const apiInstance = new InvestmentApi(configuration);
104
-
105
- let investmentId: string; //UUID of the investment (default to undefined)
106
- let optionCreate: OptionCreate; //
107
-
108
- const { status, data } = await apiInstance.createOptionForInvestment(
109
- investmentId,
110
- optionCreate
111
- );
112
- ```
113
-
114
- ### Parameters
115
-
116
- |Name | Type | Description | Notes|
117
- |------------- | ------------- | ------------- | -------------|
118
- | **optionCreate** | **OptionCreate**| | |
119
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
120
-
121
-
122
- ### Return type
123
-
124
- **OptionResponse**
125
-
126
- ### Authorization
127
-
128
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
129
-
130
- ### HTTP request headers
131
-
132
- - **Content-Type**: application/json
133
- - **Accept**: application/json
134
-
135
-
136
- ### HTTP response details
137
- | Status code | Description | Response headers |
138
- |-------------|-------------|------------------|
139
- |**201** | Option created successfully | - |
140
- |**400** | Invalid input or constraint violation | - |
141
- |**404** | Investment not found | - |
142
-
143
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
144
-
145
- # **deleteImpactForOption**
146
- > deleteImpactForOption()
147
-
148
- Delete an existing impact by its ID.
149
-
150
- ### Example
151
-
152
- ```typescript
153
- import {
154
- InvestmentApi,
155
- Configuration
156
- } from '@cosmotech/aip-client';
157
-
158
- const configuration = new Configuration();
159
- const apiInstance = new InvestmentApi(configuration);
160
-
161
- let impactId: string; //UUID of the impact (default to undefined)
162
- let optionId: string; //UUID of the option (default to undefined)
163
- let investmentId: string; //UUID of the investment (default to undefined)
164
-
165
- const { status, data } = await apiInstance.deleteImpactForOption(
166
- impactId,
167
- optionId,
168
- investmentId
169
- );
170
- ```
171
-
172
- ### Parameters
173
-
174
- |Name | Type | Description | Notes|
175
- |------------- | ------------- | ------------- | -------------|
176
- | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
177
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
178
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
179
-
180
-
181
- ### Return type
182
-
183
- void (empty response body)
184
-
185
- ### Authorization
186
-
187
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
188
-
189
- ### HTTP request headers
190
-
191
- - **Content-Type**: Not defined
192
- - **Accept**: Not defined
193
-
194
-
195
- ### HTTP response details
196
- | Status code | Description | Response headers |
197
- |-------------|-------------|------------------|
198
- |**204** | Impact successfully deleted | - |
199
- |**404** | Investment, option, or impact not found | - |
200
-
201
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
202
-
203
- # **deleteInvestment**
204
- > deleteInvestment()
205
-
206
- Delete an existing investment by its ID. Associated options are also deleted via cascade.
207
-
208
- ### Example
209
-
210
- ```typescript
211
- import {
212
- InvestmentApi,
213
- Configuration
214
- } from '@cosmotech/aip-client';
215
-
216
- const configuration = new Configuration();
217
- const apiInstance = new InvestmentApi(configuration);
218
-
219
- let investmentId: string; //UUID of the investment (default to undefined)
220
-
221
- const { status, data } = await apiInstance.deleteInvestment(
222
- investmentId
223
- );
224
- ```
225
-
226
- ### Parameters
227
-
228
- |Name | Type | Description | Notes|
229
- |------------- | ------------- | ------------- | -------------|
230
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
231
-
232
-
233
- ### Return type
234
-
235
- void (empty response body)
236
-
237
- ### Authorization
238
-
239
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
240
-
241
- ### HTTP request headers
242
-
243
- - **Content-Type**: Not defined
244
- - **Accept**: Not defined
245
-
246
-
247
- ### HTTP response details
248
- | Status code | Description | Response headers |
249
- |-------------|-------------|------------------|
250
- |**204** | Investment successfully deleted | - |
251
- |**404** | Investment not found | - |
252
-
253
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
254
-
255
- # **deleteOptionForInvestment**
256
- > deleteOptionForInvestment()
257
-
258
- Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
259
-
260
- ### Example
261
-
262
- ```typescript
263
- import {
264
- InvestmentApi,
265
- Configuration
266
- } from '@cosmotech/aip-client';
267
-
268
- const configuration = new Configuration();
269
- const apiInstance = new InvestmentApi(configuration);
270
-
271
- let optionId: string; //UUID of the option (default to undefined)
272
- let investmentId: string; //UUID of the investment (default to undefined)
273
-
274
- const { status, data } = await apiInstance.deleteOptionForInvestment(
275
- optionId,
276
- investmentId
277
- );
278
- ```
279
-
280
- ### Parameters
281
-
282
- |Name | Type | Description | Notes|
283
- |------------- | ------------- | ------------- | -------------|
284
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
285
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
286
-
287
-
288
- ### Return type
289
-
290
- void (empty response body)
291
-
292
- ### Authorization
293
-
294
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
295
-
296
- ### HTTP request headers
297
-
298
- - **Content-Type**: Not defined
299
- - **Accept**: Not defined
300
-
301
-
302
- ### HTTP response details
303
- | Status code | Description | Response headers |
304
- |-------------|-------------|------------------|
305
- |**204** | Option successfully deleted | - |
306
- |**404** | Investment or option not found | - |
307
-
308
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
309
-
310
- # **getImpactForOption**
311
- > ImpactAPIResponse getImpactForOption()
312
-
313
- Retrieve a specific impact for the option.
314
-
315
- ### Example
316
-
317
- ```typescript
318
- import {
319
- InvestmentApi,
320
- Configuration
321
- } from '@cosmotech/aip-client';
322
-
323
- const configuration = new Configuration();
324
- const apiInstance = new InvestmentApi(configuration);
325
-
326
- let impactId: string; //UUID of the impact (default to undefined)
327
- let optionId: string; //UUID of the option (default to undefined)
328
- let investmentId: string; //UUID of the investment (default to undefined)
329
-
330
- const { status, data } = await apiInstance.getImpactForOption(
331
- impactId,
332
- optionId,
333
- investmentId
334
- );
335
- ```
336
-
337
- ### Parameters
338
-
339
- |Name | Type | Description | Notes|
340
- |------------- | ------------- | ------------- | -------------|
341
- | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
342
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
343
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
344
-
345
-
346
- ### Return type
347
-
348
- **ImpactAPIResponse**
349
-
350
- ### Authorization
351
-
352
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
353
-
354
- ### HTTP request headers
355
-
356
- - **Content-Type**: Not defined
357
- - **Accept**: application/json
358
-
359
-
360
- ### HTTP response details
361
- | Status code | Description | Response headers |
362
- |-------------|-------------|------------------|
363
- |**200** | The requested impact | - |
364
- |**404** | Investment, option, or impact not found | - |
365
-
366
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
367
-
368
- # **getImpactsForOption**
369
- > Array<ImpactAPIResponse> getImpactsForOption()
370
-
371
- Retrieve a paginated list of all impacts for a specific option.
372
-
373
- ### Example
374
-
375
- ```typescript
376
- import {
377
- InvestmentApi,
378
- Configuration
379
- } from '@cosmotech/aip-client';
380
-
381
- const configuration = new Configuration();
382
- const apiInstance = new InvestmentApi(configuration);
383
-
384
- let optionId: string; //UUID of the option (default to undefined)
385
- let investmentId: string; //UUID of the investment (default to undefined)
386
- let offset: number; //Number of records to skip (optional) (default to 0)
387
- let limit: number; //Max number of records to return (optional) (default to 100)
388
-
389
- const { status, data } = await apiInstance.getImpactsForOption(
390
- optionId,
391
- investmentId,
392
- offset,
393
- limit
394
- );
395
- ```
396
-
397
- ### Parameters
398
-
399
- |Name | Type | Description | Notes|
400
- |------------- | ------------- | ------------- | -------------|
401
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
402
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
403
- | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
404
- | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
405
-
406
-
407
- ### Return type
408
-
409
- **Array<ImpactAPIResponse>**
410
-
411
- ### Authorization
412
-
413
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
414
-
415
- ### HTTP request headers
416
-
417
- - **Content-Type**: Not defined
418
- - **Accept**: application/json
419
-
420
-
421
- ### HTTP response details
422
- | Status code | Description | Response headers |
423
- |-------------|-------------|------------------|
424
- |**200** | List of impacts for the option | - |
425
- |**404** | Investment or option not found | - |
426
-
427
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
428
-
429
- # **getInvestmentById**
430
- > InvestmentResponse getInvestmentById()
431
-
432
- Retrieve a single investment by its ID.
433
-
434
- ### Example
435
-
436
- ```typescript
437
- import {
438
- InvestmentApi,
439
- Configuration
440
- } from '@cosmotech/aip-client';
441
-
442
- const configuration = new Configuration();
443
- const apiInstance = new InvestmentApi(configuration);
444
-
445
- let investmentId: string; //UUID of the investment (default to undefined)
446
-
447
- const { status, data } = await apiInstance.getInvestmentById(
448
- investmentId
449
- );
450
- ```
451
-
452
- ### Parameters
453
-
454
- |Name | Type | Description | Notes|
455
- |------------- | ------------- | ------------- | -------------|
456
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
457
-
458
-
459
- ### Return type
460
-
461
- **InvestmentResponse**
462
-
463
- ### Authorization
464
-
465
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
466
-
467
- ### HTTP request headers
468
-
469
- - **Content-Type**: Not defined
470
- - **Accept**: application/json
471
-
472
-
473
- ### HTTP response details
474
- | Status code | Description | Response headers |
475
- |-------------|-------------|------------------|
476
- |**200** | The requested investment | - |
477
- |**404** | Investment not found | - |
478
-
479
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
480
-
481
- # **getInvestments**
482
- > Array<InvestmentResponse> getInvestments()
483
-
484
- Retrieve a paginated list of all investments.
485
-
486
- ### Example
487
-
488
- ```typescript
489
- import {
490
- InvestmentApi,
491
- Configuration
492
- } from '@cosmotech/aip-client';
493
-
494
- const configuration = new Configuration();
495
- const apiInstance = new InvestmentApi(configuration);
496
-
497
- let offset: number; //Number of records to skip (optional) (default to 0)
498
- let limit: number; //Max number of records to return (optional) (default to 100)
499
-
500
- const { status, data } = await apiInstance.getInvestments(
501
- offset,
502
- limit
503
- );
504
- ```
505
-
506
- ### Parameters
507
-
508
- |Name | Type | Description | Notes|
509
- |------------- | ------------- | ------------- | -------------|
510
- | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
511
- | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
512
-
513
-
514
- ### Return type
515
-
516
- **Array<InvestmentResponse>**
517
-
518
- ### Authorization
519
-
520
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
521
-
522
- ### HTTP request headers
523
-
524
- - **Content-Type**: Not defined
525
- - **Accept**: application/json
526
-
527
-
528
- ### HTTP response details
529
- | Status code | Description | Response headers |
530
- |-------------|-------------|------------------|
531
- |**200** | List of investments | - |
532
-
533
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
534
-
535
- # **getInvestmentsOverview**
536
- > Array<InvestmentOverviewResponse> getInvestmentsOverview()
537
-
538
- 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.
539
-
540
- ### Example
541
-
542
- ```typescript
543
- import {
544
- InvestmentApi,
545
- Configuration
546
- } from '@cosmotech/aip-client';
32
+ let bulkDeleteRequest: BulkDeleteRequest; //
547
33
 
548
- const configuration = new Configuration();
549
- const apiInstance = new InvestmentApi(configuration);
550
-
551
- let valueFrameworkId: string; //UUID of the value framework (default to undefined)
552
-
553
- const { status, data } = await apiInstance.getInvestmentsOverview(
554
- valueFrameworkId
34
+ const { status, data } = await apiInstance.bulkDeleteInvestments(
35
+ bulkDeleteRequest
555
36
  );
556
37
  ```
557
38
 
@@ -559,12 +40,12 @@ const { status, data } = await apiInstance.getInvestmentsOverview(
559
40
 
560
41
  |Name | Type | Description | Notes|
561
42
  |------------- | ------------- | ------------- | -------------|
562
- | **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
43
+ | **bulkDeleteRequest** | **BulkDeleteRequest**| | |
563
44
 
564
45
 
565
46
  ### Return type
566
47
 
567
- **Array<InvestmentOverviewResponse>**
48
+ void (empty response body)
568
49
 
569
50
  ### Authorization
570
51
 
@@ -572,22 +53,22 @@ const { status, data } = await apiInstance.getInvestmentsOverview(
572
53
 
573
54
  ### HTTP request headers
574
55
 
575
- - **Content-Type**: Not defined
576
- - **Accept**: application/json
56
+ - **Content-Type**: application/json
57
+ - **Accept**: Not defined
577
58
 
578
59
 
579
60
  ### HTTP response details
580
61
  | Status code | Description | Response headers |
581
62
  |-------------|-------------|------------------|
582
- |**200** | Overview list of all investments | - |
583
- |**404** | Value framework not found | - |
63
+ |**204** | All investments successfully deleted | - |
64
+ |**404** | One or more investment IDs not found | - |
584
65
 
585
66
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
586
67
 
587
- # **getOptionForInvestment**
588
- > OptionResponse getOptionForInvestment()
68
+ # **deleteInvestment**
69
+ > deleteInvestment()
589
70
 
590
- Retrieve a specific option for the investment.
71
+ Delete an existing investment by its ID. Associated options are also deleted via cascade.
591
72
 
592
73
  ### Example
593
74
 
@@ -600,11 +81,9 @@ import {
600
81
  const configuration = new Configuration();
601
82
  const apiInstance = new InvestmentApi(configuration);
602
83
 
603
- let optionId: string; //UUID of the option (default to undefined)
604
84
  let investmentId: string; //UUID of the investment (default to undefined)
605
85
 
606
- const { status, data } = await apiInstance.getOptionForInvestment(
607
- optionId,
86
+ const { status, data } = await apiInstance.deleteInvestment(
608
87
  investmentId
609
88
  );
610
89
  ```
@@ -613,13 +92,12 @@ const { status, data } = await apiInstance.getOptionForInvestment(
613
92
 
614
93
  |Name | Type | Description | Notes|
615
94
  |------------- | ------------- | ------------- | -------------|
616
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
617
95
  | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
618
96
 
619
97
 
620
98
  ### Return type
621
99
 
622
- **OptionResponse**
100
+ void (empty response body)
623
101
 
624
102
  ### Authorization
625
103
 
@@ -628,21 +106,21 @@ const { status, data } = await apiInstance.getOptionForInvestment(
628
106
  ### HTTP request headers
629
107
 
630
108
  - **Content-Type**: Not defined
631
- - **Accept**: application/json
109
+ - **Accept**: Not defined
632
110
 
633
111
 
634
112
  ### HTTP response details
635
113
  | Status code | Description | Response headers |
636
114
  |-------------|-------------|------------------|
637
- |**200** | The requested option | - |
638
- |**404** | Investment or option not found | - |
115
+ |**204** | Investment successfully deleted | - |
116
+ |**404** | Investment not found | - |
639
117
 
640
118
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
641
119
 
642
- # **getOptionKpis**
643
- > Array<OptionChartKPIsYearly> getOptionKpis()
120
+ # **getInvestmentById**
121
+ > InvestmentResponse getInvestmentById()
644
122
 
645
- 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.
123
+ Retrieve a single investment by its ID.
646
124
 
647
125
  ### Example
648
126
 
@@ -656,13 +134,9 @@ const configuration = new Configuration();
656
134
  const apiInstance = new InvestmentApi(configuration);
657
135
 
658
136
  let investmentId: string; //UUID of the investment (default to undefined)
659
- let optionId: string; //UUID of the option (default to undefined)
660
- let valueFrameworkId: string; //UUID of the value framework (default to undefined)
661
137
 
662
- const { status, data } = await apiInstance.getOptionKpis(
663
- investmentId,
664
- optionId,
665
- valueFrameworkId
138
+ const { status, data } = await apiInstance.getInvestmentById(
139
+ investmentId
666
140
  );
667
141
  ```
668
142
 
@@ -671,13 +145,11 @@ const { status, data } = await apiInstance.getOptionKpis(
671
145
  |Name | Type | Description | Notes|
672
146
  |------------- | ------------- | ------------- | -------------|
673
147
  | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
674
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
675
- | **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
676
148
 
677
149
 
678
150
  ### Return type
679
151
 
680
- **Array<OptionChartKPIsYearly>**
152
+ **InvestmentResponse**
681
153
 
682
154
  ### Authorization
683
155
 
@@ -692,15 +164,15 @@ const { status, data } = await apiInstance.getOptionKpis(
692
164
  ### HTTP response details
693
165
  | Status code | Description | Response headers |
694
166
  |-------------|-------------|------------------|
695
- |**200** | The requested KPIs | - |
696
- |**404** | Investment, option, value framework, or phase not found | - |
167
+ |**200** | The requested investment | - |
168
+ |**404** | Investment not found | - |
697
169
 
698
170
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
699
171
 
700
- # **getOptionsForInvestment**
701
- > Array<OptionResponse> getOptionsForInvestment()
172
+ # **getInvestments**
173
+ > Array<InvestmentResponse> getInvestments()
702
174
 
703
- Retrieve a paginated list of all options for a specific investment.
175
+ Retrieve a paginated list of all investments.
704
176
 
705
177
  ### Example
706
178
 
@@ -713,12 +185,10 @@ import {
713
185
  const configuration = new Configuration();
714
186
  const apiInstance = new InvestmentApi(configuration);
715
187
 
716
- let investmentId: string; //UUID of the investment (default to undefined)
717
188
  let offset: number; //Number of records to skip (optional) (default to 0)
718
189
  let limit: number; //Max number of records to return (optional) (default to 100)
719
190
 
720
- const { status, data } = await apiInstance.getOptionsForInvestment(
721
- investmentId,
191
+ const { status, data } = await apiInstance.getInvestments(
722
192
  offset,
723
193
  limit
724
194
  );
@@ -728,14 +198,13 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
728
198
 
729
199
  |Name | Type | Description | Notes|
730
200
  |------------- | ------------- | ------------- | -------------|
731
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
732
201
  | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
733
202
  | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
734
203
 
735
204
 
736
205
  ### Return type
737
206
 
738
- **Array<OptionResponse>**
207
+ **Array<InvestmentResponse>**
739
208
 
740
209
  ### Authorization
741
210
 
@@ -750,15 +219,14 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
750
219
  ### HTTP response details
751
220
  | Status code | Description | Response headers |
752
221
  |-------------|-------------|------------------|
753
- |**200** | List of options for the investment | - |
754
- |**404** | Investment not found | - |
222
+ |**200** | List of investments | - |
755
223
 
756
224
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
757
225
 
758
- # **getOptionsOverview**
759
- > Array<OptionOverviewResponse> getOptionsOverview()
226
+ # **getInvestmentsOverview**
227
+ > Array<InvestmentOverviewResponse> getInvestmentsOverview()
760
228
 
761
- 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.
229
+ 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.
762
230
 
763
231
  ### Example
764
232
 
@@ -771,11 +239,9 @@ import {
771
239
  const configuration = new Configuration();
772
240
  const apiInstance = new InvestmentApi(configuration);
773
241
 
774
- let investmentId: string; //UUID of the investment (default to undefined)
775
242
  let valueFrameworkId: string; //UUID of the value framework (default to undefined)
776
243
 
777
- const { status, data } = await apiInstance.getOptionsOverview(
778
- investmentId,
244
+ const { status, data } = await apiInstance.getInvestmentsOverview(
779
245
  valueFrameworkId
780
246
  );
781
247
  ```
@@ -784,65 +250,12 @@ const { status, data } = await apiInstance.getOptionsOverview(
784
250
 
785
251
  |Name | Type | Description | Notes|
786
252
  |------------- | ------------- | ------------- | -------------|
787
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
788
253
  | **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
789
254
 
790
255
 
791
256
  ### Return type
792
257
 
793
- **Array<OptionOverviewResponse>**
794
-
795
- ### Authorization
796
-
797
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
798
-
799
- ### HTTP request headers
800
-
801
- - **Content-Type**: Not defined
802
- - **Accept**: application/json
803
-
804
-
805
- ### HTTP response details
806
- | Status code | Description | Response headers |
807
- |-------------|-------------|------------------|
808
- |**200** | Overview list of all options for the investment | - |
809
- |**404** | Investment or value framework not found | - |
810
-
811
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
812
-
813
- # **getPreferredOption**
814
- > PreferredOptionResponse getPreferredOption()
815
-
816
- Get the preferred option for an investment.
817
-
818
- ### Example
819
-
820
- ```typescript
821
- import {
822
- InvestmentApi,
823
- Configuration
824
- } from '@cosmotech/aip-client';
825
-
826
- const configuration = new Configuration();
827
- const apiInstance = new InvestmentApi(configuration);
828
-
829
- let investmentId: string; //UUID of the investment (default to undefined)
830
-
831
- const { status, data } = await apiInstance.getPreferredOption(
832
- investmentId
833
- );
834
- ```
835
-
836
- ### Parameters
837
-
838
- |Name | Type | Description | Notes|
839
- |------------- | ------------- | ------------- | -------------|
840
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
841
-
842
-
843
- ### Return type
844
-
845
- **PreferredOptionResponse**
258
+ **Array<InvestmentOverviewResponse>**
846
259
 
847
260
  ### Authorization
848
261
 
@@ -857,72 +270,8 @@ const { status, data } = await apiInstance.getPreferredOption(
857
270
  ### HTTP response details
858
271
  | Status code | Description | Response headers |
859
272
  |-------------|-------------|------------------|
860
- |**200** | Preferred option exists | - |
861
- |**204** | Investment exists but no options are associated | - |
862
- |**404** | Investment not found | - |
863
-
864
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
865
-
866
- # **patchImpactForOption**
867
- > ImpactAPIResponse patchImpactForOption(impactUpdate)
868
-
869
- Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
870
-
871
- ### Example
872
-
873
- ```typescript
874
- import {
875
- InvestmentApi,
876
- Configuration,
877
- ImpactUpdate
878
- } from '@cosmotech/aip-client';
879
-
880
- const configuration = new Configuration();
881
- const apiInstance = new InvestmentApi(configuration);
882
-
883
- let impactId: string; //UUID of the impact (default to undefined)
884
- let optionId: string; //UUID of the option (default to undefined)
885
- let investmentId: string; //UUID of the investment (default to undefined)
886
- let impactUpdate: ImpactUpdate; //
887
-
888
- const { status, data } = await apiInstance.patchImpactForOption(
889
- impactId,
890
- optionId,
891
- investmentId,
892
- impactUpdate
893
- );
894
- ```
895
-
896
- ### Parameters
897
-
898
- |Name | Type | Description | Notes|
899
- |------------- | ------------- | ------------- | -------------|
900
- | **impactUpdate** | **ImpactUpdate**| | |
901
- | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
902
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
903
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
904
-
905
-
906
- ### Return type
907
-
908
- **ImpactAPIResponse**
909
-
910
- ### Authorization
911
-
912
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
913
-
914
- ### HTTP request headers
915
-
916
- - **Content-Type**: application/json
917
- - **Accept**: application/json
918
-
919
-
920
- ### HTTP response details
921
- | Status code | Description | Response headers |
922
- |-------------|-------------|------------------|
923
- |**200** | Impact updated successfully | - |
924
- |**400** | Validation or constraint error | - |
925
- |**404** | Investment, option, or impact not found | - |
273
+ |**200** | Overview list of all investments | - |
274
+ |**404** | Value framework not found | - |
926
275
 
927
276
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
928
277
 
@@ -983,66 +332,6 @@ const { status, data } = await apiInstance.patchInvestment(
983
332
 
984
333
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
985
334
 
986
- # **patchOptionForInvestment**
987
- > OptionResponse patchOptionForInvestment(optionUpdate)
988
-
989
- Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
990
-
991
- ### Example
992
-
993
- ```typescript
994
- import {
995
- InvestmentApi,
996
- Configuration,
997
- OptionUpdate
998
- } from '@cosmotech/aip-client';
999
-
1000
- const configuration = new Configuration();
1001
- const apiInstance = new InvestmentApi(configuration);
1002
-
1003
- let optionId: string; //UUID of the option (default to undefined)
1004
- let investmentId: string; //UUID of the investment (default to undefined)
1005
- let optionUpdate: OptionUpdate; //
1006
-
1007
- const { status, data } = await apiInstance.patchOptionForInvestment(
1008
- optionId,
1009
- investmentId,
1010
- optionUpdate
1011
- );
1012
- ```
1013
-
1014
- ### Parameters
1015
-
1016
- |Name | Type | Description | Notes|
1017
- |------------- | ------------- | ------------- | -------------|
1018
- | **optionUpdate** | **OptionUpdate**| | |
1019
- | **optionId** | [**string**] | UUID of the option | defaults to undefined|
1020
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
1021
-
1022
-
1023
- ### Return type
1024
-
1025
- **OptionResponse**
1026
-
1027
- ### Authorization
1028
-
1029
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
1030
-
1031
- ### HTTP request headers
1032
-
1033
- - **Content-Type**: application/json
1034
- - **Accept**: application/json
1035
-
1036
-
1037
- ### HTTP response details
1038
- | Status code | Description | Response headers |
1039
- |-------------|-------------|------------------|
1040
- |**200** | Option updated successfully | - |
1041
- |**400** | Validation or constraint error | - |
1042
- |**404** | Investment or option not found | - |
1043
-
1044
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1045
-
1046
335
  # **postInvestment**
1047
336
  > InvestmentResponse postInvestment(investmentCreate)
1048
337
 
@@ -1096,60 +385,3 @@ const { status, data } = await apiInstance.postInvestment(
1096
385
 
1097
386
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1098
387
 
1099
- # **setPreferredOption**
1100
- > PreferredOptionResponse setPreferredOption(preferredOptionRequest)
1101
-
1102
- Set the preferred option for an investment.
1103
-
1104
- ### Example
1105
-
1106
- ```typescript
1107
- import {
1108
- InvestmentApi,
1109
- Configuration,
1110
- PreferredOptionRequest
1111
- } from '@cosmotech/aip-client';
1112
-
1113
- const configuration = new Configuration();
1114
- const apiInstance = new InvestmentApi(configuration);
1115
-
1116
- let investmentId: string; //UUID of the investment (default to undefined)
1117
- let preferredOptionRequest: PreferredOptionRequest; //
1118
-
1119
- const { status, data } = await apiInstance.setPreferredOption(
1120
- investmentId,
1121
- preferredOptionRequest
1122
- );
1123
- ```
1124
-
1125
- ### Parameters
1126
-
1127
- |Name | Type | Description | Notes|
1128
- |------------- | ------------- | ------------- | -------------|
1129
- | **preferredOptionRequest** | **PreferredOptionRequest**| | |
1130
- | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
1131
-
1132
-
1133
- ### Return type
1134
-
1135
- **PreferredOptionResponse**
1136
-
1137
- ### Authorization
1138
-
1139
- [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
1140
-
1141
- ### HTTP request headers
1142
-
1143
- - **Content-Type**: application/json
1144
- - **Accept**: application/json
1145
-
1146
-
1147
- ### HTTP response details
1148
- | Status code | Description | Response headers |
1149
- |-------------|-------------|------------------|
1150
- |**200** | Preferred option updated successfully | - |
1151
- |**400** | Option does not belong to this investment | - |
1152
- |**404** | Investment or option not found | - |
1153
-
1154
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1155
-