@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).
@@ -22,11 +22,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { ImpactAPIResponse } from '../models';
26
- // @ts-ignore
27
- import type { ImpactCreate } from '../models';
28
- // @ts-ignore
29
- import type { ImpactUpdate } from '../models';
25
+ import type { BulkDeleteRequest } from '../models';
30
26
  // @ts-ignore
31
27
  import type { InvestmentCreate } from '../models';
32
28
  // @ts-ignore
@@ -35,87 +31,22 @@ import type { InvestmentOverviewResponse } from '../models';
35
31
  import type { InvestmentResponse } from '../models';
36
32
  // @ts-ignore
37
33
  import type { InvestmentUpdate } from '../models';
38
- // @ts-ignore
39
- import type { OptionChartKPIsYearly } from '../models';
40
- // @ts-ignore
41
- import type { OptionCreate } from '../models';
42
- // @ts-ignore
43
- import type { OptionOverviewResponse } from '../models';
44
- // @ts-ignore
45
- import type { OptionResponse } from '../models';
46
- // @ts-ignore
47
- import type { OptionUpdate } from '../models';
48
- // @ts-ignore
49
- import type { PreferredOptionRequest } from '../models';
50
- // @ts-ignore
51
- import type { PreferredOptionResponse } from '../models';
52
34
  /**
53
35
  * InvestmentApi - axios parameter creator
54
36
  */
