@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
@@ -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.3.0-dev3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,62 +35,16 @@ const base_1 = require("../base");
35
35
  const InvestmentApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * Create a new impact under this option.
39
- * @summary Create an impact for this option
40
- * @param {string} optionId UUID of the option
41
- * @param {string} investmentId UUID of the investment
42
- * @param {ImpactCreate} impactCreate
43
- * @param {*} [options] Override http request option.
44
- * @throws {RequiredError}
45
- */
46
- 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 = {}) {
47
- // verify required parameter 'optionId' is not null or undefined
48
- (0, common_1.assertParamExists)('createImpactForOption', 'optionId', optionId);
49
- // verify required parameter 'investmentId' is not null or undefined
50
- (0, common_1.assertParamExists)('createImpactForOption', 'investmentId', investmentId);
51
- // verify required parameter 'impactCreate' is not null or undefined
52
- (0, common_1.assertParamExists)('createImpactForOption', 'impactCreate', impactCreate);
53
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
54
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
55
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
56
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
58
- let baseOptions;
59
- if (configuration) {
60
- baseOptions = configuration.baseOptions;
61
- }
62
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
63
- const localVarHeaderParameter = {};
64
- const localVarQueryParameter = {};
65
- // authentication OAuth2AuthorizationCodeBearer required
66
- // oauth required
67
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
68
- localVarHeaderParameter['Content-Type'] = 'application/json';
69
- localVarHeaderParameter['Accept'] = 'application/json';
70
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
73
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactCreate, localVarRequestOptions, configuration);
74
- return {
75
- url: (0, common_1.toPathString)(localVarUrlObj),
76
- options: localVarRequestOptions,
77
- };
78
- }),
79
- /**
80
- * Create a new option under this investment.
81
- * @summary Create an option for this investment
82
- * @param {string} investmentId UUID of the investment
83
- * @param {OptionCreate} optionCreate
38
+ * 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.
39
+ * @summary Bulk delete investments
40
+ * @param {BulkDeleteRequest} bulkDeleteRequest
84
41
  * @param {*} [options] Override http request option.
85
42
  * @throws {RequiredError}
86
43
  */
87
- createOptionForInvestment: (investmentId_1, optionCreate_1, ...args_1) => __awaiter(this, [investmentId_1, optionCreate_1, ...args_1], void 0, function* (investmentId, optionCreate, options = {}) {
88
- // verify required parameter 'investmentId' is not null or undefined
89
- (0, common_1.assertParamExists)('createOptionForInvestment', 'investmentId', investmentId);
90
- // verify required parameter 'optionCreate' is not null or undefined
91
- (0, common_1.assertParamExists)('createOptionForInvestment', 'optionCreate', optionCreate);
92
- const localVarPath = `/investment/{investment_id}/option/`
93
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
44
+ bulkDeleteInvestments: (bulkDeleteRequest_1, ...args_1) => __awaiter(this, [bulkDeleteRequest_1, ...args_1], void 0, function* (bulkDeleteRequest, options = {}) {
45
+ // verify required parameter 'bulkDeleteRequest' is not null or undefined
46
+ (0, common_1.assertParamExists)('bulkDeleteInvestments', 'bulkDeleteRequest', bulkDeleteRequest);
47
+ const localVarPath = `/investment/bulk-delete`;
94
48
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
95
49
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
96
50
  let baseOptions;
@@ -104,51 +58,10 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
104
58
  // oauth required
105
59
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
106
60
  localVarHeaderParameter['Content-Type'] = 'application/json';
107
- localVarHeaderParameter['Accept'] = 'application/json';
108
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
109
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
110
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
111
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionCreate, localVarRequestOptions, configuration);
112
- return {
113
- url: (0, common_1.toPathString)(localVarUrlObj),
114
- options: localVarRequestOptions,
115
- };
116
- }),
117
- /**
118
- * Delete an existing impact by its ID.
119
- * @summary Delete an impact for this option
120
- * @param {string} impactId UUID of the impact
121
- * @param {string} optionId UUID of the option
122
- * @param {string} investmentId UUID of the investment
123
- * @param {*} [options] Override http request option.
124
- * @throws {RequiredError}
125
- */
126
- 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 = {}) {
127
- // verify required parameter 'impactId' is not null or undefined
128
- (0, common_1.assertParamExists)('deleteImpactForOption', 'impactId', impactId);
129
- // verify required parameter 'optionId' is not null or undefined
130
- (0, common_1.assertParamExists)('deleteImpactForOption', 'optionId', optionId);
131
- // verify required parameter 'investmentId' is not null or undefined
132
- (0, common_1.assertParamExists)('deleteImpactForOption', 'investmentId', investmentId);
133
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
134
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
135
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
136
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
137
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
- let baseOptions;
140
- if (configuration) {
141
- baseOptions = configuration.baseOptions;
142
- }
143
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
144
- const localVarHeaderParameter = {};
145
- const localVarQueryParameter = {};
146
- // authentication OAuth2AuthorizationCodeBearer required
147
- // oauth required
148
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
149
61
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
150
62
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
63
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
64
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkDeleteRequest, localVarRequestOptions, configuration);
152
65
  return {
153
66
  url: (0, common_1.toPathString)(localVarUrlObj),
154
67
  options: localVarRequestOptions,
@@ -186,128 +99,6 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
186
99
  options: localVarRequestOptions,
187
100
  };
188
101
  }),
