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

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