55
37
  export const InvestmentApiAxiosParamCreator = function (configuration?: Configuration) {
56
38
  return {
57
39
  /**
58
- * Create a new impact under this option.
59
- * @summary Create an impact for this option
60
- * @param {string} optionId UUID of the option
61
- * @param {string} investmentId UUID of the investment
62
- * @param {ImpactCreate} impactCreate
63
- * @param {*} [options] Override http request option.
64
- * @throws {RequiredError}
65
- */
66
- createImpactForOption: async (optionId: string, investmentId: string, impactCreate: ImpactCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
67
- // verify required parameter 'optionId' is not null or undefined
68
- assertParamExists('createImpactForOption', 'optionId', optionId)
69
- // verify required parameter 'investmentId' is not null or undefined
70
- assertParamExists('createImpactForOption', 'investmentId', investmentId)
71
- // verify required parameter 'impactCreate' is not null or undefined
72
- assertParamExists('createImpactForOption', 'impactCreate', impactCreate)
73
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
74
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
75
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
76
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
- let baseOptions;
79
- if (configuration) {
80
- baseOptions = configuration.baseOptions;
81
- }
82
-
83
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
84
- const localVarHeaderParameter = {} as any;
85
- const localVarQueryParameter = {} as any;
86
-
87
- // authentication OAuth2AuthorizationCodeBearer required
88
- // oauth required
89
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
90
-
91
- localVarHeaderParameter['Content-Type'] = 'application/json';
92
- localVarHeaderParameter['Accept'] = 'application/json';
93
-
94
- setSearchParams(localVarUrlObj, localVarQueryParameter);
95
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
97
- localVarRequestOptions.data = serializeDataIfNeeded(impactCreate, localVarRequestOptions, configuration)
98
-
99
- return {
100
- url: toPathString(localVarUrlObj),
101
- options: localVarRequestOptions,
102
- };
103
- },
104
- /**
105
- * Create a new option under this investment.
106
- * @summary Create an option for this investment
107
- * @param {string} investmentId UUID of the investment
108
- * @param {OptionCreate} optionCreate
40
+ * 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.
41
+ * @summary Bulk delete investments
42
+ * @param {BulkDeleteRequest} bulkDeleteRequest
109
43
  * @param {*} [options] Override http request option.
110
44
  * @throws {RequiredError}
111
45
  */
112
- createOptionForInvestment: async (investmentId: string, optionCreate: OptionCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
113
- // verify required parameter 'investmentId' is not null or undefined
114
- assertParamExists('createOptionForInvestment', 'investmentId', investmentId)
115
- // verify required parameter 'optionCreate' is not null or undefined
116
- assertParamExists('createOptionForInvestment', 'optionCreate', optionCreate)
117
- const localVarPath = `/investment/{investment_id}/option/`
118
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
46
+ bulkDeleteInvestments: async (bulkDeleteRequest: BulkDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'bulkDeleteRequest' is not null or undefined
48
+ assertParamExists('bulkDeleteInvestments', 'bulkDeleteRequest', bulkDeleteRequest)
49
+ const localVarPath = `/investment/bulk-delete`;
119
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
121
52
  let baseOptions;
@@ -132,57 +63,11 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
132
63
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
133
64
 
134
65
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
- localVarHeaderParameter['Accept'] = 'application/json';
136
-
137
- setSearchParams(localVarUrlObj, localVarQueryParameter);
138
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
140
- localVarRequestOptions.data = serializeDataIfNeeded(optionCreate, localVarRequestOptions, configuration)
141
-
142
- return {
143
- url: toPathString(localVarUrlObj),
144
- options: localVarRequestOptions,
145
- };
146
- },
147
- /**
148
- * Delete an existing impact by its ID.
149
- * @summary Delete an impact for this option
150
- * @param {string} impactId UUID of the impact
151
- * @param {string} optionId UUID of the option
152
- * @param {string} investmentId UUID of the investment
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- deleteImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
157
- // verify required parameter 'impactId' is not null or undefined
158
- assertParamExists('deleteImpactForOption', 'impactId', impactId)
159
- // verify required parameter 'optionId' is not null or undefined
160
- assertParamExists('deleteImpactForOption', 'optionId', optionId)
161
- // verify required parameter 'investmentId' is not null or undefined
162
- assertParamExists('deleteImpactForOption', 'investmentId', investmentId)
163
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
164
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
165
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
166
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
167
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
169
- let baseOptions;
170
- if (configuration) {
171
- baseOptions = configuration.baseOptions;
172
- }
173
-
174
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
175
- const localVarHeaderParameter = {} as any;
176
- const localVarQueryParameter = {} as any;
177
-
178
- // authentication OAuth2AuthorizationCodeBearer required
179
- // oauth required
180
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
181
-
182
66
 
183
67
  setSearchParams(localVarUrlObj, localVarQueryParameter);
184
68
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
69
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
70
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkDeleteRequest, localVarRequestOptions, configuration)
186
71
 
187
72
  return {
188
73
  url: toPathString(localVarUrlObj),
@@ -217,145 +102,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
217
102
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
218
103
 
219
104
 
220
- setSearchParams(localVarUrlObj, localVarQueryParameter);
221
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
222
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
223
-
224
- return {
225
- url: toPathString(localVarUrlObj),
226
- options: localVarRequestOptions,
227
- };
228
- },
229
- /**
230
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
231
- * @summary Delete an option for this investment
232
- * @param {string} optionId UUID of the option
233
- * @param {string} investmentId UUID of the investment
234
- * @param {*} [options] Override http request option.
235
- * @throws {RequiredError}
236
- */
237
- deleteOptionForInvestment: async (optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
238
- // verify required parameter 'optionId' is not null or undefined
239
- assertParamExists('deleteOptionForInvestment', 'optionId', optionId)
240
- // verify required parameter 'investmentId' is not null or undefined
241
- assertParamExists('deleteOptionForInvestment', 'investmentId', investmentId)
242
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
243
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
244
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
245
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
246
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
247
- let baseOptions;
248
- if (configuration) {
249
- baseOptions = configuration.baseOptions;
250
- }
251
-
252
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
253
- const localVarHeaderParameter = {} as any;
254
- const localVarQueryParameter = {} as any;
255
-
256
- // authentication OAuth2AuthorizationCodeBearer required
257
- // oauth required
258
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
259
-
260
-
261
- setSearchParams(localVarUrlObj, localVarQueryParameter);
262
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
263
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
264
-
265
- return {
266
- url: toPathString(localVarUrlObj),
267
- options: localVarRequestOptions,
268
- };
269
- },
270
- /**
271
- * Retrieve a specific impact for the option.
272
- * @summary Get an impact for this option
273
- * @param {string} impactId UUID of the impact
274
- * @param {string} optionId UUID of the option
275
- * @param {string} investmentId UUID of the investment
276
- * @param {*} [options] Override http request option.
277
- * @throws {RequiredError}
278
- */
279
- getImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
280
- // verify required parameter 'impactId' is not null or undefined
281
- assertParamExists('getImpactForOption', 'impactId', impactId)
282
- // verify required parameter 'optionId' is not null or undefined
283
- assertParamExists('getImpactForOption', 'optionId', optionId)
284
- // verify required parameter 'investmentId' is not null or undefined
285
- assertParamExists('getImpactForOption', 'investmentId', investmentId)
286
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
287
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
288
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
289
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
290
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
291
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
292
- let baseOptions;
293
- if (configuration) {
294
- baseOptions = configuration.baseOptions;
295
- }
296
-
297
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
298
- const localVarHeaderParameter = {} as any;
299
- const localVarQueryParameter = {} as any;
300
-
301
- // authentication OAuth2AuthorizationCodeBearer required
302
- // oauth required
303
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
304
-
305
- localVarHeaderParameter['Accept'] = 'application/json';
306
-
307
- setSearchParams(localVarUrlObj, localVarQueryParameter);
308
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
310
-
311
- return {
312
- url: toPathString(localVarUrlObj),
313
- options: localVarRequestOptions,
314
- };
315
- },
316
- /**
317
- * Retrieve a paginated list of all impacts for a specific option.
318
- * @summary List impacts for this option
319
- * @param {string} optionId UUID of the option
320
- * @param {string} investmentId UUID of the investment
321
- * @param {number} [offset] Number of records to skip
322
- * @param {number} [limit] Max number of records to return
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- getImpactsForOption: async (optionId: string, investmentId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
327
- // verify required parameter 'optionId' is not null or undefined
328
- assertParamExists('getImpactsForOption', 'optionId', optionId)
329
- // verify required parameter 'investmentId' is not null or undefined
330
- assertParamExists('getImpactsForOption', 'investmentId', investmentId)
331
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
332
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
333
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
334
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
335
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
336
- let baseOptions;
337
- if (configuration) {
338
- baseOptions = configuration.baseOptions;
339
- }
340
-
341
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
342
- const localVarHeaderParameter = {} as any;
343
- const localVarQueryParameter = {} as any;
344
-
345
- // authentication OAuth2AuthorizationCodeBearer required
346
- // oauth required
347
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
348
-
349
- if (offset !== undefined) {
350
- localVarQueryParameter['offset'] = offset;
351
- }
352
-
353
- if (limit !== undefined) {
354
- localVarQueryParameter['limit'] = limit;
355
- }
356
-
357
- localVarHeaderParameter['Accept'] = 'application/json';
358
-
359
105
  setSearchParams(localVarUrlObj, localVarQueryParameter);
360
106
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
107
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -489,20 +235,19 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
489
235
  };
490
236
  },
491
237
  /**
492
- * Retrieve a specific option for the investment.
493
- * @summary Get an option for this investment
494
- * @param {string} optionId UUID of the option
238
+ * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
239
+ * @summary Partially update an investment
495
240
  * @param {string} investmentId UUID of the investment
241
+ * @param {InvestmentUpdate} investmentUpdate
496
242
  * @param {*} [options] Override http request option.
497
243
  * @throws {RequiredError}
498
244
  */
499
- getOptionForInvestment: async (optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
500
- // verify required parameter 'optionId' is not null or undefined
501
- assertParamExists('getOptionForInvestment', 'optionId', optionId)
245
+ patchInvestment: async (investmentId: string, investmentUpdate: InvestmentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
502
246
  // verify required parameter 'investmentId' is not null or undefined
503
- assertParamExists('getOptionForInvestment', 'investmentId', investmentId)
504
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
505
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
247
+ assertParamExists('patchInvestment', 'investmentId', investmentId)
248
+ // verify required parameter 'investmentUpdate' is not null or undefined
249
+ assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate)
250
+ const localVarPath = `/investment/{investment_id}`
506
251
  .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
507
252
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
508
253
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -511,7 +256,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
511
256
  baseOptions = configuration.baseOptions;
512
257
  }
513
258
 
514
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
259
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
515
260
  const localVarHeaderParameter = {} as any;
516
261
  const localVarQueryParameter = {} as any;
517
262
 
@@ -519,11 +264,13 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
519
264
  // oauth required
520
265
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
521
266
 
267
+ localVarHeaderParameter['Content-Type'] = 'application/json';
522
268
  localVarHeaderParameter['Accept'] = 'application/json';
523
269
 
524
270
  setSearchParams(localVarUrlObj, localVarQueryParameter);
525
271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
526
272
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
273
+ localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration)
527
274
 
528
275
  return {
529
276
  url: toPathString(localVarUrlObj),
@@ -531,25 +278,16 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
531
278
  };
532
279
  },