189
- /**
190
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
191
- * @summary Delete an option for this investment
192
- * @param {string} optionId UUID of the option
193
- * @param {string} investmentId UUID of the investment
194
- * @param {*} [options] Override http request option.
195
- * @throws {RequiredError}
196
- */
197
- deleteOptionForInvestment: (optionId_1, investmentId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, ...args_1], void 0, function* (optionId, investmentId, options = {}) {
198
- // verify required parameter 'optionId' is not null or undefined
199
- (0, common_1.assertParamExists)('deleteOptionForInvestment', 'optionId', optionId);
200
- // verify required parameter 'investmentId' is not null or undefined
201
- (0, common_1.assertParamExists)('deleteOptionForInvestment', 'investmentId', investmentId);
202
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
203
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
204
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
205
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
207
- let baseOptions;
208
- if (configuration) {
209
- baseOptions = configuration.baseOptions;
210
- }
211
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
212
- const localVarHeaderParameter = {};
213
- const localVarQueryParameter = {};
214
- // authentication OAuth2AuthorizationCodeBearer required
215
- // oauth required
216
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
217
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
218
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
219
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
220
- return {
221
- url: (0, common_1.toPathString)(localVarUrlObj),
222
- options: localVarRequestOptions,
223
- };
224
- }),
225
- /**
226
- * Retrieve a specific impact for the option.
227
- * @summary Get an impact for this option
228
- * @param {string} impactId UUID of the impact
229
- * @param {string} optionId UUID of the option
230
- * @param {string} investmentId UUID of the investment
231
- * @param {*} [options] Override http request option.
232
- * @throws {RequiredError}
233
- */
234
- 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 = {}) {
235
- // verify required parameter 'impactId' is not null or undefined
236
- (0, common_1.assertParamExists)('getImpactForOption', 'impactId', impactId);
237
- // verify required parameter 'optionId' is not null or undefined
238
- (0, common_1.assertParamExists)('getImpactForOption', 'optionId', optionId);
239
- // verify required parameter 'investmentId' is not null or undefined
240
- (0, common_1.assertParamExists)('getImpactForOption', 'investmentId', investmentId);
241
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
242
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
243
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
244
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
245
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
246
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
247
- let baseOptions;
248
- if (configuration) {
249
- baseOptions = configuration.baseOptions;
250
- }
251
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
252
- const localVarHeaderParameter = {};
253
- const localVarQueryParameter = {};
254
- // authentication OAuth2AuthorizationCodeBearer required
255
- // oauth required
256
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
257
- localVarHeaderParameter['Accept'] = 'application/json';
258
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
259
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
260
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
261
- return {
262
- url: (0, common_1.toPathString)(localVarUrlObj),
263
- options: localVarRequestOptions,
264
- };
265
- }),
266
- /**
267
- * Retrieve a paginated list of all impacts for a specific option.
268
- * @summary List impacts for this option
269
- * @param {string} optionId UUID of the option
270
- * @param {string} investmentId UUID of the investment
271
- * @param {number} [offset] Number of records to skip
272
- * @param {number} [limit] Max number of records to return
273
- * @param {*} [options] Override http request option.
274
- * @throws {RequiredError}
275
- */
276
- 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 = {}) {
277
- // verify required parameter 'optionId' is not null or undefined
278
- (0, common_1.assertParamExists)('getImpactsForOption', 'optionId', optionId);
279
- // verify required parameter 'investmentId' is not null or undefined
280
- (0, common_1.assertParamExists)('getImpactsForOption', 'investmentId', investmentId);
281
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
282
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
283
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
284
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
285
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
286
- let baseOptions;
287
- if (configuration) {
288
- baseOptions = configuration.baseOptions;
289
- }
290
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
291
- const localVarHeaderParameter = {};
292
- const localVarQueryParameter = {};
293
- // authentication OAuth2AuthorizationCodeBearer required
294
- // oauth required
295
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
296
- if (offset !== undefined) {
297
- localVarQueryParameter['offset'] = offset;
298
- }
299
- if (limit !== undefined) {
300
- localVarQueryParameter['limit'] = limit;
301
- }
302
- localVarHeaderParameter['Accept'] = 'application/json';
303
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
304
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
306
- return {
307
- url: (0, common_1.toPathString)(localVarUrlObj),
308
- options: localVarRequestOptions,
309
- };
310
- }),
311
102
  /**
312
103
  * Retrieve a single investment by its ID.
313
104
  * @summary Get an investment by ID
@@ -414,96 +205,19 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
414
205
  };
415
206
  }),
416
207
  /**
417
- * Retrieve a specific option for the investment.
418
- * @summary Get an option for this investment
419
- * @param {string} optionId UUID of the option
420
- * @param {string} investmentId UUID of the investment
421
- * @param {*} [options] Override http request option.
422
- * @throws {RequiredError}
423
- */
424
- getOptionForInvestment: (optionId_1, investmentId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, ...args_1], void 0, function* (optionId, investmentId, options = {}) {
425
- // verify required parameter 'optionId' is not null or undefined
426
- (0, common_1.assertParamExists)('getOptionForInvestment', 'optionId', optionId);
427
- // verify required parameter 'investmentId' is not null or undefined
428
- (0, common_1.assertParamExists)('getOptionForInvestment', 'investmentId', investmentId);
429
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
430
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
431
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
432
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
433
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
434
- let baseOptions;
435
- if (configuration) {
436
- baseOptions = configuration.baseOptions;
437
- }
438
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
439
- const localVarHeaderParameter = {};
440
- const localVarQueryParameter = {};
441
- // authentication OAuth2AuthorizationCodeBearer required
442
- // oauth required
443
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
444
- localVarHeaderParameter['Accept'] = 'application/json';
445
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
446
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
447
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
448
- return {
449
- url: (0, common_1.toPathString)(localVarUrlObj),
450
- options: localVarRequestOptions,
451
- };
452
- }),
453
- /**
454
- * 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.
455
- * @summary Get the kpis for a given option inside a value framework
456
- * @param {string} investmentId UUID of the investment
457
- * @param {string} optionId UUID of the option
458
- * @param {string} valueFrameworkId UUID of the value framework
459
- * @param {*} [options] Override http request option.
460
- * @throws {RequiredError}
461
- */
462
- 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 = {}) {
463
- // verify required parameter 'investmentId' is not null or undefined
464
- (0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
465
- // verify required parameter 'optionId' is not null or undefined
466
- (0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
467
- // verify required parameter 'valueFrameworkId' is not null or undefined
468
- (0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
469
- const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
470
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
471
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
472
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
473
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
474
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
475
- let baseOptions;
476
- if (configuration) {
477
- baseOptions = configuration.baseOptions;
478
- }
479
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
480
- const localVarHeaderParameter = {};
481
- const localVarQueryParameter = {};
482
- // authentication OAuth2AuthorizationCodeBearer required
483
- // oauth required
484
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
485
- localVarHeaderParameter['Accept'] = 'application/json';
486
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
487
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
488
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
489
- return {
490
- url: (0, common_1.toPathString)(localVarUrlObj),
491
- options: localVarRequestOptions,
492
- };
493
- }),
494
- /**
495
- * Retrieve a paginated list of all options for a specific investment.
496
- * @summary List options for this investment
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
497
210
  * @param {string} investmentId UUID of the investment
498
- * @param {number} [offset] Number of records to skip
499
- * @param {number} [limit] Max number of records to return
211
+ * @param {InvestmentUpdate} investmentUpdate
500
212
  * @param {*} [options] Override http request option.
501
213
  * @throws {RequiredError}
502
214
  */
503
- 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 = {}) {
215
+ patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
504
216
  // verify required parameter 'investmentId' is not null or undefined
505
- (0, common_1.assertParamExists)('getOptionsForInvestment', 'investmentId', investmentId);
506
- const localVarPath = `/investment/{investment_id}/option/`
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}`
507
221
  .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
508
222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
509
223
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -511,580 +225,144 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
511
225
  if (configuration) {
512
226
  baseOptions = configuration.baseOptions;
513
227
  }
514
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
228
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
515
229
  const localVarHeaderParameter = {};
516
230
  const localVarQueryParameter = {};
517
231
  // authentication OAuth2AuthorizationCodeBearer required
518
232
  // oauth required
519
233
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
520
- if (offset !== undefined) {
521
- localVarQueryParameter['offset'] = offset;
522
- }
523
- if (limit !== undefined) {
524
- localVarQueryParameter['limit'] = limit;
525
- }
234
+ localVarHeaderParameter['Content-Type'] = 'application/json';
526
235
  localVarHeaderParameter['Accept'] = 'application/json';
527
236
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
528
237
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
529
238
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
239
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentUpdate, localVarRequestOptions, configuration);
530
240
  return {
531
241
  url: (0, common_1.toPathString)(localVarUrlObj),
532
242
  options: localVarRequestOptions,
533
243
  };
534
244
  }),
535
245
  /**
536
- * 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.
537
- * @summary Option overview table for this investment
538
- * @param {string} investmentId UUID of the investment
539
- * @param {string} valueFrameworkId UUID of the value framework
246
+ * Create a new investment.
247
+ * @summary Create an investment
248
+ * @param {InvestmentCreate} investmentCreate
540
249
  * @param {*} [options] Override http request option.
541
250
  * @throws {RequiredError}
542
251
  */
543
- getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
544
- // verify required parameter 'investmentId' is not null or undefined
545
- (0, common_1.assertParamExists)('getOptionsOverview', 'investmentId', investmentId);
546
- // verify required parameter 'valueFrameworkId' is not null or undefined
547
- (0, common_1.assertParamExists)('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
548
- const localVarPath = `/investment/{investment_id}/option/overview`
549
- .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/`;
550
256
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
551
257
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
552
258
  let baseOptions;
553
259
  if (configuration) {
554
260
  baseOptions = configuration.baseOptions;
555
261
  }
556
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
557
263
  const localVarHeaderParameter = {};
558
264
  const localVarQueryParameter = {};
559
265
  // authentication OAuth2AuthorizationCodeBearer required
560
266
  // oauth required
561
267
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
562
- if (valueFrameworkId !== undefined) {
563
- localVarQueryParameter['value_framework_id'] = valueFrameworkId;
564
- }
268
+ localVarHeaderParameter['Content-Type'] = 'application/json';
565
269
  localVarHeaderParameter['Accept'] = 'application/json';
566
270
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
567
271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
568
272
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
273
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentCreate, localVarRequestOptions, configuration);
569
274
  return {
570
- url: (0, common_1.toPathString)(localVarUrlObj),
571
- options: localVarRequestOptions,
572
- };
573
- }),
574
- /**
575
- * Get the preferred option for an investment.
576
- * @summary Get the preferred option for an investment
577
- * @param {string} investmentId UUID of the investment
578
- * @param {*} [options] Override http request option.
579
- * @throws {RequiredError}
580
- */
581
- getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
582
- // verify required parameter 'investmentId' is not null or undefined
583
- (0, common_1.assertParamExists)('getPreferredOption', 'investmentId', investmentId);
584
- const localVarPath = `/investment/{investment_id}/preferred_option`
585
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
586
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
588
- let baseOptions;
589
- if (configuration) {
590
- baseOptions = configuration.baseOptions;
591
- }
592
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
593
- const localVarHeaderParameter = {};
594
- const localVarQueryParameter = {};
595
- // authentication OAuth2AuthorizationCodeBearer required
596
- // oauth required
597
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
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
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
609
- * @summary Partially update an impact for this option
610
- * @param {string} impactId UUID of the impact
611
- * @param {string} optionId UUID of the option
612
- * @param {string} investmentId UUID of the investment
613
- * @param {ImpactUpdate} impactUpdate
614
- * @param {*} [options] Override http request option.
615
- * @throws {RequiredError}
616
- */
617
- 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 = {}) {
618
- // verify required parameter 'impactId' is not null or undefined
619
- (0, common_1.assertParamExists)('patchImpactForOption', 'impactId', impactId);
620
- // verify required parameter 'optionId' is not null or undefined
621
- (0, common_1.assertParamExists)('patchImpactForOption', 'optionId', optionId);
622
- // verify required parameter 'investmentId' is not null or undefined
623
- (0, common_1.assertParamExists)('patchImpactForOption', 'investmentId', investmentId);
624
- // verify required parameter 'impactUpdate' is not null or undefined
625
- (0, common_1.assertParamExists)('patchImpactForOption', 'impactUpdate', impactUpdate);
626
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
627
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
628
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
629
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
630
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
631
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
632
- let baseOptions;
633
- if (configuration) {
634
- baseOptions = configuration.baseOptions;
635
- }
636
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
637
- const localVarHeaderParameter = {};
638
- const localVarQueryParameter = {};
639
- // authentication OAuth2AuthorizationCodeBearer required
640
- // oauth required
641
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
642
- localVarHeaderParameter['Content-Type'] = 'application/json';
643
- localVarHeaderParameter['Accept'] = 'application/json';
644
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
645
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
646
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
647
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactUpdate, localVarRequestOptions, configuration);
648
- return {
649
- url: (0, common_1.toPathString)(localVarUrlObj),
650
- options: localVarRequestOptions,
651
- };
652
- }),
653
- /**
654
- * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
655
- * @summary Partially update an investment
656
- * @param {string} investmentId UUID of the investment
657
- * @param {InvestmentUpdate} investmentUpdate
658
- * @param {*} [options] Override http request option.
659
- * @throws {RequiredError}
660
- */
661
- patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
662
- // verify required parameter 'investmentId' is not null or undefined
663
- (0, common_1.assertParamExists)('patchInvestment', 'investmentId', investmentId);
664
- // verify required parameter 'investmentUpdate' is not null or undefined
665
- (0, common_1.assertParamExists)('patchInvestment', 'investmentUpdate', investmentUpdate);
666
- const localVarPath = `/investment/{investment_id}`
667
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
668
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
669
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
670
- let baseOptions;
671
- if (configuration) {
672
- baseOptions = configuration.baseOptions;
673
- }
674
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
675
- const localVarHeaderParameter = {};
676
- const localVarQueryParameter = {};
677
- // authentication OAuth2AuthorizationCodeBearer required
678
- // oauth required
679
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
680
- localVarHeaderParameter['Content-Type'] = 'application/json';
681
- localVarHeaderParameter['Accept'] = 'application/json';
682
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
683
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
684
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
685
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentUpdate, localVarRequestOptions, configuration);
686
- return {
687
- url: (0, common_1.toPathString)(localVarUrlObj),
688
- options: localVarRequestOptions,
689
- };
690
- }),
691
- /**
692
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
693
- * @summary Partially update an option for this investment
694
- * @param {string} optionId UUID of the option
695
- * @param {string} investmentId UUID of the investment
696
- * @param {OptionUpdate} optionUpdate
697
- * @param {*} [options] Override http request option.
698
- * @throws {RequiredError}
699
- */
700
- 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 = {}) {
701
- // verify required parameter 'optionId' is not null or undefined
702
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'optionId', optionId);
703
- // verify required parameter 'investmentId' is not null or undefined
704
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'investmentId', investmentId);
705
- // verify required parameter 'optionUpdate' is not null or undefined
706
- (0, common_1.assertParamExists)('patchOptionForInvestment', 'optionUpdate', optionUpdate);
707
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
708
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
709
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
710
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
711
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
712
- let baseOptions;
713
- if (configuration) {
714
- baseOptions = configuration.baseOptions;
715
- }
716
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
717
- const localVarHeaderParameter = {};
718
- const localVarQueryParameter = {};
719
- // authentication OAuth2AuthorizationCodeBearer required
720
- // oauth required
721
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
722
- localVarHeaderParameter['Content-Type'] = 'application/json';
723
- localVarHeaderParameter['Accept'] = 'application/json';
724
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
725
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
726
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
727
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(optionUpdate, localVarRequestOptions, configuration);
728
- return {
729
- url: (0, common_1.toPathString)(localVarUrlObj),
730
- options: localVarRequestOptions,
731
- };
732
- }),
733
- /**
734
- * Create a new investment.
735
- * @summary Create an investment
736
- * @param {InvestmentCreate} investmentCreate
737
- * @param {*} [options] Override http request option.
738
- * @throws {RequiredError}
739
- */
740
- postInvestment: (investmentCreate_1, ...args_1) => __awaiter(this, [investmentCreate_1, ...args_1], void 0, function* (investmentCreate, options = {}) {
741
- // verify required parameter 'investmentCreate' is not null or undefined
742
- (0, common_1.assertParamExists)('postInvestment', 'investmentCreate', investmentCreate);
743
- const localVarPath = `/investment/`;
744
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
745
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
746
- let baseOptions;
747
- if (configuration) {
748
- baseOptions = configuration.baseOptions;
749
- }
750
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
751
- const localVarHeaderParameter = {};
752
- const localVarQueryParameter = {};
753
- // authentication OAuth2AuthorizationCodeBearer required
754
- // oauth required
755
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
756
- localVarHeaderParameter['Content-Type'] = 'application/json';
757
- localVarHeaderParameter['Accept'] = 'application/json';
758
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
759
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
760
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
761
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(investmentCreate, localVarRequestOptions, configuration);
762
- return {
763
- url: (0, common_1.toPathString)(localVarUrlObj),
764
- options: localVarRequestOptions,
765
- };
766
- }),
767
- /**
768
- * Set the preferred option for an investment.
769
- * @summary Set the preferred option for an investment
770
- * @param {string} investmentId UUID of the investment
771
- * @param {PreferredOptionRequest} preferredOptionRequest
772
- * @param {*} [options] Override http request option.
773
- * @throws {RequiredError}
774
- */
775
- setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
776
- // verify required parameter 'investmentId' is not null or undefined
777
- (0, common_1.assertParamExists)('setPreferredOption', 'investmentId', investmentId);
778
- // verify required parameter 'preferredOptionRequest' is not null or undefined
779
- (0, common_1.assertParamExists)('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
780
- const localVarPath = `/investment/{investment_id}/preferred_option`
781
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
782
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
783
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
784
- let baseOptions;
785
- if (configuration) {
786
- baseOptions = configuration.baseOptions;
787
- }
788
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
789
- const localVarHeaderParameter = {};
790
- const localVarQueryParameter = {};
791
- // authentication OAuth2AuthorizationCodeBearer required
792
- // oauth required
793
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
794
- localVarHeaderParameter['Content-Type'] = 'application/json';
795
- localVarHeaderParameter['Accept'] = 'application/json';
796
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
797
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
799
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(preferredOptionRequest, localVarRequestOptions, configuration);
800
- return {
801
- url: (0, common_1.toPathString)(localVarUrlObj),
802
- options: localVarRequestOptions,
803
- };
804
- }),
805
- };
806
- };
807
- exports.InvestmentApiAxiosParamCreator = InvestmentApiAxiosParamCreator;
808
- /**
809
- * InvestmentApi - functional programming interface
810
- */
811
- const InvestmentApiFp = function (configuration) {
812
- const localVarAxiosParamCreator = (0, exports.InvestmentApiAxiosParamCreator)(configuration);
813
- return {
814
- /**
815
- * Create a new impact under this option.
816
- * @summary Create an impact for this option
817
- * @param {string} optionId UUID of the option
818
- * @param {string} investmentId UUID of the investment
819
- * @param {ImpactCreate} impactCreate
820
- * @param {*} [options] Override http request option.
821
- * @throws {RequiredError}
822
- */
823
- createImpactForOption(optionId, investmentId, impactCreate, options) {
824
- return __awaiter(this, void 0, void 0, function* () {
825
- var _a, _b, _c;
826
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
827
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
828
- 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;
829
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
830
- });
831
- },
832
- /**
833
- * Create a new option under this investment.
834
- * @summary Create an option for this investment
835
- * @param {string} investmentId UUID of the investment
836
- * @param {OptionCreate} optionCreate
837
- * @param {*} [options] Override http request option.
838
- * @throws {RequiredError}
839
- */
840
- createOptionForInvestment(investmentId, optionCreate, options) {
841
- return __awaiter(this, void 0, void 0, function* () {
842
- var _a, _b, _c;
843
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createOptionForInvestment(investmentId, optionCreate, options);
844
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
845
- 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;
846
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
847
- });
848
- },
849
- /**
850
- * Delete an existing impact by its ID.
851
- * @summary Delete an impact for this option
852
- * @param {string} impactId UUID of the impact
853
- * @param {string} optionId UUID of the option
854
- * @param {string} investmentId UUID of the investment
855
- * @param {*} [options] Override http request option.
856
- * @throws {RequiredError}
857
- */
858
- deleteImpactForOption(impactId, optionId, investmentId, options) {
859
- return __awaiter(this, void 0, void 0, function* () {
860
- var _a, _b, _c;
861
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
862
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
863
- 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;
864
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
865
- });
866
- },
867
- /**
868
- * Delete an existing investment by its ID. Associated options are also deleted via cascade.
869
- * @summary Delete an investment
870
- * @param {string} investmentId UUID of the investment
871
- * @param {*} [options] Override http request option.
872
- * @throws {RequiredError}
873
- */
874
- deleteInvestment(investmentId, options) {
875
- return __awaiter(this, void 0, void 0, function* () {
876
- var _a, _b, _c;
877
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
878
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
879
- 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;
880
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
881
- });
882
- },
883
- /**
884
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
885
- * @summary Delete an option for this investment
886
- * @param {string} optionId UUID of the option
887
- * @param {string} investmentId UUID of the investment
888
- * @param {*} [options] Override http request option.
889
- * @throws {RequiredError}
890
- */
891
- deleteOptionForInvestment(optionId, investmentId, options) {
892
- return __awaiter(this, void 0, void 0, function* () {
893
- var _a, _b, _c;
894
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
895
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
896
- 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;
897
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
898
- });
899
- },
900
- /**
901
- * Retrieve a specific impact for the option.
902
- * @summary Get an impact for this option
903
- * @param {string} impactId UUID of the impact
904
- * @param {string} optionId UUID of the option
905
- * @param {string} investmentId UUID of the investment
906
- * @param {*} [options] Override http request option.
907
- * @throws {RequiredError}
908
- */
909
- getImpactForOption(impactId, optionId, investmentId, options) {
910
- return __awaiter(this, void 0, void 0, function* () {
911
- var _a, _b, _c;
912
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
913
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
914
- 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;
915
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
916
- });
917
- },
918
- /**
919
- * Retrieve a paginated list of all impacts for a specific option.
920
- * @summary List impacts for this option
921
- * @param {string} optionId UUID of the option
922
- * @param {string} investmentId UUID of the investment
923
- * @param {number} [offset] Number of records to skip
924
- * @param {number} [limit] Max number of records to return
925
- * @param {*} [options] Override http request option.
926
- * @throws {RequiredError}
927
- */
928
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
929
- return __awaiter(this, void 0, void 0, function* () {
930
- var _a, _b, _c;
931
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
932
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
933
- 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;
934
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
935
- });
936
- },
937
- /**
938
- * Retrieve a single investment by its ID.
939
- * @summary Get an investment by ID
940
- * @param {string} investmentId UUID of the investment
941
- * @param {*} [options] Override http request option.
942
- * @throws {RequiredError}
943
- */
944
- getInvestmentById(investmentId, options) {
945
- return __awaiter(this, void 0, void 0, function* () {
946
- var _a, _b, _c;
947
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
948
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
949
- 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;
950
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
951
- });
952
- },
953
- /**
954
- * Retrieve a paginated list of all investments.
955
- * @summary List investments
956
- * @param {number} [offset] Number of records to skip
957
- * @param {number} [limit] Max number of records to return
958
- * @param {*} [options] Override http request option.
959
- * @throws {RequiredError}
960
- */
961
- getInvestments(offset, limit, options) {
962
- return __awaiter(this, void 0, void 0, function* () {
963
- var _a, _b, _c;
964
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
965
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
966
- 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;
967
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
968
- });
969
- },
275
+ url: (0, common_1.toPathString)(localVarUrlObj),
276
+ options: localVarRequestOptions,
277
+ };
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 {
970
288
  /**
971
- * 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.
972
- * @summary Investment overview table
973
- * @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
974
292
  * @param {*} [options] Override http request option.
975
293
  * @throws {RequiredError}
976
294
  */
977
- getInvestmentsOverview(valueFrameworkId, options) {
295
+ bulkDeleteInvestments(bulkDeleteRequest, options) {
978
296
  return __awaiter(this, void 0, void 0, function* () {
979
297
  var _a, _b, _c;
980
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
298
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
981
299
  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.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;
983
301
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
984
302
  });
985
303
  },
986
304
  /**
987
- * Retrieve a specific option for the investment.
988
- * @summary Get an option for this investment
989
- * @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
990
307
  * @param {string} investmentId UUID of the investment
991
308
  * @param {*} [options] Override http request option.
992
309
  * @throws {RequiredError}
993
310
  */
994
- getOptionForInvestment(optionId, investmentId, options) {
311
+ deleteInvestment(investmentId, options) {
995
312
  return __awaiter(this, void 0, void 0, function* () {
996
313
  var _a, _b, _c;
997
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionForInvestment(optionId, investmentId, options);
314
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
998
315
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
999
- 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;
1000
317
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1001
318
  });
1002
319
  },
1003
320
  /**
1004
- * 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.
1005
- * @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
1006
323
  * @param {string} investmentId UUID of the investment
1007
- * @param {string} optionId UUID of the option
1008
- * @param {string} valueFrameworkId UUID of the value framework
1009
324
  * @param {*} [options] Override http request option.
1010
325
  * @throws {RequiredError}
1011
326
  */
1012
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
327
+ getInvestmentById(investmentId, options) {
1013
328
  return __awaiter(this, void 0, void 0, function* () {
1014
329
  var _a, _b, _c;
1015
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
1016
331
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1017
- 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;
1018
333
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1019
334
  });
1020
335
  },
1021
336
  /**
1022
- * Retrieve a paginated list of all options for a specific investment.
1023
- * @summary List options for this investment
1024
- * @param {string} investmentId UUID of the investment
337
+ * Retrieve a paginated list of all investments.
338
+ * @summary List investments
1025
339
  * @param {number} [offset] Number of records to skip
1026
340
  * @param {number} [limit] Max number of records to return
1027
341
  * @param {*} [options] Override http request option.
1028
342
  * @throws {RequiredError}
1029
343
  */
1030
- getOptionsForInvestment(investmentId, offset, limit, options) {
344
+ getInvestments(offset, limit, options) {
1031
345
  return __awaiter(this, void 0, void 0, function* () {
1032
346
  var _a, _b, _c;
1033
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsForInvestment(investmentId, offset, limit, options);
347
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
1034
348
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1035
- 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;
1036
350
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1037
351
  });
1038
352
  },
1039
353
  /**
1040
- * 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.
1041
- * @summary Option overview table for this investment
1042
- * @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
1043
356
  * @param {string} valueFrameworkId UUID of the value framework
1044
357
  * @param {*} [options] Override http request option.
1045
358
  * @throws {RequiredError}
1046
359
  */
1047
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1048
- return __awaiter(this, void 0, void 0, function* () {
1049
- var _a, _b, _c;
1050
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1051
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1052
- 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;
1053
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1054
- });
1055
- },
1056
- /**
1057
- * Get the preferred option for an investment.
1058
- * @summary Get the preferred option for an investment
1059
- * @param {string} investmentId UUID of the investment
1060
- * @param {*} [options] Override http request option.
1061
- * @throws {RequiredError}
1062
- */
1063
- getPreferredOption(investmentId, options) {
1064
- return __awaiter(this, void 0, void 0, function* () {
1065
- var _a, _b, _c;
1066
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
1067
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1068
- 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;
1069
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1070
- });
1071
- },
1072
- /**
1073
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1074
- * @summary Partially update an impact for this option
1075
- * @param {string} impactId UUID of the impact
1076
- * @param {string} optionId UUID of the option
1077
- * @param {string} investmentId UUID of the investment
1078
- * @param {ImpactUpdate} impactUpdate
1079
- * @param {*} [options] Override http request option.
1080
- * @throws {RequiredError}
1081
- */
1082
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
360
+ getInvestmentsOverview(valueFrameworkId, options) {
1083
361
  return __awaiter(this, void 0, void 0, function* () {
1084
362
  var _a, _b, _c;
1085
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
363
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
1086
364
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1087
- 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;
1088
366
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1089
367
  });
1090
368
  },
@@ -1105,24 +383,6 @@ const InvestmentApiFp = function (configuration) {
1105
383
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1106
384
  });
1107
385
  },
1108
- /**
1109
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1110
- * @summary Partially update an option for this investment
1111
- * @param {string} optionId UUID of the option
1112
- * @param {string} investmentId UUID of the investment
1113
- * @param {OptionUpdate} optionUpdate
1114
- * @param {*} [options] Override http request option.
1115
- * @throws {RequiredError}
1116
- */
1117
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1118
- return __awaiter(this, void 0, void 0, function* () {
1119
- var _a, _b, _c;
1120
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchOptionForInvestment(optionId, investmentId, optionUpdate, options);
1121
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1122
- 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;
1123
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1124
- });
1125
- },
1126
386
  /**
1127
387
  * Create a new investment.
1128
388
  * @summary Create an investment
@@ -1139,23 +399,6 @@ const InvestmentApiFp = function (configuration) {
1139
399
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1140
400
  });
1141
401
  },
1142
- /**
1143
- * Set the preferred option for an investment.
1144
- * @summary Set the preferred option for an investment
1145
- * @param {string} investmentId UUID of the investment
1146
- * @param {PreferredOptionRequest} preferredOptionRequest
1147
- * @param {*} [options] Override http request option.
1148
- * @throws {RequiredError}
1149
- */
1150
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1151
- return __awaiter(this, void 0, void 0, function* () {
1152
- var _a, _b, _c;
1153
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
1154
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1155
- 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;
1156
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1157
- });
1158
- },
1159
402
  };