533
280
  /**
534
- * 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.
535
- * @summary Get the kpis for a given option inside a value framework
536
- * @param {string} investmentId UUID of the investment
537
- * @param {string} optionId UUID of the option
538
- * @param {string} valueFrameworkId UUID of the value framework
281
+ * Create a new investment.
282
+ * @summary Create an investment
283
+ * @param {InvestmentCreate} investmentCreate
539
284
  * @param {*} [options] Override http request option.
540
285
  * @throws {RequiredError}
541
286
  */
542
- getOptionKpis: async (investmentId: string, optionId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
543
- // verify required parameter 'investmentId' is not null or undefined
544
- assertParamExists('getOptionKpis', 'investmentId', investmentId)
545
- // verify required parameter 'optionId' is not null or undefined
546
- assertParamExists('getOptionKpis', 'optionId', optionId)
547
- // verify required parameter 'valueFrameworkId' is not null or undefined
548
- assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
549
- const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
550
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
551
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
552
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
287
+ postInvestment: async (investmentCreate: InvestmentCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
288
+ // verify required parameter 'investmentCreate' is not null or undefined
289
+ assertParamExists('postInvestment', 'investmentCreate', investmentCreate)
290
+ const localVarPath = `/investment/`;
553
291
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
554
292
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
555
293
  let baseOptions;
@@ -557,7 +295,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
557
295
  baseOptions = configuration.baseOptions;
558
296
  }
559
297
 
560
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
298
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
561
299
  const localVarHeaderParameter = {} as any;
562
300
  const localVarQueryParameter = {} as any;
563
301
 
@@ -565,480 +303,52 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
565
303
  // oauth required
566
304
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
567
305
 
306
+ localVarHeaderParameter['Content-Type'] = 'application/json';
568
307
  localVarHeaderParameter['Accept'] = 'application/json';
569
308
 
570
309
  setSearchParams(localVarUrlObj, localVarQueryParameter);
571
310
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
572
311
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
312
+ localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration)
573
313
 
574
314
  return {
575
315
  url: toPathString(localVarUrlObj),
576
316
  options: localVarRequestOptions,
577
317
  };
578
318
  },
319
+ }
320
+ };
321
+
322
+ /**
323
+ * InvestmentApi - functional programming interface
324
+ */
325
+ export const InvestmentApiFp = function(configuration?: Configuration) {
326
+ const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration)
327
+ return {
328
+ /**
329
+ * 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.
330
+ * @summary Bulk delete investments
331
+ * @param {BulkDeleteRequest} bulkDeleteRequest
332
+ * @param {*} [options] Override http request option.
333
+ * @throws {RequiredError}
334
+ */
335
+ async bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
338
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.bulkDeleteInvestments']?.[localVarOperationServerIndex]?.url;
339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
340
+ },
579
341
  /**
580
- * Retrieve a paginated list of all options for a specific investment.
581
- * @summary List options for this investment
342
+ * Delete an existing investment by its ID. Associated options are also deleted via cascade.
343
+ * @summary Delete an investment
582
344
  * @param {string} investmentId UUID of the investment
583
- * @param {number} [offset] Number of records to skip
584
- * @param {number} [limit] Max number of records to return
585
345
  * @param {*} [options] Override http request option.
586
346
  * @throws {RequiredError}
587
347
  */
588
- getOptionsForInvestment: async (investmentId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
589
- // verify required parameter 'investmentId' is not null or undefined
590
- assertParamExists('getOptionsForInvestment', 'investmentId', investmentId)
591
- const localVarPath = `/investment/{investment_id}/option/`
592
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
593
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
594
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
595
- let baseOptions;
596
- if (configuration) {
597
- baseOptions = configuration.baseOptions;
598
- }
599
-
600
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
601
- const localVarHeaderParameter = {} as any;
602
- const localVarQueryParameter = {} as any;
603
-
604
- // authentication OAuth2AuthorizationCodeBearer required
605
- // oauth required
606
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
607
-
608
- if (offset !== undefined) {
609
- localVarQueryParameter['offset'] = offset;
610
- }
611
-
612
- if (limit !== undefined) {
613
- localVarQueryParameter['limit'] = limit;
614
- }
615
-
616
- localVarHeaderParameter['Accept'] = 'application/json';
617
-
618
- setSearchParams(localVarUrlObj, localVarQueryParameter);
619
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
620
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
621
-
622
- return {
623
- url: toPathString(localVarUrlObj),
624
- options: localVarRequestOptions,
625
- };
626
- },
627
- /**
628
- * 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.
629
- * @summary Option overview table for this investment
630
- * @param {string} investmentId UUID of the investment
631
- * @param {string} valueFrameworkId UUID of the value framework
632
- * @param {*} [options] Override http request option.
633
- * @throws {RequiredError}
634
- */
635
- getOptionsOverview: async (investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
636
- // verify required parameter 'investmentId' is not null or undefined
637
- assertParamExists('getOptionsOverview', 'investmentId', investmentId)
638
- // verify required parameter 'valueFrameworkId' is not null or undefined
639
- assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId)
640
- const localVarPath = `/investment/{investment_id}/option/overview`
641
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
642
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
643
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
644
- let baseOptions;
645
- if (configuration) {
646
- baseOptions = configuration.baseOptions;
647
- }
648
-
649
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
650
- const localVarHeaderParameter = {} as any;
651
- const localVarQueryParameter = {} as any;
652
-
653
- // authentication OAuth2AuthorizationCodeBearer required
654
- // oauth required
655
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
656
-
657
- if (valueFrameworkId !== undefined) {
658
- localVarQueryParameter['value_framework_id'] = valueFrameworkId;
659
- }
660
-
661
- localVarHeaderParameter['Accept'] = 'application/json';
662
-
663
- setSearchParams(localVarUrlObj, localVarQueryParameter);
664
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
665
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
666
-
667
- return {
668
- url: toPathString(localVarUrlObj),
669
- options: localVarRequestOptions,
670
- };
671
- },
672
- /**
673
- * Get the preferred option for an investment.
674
- * @summary Get the preferred option for an investment
675
- * @param {string} investmentId UUID of the investment
676
- * @param {*} [options] Override http request option.
677
- * @throws {RequiredError}
678
- */
679
- getPreferredOption: async (investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
680
- // verify required parameter 'investmentId' is not null or undefined
681
- assertParamExists('getPreferredOption', 'investmentId', investmentId)
682
- const localVarPath = `/investment/{investment_id}/preferred_option`
683
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
684
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
685
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
686
- let baseOptions;
687
- if (configuration) {
688
- baseOptions = configuration.baseOptions;
689
- }
690
-
691
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
692
- const localVarHeaderParameter = {} as any;
693
- const localVarQueryParameter = {} as any;
694
-
695
- // authentication OAuth2AuthorizationCodeBearer required
696
- // oauth required
697
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
698
-
699
- localVarHeaderParameter['Accept'] = 'application/json';
700
-
701
- setSearchParams(localVarUrlObj, localVarQueryParameter);
702
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
703
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
704
-
705
- return {
706
- url: toPathString(localVarUrlObj),
707
- options: localVarRequestOptions,
708
- };
709
- },
710
- /**
711
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
712
- * @summary Partially update an impact for this option
713
- * @param {string} impactId UUID of the impact
714
- * @param {string} optionId UUID of the option
715
- * @param {string} investmentId UUID of the investment
716
- * @param {ImpactUpdate} impactUpdate
717
- * @param {*} [options] Override http request option.
718
- * @throws {RequiredError}
719
- */
720
- patchImpactForOption: async (impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
721
- // verify required parameter 'impactId' is not null or undefined
722
- assertParamExists('patchImpactForOption', 'impactId', impactId)
723
- // verify required parameter 'optionId' is not null or undefined
724
- assertParamExists('patchImpactForOption', 'optionId', optionId)
725
- // verify required parameter 'investmentId' is not null or undefined
726
- assertParamExists('patchImpactForOption', 'investmentId', investmentId)
727
- // verify required parameter 'impactUpdate' is not null or undefined
728
- assertParamExists('patchImpactForOption', 'impactUpdate', impactUpdate)
729
- const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
730
- .replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
731
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
732
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
733
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
734
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
735
- let baseOptions;
736
- if (configuration) {
737
- baseOptions = configuration.baseOptions;
738
- }
739
-
740
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
741
- const localVarHeaderParameter = {} as any;
742
- const localVarQueryParameter = {} as any;
743
-
744
- // authentication OAuth2AuthorizationCodeBearer required
745
- // oauth required
746
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
747
-
748
- localVarHeaderParameter['Content-Type'] = 'application/json';
749
- localVarHeaderParameter['Accept'] = 'application/json';
750
-
751
- setSearchParams(localVarUrlObj, localVarQueryParameter);
752
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
753
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
754
- localVarRequestOptions.data = serializeDataIfNeeded(impactUpdate, localVarRequestOptions, configuration)
755
-
756
- return {
757
- url: toPathString(localVarUrlObj),
758
- options: localVarRequestOptions,
759
- };
760
- },
761
- /**
762
- * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
763
- * @summary Partially update an investment
764
- * @param {string} investmentId UUID of the investment
765
- * @param {InvestmentUpdate} investmentUpdate
766
- * @param {*} [options] Override http request option.
767
- * @throws {RequiredError}
768
- */
769
- patchInvestment: async (investmentId: string, investmentUpdate: InvestmentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
770
- // verify required parameter 'investmentId' is not null or undefined
771
- assertParamExists('patchInvestment', 'investmentId', investmentId)
772
- // verify required parameter 'investmentUpdate' is not null or undefined
773
- assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate)
774
- const localVarPath = `/investment/{investment_id}`
775
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
776
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
777
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
778
- let baseOptions;
779
- if (configuration) {
780
- baseOptions = configuration.baseOptions;
781
- }
782
-
783
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
784
- const localVarHeaderParameter = {} as any;
785
- const localVarQueryParameter = {} as any;
786
-
787
- // authentication OAuth2AuthorizationCodeBearer required
788
- // oauth required
789
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
790
-
791
- localVarHeaderParameter['Content-Type'] = 'application/json';
792
- localVarHeaderParameter['Accept'] = 'application/json';
793
-
794
- setSearchParams(localVarUrlObj, localVarQueryParameter);
795
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
796
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
797
- localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration)
798
-
799
- return {
800
- url: toPathString(localVarUrlObj),
801
- options: localVarRequestOptions,
802
- };
803
- },
804
- /**
805
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
806
- * @summary Partially update an option for this investment
807
- * @param {string} optionId UUID of the option
808
- * @param {string} investmentId UUID of the investment
809
- * @param {OptionUpdate} optionUpdate
810
- * @param {*} [options] Override http request option.
811
- * @throws {RequiredError}
812
- */
813
- patchOptionForInvestment: async (optionId: string, investmentId: string, optionUpdate: OptionUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
814
- // verify required parameter 'optionId' is not null or undefined
815
- assertParamExists('patchOptionForInvestment', 'optionId', optionId)
816
- // verify required parameter 'investmentId' is not null or undefined
817
- assertParamExists('patchOptionForInvestment', 'investmentId', investmentId)
818
- // verify required parameter 'optionUpdate' is not null or undefined
819
- assertParamExists('patchOptionForInvestment', 'optionUpdate', optionUpdate)
820
- const localVarPath = `/investment/{investment_id}/option/{option_id}`
821
- .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
822
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
823
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
824
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
825
- let baseOptions;
826
- if (configuration) {
827
- baseOptions = configuration.baseOptions;
828
- }
829
-
830
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
831
- const localVarHeaderParameter = {} as any;
832
- const localVarQueryParameter = {} as any;
833
-
834
- // authentication OAuth2AuthorizationCodeBearer required
835
- // oauth required
836
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
837
-
838
- localVarHeaderParameter['Content-Type'] = 'application/json';
839
- localVarHeaderParameter['Accept'] = 'application/json';
840
-
841
- setSearchParams(localVarUrlObj, localVarQueryParameter);
842
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
843
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
844
- localVarRequestOptions.data = serializeDataIfNeeded(optionUpdate, localVarRequestOptions, configuration)
845
-
846
- return {
847
- url: toPathString(localVarUrlObj),
848
- options: localVarRequestOptions,
849
- };
850
- },
851
- /**
852
- * Create a new investment.
853
- * @summary Create an investment
854
- * @param {InvestmentCreate} investmentCreate
855
- * @param {*} [options] Override http request option.
856
- * @throws {RequiredError}
857
- */
858
- postInvestment: async (investmentCreate: InvestmentCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
859
- // verify required parameter 'investmentCreate' is not null or undefined
860
- assertParamExists('postInvestment', 'investmentCreate', investmentCreate)
861
- const localVarPath = `/investment/`;
862
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
863
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
864
- let baseOptions;
865
- if (configuration) {
866
- baseOptions = configuration.baseOptions;
867
- }
868
-
869
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
870
- const localVarHeaderParameter = {} as any;
871
- const localVarQueryParameter = {} as any;
872
-
873
- // authentication OAuth2AuthorizationCodeBearer required
874
- // oauth required
875
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
876
-
877
- localVarHeaderParameter['Content-Type'] = 'application/json';
878
- localVarHeaderParameter['Accept'] = 'application/json';
879
-
880
- setSearchParams(localVarUrlObj, localVarQueryParameter);
881
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
883
- localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration)
884
-
885
- return {
886
- url: toPathString(localVarUrlObj),
887
- options: localVarRequestOptions,
888
- };
889
- },
890
- /**
891
- * Set the preferred option for an investment.
892
- * @summary Set the preferred option for an investment
893
- * @param {string} investmentId UUID of the investment
894
- * @param {PreferredOptionRequest} preferredOptionRequest
895
- * @param {*} [options] Override http request option.
896
- * @throws {RequiredError}
897
- */
898
- setPreferredOption: async (investmentId: string, preferredOptionRequest: PreferredOptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
899
- // verify required parameter 'investmentId' is not null or undefined
900
- assertParamExists('setPreferredOption', 'investmentId', investmentId)
901
- // verify required parameter 'preferredOptionRequest' is not null or undefined
902
- assertParamExists('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest)
903
- const localVarPath = `/investment/{investment_id}/preferred_option`
904
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
905
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
906
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
907
- let baseOptions;
908
- if (configuration) {
909
- baseOptions = configuration.baseOptions;
910
- }
911
-
912
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
913
- const localVarHeaderParameter = {} as any;
914
- const localVarQueryParameter = {} as any;
915
-
916
- // authentication OAuth2AuthorizationCodeBearer required
917
- // oauth required
918
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
919
-
920
- localVarHeaderParameter['Content-Type'] = 'application/json';
921
- localVarHeaderParameter['Accept'] = 'application/json';
922
-
923
- setSearchParams(localVarUrlObj, localVarQueryParameter);
924
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
925
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
926
- localVarRequestOptions.data = serializeDataIfNeeded(preferredOptionRequest, localVarRequestOptions, configuration)
927
-
928
- return {
929
- url: toPathString(localVarUrlObj),
930
- options: localVarRequestOptions,
931
- };
932
- },
933
- }
934
- };
935
-
936
- /**
937
- * InvestmentApi - functional programming interface
938
- */
939
- export const InvestmentApiFp = function(configuration?: Configuration) {
940
- const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration)
941
- return {
942
- /**
943
- * Create a new impact under this option.
944
- * @summary Create an impact for this option
945
- * @param {string} optionId UUID of the option
946
- * @param {string} investmentId UUID of the investment
947
- * @param {ImpactCreate} impactCreate
948
- * @param {*} [options] Override http request option.
949
- * @throws {RequiredError}
950
- */
951
- async createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
952
- const localVarAxiosArgs = await localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
953
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
954
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.createImpactForOption']?.[localVarOperationServerIndex]?.url;
955
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
956
- },
957
- /**
958
- * Create a new option under this investment.
959
- * @summary Create an option for this investment
960
- * @param {string} investmentId UUID of the investment
961
- * @param {OptionCreate} optionCreate
962
- * @param {*} [options] Override http request option.
963
- * @throws {RequiredError}
964
- */
965
- async createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>> {
966
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOptionForInvestment(investmentId, optionCreate, options);
967
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
968
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.createOptionForInvestment']?.[localVarOperationServerIndex]?.url;
969
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
970
- },
971
- /**
972
- * Delete an existing impact by its ID.
973
- * @summary Delete an impact for this option
974
- * @param {string} impactId UUID of the impact
975
- * @param {string} optionId UUID of the option
976
- * @param {string} investmentId UUID of the investment
977
- * @param {*} [options] Override http request option.
978
- * @throws {RequiredError}
979
- */
980
- async deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
981
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
982
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
983
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteImpactForOption']?.[localVarOperationServerIndex]?.url;
984
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
985
- },
986
- /**
987
- * Delete an existing investment by its ID. Associated options are also deleted via cascade.
988
- * @summary Delete an investment
989
- * @param {string} investmentId UUID of the investment
990
- * @param {*} [options] Override http request option.
991
- * @throws {RequiredError}
992
- */
993
- async deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
994
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvestment(investmentId, options);
995
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
996
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteInvestment']?.[localVarOperationServerIndex]?.url;
997
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
998
- },
999
- /**
1000
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1001
- * @summary Delete an option for this investment
1002
- * @param {string} optionId UUID of the option
1003
- * @param {string} investmentId UUID of the investment
1004
- * @param {*} [options] Override http request option.
1005
- * @throws {RequiredError}
1006
- */
1007
- async deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1008
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
1009
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1010
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteOptionForInvestment']?.[localVarOperationServerIndex]?.url;
1011
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1012
- },
1013
- /**
1014
- * Retrieve a specific impact for the option.
1015
- * @summary Get an impact for this option
1016
- * @param {string} impactId UUID of the impact
1017
- * @param {string} optionId UUID of the option
1018
- * @param {string} investmentId UUID of the investment
1019
- * @param {*} [options] Override http request option.
1020
- * @throws {RequiredError}
1021
- */
1022
- async getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
1023
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
1024
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1025
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getImpactForOption']?.[localVarOperationServerIndex]?.url;
1026
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1027
- },
1028
- /**
1029
- * Retrieve a paginated list of all impacts for a specific option.
1030
- * @summary List impacts for this option
1031
- * @param {string} optionId UUID of the option
1032
- * @param {string} investmentId UUID of the investment
1033
- * @param {number} [offset] Number of records to skip
1034
- * @param {number} [limit] Max number of records to return
1035
- * @param {*} [options] Override http request option.
1036
- * @throws {RequiredError}
1037
- */
1038
- async getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImpactAPIResponse>>> {
1039
- const localVarAxiosArgs = await localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
348
+ async deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
349
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvestment(investmentId, options);
1040
350
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1041
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getImpactsForOption']?.[localVarOperationServerIndex]?.url;
351
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteInvestment']?.[localVarOperationServerIndex]?.url;
1042
352
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1043
353
  },