1160
403
  };
1161
404
  exports.InvestmentApiFp = InvestmentApiFp;
@@ -1166,39 +409,14 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1166
409
  const localVarFp = (0, exports.InvestmentApiFp)(configuration);
1167
410
  return {
1168
411
  /**
1169
- * Create a new impact under this option.
1170
- * @summary Create an impact for this option
1171
- * @param {string} optionId UUID of the option
1172
- * @param {string} investmentId UUID of the investment
1173
- * @param {ImpactCreate} impactCreate
1174
- * @param {*} [options] Override http request option.
1175
- * @throws {RequiredError}
1176
- */
1177
- createImpactForOption(optionId, investmentId, impactCreate, options) {
1178
- return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
1179
- },
1180
- /**
1181
- * Create a new option under this investment.
1182
- * @summary Create an option for this investment
1183
- * @param {string} investmentId UUID of the investment
1184
- * @param {OptionCreate} optionCreate
1185
- * @param {*} [options] Override http request option.
1186
- * @throws {RequiredError}
1187
- */
1188
- createOptionForInvestment(investmentId, optionCreate, options) {
1189
- return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
1190
- },
1191
- /**
1192
- * Delete an existing impact by its ID.
1193
- * @summary Delete an impact for this option
1194
- * @param {string} impactId UUID of the impact
1195
- * @param {string} optionId UUID of the option
1196
- * @param {string} investmentId UUID of the investment
412
+ * 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.
413
+ * @summary Bulk delete investments
414
+ * @param {BulkDeleteRequest} bulkDeleteRequest
1197
415
  * @param {*} [options] Override http request option.
1198
416
  * @throws {RequiredError}
1199
417
  */
1200
- deleteImpactForOption(impactId, optionId, investmentId, options) {
1201
- return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
418
+ bulkDeleteInvestments(bulkDeleteRequest, options) {
419
+ return localVarFp.bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(axios, basePath));
1202
420
  },
1203
421
  /**
1204
422
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
@@ -1210,42 +428,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1210
428
  deleteInvestment(investmentId, options) {
1211
429
  return localVarFp.deleteInvestment(investmentId, options).then((request) => request(axios, basePath));
1212
430
  },
1213
- /**
1214
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1215
- * @summary Delete an option for this investment
1216
- * @param {string} optionId UUID of the option
1217
- * @param {string} investmentId UUID of the investment
1218
- * @param {*} [options] Override http request option.
1219
- * @throws {RequiredError}
1220
- */
1221
- deleteOptionForInvestment(optionId, investmentId, options) {
1222
- return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1223
- },
1224
- /**
1225
- * Retrieve a specific impact for the option.
1226
- * @summary Get an impact for this option
1227
- * @param {string} impactId UUID of the impact
1228
- * @param {string} optionId UUID of the option
1229
- * @param {string} investmentId UUID of the investment
1230
- * @param {*} [options] Override http request option.
1231
- * @throws {RequiredError}
1232
- */
1233
- getImpactForOption(impactId, optionId, investmentId, options) {
1234
- return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
1235
- },
1236
- /**
1237
- * Retrieve a paginated list of all impacts for a specific option.
1238
- * @summary List impacts for this option
1239
- * @param {string} optionId UUID of the option
1240
- * @param {string} investmentId UUID of the investment
1241
- * @param {number} [offset] Number of records to skip
1242
- * @param {number} [limit] Max number of records to return
1243
- * @param {*} [options] Override http request option.
1244
- * @throws {RequiredError}
1245
- */
1246
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
1247
- return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
1248
- },
1249
431
  /**
1250
432
  * Retrieve a single investment by its ID.
1251
433
  * @summary Get an investment by ID
@@ -1277,75 +459,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1277
459
  getInvestmentsOverview(valueFrameworkId, options) {
1278
460
  return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1279
461
  },
1280
- /**
1281
- * Retrieve a specific option for the investment.
1282
- * @summary Get an option for this investment
1283
- * @param {string} optionId UUID of the option
1284
- * @param {string} investmentId UUID of the investment
1285
- * @param {*} [options] Override http request option.
1286
- * @throws {RequiredError}
1287
- */
1288
- getOptionForInvestment(optionId, investmentId, options) {
1289
- return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1290
- },
1291
- /**
1292
- * 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.
1293
- * @summary Get the kpis for a given option inside a value framework
1294
- * @param {string} investmentId UUID of the investment
1295
- * @param {string} optionId UUID of the option
1296
- * @param {string} valueFrameworkId UUID of the value framework
1297
- * @param {*} [options] Override http request option.
1298
- * @throws {RequiredError}
1299
- */
1300
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1301
- return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
1302
- },
1303
- /**
1304
- * Retrieve a paginated list of all options for a specific investment.
1305
- * @summary List options for this investment
1306
- * @param {string} investmentId UUID of the investment
1307
- * @param {number} [offset] Number of records to skip
1308
- * @param {number} [limit] Max number of records to return
1309
- * @param {*} [options] Override http request option.
1310
- * @throws {RequiredError}
1311
- */
1312
- getOptionsForInvestment(investmentId, offset, limit, options) {
1313
- return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1314
- },
1315
- /**
1316
- * 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.
1317
- * @summary Option overview table for this investment
1318
- * @param {string} investmentId UUID of the investment
1319
- * @param {string} valueFrameworkId UUID of the value framework
1320
- * @param {*} [options] Override http request option.
1321
- * @throws {RequiredError}
1322
- */
1323
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1324
- return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1325
- },
1326
- /**
1327
- * Get the preferred option for an investment.
1328
- * @summary Get the preferred option for an investment
1329
- * @param {string} investmentId UUID of the investment
1330
- * @param {*} [options] Override http request option.
1331
- * @throws {RequiredError}
1332
- */
1333
- getPreferredOption(investmentId, options) {
1334
- return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
1335
- },
1336
- /**
1337
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1338
- * @summary Partially update an impact for this option
1339
- * @param {string} impactId UUID of the impact
1340
- * @param {string} optionId UUID of the option
1341
- * @param {string} investmentId UUID of the investment
1342
- * @param {ImpactUpdate} impactUpdate
1343
- * @param {*} [options] Override http request option.
1344
- * @throws {RequiredError}
1345
- */
1346
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
1347
- return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
1348
- },
1349
462
  /**
1350
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.
1351
464
  * @summary Partially update an investment
@@ -1357,18 +470,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1357
470
  patchInvestment(investmentId, investmentUpdate, options) {
1358
471
  return localVarFp.patchInvestment(investmentId, investmentUpdate, options).then((request) => request(axios, basePath));
1359
472
  },
1360
- /**
1361
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1362
- * @summary Partially update an option for this investment
1363
- * @param {string} optionId UUID of the option
1364
- * @param {string} investmentId UUID of the investment
1365
- * @param {OptionUpdate} optionUpdate
1366
- * @param {*} [options] Override http request option.
1367
- * @throws {RequiredError}
1368
- */
1369
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1370
- return localVarFp.patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(axios, basePath));
1371
- },
1372
473
  /**
1373
474
  * Create a new investment.
1374
475
  * @summary Create an investment
@@ -1379,17 +480,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1379
480
  postInvestment(investmentCreate, options) {
1380
481
  return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
1381
482
  },
1382
- /**
1383
- * Set the preferred option for an investment.
1384
- * @summary Set the preferred option for an investment
1385
- * @param {string} investmentId UUID of the investment
1386
- * @param {PreferredOptionRequest} preferredOptionRequest
1387
- * @param {*} [options] Override http request option.
1388
- * @throws {RequiredError}
1389
- */
1390
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1391
- return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
1392
- },
1393
483
  };
1394
484
  };
1395
485
  exports.InvestmentApiFactory = InvestmentApiFactory;
@@ -1398,39 +488,14 @@ exports.InvestmentApiFactory = InvestmentApiFactory;
1398
488
  */
1399
489
  class InvestmentApi extends base_1.BaseAPI {
1400
490
  /**
1401
- * Create a new impact under this option.
1402
- * @summary Create an impact for this option
1403
- * @param {string} optionId UUID of the option
1404
- * @param {string} investmentId UUID of the investment
1405
- * @param {ImpactCreate} impactCreate
1406
- * @param {*} [options] Override http request option.
1407
- * @throws {RequiredError}
1408
- */
1409
- createImpactForOption(optionId, investmentId, impactCreate, options) {
1410
- return (0, exports.InvestmentApiFp)(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
1411
- }
1412
- /**
1413
- * Create a new option under this investment.
1414
- * @summary Create an option for this investment
1415
- * @param {string} investmentId UUID of the investment
1416
- * @param {OptionCreate} optionCreate
1417
- * @param {*} [options] Override http request option.
1418
- * @throws {RequiredError}
1419
- */
1420
- createOptionForInvestment(investmentId, optionCreate, options) {
1421
- return (0, exports.InvestmentApiFp)(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
1422
- }
1423
- /**
1424
- * Delete an existing impact by its ID.
1425
- * @summary Delete an impact for this option
1426
- * @param {string} impactId UUID of the impact
1427
- * @param {string} optionId UUID of the option
1428
- * @param {string} investmentId UUID of the investment
491
+ * 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.
492
+ * @summary Bulk delete investments
493
+ * @param {BulkDeleteRequest} bulkDeleteRequest
1429
494
  * @param {*} [options] Override http request option.
1430
495
  * @throws {RequiredError}
1431
496
  */
1432
- deleteImpactForOption(impactId, optionId, investmentId, options) {
1433
- return (0, exports.InvestmentApiFp)(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
497
+ bulkDeleteInvestments(bulkDeleteRequest, options) {
498
+ return (0, exports.InvestmentApiFp)(this.configuration).bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
1434
499
  }
1435
500
  /**
1436
501
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
@@ -1442,42 +507,6 @@ class InvestmentApi extends base_1.BaseAPI {
1442
507
  deleteInvestment(investmentId, options) {
1443
508
  return (0, exports.InvestmentApiFp)(this.configuration).deleteInvestment(investmentId, options).then((request) => request(this.axios, this.basePath));
1444
509
  }
1445
- /**
1446
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1447
- * @summary Delete an option for this investment
1448
- * @param {string} optionId UUID of the option
1449
- * @param {string} investmentId UUID of the investment
1450
- * @param {*} [options] Override http request option.
1451
- * @throws {RequiredError}
1452
- */
1453
- deleteOptionForInvestment(optionId, investmentId, options) {
1454
- return (0, exports.InvestmentApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1455
- }
1456
- /**
1457
- * Retrieve a specific impact for the option.
1458
- * @summary Get an impact for this option
1459
- * @param {string} impactId UUID of the impact
1460
- * @param {string} optionId UUID of the option
1461
- * @param {string} investmentId UUID of the investment
1462
- * @param {*} [options] Override http request option.
1463
- * @throws {RequiredError}
1464
- */
1465
- getImpactForOption(impactId, optionId, investmentId, options) {
1466
- return (0, exports.InvestmentApiFp)(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1467
- }
1468
- /**
1469
- * Retrieve a paginated list of all impacts for a specific option.
1470
- * @summary List impacts for this option
1471
- * @param {string} optionId UUID of the option
1472
- * @param {string} investmentId UUID of the investment
1473
- * @param {number} [offset] Number of records to skip
1474
- * @param {number} [limit] Max number of records to return
1475
- * @param {*} [options] Override http request option.
1476
- * @throws {RequiredError}
1477
- */
1478
- getImpactsForOption(optionId, investmentId, offset, limit, options) {
1479
- return (0, exports.InvestmentApiFp)(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1480
- }
1481
510
  /**
1482
511
  * Retrieve a single investment by its ID.
1483
512
  * @summary Get an investment by ID
@@ -1509,75 +538,6 @@ class InvestmentApi extends base_1.BaseAPI {
1509
538
  getInvestmentsOverview(valueFrameworkId, options) {
1510
539
  return (0, exports.InvestmentApiFp)(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1511
540
  }
1512
- /**
1513
- * Retrieve a specific option for the investment.
1514
- * @summary Get an option for this investment
1515
- * @param {string} optionId UUID of the option
1516
- * @param {string} investmentId UUID of the investment
1517
- * @param {*} [options] Override http request option.
1518
- * @throws {RequiredError}
1519
- */
1520
- getOptionForInvestment(optionId, investmentId, options) {
1521
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1522
- }
1523
- /**
1524
- * 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.
1525
- * @summary Get the kpis for a given option inside a value framework
1526
- * @param {string} investmentId UUID of the investment
1527
- * @param {string} optionId UUID of the option
1528
- * @param {string} valueFrameworkId UUID of the value framework
1529
- * @param {*} [options] Override http request option.
1530
- * @throws {RequiredError}
1531
- */
1532
- getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1533
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1534
- }
1535
- /**
1536
- * Retrieve a paginated list of all options for a specific investment.
1537
- * @summary List options for this investment
1538
- * @param {string} investmentId UUID of the investment
1539
- * @param {number} [offset] Number of records to skip
1540
- * @param {number} [limit] Max number of records to return
1541
- * @param {*} [options] Override http request option.
1542
- * @throws {RequiredError}
1543
- */
1544
- getOptionsForInvestment(investmentId, offset, limit, options) {
1545
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1546
- }
1547
- /**
1548
- * 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.
1549
- * @summary Option overview table for this investment
1550
- * @param {string} investmentId UUID of the investment
1551
- * @param {string} valueFrameworkId UUID of the value framework
1552
- * @param {*} [options] Override http request option.
1553
- * @throws {RequiredError}
1554
- */
1555
- getOptionsOverview(investmentId, valueFrameworkId, options) {
1556
- return (0, exports.InvestmentApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1557
- }
1558
- /**
1559
- * Get the preferred option for an investment.
1560
- * @summary Get the preferred option for an investment
1561
- * @param {string} investmentId UUID of the investment
1562
- * @param {*} [options] Override http request option.
1563
- * @throws {RequiredError}
1564
- */
1565
- getPreferredOption(investmentId, options) {
1566
- return (0, exports.InvestmentApiFp)(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1567
- }
1568
- /**
1569
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1570
- * @summary Partially update an impact for this option
1571
- * @param {string} impactId UUID of the impact
1572
- * @param {string} optionId UUID of the option
1573
- * @param {string} investmentId UUID of the investment
1574
- * @param {ImpactUpdate} impactUpdate
1575
- * @param {*} [options] Override http request option.
1576
- * @throws {RequiredError}
1577
- */
1578
- patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
1579
- return (0, exports.InvestmentApiFp)(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
1580
- }
1581
541
  /**
1582
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.
1583
543
  * @summary Partially update an investment
@@ -1589,18 +549,6 @@ class InvestmentApi extends base_1.BaseAPI {
1589
549
  patchInvestment(investmentId, investmentUpdate, options) {
1590
550
  return (0, exports.InvestmentApiFp)(this.configuration).patchInvestment(investmentId, investmentUpdate, options).then((request) => request(this.axios, this.basePath));
1591
551
  }
1592
- /**
1593
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1594
- * @summary Partially update an option for this investment
1595
- * @param {string} optionId UUID of the option
1596
- * @param {string} investmentId UUID of the investment
1597
- * @param {OptionUpdate} optionUpdate
1598
- * @param {*} [options] Override http request option.
1599
- * @throws {RequiredError}
1600
- */
1601
- patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
1602
- return (0, exports.InvestmentApiFp)(this.configuration).patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(this.axios, this.basePath));
1603
- }
1604
552
  /**
1605
553
  * Create a new investment.
1606
554
  * @summary Create an investment
@@ -1611,16 +559,5 @@ class InvestmentApi extends base_1.BaseAPI {
1611
559
  postInvestment(investmentCreate, options) {
1612
560
  return (0, exports.InvestmentApiFp)(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
1613
561
  }
1614
- /**
1615
- * Set the preferred option for an investment.
1616
- * @summary Set the preferred option for an investment
1617
- * @param {string} investmentId UUID of the investment
1618
- * @param {PreferredOptionRequest} preferredOptionRequest
1619
- * @param {*} [options] Override http request option.
1620
- * @throws {RequiredError}
1621
- */
1622
- setPreferredOption(investmentId, preferredOptionRequest, options) {
1623
- return (0, exports.InvestmentApiFp)(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1624
- }
1625
562
  }
1626
563
  exports.InvestmentApi = InvestmentApi;