1044
354
  /**
@@ -1081,93 +391,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1081
391
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
1082
392
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1083
393
  },
1084
- /**
1085
- * Retrieve a specific option for the investment.
1086
- * @summary Get an option for this investment
1087
- * @param {string} optionId UUID of the option
1088
- * @param {string} investmentId UUID of the investment
1089
- * @param {*} [options] Override http request option.
1090
- * @throws {RequiredError}
1091
- */
1092
- async getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>> {
1093
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionForInvestment(optionId, investmentId, options);
1094
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1095
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionForInvestment']?.[localVarOperationServerIndex]?.url;
1096
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1097
- },
1098
- /**
1099
- * 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.
1100
- * @summary Get the kpis for a given option inside a value framework
1101
- * @param {string} investmentId UUID of the investment
1102
- * @param {string} optionId UUID of the option
1103
- * @param {string} valueFrameworkId UUID of the value framework
1104
- * @param {*} [options] Override http request option.
1105
- * @throws {RequiredError}
1106
- */
1107
- async getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>> {
1108
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
1109
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1110
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionKpis']?.[localVarOperationServerIndex]?.url;
1111
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1112
- },
1113
- /**
1114
- * Retrieve a paginated list of all options for a specific investment.
1115
- * @summary List options for this investment
1116
- * @param {string} investmentId UUID of the investment
1117
- * @param {number} [offset] Number of records to skip
1118
- * @param {number} [limit] Max number of records to return
1119
- * @param {*} [options] Override http request option.
1120
- * @throws {RequiredError}
1121
- */
1122
- async getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionResponse>>> {
1123
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionsForInvestment(investmentId, offset, limit, options);
1124
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1125
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsForInvestment']?.[localVarOperationServerIndex]?.url;
1126
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1127
- },
1128
- /**
1129
- * 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.
1130
- * @summary Option overview table for this investment
1131
- * @param {string} investmentId UUID of the investment
1132
- * @param {string} valueFrameworkId UUID of the value framework
1133
- * @param {*} [options] Override http request option.
1134
- * @throws {RequiredError}
1135
- */
1136
- async getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>> {
1137
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1138
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1139
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
1140
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1141
- },
1142
- /**
1143
- * Get the preferred option for an investment.
1144
- * @summary Get the preferred option for an investment
1145
- * @param {string} investmentId UUID of the investment
1146
- * @param {*} [options] Override http request option.
1147
- * @throws {RequiredError}
1148
- */
1149
- async getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
1150
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferredOption(investmentId, options);
1151
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1152
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getPreferredOption']?.[localVarOperationServerIndex]?.url;
1153
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1154
- },
1155
- /**
1156
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1157
- * @summary Partially update an impact for this option
1158
- * @param {string} impactId UUID of the impact
1159
- * @param {string} optionId UUID of the option
1160
- * @param {string} investmentId UUID of the investment
1161
- * @param {ImpactUpdate} impactUpdate
1162
- * @param {*} [options] Override http request option.
1163
- * @throws {RequiredError}
1164
- */
1165
- async patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
1166
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
1167
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1168
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.patchImpactForOption']?.[localVarOperationServerIndex]?.url;
1169
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1170
- },
1171
394
  /**
1172
395
  * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1173
396
  * @summary Partially update an investment
@@ -1182,21 +405,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1182
405
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.patchInvestment']?.[localVarOperationServerIndex]?.url;
1183
406
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1184
407
  },
1185
- /**
1186
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1187
- * @summary Partially update an option for this investment
1188
- * @param {string} optionId UUID of the option
1189
- * @param {string} investmentId UUID of the investment
1190
- * @param {OptionUpdate} optionUpdate
1191
- * @param {*} [options] Override http request option.
1192
- * @throws {RequiredError}
1193
- */
1194
- async patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>> {
1195
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchOptionForInvestment(optionId, investmentId, optionUpdate, options);
1196
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1197
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.patchOptionForInvestment']?.[localVarOperationServerIndex]?.url;
1198
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1199
- },
1200
408
  /**
1201
409
  * Create a new investment.
1202
410
  * @summary Create an investment
@@ -1210,20 +418,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1210
418
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.postInvestment']?.[localVarOperationServerIndex]?.url;
1211
419
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1212
420
  },
1213
- /**
1214
- * Set the preferred option for an investment.
1215
- * @summary Set the preferred option for an investment
1216
- * @param {string} investmentId UUID of the investment
1217
- * @param {PreferredOptionRequest} preferredOptionRequest
1218
- * @param {*} [options] Override http request option.
1219
- * @throws {RequiredError}
1220
- */
1221
- async setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
1222
- const localVarAxiosArgs = await localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
1223
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1224
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.setPreferredOption']?.[localVarOperationServerIndex]?.url;
1225
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1226
- },
1227
421
  }
1228
422
  };
1229
423
 
@@ -1234,39 +428,14 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1234
428
  const localVarFp = InvestmentApiFp(configuration)
1235
429
  return {
1236
430
  /**
1237
- * Create a new impact under this option.
1238
- * @summary Create an impact for this option
1239
- * @param {string} optionId UUID of the option
1240
- * @param {string} investmentId UUID of the investment
1241
- * @param {ImpactCreate} impactCreate
1242
- * @param {*} [options] Override http request option.
1243
- * @throws {RequiredError}
1244
- */
1245
- createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
1246
- return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
1247
- },
1248
- /**
1249
- * Create a new option under this investment.
1250
- * @summary Create an option for this investment
1251
- * @param {string} investmentId UUID of the investment
1252
- * @param {OptionCreate} optionCreate
1253
- * @param {*} [options] Override http request option.
1254
- * @throws {RequiredError}
1255
- */
1256
- createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
1257
- return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
1258
- },
1259
- /**
1260
- * Delete an existing impact by its ID.
1261
- * @summary Delete an impact for this option
1262
- * @param {string} impactId UUID of the impact
1263
- * @param {string} optionId UUID of the option
1264
- * @param {string} investmentId UUID of the investment
431
+ * 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.
432
+ * @summary Bulk delete investments
433
+ * @param {BulkDeleteRequest} bulkDeleteRequest
1265
434
  * @param {*} [options] Override http request option.
1266
435
  * @throws {RequiredError}
1267
436
  */
1268
- deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1269
- return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
437
+ bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
438
+ return localVarFp.bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(axios, basePath));
1270
439
  },
1271
440
  /**
1272
441
  * Delete an existing investment by its ID. Associated options are also deleted via cascade.
@@ -1278,42 +447,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1278
447
  deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1279
448
  return localVarFp.deleteInvestment(investmentId, options).then((request) => request(axios, basePath));
1280
449
  },
1281
- /**
1282
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1283
- * @summary Delete an option for this investment
1284
- * @param {string} optionId UUID of the option
1285
- * @param {string} investmentId UUID of the investment
1286
- * @param {*} [options] Override http request option.
1287
- * @throws {RequiredError}
1288
- */
1289
- deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1290
- return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1291
- },
1292
- /**
1293
- * Retrieve a specific impact for the option.
1294
- * @summary Get an impact for this option
1295
- * @param {string} impactId UUID of the impact
1296
- * @param {string} optionId UUID of the option
1297
- * @param {string} investmentId UUID of the investment
1298
- * @param {*} [options] Override http request option.
1299
- * @throws {RequiredError}
1300
- */
1301
- getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
1302
- return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
1303
- },
1304
- /**
1305
- * Retrieve a paginated list of all impacts for a specific option.
1306
- * @summary List impacts for this option
1307
- * @param {string} optionId UUID of the option
1308
- * @param {string} investmentId UUID of the investment
1309
- * @param {number} [offset] Number of records to skip
1310
- * @param {number} [limit] Max number of records to return
1311
- * @param {*} [options] Override http request option.
1312
- * @throws {RequiredError}
1313
- */
1314
- getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ImpactAPIResponse>> {
1315
- return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
1316
- },
1317
450
  /**
1318
451
  * Retrieve a single investment by its ID.
1319
452
  * @summary Get an investment by ID
@@ -1345,75 +478,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1345
478
  getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>> {
1346
479
  return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1347
480
  },
1348
- /**
1349
- * Retrieve a specific option for the investment.
1350
- * @summary Get an option for this investment
1351
- * @param {string} optionId UUID of the option
1352
- * @param {string} investmentId UUID of the investment
1353
- * @param {*} [options] Override http request option.
1354
- * @throws {RequiredError}
1355
- */
1356
- getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
1357
- return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1358
- },
1359
- /**
1360
- * 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.
1361
- * @summary Get the kpis for a given option inside a value framework
1362
- * @param {string} investmentId UUID of the investment
1363
- * @param {string} optionId UUID of the option
1364
- * @param {string} valueFrameworkId UUID of the value framework
1365
- * @param {*} [options] Override http request option.
1366
- * @throws {RequiredError}
1367
- */
1368
- getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
1369
- return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
1370
- },
1371
- /**
1372
- * Retrieve a paginated list of all options for a specific investment.
1373
- * @summary List options for this investment
1374
- * @param {string} investmentId UUID of the investment
1375
- * @param {number} [offset] Number of records to skip
1376
- * @param {number} [limit] Max number of records to return
1377
- * @param {*} [options] Override http request option.
1378
- * @throws {RequiredError}
1379
- */
1380
- getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>> {
1381
- return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1382
- },
1383
- /**
1384
- * 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.
1385
- * @summary Option overview table for this investment
1386
- * @param {string} investmentId UUID of the investment
1387
- * @param {string} valueFrameworkId UUID of the value framework
1388
- * @param {*} [options] Override http request option.
1389
- * @throws {RequiredError}
1390
- */
1391
- getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
1392
- return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1393
- },
1394
- /**
1395
- * Get the preferred option for an investment.
1396
- * @summary Get the preferred option for an investment
1397
- * @param {string} investmentId UUID of the investment
1398
- * @param {*} [options] Override http request option.
1399
- * @throws {RequiredError}
1400
- */
1401
- getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
1402
- return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
1403
- },
1404
- /**
1405
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1406
- * @summary Partially update an impact for this option
1407
- * @param {string} impactId UUID of the impact
1408
- * @param {string} optionId UUID of the option
1409
- * @param {string} investmentId UUID of the investment
1410
- * @param {ImpactUpdate} impactUpdate
1411
- * @param {*} [options] Override http request option.
1412
- * @throws {RequiredError}
1413
- */
1414
- patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
1415
- return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
1416
- },
1417
481
  /**
1418
482
  * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1419
483
  * @summary Partially update an investment
@@ -1425,18 +489,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1425
489
  patchInvestment(investmentId: string, investmentUpdate: InvestmentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<InvestmentResponse> {
1426
490
  return localVarFp.patchInvestment(investmentId, investmentUpdate, options).then((request) => request(axios, basePath));
1427
491
  },
1428
- /**
1429
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1430
- * @summary Partially update an option for this investment
1431
- * @param {string} optionId UUID of the option
1432
- * @param {string} investmentId UUID of the investment
1433
- * @param {OptionUpdate} optionUpdate
1434
- * @param {*} [options] Override http request option.
1435
- * @throws {RequiredError}
1436
- */
1437
- patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
1438
- return localVarFp.patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(axios, basePath));
1439
- },
1440
492
  /**
1441
493
  * Create a new investment.
1442
494
  * @summary Create an investment
@@ -1447,17 +499,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1447
499
  postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig): AxiosPromise<InvestmentResponse> {
1448
500
  return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
1449
501
  },
1450
- /**
1451
- * Set the preferred option for an investment.
1452
- * @summary Set the preferred option for an investment
1453
- * @param {string} investmentId UUID of the investment
1454
- * @param {PreferredOptionRequest} preferredOptionRequest
1455
- * @param {*} [options] Override http request option.
1456
- * @throws {RequiredError}
1457
- */
1458
- setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
1459
- return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
1460
- },
1461
502
  };
1462
503
  };
1463
504
 
@@ -1466,41 +507,14 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1466
507
  */
1467
508
  export class InvestmentApi extends BaseAPI {
1468
509
  /**
1469
- * Create a new impact under this option.
1470
- * @summary Create an impact for this option
1471
- * @param {string} optionId UUID of the option
1472
- * @param {string} investmentId UUID of the investment
1473
- * @param {ImpactCreate} impactCreate
1474
- * @param {*} [options] Override http request option.
1475
- * @throws {RequiredError}
1476
- */
1477
- public createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig) {
1478
- return InvestmentApiFp(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
1479
- }
1480
-
1481
- /**
1482
- * Create a new option under this investment.
1483
- * @summary Create an option for this investment
1484
- * @param {string} investmentId UUID of the investment
1485
- * @param {OptionCreate} optionCreate
1486
- * @param {*} [options] Override http request option.
1487
- * @throws {RequiredError}
1488
- */
1489
- public createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig) {
1490
- return InvestmentApiFp(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
1491
- }
1492
-
1493
- /**
1494
- * Delete an existing impact by its ID.
1495
- * @summary Delete an impact for this option
1496
- * @param {string} impactId UUID of the impact
1497
- * @param {string} optionId UUID of the option
1498
- * @param {string} investmentId UUID of the investment
510
+ * 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.
511
+ * @summary Bulk delete investments
512
+ * @param {BulkDeleteRequest} bulkDeleteRequest
1499
513
  * @param {*} [options] Override http request option.
1500
514
  * @throws {RequiredError}
1501
515
  */
1502
- public deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
1503
- return InvestmentApiFp(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
516
+ public bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig) {
517
+ return InvestmentApiFp(this.configuration).bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
1504
518
  }
1505
519
 
1506
520
  /**
@@ -1514,45 +528,6 @@ export class InvestmentApi extends BaseAPI {
1514
528
  return InvestmentApiFp(this.configuration).deleteInvestment(investmentId, options).then((request) => request(this.axios, this.basePath));
1515
529
  }
1516
530
 
1517
- /**
1518
- * Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
1519
- * @summary Delete an option for this investment
1520
- * @param {string} optionId UUID of the option
1521
- * @param {string} investmentId UUID of the investment
1522
- * @param {*} [options] Override http request option.
1523
- * @throws {RequiredError}
1524
- */
1525
- public deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
1526
- return InvestmentApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1527
- }
1528
-
1529
- /**
1530
- * Retrieve a specific impact for the option.
1531
- * @summary Get an impact for this option
1532
- * @param {string} impactId UUID of the impact
1533
- * @param {string} optionId UUID of the option
1534
- * @param {string} investmentId UUID of the investment
1535
- * @param {*} [options] Override http request option.
1536
- * @throws {RequiredError}
1537
- */
1538
- public getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
1539
- return InvestmentApiFp(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1540
- }
1541
-
1542
- /**
1543
- * Retrieve a paginated list of all impacts for a specific option.
1544
- * @summary List impacts for this option
1545
- * @param {string} optionId UUID of the option
1546
- * @param {string} investmentId UUID of the investment
1547
- * @param {number} [offset] Number of records to skip
1548
- * @param {number} [limit] Max number of records to return
1549
- * @param {*} [options] Override http request option.
1550
- * @throws {RequiredError}
1551
- */
1552
- public getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
1553
- return InvestmentApiFp(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1554
- }
1555
-
1556
531
  /**
1557
532
  * Retrieve a single investment by its ID.
1558
533
  * @summary Get an investment by ID
@@ -1587,81 +562,6 @@ export class InvestmentApi extends BaseAPI {
1587
562
  return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1588
563
  }
1589
564
 
1590
- /**
1591
- * Retrieve a specific option for the investment.
1592
- * @summary Get an option for this investment
1593
- * @param {string} optionId UUID of the option
1594
- * @param {string} investmentId UUID of the investment
1595
- * @param {*} [options] Override http request option.
1596
- * @throws {RequiredError}
1597
- */
1598
- public getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
1599
- return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1600
- }
1601
-
1602
- /**
1603
- * 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.
1604
- * @summary Get the kpis for a given option inside a value framework
1605
- * @param {string} investmentId UUID of the investment
1606
- * @param {string} optionId UUID of the option
1607
- * @param {string} valueFrameworkId UUID of the value framework
1608
- * @param {*} [options] Override http request option.
1609
- * @throws {RequiredError}
1610
- */
1611
- public getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
1612
- return InvestmentApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1613
- }
1614
-
1615
- /**
1616
- * Retrieve a paginated list of all options for a specific investment.
1617
- * @summary List options for this investment
1618
- * @param {string} investmentId UUID of the investment
1619
- * @param {number} [offset] Number of records to skip
1620
- * @param {number} [limit] Max number of records to return
1621
- * @param {*} [options] Override http request option.
1622
- * @throws {RequiredError}
1623
- */
1624
- public getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
1625
- return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1626
- }
1627
-
1628
- /**
1629
- * 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.
1630
- * @summary Option overview table for this investment
1631
- * @param {string} investmentId UUID of the investment
1632
- * @param {string} valueFrameworkId UUID of the value framework
1633
- * @param {*} [options] Override http request option.
1634
- * @throws {RequiredError}
1635
- */
1636
- public getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
1637
- return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1638
- }
1639
-
1640
- /**
1641
- * Get the preferred option for an investment.
1642
- * @summary Get the preferred option for an investment
1643
- * @param {string} investmentId UUID of the investment
1644
- * @param {*} [options] Override http request option.
1645
- * @throws {RequiredError}
1646
- */
1647
- public getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig) {
1648
- return InvestmentApiFp(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1649
- }
1650
-
1651
- /**
1652
- * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1653
- * @summary Partially update an impact for this option
1654
- * @param {string} impactId UUID of the impact
1655
- * @param {string} optionId UUID of the option
1656
- * @param {string} investmentId UUID of the investment
1657
- * @param {ImpactUpdate} impactUpdate
1658
- * @param {*} [options] Override http request option.
1659
- * @throws {RequiredError}
1660
- */
1661
- public patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig) {
1662
- return InvestmentApiFp(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
1663
- }
1664
-
1665
565
  /**
1666
566
  * Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1667
567
  * @summary Partially update an investment
@@ -1674,19 +574,6 @@ export class InvestmentApi extends BaseAPI {
1674
574
  return InvestmentApiFp(this.configuration).patchInvestment(investmentId, investmentUpdate, options).then((request) => request(this.axios, this.basePath));
1675
575
  }
1676
576
 
1677
- /**
1678
- * Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1679
- * @summary Partially update an option for this investment
1680
- * @param {string} optionId UUID of the option
1681
- * @param {string} investmentId UUID of the investment
1682
- * @param {OptionUpdate} optionUpdate
1683
- * @param {*} [options] Override http request option.
1684
- * @throws {RequiredError}
1685
- */
1686
- public patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig) {
1687
- return InvestmentApiFp(this.configuration).patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(this.axios, this.basePath));
1688
- }
1689
-
1690
577
  /**
1691
578
  * Create a new investment.
1692
579
  * @summary Create an investment
@@ -1697,17 +584,5 @@ export class InvestmentApi extends BaseAPI {
1697
584
  public postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig) {
1698
585
  return InvestmentApiFp(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
1699
586
  }
1700
-
1701
- /**
1702
- * Set the preferred option for an investment.
1703
- * @summary Set the preferred option for an investment
1704
- * @param {string} investmentId UUID of the investment
1705
- * @param {PreferredOptionRequest} preferredOptionRequest
1706
- * @param {*} [options] Override http request option.
1707
- * @throws {RequiredError}
1708
- */
1709
- public setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig) {
1710
- return InvestmentApiFp(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1711
- }
1712
587
  }
1713
588