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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (498) hide show
  1. package/README.md +49 -41
  2. package/api/budget-api.ts +7 -7
  3. package/api/default-api.ts +1 -1
  4. package/api/impact-api.ts +90 -1
  5. package/api/investment-api.ts +55 -1254
  6. package/api/metric-api.ts +1 -1
  7. package/api/metric-costs-api.ts +1 -1
  8. package/api/metric-costs-per-year-api.ts +1 -1
  9. package/api/objective-api.ts +1 -509
  10. package/api/objective-weight-api.ts +1 -1
  11. package/api/objective-weights-api.ts +1 -1
  12. package/api/option-api.ts +28 -481
  13. package/api/portfolio-api.ts +601 -0
  14. package/api/portfolio-investment-api.ts +545 -0
  15. package/api/portfolio-kpiapi.ts +772 -0
  16. package/api/preferred-option-api.ts +1 -1
  17. package/api/value-framework-api.ts +61 -1189
  18. package/api/value-framework-costs-api.ts +1 -1
  19. package/api/value-framework-weights-api.ts +1 -1
  20. package/api.ts +4 -1
  21. package/base.ts +1 -1
  22. package/common.ts +1 -1
  23. package/configuration.ts +1 -1
  24. package/dist/api/budget-api.d.ts +5 -5
  25. package/dist/api/budget-api.js +7 -7
  26. package/dist/api/default-api.d.ts +1 -1
  27. package/dist/api/default-api.js +1 -1
  28. package/dist/api/impact-api.d.ts +42 -1
  29. package/dist/api/impact-api.js +85 -1
  30. package/dist/api/investment-api.d.ts +1 -551
  31. package/dist/api/investment-api.js +57 -1189
  32. package/dist/api/metric-api.d.ts +1 -1
  33. package/dist/api/metric-api.js +1 -1
  34. package/dist/api/metric-costs-api.d.ts +1 -1
  35. package/dist/api/metric-costs-api.js +1 -1
  36. package/dist/api/metric-costs-per-year-api.d.ts +1 -1
  37. package/dist/api/metric-costs-per-year-api.js +1 -1
  38. package/dist/api/objective-api.d.ts +1 -233
  39. package/dist/api/objective-api.js +1 -479
  40. package/dist/api/objective-weight-api.d.ts +1 -1
  41. package/dist/api/objective-weight-api.js +1 -1
  42. package/dist/api/objective-weights-api.d.ts +1 -1
  43. package/dist/api/objective-weights-api.js +1 -1
  44. package/dist/api/option-api.d.ts +13 -224
  45. package/dist/api/option-api.js +28 -458
  46. package/dist/api/portfolio-api.d.ts +279 -0
  47. package/dist/api/portfolio-api.js +575 -0
  48. package/dist/api/portfolio-investment-api.d.ts +258 -0
  49. package/dist/api/portfolio-investment-api.js +526 -0
  50. package/dist/api/portfolio-kpiapi.d.ts +361 -0
  51. package/dist/api/portfolio-kpiapi.js +740 -0
  52. package/dist/api/preferred-option-api.d.ts +1 -1
  53. package/dist/api/preferred-option-api.js +1 -1
  54. package/dist/api/value-framework-api.d.ts +1 -519
  55. package/dist/api/value-framework-api.js +61 -1128
  56. package/dist/api/value-framework-costs-api.d.ts +1 -1
  57. package/dist/api/value-framework-costs-api.js +1 -1
  58. package/dist/api/value-framework-weights-api.d.ts +1 -1
  59. package/dist/api/value-framework-weights-api.js +1 -1
  60. package/dist/api.d.ts +4 -1
  61. package/dist/api.js +4 -1
  62. package/dist/base.d.ts +1 -1
  63. package/dist/base.js +1 -1
  64. package/dist/common.d.ts +1 -1
  65. package/dist/common.js +1 -1
  66. package/dist/configuration.d.ts +1 -1
  67. package/dist/configuration.js +1 -1
  68. package/dist/esm/api/budget-api.d.ts +5 -5
  69. package/dist/esm/api/budget-api.js +7 -7
  70. package/dist/esm/api/default-api.d.ts +1 -1
  71. package/dist/esm/api/default-api.js +1 -1
  72. package/dist/esm/api/impact-api.d.ts +42 -1
  73. package/dist/esm/api/impact-api.js +85 -1
  74. package/dist/esm/api/investment-api.d.ts +1 -551
  75. package/dist/esm/api/investment-api.js +56 -1188
  76. package/dist/esm/api/metric-api.d.ts +1 -1
  77. package/dist/esm/api/metric-api.js +1 -1
  78. package/dist/esm/api/metric-costs-api.d.ts +1 -1
  79. package/dist/esm/api/metric-costs-api.js +1 -1
  80. package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
  81. package/dist/esm/api/metric-costs-per-year-api.js +1 -1
  82. package/dist/esm/api/objective-api.d.ts +1 -233
  83. package/dist/esm/api/objective-api.js +1 -479
  84. package/dist/esm/api/objective-weight-api.d.ts +1 -1
  85. package/dist/esm/api/objective-weight-api.js +1 -1
  86. package/dist/esm/api/objective-weights-api.d.ts +1 -1
  87. package/dist/esm/api/objective-weights-api.js +1 -1
  88. package/dist/esm/api/option-api.d.ts +13 -224
  89. package/dist/esm/api/option-api.js +28 -458
  90. package/dist/esm/api/portfolio-api.d.ts +279 -0
  91. package/dist/esm/api/portfolio-api.js +568 -0
  92. package/dist/esm/api/portfolio-investment-api.d.ts +258 -0
  93. package/dist/esm/api/portfolio-investment-api.js +519 -0
  94. package/dist/esm/api/portfolio-kpiapi.d.ts +361 -0
  95. package/dist/esm/api/portfolio-kpiapi.js +733 -0
  96. package/dist/esm/api/preferred-option-api.d.ts +1 -1
  97. package/dist/esm/api/preferred-option-api.js +1 -1
  98. package/dist/esm/api/value-framework-api.d.ts +1 -519
  99. package/dist/esm/api/value-framework-api.js +61 -1128
  100. package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
  101. package/dist/esm/api/value-framework-costs-api.js +1 -1
  102. package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
  103. package/dist/esm/api/value-framework-weights-api.js +1 -1
  104. package/dist/esm/api.d.ts +4 -1
  105. package/dist/esm/api.js +4 -1
  106. package/dist/esm/base.d.ts +1 -1
  107. package/dist/esm/base.js +1 -1
  108. package/dist/esm/common.d.ts +1 -1
  109. package/dist/esm/common.js +1 -1
  110. package/dist/esm/configuration.d.ts +1 -1
  111. package/dist/esm/configuration.js +1 -1
  112. package/dist/esm/index.d.ts +1 -1
  113. package/dist/esm/index.js +1 -1
  114. package/dist/esm/models/budget-bulk-delete-request.d.ts +3 -3
  115. package/dist/esm/models/budget-bulk-delete-request.js +1 -1
  116. package/dist/esm/models/budget-create.d.ts +1 -1
  117. package/dist/esm/models/budget-create.js +1 -1
  118. package/dist/esm/models/budget-investment-response.d.ts +1 -1
  119. package/dist/esm/models/budget-investment-response.js +1 -1
  120. package/dist/esm/models/budget-link-options-request.d.ts +1 -1
  121. package/dist/esm/models/budget-link-options-request.js +1 -1
  122. package/dist/esm/models/budget-option-response.d.ts +1 -1
  123. package/dist/esm/models/budget-option-response.js +1 -1
  124. package/dist/esm/models/budget-overview-response.d.ts +1 -1
  125. package/dist/esm/models/budget-overview-response.js +1 -1
  126. package/dist/esm/models/budget-response.d.ts +1 -1
  127. package/dist/esm/models/budget-response.js +1 -1
  128. package/dist/esm/models/budget-update.d.ts +1 -1
  129. package/dist/esm/models/budget-update.js +1 -1
  130. package/dist/esm/models/bulk-delete-request.d.ts +1 -1
  131. package/dist/esm/models/bulk-delete-request.js +1 -1
  132. package/dist/esm/models/evolution-type.d.ts +1 -1
  133. package/dist/esm/models/evolution-type.js +1 -1
  134. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  135. package/dist/esm/models/httpvalidation-error.js +1 -1
  136. package/dist/esm/models/impact-apiresponse.d.ts +1 -2
  137. package/dist/esm/models/impact-apiresponse.js +1 -1
  138. package/dist/esm/models/impact-bulk-item.d.ts +33 -0
  139. package/dist/esm/models/impact-bulk-item.js +14 -0
  140. package/dist/esm/models/impact-create.d.ts +1 -5
  141. package/dist/esm/models/impact-create.js +1 -1
  142. package/dist/esm/models/impact-update.d.ts +1 -2
  143. package/dist/esm/models/impact-update.js +1 -1
  144. package/dist/esm/models/index.d.ts +23 -0
  145. package/dist/esm/models/index.js +23 -0
  146. package/dist/esm/models/investment-create.d.ts +1 -1
  147. package/dist/esm/models/investment-create.js +1 -1
  148. package/dist/esm/models/investment-overview-response.d.ts +1 -1
  149. package/dist/esm/models/investment-overview-response.js +1 -1
  150. package/dist/esm/models/investment-response.d.ts +1 -1
  151. package/dist/esm/models/investment-response.js +1 -1
  152. package/dist/esm/models/investment-update.d.ts +1 -1
  153. package/dist/esm/models/investment-update.js +1 -1
  154. package/dist/esm/models/location-inner.d.ts +1 -1
  155. package/dist/esm/models/location-inner.js +1 -1
  156. package/dist/esm/models/measurement-type.d.ts +1 -1
  157. package/dist/esm/models/measurement-type.js +1 -1
  158. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  159. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  160. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  161. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  162. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  163. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  164. package/dist/esm/models/metric-create.d.ts +1 -1
  165. package/dist/esm/models/metric-create.js +1 -1
  166. package/dist/esm/models/metric-performance-response.d.ts +21 -0
  167. package/dist/esm/models/metric-performance-response.js +14 -0
  168. package/dist/esm/models/metric-performance-year.d.ts +18 -0
  169. package/dist/esm/models/metric-performance-year.js +14 -0
  170. package/dist/esm/models/metric-response.d.ts +1 -1
  171. package/dist/esm/models/metric-response.js +1 -1
  172. package/dist/esm/models/metric-type.d.ts +1 -1
  173. package/dist/esm/models/metric-type.js +1 -1
  174. package/dist/esm/models/metric-update.d.ts +1 -1
  175. package/dist/esm/models/metric-update.js +1 -1
  176. package/dist/esm/models/monetized-impact-response.d.ts +18 -0
  177. package/dist/esm/models/monetized-impact-response.js +14 -0
  178. package/dist/esm/models/monetized-impact-year.d.ts +19 -0
  179. package/dist/esm/models/monetized-impact-year.js +14 -0
  180. package/dist/esm/models/objective-create.d.ts +1 -1
  181. package/dist/esm/models/objective-create.js +1 -1
  182. package/dist/esm/models/objective-response.d.ts +1 -1
  183. package/dist/esm/models/objective-response.js +1 -1
  184. package/dist/esm/models/objective-update.d.ts +1 -1
  185. package/dist/esm/models/objective-update.js +1 -1
  186. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  187. package/dist/esm/models/objective-weight-create.js +1 -1
  188. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  189. package/dist/esm/models/objective-weight-response.js +1 -1
  190. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  191. package/dist/esm/models/objective-weight-update.js +1 -1
  192. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  193. package/dist/esm/models/option-chart-kpi.js +1 -1
  194. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  195. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  196. package/dist/esm/models/option-create.d.ts +1 -1
  197. package/dist/esm/models/option-create.js +1 -1
  198. package/dist/esm/models/option-overview-response.d.ts +1 -1
  199. package/dist/esm/models/option-overview-response.js +1 -1
  200. package/dist/esm/models/option-response.d.ts +1 -1
  201. package/dist/esm/models/option-response.js +1 -1
  202. package/dist/esm/models/option-update.d.ts +1 -1
  203. package/dist/esm/models/option-update.js +1 -1
  204. package/dist/esm/models/portfolio-budget-expenditure-response.d.ts +21 -0
  205. package/dist/esm/models/portfolio-budget-expenditure-response.js +14 -0
  206. package/dist/esm/models/portfolio-budget-expenditure-year.d.ts +18 -0
  207. package/dist/esm/models/portfolio-budget-expenditure-year.js +14 -0
  208. package/dist/esm/models/portfolio-budget-usage-item.d.ts +28 -0
  209. package/dist/esm/models/portfolio-budget-usage-item.js +14 -0
  210. package/dist/esm/models/portfolio-bulk-delete-request.d.ts +20 -0
  211. package/dist/esm/models/portfolio-bulk-delete-request.js +14 -0
  212. package/dist/esm/models/portfolio-create.d.ts +21 -0
  213. package/dist/esm/models/portfolio-create.js +14 -0
  214. package/dist/esm/models/portfolio-investment-bulk-add-request.d.ts +20 -0
  215. package/dist/esm/models/portfolio-investment-bulk-add-request.js +14 -0
  216. package/dist/esm/models/portfolio-investment-bulk-add-response.d.ts +24 -0
  217. package/dist/esm/models/portfolio-investment-bulk-add-response.js +14 -0
  218. package/dist/esm/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
  219. package/dist/esm/models/portfolio-investment-bulk-delete-request.js +14 -0
  220. package/dist/esm/models/portfolio-investment-response.d.ts +25 -0
  221. package/dist/esm/models/portfolio-investment-response.js +14 -0
  222. package/dist/esm/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
  223. package/dist/esm/models/portfolio-kpidistribution-budget-item.js +14 -0
  224. package/dist/esm/models/portfolio-kpidistribution-response.d.ts +20 -0
  225. package/dist/esm/models/portfolio-kpidistribution-response.js +14 -0
  226. package/dist/esm/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
  227. package/dist/esm/models/portfolio-kpidistribution-year-overrun.js +14 -0
  228. package/dist/esm/models/portfolio-kpidistribution-year-value.d.ts +18 -0
  229. package/dist/esm/models/portfolio-kpidistribution-year-value.js +14 -0
  230. package/dist/esm/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
  231. package/dist/esm/models/portfolio-kpioverrun-distribution-response.js +14 -0
  232. package/dist/esm/models/portfolio-kpiresponse.d.ts +31 -0
  233. package/dist/esm/models/portfolio-kpiresponse.js +14 -0
  234. package/dist/esm/models/portfolio-overview-item-response.d.ts +40 -0
  235. package/dist/esm/models/portfolio-overview-item-response.js +14 -0
  236. package/dist/esm/models/portfolio-response.d.ts +25 -0
  237. package/dist/esm/models/portfolio-response.js +14 -0
  238. package/dist/esm/models/portfolio-update.d.ts +18 -0
  239. package/dist/esm/models/portfolio-update.js +14 -0
  240. package/dist/esm/models/preferred-option-request.d.ts +1 -1
  241. package/dist/esm/models/preferred-option-request.js +1 -1
  242. package/dist/esm/models/preferred-option-response.d.ts +1 -1
  243. package/dist/esm/models/preferred-option-response.js +1 -1
  244. package/dist/esm/models/validation-error.d.ts +1 -1
  245. package/dist/esm/models/validation-error.js +1 -1
  246. package/dist/esm/models/value-framework-create.d.ts +1 -1
  247. package/dist/esm/models/value-framework-create.js +1 -1
  248. package/dist/esm/models/value-framework-response.d.ts +1 -1
  249. package/dist/esm/models/value-framework-response.js +1 -1
  250. package/dist/esm/models/value-framework-update.d.ts +1 -1
  251. package/dist/esm/models/value-framework-update.js +1 -1
  252. package/dist/index.d.ts +1 -1
  253. package/dist/index.js +1 -1
  254. package/dist/models/budget-bulk-delete-request.d.ts +3 -3
  255. package/dist/models/budget-bulk-delete-request.js +1 -1
  256. package/dist/models/budget-create.d.ts +1 -1
  257. package/dist/models/budget-create.js +1 -1
  258. package/dist/models/budget-investment-response.d.ts +1 -1
  259. package/dist/models/budget-investment-response.js +1 -1
  260. package/dist/models/budget-link-options-request.d.ts +1 -1
  261. package/dist/models/budget-link-options-request.js +1 -1
  262. package/dist/models/budget-option-response.d.ts +1 -1
  263. package/dist/models/budget-option-response.js +1 -1
  264. package/dist/models/budget-overview-response.d.ts +1 -1
  265. package/dist/models/budget-overview-response.js +1 -1
  266. package/dist/models/budget-response.d.ts +1 -1
  267. package/dist/models/budget-response.js +1 -1
  268. package/dist/models/budget-update.d.ts +1 -1
  269. package/dist/models/budget-update.js +1 -1
  270. package/dist/models/bulk-delete-request.d.ts +1 -1
  271. package/dist/models/bulk-delete-request.js +1 -1
  272. package/dist/models/evolution-type.d.ts +1 -1
  273. package/dist/models/evolution-type.js +1 -1
  274. package/dist/models/httpvalidation-error.d.ts +1 -1
  275. package/dist/models/httpvalidation-error.js +1 -1
  276. package/dist/models/impact-apiresponse.d.ts +1 -2
  277. package/dist/models/impact-apiresponse.js +1 -1
  278. package/dist/models/impact-bulk-item.d.ts +33 -0
  279. package/dist/models/impact-bulk-item.js +15 -0
  280. package/dist/models/impact-create.d.ts +1 -5
  281. package/dist/models/impact-create.js +1 -1
  282. package/dist/models/impact-update.d.ts +1 -2
  283. package/dist/models/impact-update.js +1 -1
  284. package/dist/models/index.d.ts +23 -0
  285. package/dist/models/index.js +23 -0
  286. package/dist/models/investment-create.d.ts +1 -1
  287. package/dist/models/investment-create.js +1 -1
  288. package/dist/models/investment-overview-response.d.ts +1 -1
  289. package/dist/models/investment-overview-response.js +1 -1
  290. package/dist/models/investment-response.d.ts +1 -1
  291. package/dist/models/investment-response.js +1 -1
  292. package/dist/models/investment-update.d.ts +1 -1
  293. package/dist/models/investment-update.js +1 -1
  294. package/dist/models/location-inner.d.ts +1 -1
  295. package/dist/models/location-inner.js +1 -1
  296. package/dist/models/measurement-type.d.ts +1 -1
  297. package/dist/models/measurement-type.js +1 -1
  298. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  299. package/dist/models/metric-costs-per-year-create.js +1 -1
  300. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  301. package/dist/models/metric-costs-per-year-response.js +1 -1
  302. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  303. package/dist/models/metric-costs-per-year-update.js +1 -1
  304. package/dist/models/metric-create.d.ts +1 -1
  305. package/dist/models/metric-create.js +1 -1
  306. package/dist/models/metric-performance-response.d.ts +21 -0
  307. package/dist/models/metric-performance-response.js +15 -0
  308. package/dist/models/metric-performance-year.d.ts +18 -0
  309. package/dist/models/metric-performance-year.js +15 -0
  310. package/dist/models/metric-response.d.ts +1 -1
  311. package/dist/models/metric-response.js +1 -1
  312. package/dist/models/metric-type.d.ts +1 -1
  313. package/dist/models/metric-type.js +1 -1
  314. package/dist/models/metric-update.d.ts +1 -1
  315. package/dist/models/metric-update.js +1 -1
  316. package/dist/models/monetized-impact-response.d.ts +18 -0
  317. package/dist/models/monetized-impact-response.js +15 -0
  318. package/dist/models/monetized-impact-year.d.ts +19 -0
  319. package/dist/models/monetized-impact-year.js +15 -0
  320. package/dist/models/objective-create.d.ts +1 -1
  321. package/dist/models/objective-create.js +1 -1
  322. package/dist/models/objective-response.d.ts +1 -1
  323. package/dist/models/objective-response.js +1 -1
  324. package/dist/models/objective-update.d.ts +1 -1
  325. package/dist/models/objective-update.js +1 -1
  326. package/dist/models/objective-weight-create.d.ts +1 -1
  327. package/dist/models/objective-weight-create.js +1 -1
  328. package/dist/models/objective-weight-response.d.ts +1 -1
  329. package/dist/models/objective-weight-response.js +1 -1
  330. package/dist/models/objective-weight-update.d.ts +1 -1
  331. package/dist/models/objective-weight-update.js +1 -1
  332. package/dist/models/option-chart-kpi.d.ts +1 -1
  333. package/dist/models/option-chart-kpi.js +1 -1
  334. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  335. package/dist/models/option-chart-kpis-yearly.js +1 -1
  336. package/dist/models/option-create.d.ts +1 -1
  337. package/dist/models/option-create.js +1 -1
  338. package/dist/models/option-overview-response.d.ts +1 -1
  339. package/dist/models/option-overview-response.js +1 -1
  340. package/dist/models/option-response.d.ts +1 -1
  341. package/dist/models/option-response.js +1 -1
  342. package/dist/models/option-update.d.ts +1 -1
  343. package/dist/models/option-update.js +1 -1
  344. package/dist/models/portfolio-budget-expenditure-response.d.ts +21 -0
  345. package/dist/models/portfolio-budget-expenditure-response.js +15 -0
  346. package/dist/models/portfolio-budget-expenditure-year.d.ts +18 -0
  347. package/dist/models/portfolio-budget-expenditure-year.js +15 -0
  348. package/dist/models/portfolio-budget-usage-item.d.ts +28 -0
  349. package/dist/models/portfolio-budget-usage-item.js +15 -0
  350. package/dist/models/portfolio-bulk-delete-request.d.ts +20 -0
  351. package/dist/models/portfolio-bulk-delete-request.js +15 -0
  352. package/dist/models/portfolio-create.d.ts +21 -0
  353. package/dist/models/portfolio-create.js +15 -0
  354. package/dist/models/portfolio-investment-bulk-add-request.d.ts +20 -0
  355. package/dist/models/portfolio-investment-bulk-add-request.js +15 -0
  356. package/dist/models/portfolio-investment-bulk-add-response.d.ts +24 -0
  357. package/dist/models/portfolio-investment-bulk-add-response.js +15 -0
  358. package/dist/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
  359. package/dist/models/portfolio-investment-bulk-delete-request.js +15 -0
  360. package/dist/models/portfolio-investment-response.d.ts +25 -0
  361. package/dist/models/portfolio-investment-response.js +15 -0
  362. package/dist/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
  363. package/dist/models/portfolio-kpidistribution-budget-item.js +15 -0
  364. package/dist/models/portfolio-kpidistribution-response.d.ts +20 -0
  365. package/dist/models/portfolio-kpidistribution-response.js +15 -0
  366. package/dist/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
  367. package/dist/models/portfolio-kpidistribution-year-overrun.js +15 -0
  368. package/dist/models/portfolio-kpidistribution-year-value.d.ts +18 -0
  369. package/dist/models/portfolio-kpidistribution-year-value.js +15 -0
  370. package/dist/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
  371. package/dist/models/portfolio-kpioverrun-distribution-response.js +15 -0
  372. package/dist/models/portfolio-kpiresponse.d.ts +31 -0
  373. package/dist/models/portfolio-kpiresponse.js +15 -0
  374. package/dist/models/portfolio-overview-item-response.d.ts +40 -0
  375. package/dist/models/portfolio-overview-item-response.js +15 -0
  376. package/dist/models/portfolio-response.d.ts +25 -0
  377. package/dist/models/portfolio-response.js +15 -0
  378. package/dist/models/portfolio-update.d.ts +18 -0
  379. package/dist/models/portfolio-update.js +15 -0
  380. package/dist/models/preferred-option-request.d.ts +1 -1
  381. package/dist/models/preferred-option-request.js +1 -1
  382. package/dist/models/preferred-option-response.d.ts +1 -1
  383. package/dist/models/preferred-option-response.js +1 -1
  384. package/dist/models/validation-error.d.ts +1 -1
  385. package/dist/models/validation-error.js +1 -1
  386. package/dist/models/value-framework-create.d.ts +1 -1
  387. package/dist/models/value-framework-create.js +1 -1
  388. package/dist/models/value-framework-response.d.ts +1 -1
  389. package/dist/models/value-framework-response.js +1 -1
  390. package/dist/models/value-framework-update.d.ts +1 -1
  391. package/dist/models/value-framework-update.js +1 -1
  392. package/docs/BudgetApi.md +4 -4
  393. package/docs/BudgetBulkDeleteRequest.md +2 -2
  394. package/docs/ImpactAPIResponse.md +0 -2
  395. package/docs/ImpactApi.md +60 -0
  396. package/docs/ImpactBulkItem.md +27 -0
  397. package/docs/ImpactCreate.md +0 -2
  398. package/docs/ImpactUpdate.md +0 -2
  399. package/docs/InvestmentApi.md +29 -851
  400. package/docs/MetricPerformanceResponse.md +27 -0
  401. package/docs/MetricPerformanceYear.md +23 -0
  402. package/docs/MonetizedImpactResponse.md +21 -0
  403. package/docs/MonetizedImpactYear.md +25 -0
  404. package/docs/ObjectiveApi.md +0 -351
  405. package/docs/OptionApi.md +7 -312
  406. package/docs/PortfolioApi.md +395 -0
  407. package/docs/PortfolioBudgetExpenditureResponse.md +27 -0
  408. package/docs/PortfolioBudgetExpenditureYear.md +23 -0
  409. package/docs/PortfolioBudgetUsageItem.md +31 -0
  410. package/docs/PortfolioBulkDeleteRequest.md +21 -0
  411. package/docs/PortfolioCreate.md +23 -0
  412. package/docs/PortfolioInvestmentApi.md +350 -0
  413. package/docs/PortfolioInvestmentBulkAddRequest.md +21 -0
  414. package/docs/PortfolioInvestmentBulkAddResponse.md +23 -0
  415. package/docs/PortfolioInvestmentBulkDeleteRequest.md +21 -0
  416. package/docs/PortfolioInvestmentResponse.md +25 -0
  417. package/docs/PortfolioKPIApi.md +508 -0
  418. package/docs/PortfolioKPIDistributionBudgetItem.md +25 -0
  419. package/docs/PortfolioKPIDistributionResponse.md +25 -0
  420. package/docs/PortfolioKPIDistributionYearOverrun.md +23 -0
  421. package/docs/PortfolioKPIDistributionYearValue.md +23 -0
  422. package/docs/PortfolioKPIOverrunDistributionResponse.md +23 -0
  423. package/docs/PortfolioKPIResponse.md +31 -0
  424. package/docs/PortfolioOverviewItemResponse.md +43 -0
  425. package/docs/PortfolioResponse.md +31 -0
  426. package/docs/PortfolioUpdate.md +23 -0
  427. package/docs/ValueFrameworkApi.md +7 -778
  428. package/index.ts +1 -1
  429. package/models/budget-bulk-delete-request.ts +3 -3
  430. package/models/budget-create.ts +1 -1
  431. package/models/budget-investment-response.ts +1 -1
  432. package/models/budget-link-options-request.ts +1 -1
  433. package/models/budget-option-response.ts +1 -1
  434. package/models/budget-overview-response.ts +1 -1
  435. package/models/budget-response.ts +1 -1
  436. package/models/budget-update.ts +1 -1
  437. package/models/bulk-delete-request.ts +1 -1
  438. package/models/evolution-type.ts +1 -1
  439. package/models/httpvalidation-error.ts +1 -1
  440. package/models/impact-apiresponse.ts +1 -2
  441. package/models/impact-bulk-item.ts +43 -0
  442. package/models/impact-create.ts +1 -5
  443. package/models/impact-update.ts +1 -2
  444. package/models/index.ts +23 -0
  445. package/models/investment-create.ts +1 -1
  446. package/models/investment-overview-response.ts +1 -1
  447. package/models/investment-response.ts +1 -1
  448. package/models/investment-update.ts +1 -1
  449. package/models/location-inner.ts +1 -1
  450. package/models/measurement-type.ts +1 -1
  451. package/models/metric-costs-per-year-create.ts +1 -1
  452. package/models/metric-costs-per-year-response.ts +1 -1
  453. package/models/metric-costs-per-year-update.ts +1 -1
  454. package/models/metric-create.ts +1 -1
  455. package/models/metric-performance-response.ts +29 -0
  456. package/models/metric-performance-year.ts +24 -0
  457. package/models/metric-response.ts +1 -1
  458. package/models/metric-type.ts +1 -1
  459. package/models/metric-update.ts +1 -1
  460. package/models/monetized-impact-response.ts +26 -0
  461. package/models/monetized-impact-year.ts +25 -0
  462. package/models/objective-create.ts +1 -1
  463. package/models/objective-response.ts +1 -1
  464. package/models/objective-update.ts +1 -1
  465. package/models/objective-weight-create.ts +1 -1
  466. package/models/objective-weight-response.ts +1 -1
  467. package/models/objective-weight-update.ts +1 -1
  468. package/models/option-chart-kpi.ts +1 -1
  469. package/models/option-chart-kpis-yearly.ts +1 -1
  470. package/models/option-create.ts +1 -1
  471. package/models/option-overview-response.ts +1 -1
  472. package/models/option-response.ts +1 -1
  473. package/models/option-update.ts +1 -1
  474. package/models/portfolio-budget-expenditure-response.ts +29 -0
  475. package/models/portfolio-budget-expenditure-year.ts +24 -0
  476. package/models/portfolio-budget-usage-item.ts +34 -0
  477. package/models/portfolio-bulk-delete-request.ts +26 -0
  478. package/models/portfolio-create.ts +27 -0
  479. package/models/portfolio-investment-bulk-add-request.ts +26 -0
  480. package/models/portfolio-investment-bulk-add-response.ts +30 -0
  481. package/models/portfolio-investment-bulk-delete-request.ts +26 -0
  482. package/models/portfolio-investment-response.ts +31 -0
  483. package/models/portfolio-kpidistribution-budget-item.ts +25 -0
  484. package/models/portfolio-kpidistribution-response.ts +28 -0
  485. package/models/portfolio-kpidistribution-year-overrun.ts +27 -0
  486. package/models/portfolio-kpidistribution-year-value.ts +24 -0
  487. package/models/portfolio-kpioverrun-distribution-response.ts +27 -0
  488. package/models/portfolio-kpiresponse.ts +37 -0
  489. package/models/portfolio-overview-item-response.ts +46 -0
  490. package/models/portfolio-response.ts +31 -0
  491. package/models/portfolio-update.ts +24 -0
  492. package/models/preferred-option-request.ts +1 -1
  493. package/models/preferred-option-response.ts +1 -1
  494. package/models/validation-error.ts +1 -1
  495. package/models/value-framework-create.ts +1 -1
  496. package/models/value-framework-response.ts +1 -1
  497. package/models/value-framework-update.ts +1 -1
  498. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cosmotech/aip-client@v0.3.0-dev2
1
+ ## @cosmotech/aip-client@0.4.0-dev1
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cosmotech/aip-client@v0.3.0-dev2 --save
39
+ npm install @cosmotech/aip-client@0.4.0-dev1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -51,7 +51,7 @@ All URIs are relative to *http://localhost*
51
51
 
52
52
  Class | Method | HTTP request | Description
53
53
  ------------ | ------------- | ------------- | -------------
54
- *BudgetApi* | [**bulkDeleteBudgets**](docs/BudgetApi.md#bulkdeletebudgets) | **DELETE** /budget/bulk | Bulk delete budgets
54
+ *BudgetApi* | [**bulkDeleteBudgets**](docs/BudgetApi.md#bulkdeletebudgets) | **POST** /budget/bulk-delete | Bulk delete budgets
55
55
  *BudgetApi* | [**deleteBudget**](docs/BudgetApi.md#deletebudget) | **DELETE** /budget/{budget_id} | Delete a budget
56
56
  *BudgetApi* | [**getBudgetById**](docs/BudgetApi.md#getbudgetbyid) | **GET** /budget/{budget_id} | Get a budget by ID
57
57
  *BudgetApi* | [**getBudgetInvestments**](docs/BudgetApi.md#getbudgetinvestments) | **GET** /budget/{budget_id}/investments | List investments linked to this budget via options
@@ -62,32 +62,19 @@ Class | Method | HTTP request | Description
62
62
  *BudgetApi* | [**patchBudget**](docs/BudgetApi.md#patchbudget) | **PATCH** /budget/{budget_id} | Partially update a budget
63
63
  *BudgetApi* | [**postBudget**](docs/BudgetApi.md#postbudget) | **POST** /budget/ | Create a budget
64
64
  *DefaultApi* | [**root**](docs/DefaultApi.md#root) | **GET** /about | Root
65
+ *ImpactApi* | [**bulkUpsertImpactsForOption**](docs/ImpactApi.md#bulkupsertimpactsforoption) | **PUT** /investment/{investment_id}/option/{option_id}/impact/ | Bulk upsert impacts for this option
65
66
  *ImpactApi* | [**createImpactForOption**](docs/ImpactApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
66
67
  *ImpactApi* | [**deleteImpactForOption**](docs/ImpactApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
67
68
  *ImpactApi* | [**getImpactForOption**](docs/ImpactApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
68
69
  *ImpactApi* | [**getImpactsForOption**](docs/ImpactApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
69
70
  *ImpactApi* | [**patchImpactForOption**](docs/ImpactApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
70
71
  *InvestmentApi* | [**bulkDeleteInvestments**](docs/InvestmentApi.md#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments
71
- *InvestmentApi* | [**createImpactForOption**](docs/InvestmentApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
72
- *InvestmentApi* | [**createOptionForInvestment**](docs/InvestmentApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
73
- *InvestmentApi* | [**deleteImpactForOption**](docs/InvestmentApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
74
72
  *InvestmentApi* | [**deleteInvestment**](docs/InvestmentApi.md#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment
75
- *InvestmentApi* | [**deleteOptionForInvestment**](docs/InvestmentApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
76
- *InvestmentApi* | [**getImpactForOption**](docs/InvestmentApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
77
- *InvestmentApi* | [**getImpactsForOption**](docs/InvestmentApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
78
73
  *InvestmentApi* | [**getInvestmentById**](docs/InvestmentApi.md#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID
79
74
  *InvestmentApi* | [**getInvestments**](docs/InvestmentApi.md#getinvestments) | **GET** /investment/ | List investments
80
75
  *InvestmentApi* | [**getInvestmentsOverview**](docs/InvestmentApi.md#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table
81
- *InvestmentApi* | [**getOptionForInvestment**](docs/InvestmentApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
82
- *InvestmentApi* | [**getOptionKpis**](docs/InvestmentApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
83
- *InvestmentApi* | [**getOptionsForInvestment**](docs/InvestmentApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
84
- *InvestmentApi* | [**getOptionsOverview**](docs/InvestmentApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
85
- *InvestmentApi* | [**getPreferredOption**](docs/InvestmentApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
86
- *InvestmentApi* | [**patchImpactForOption**](docs/InvestmentApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
87
76
  *InvestmentApi* | [**patchInvestment**](docs/InvestmentApi.md#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment
88
- *InvestmentApi* | [**patchOptionForInvestment**](docs/InvestmentApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
89
77
  *InvestmentApi* | [**postInvestment**](docs/InvestmentApi.md#postinvestment) | **POST** /investment/ | Create an investment
90
- *InvestmentApi* | [**setPreferredOption**](docs/InvestmentApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
91
78
  *MetricApi* | [**createMetricForObjective**](docs/MetricApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
92
79
  *MetricApi* | [**deleteMetricForObjective**](docs/MetricApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
93
80
  *MetricApi* | [**getMetricForObjective**](docs/MetricApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
@@ -99,15 +86,9 @@ Class | Method | HTTP request | Description
99
86
  *MetricCostsPerYearApi* | [**getMetricCostForFramework**](docs/MetricCostsPerYearApi.md#getmetriccostforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Get a yearly metric cost for this framework
100
87
  *MetricCostsPerYearApi* | [**getMetricCostsForFramework**](docs/MetricCostsPerYearApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
101
88
  *MetricCostsPerYearApi* | [**patchMetricCostForFramework**](docs/MetricCostsPerYearApi.md#patchmetriccostforframework) | **PATCH** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Partially update metric costs for this framework
102
- *ObjectiveApi* | [**createMetricForObjective**](docs/ObjectiveApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
103
- *ObjectiveApi* | [**deleteMetricForObjective**](docs/ObjectiveApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
104
89
  *ObjectiveApi* | [**deleteObjective**](docs/ObjectiveApi.md#deleteobjective) | **DELETE** /objective/{objective_id} | Delete an objective
105
- *ObjectiveApi* | [**getMetricForObjective**](docs/ObjectiveApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
106
- *ObjectiveApi* | [**getMetricsForObjective**](docs/ObjectiveApi.md#getmetricsforobjective) | **GET** /objective/{objective_id}/metric/ | List metrics for this objective
107
90
  *ObjectiveApi* | [**getObjectiveById**](docs/ObjectiveApi.md#getobjectivebyid) | **GET** /objective/{objective_id} | Get an objective by ID
108
91
  *ObjectiveApi* | [**getObjectives**](docs/ObjectiveApi.md#getobjectives) | **GET** /objective/ | List objectives
109
- *ObjectiveApi* | [**getWeightsForObjective**](docs/ObjectiveApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
110
- *ObjectiveApi* | [**patchMetricForObjective**](docs/ObjectiveApi.md#patchmetricforobjective) | **PATCH** /objective/{objective_id}/metric/{metric_id} | Partially update a metric for this objective
111
92
  *ObjectiveApi* | [**patchObjective**](docs/ObjectiveApi.md#patchobjective) | **PATCH** /objective/{objective_id} | Partially update an objective
112
93
  *ObjectiveApi* | [**postObjective**](docs/ObjectiveApi.md#postobjective) | **POST** /objective/ | Create an objective
113
94
  *ObjectiveWeightApi* | [**createObjectiveWeightForFramework**](docs/ObjectiveWeightApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
@@ -116,36 +97,40 @@ Class | Method | HTTP request | Description
116
97
  *ObjectiveWeightApi* | [**getObjectiveWeightsForFramework**](docs/ObjectiveWeightApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
117
98
  *ObjectiveWeightApi* | [**patchObjectiveWeightForFramework**](docs/ObjectiveWeightApi.md#patchobjectiveweightforframework) | **PATCH** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Partially update an objective weight for this framework
118
99
  *ObjectiveWeightsApi* | [**getWeightsForObjective**](docs/ObjectiveWeightsApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
119
- *OptionApi* | [**createImpactForOption**](docs/OptionApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
120
100
  *OptionApi* | [**createOptionForInvestment**](docs/OptionApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
121
- *OptionApi* | [**deleteImpactForOption**](docs/OptionApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
122
101
  *OptionApi* | [**deleteOptionForInvestment**](docs/OptionApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
123
- *OptionApi* | [**getImpactForOption**](docs/OptionApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
124
- *OptionApi* | [**getImpactsForOption**](docs/OptionApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
125
102
  *OptionApi* | [**getOptionForInvestment**](docs/OptionApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
126
103
  *OptionApi* | [**getOptionKpis**](docs/OptionApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
127
104
  *OptionApi* | [**getOptionsForInvestment**](docs/OptionApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
128
105
  *OptionApi* | [**getOptionsOverview**](docs/OptionApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
129
- *OptionApi* | [**patchImpactForOption**](docs/OptionApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
130
106
  *OptionApi* | [**patchOptionForInvestment**](docs/OptionApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
107
+ *PortfolioApi* | [**bulkDeletePortfolios**](docs/PortfolioApi.md#bulkdeleteportfolios) | **POST** /portfolio/bulk-delete | Bulk delete portfolios
108
+ *PortfolioApi* | [**deletePortfolio**](docs/PortfolioApi.md#deleteportfolio) | **DELETE** /portfolio/{portfolio_id} | Delete a portfolio
109
+ *PortfolioApi* | [**getPortfolioById**](docs/PortfolioApi.md#getportfoliobyid) | **GET** /portfolio/{portfolio_id} | Get a portfolio by ID
110
+ *PortfolioApi* | [**getPortfolioOverview**](docs/PortfolioApi.md#getportfoliooverview) | **GET** /portfolio/overview/{value_framework_id} | Portfolio overview with KPIs
111
+ *PortfolioApi* | [**getPortfolios**](docs/PortfolioApi.md#getportfolios) | **GET** /portfolio/ | List portfolios
112
+ *PortfolioApi* | [**patchPortfolio**](docs/PortfolioApi.md#patchportfolio) | **PATCH** /portfolio/{portfolio_id} | Partially update a portfolio
113
+ *PortfolioApi* | [**postPortfolio**](docs/PortfolioApi.md#postportfolio) | **POST** /portfolio/ | Create a portfolio
114
+ *PortfolioInvestmentApi* | [**addInvestmentToPortfolio**](docs/PortfolioInvestmentApi.md#addinvestmenttoportfolio) | **POST** /portfolio/{portfolio_id}/investment/{investment_id} | Add an investment to this portfolio
115
+ *PortfolioInvestmentApi* | [**bulkAddInvestmentsToPortfolio**](docs/PortfolioInvestmentApi.md#bulkaddinvestmentstoportfolio) | **POST** /portfolio/{portfolio_id}/investment/bulk | Bulk add investments to this portfolio
116
+ *PortfolioInvestmentApi* | [**bulkRemoveInvestmentsFromPortfolio**](docs/PortfolioInvestmentApi.md#bulkremoveinvestmentsfromportfolio) | **POST** /portfolio/{portfolio_id}/investment/bulk-delete | Bulk remove investments from this portfolio
117
+ *PortfolioInvestmentApi* | [**getInvestmentForPortfolio**](docs/PortfolioInvestmentApi.md#getinvestmentforportfolio) | **GET** /portfolio/{portfolio_id}/investment/{investment_id} | Get an investment link in this portfolio
118
+ *PortfolioInvestmentApi* | [**getInvestmentsForPortfolio**](docs/PortfolioInvestmentApi.md#getinvestmentsforportfolio) | **GET** /portfolio/{portfolio_id}/investment/ | List investments in this portfolio
119
+ *PortfolioInvestmentApi* | [**removeInvestmentFromPortfolio**](docs/PortfolioInvestmentApi.md#removeinvestmentfromportfolio) | **DELETE** /portfolio/{portfolio_id}/investment/{investment_id} | Remove an investment from this portfolio
120
+ *PortfolioKPIApi* | [**getCapexDistribution**](docs/PortfolioKPIApi.md#getcapexdistribution) | **GET** /portfolio/{portfolio_id}/kpis/{value_framework_id}/capex-distribution | CAPEX year-by-year distribution
121
+ *PortfolioKPIApi* | [**getInvestmentsDistribution**](docs/PortfolioKPIApi.md#getinvestmentsdistribution) | **GET** /portfolio/{portfolio_id}/kpis/{value_framework_id}/investments-distribution | Investment count year-by-year distribution
122
+ *PortfolioKPIApi* | [**getKpiOverrunDistribution**](docs/PortfolioKPIApi.md#getkpioverrundistribution) | **GET** /portfolio/{portfolio_id}/kpis/{value_framework_id}/overrun-distribution | Budget overrun year-by-year distribution
123
+ *PortfolioKPIApi* | [**getNpvDistribution**](docs/PortfolioKPIApi.md#getnpvdistribution) | **GET** /portfolio/{portfolio_id}/kpis/{value_framework_id}/npv-distribution | NPV year-by-year distribution
124
+ *PortfolioKPIApi* | [**getPortfolioBudgetExpenditure**](docs/PortfolioKPIApi.md#getportfoliobudgetexpenditure) | **GET** /portfolio/{portfolio_id}/budget-expenditure/{budget_id} | Budget year-by-year expenditure
125
+ *PortfolioKPIApi* | [**getPortfolioBudgetUsage**](docs/PortfolioKPIApi.md#getportfoliobudgetusage) | **GET** /portfolio/{portfolio_id}/budget-usage | Budget usage summary
126
+ *PortfolioKPIApi* | [**getPortfolioKpis**](docs/PortfolioKPIApi.md#getportfoliokpis) | **GET** /portfolio/{portfolio_id}/kpis/{value_framework_id} | Get portfolio KPIs
127
+ *PortfolioKPIApi* | [**getPortfolioMetricPerformance**](docs/PortfolioKPIApi.md#getportfoliometricperformance) | **GET** /portfolio/{portfolio_id}/metric-performance/{metric_id} | Metric performance over time
128
+ *PortfolioKPIApi* | [**getPortfolioMonetizedImpact**](docs/PortfolioKPIApi.md#getportfoliomonetizedimpact) | **GET** /portfolio/{portfolio_id}/monetized-impact/{value_framework_id} | Portfolio monetized impact over time
131
129
  *PreferredOptionApi* | [**getPreferredOption**](docs/PreferredOptionApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
132
130
  *PreferredOptionApi* | [**setPreferredOption**](docs/PreferredOptionApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
133
- *ValueFrameworkApi* | [**createMetricCostForFramework**](docs/ValueFrameworkApi.md#createmetriccostforframework) | **POST** /value_framework/{value_framework_id}/metric_costs_per_year/ | Create a yearly metric cost for this framework
134
- *ValueFrameworkApi* | [**createObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
135
- *ValueFrameworkApi* | [**deleteMetricCostForFramework**](docs/ValueFrameworkApi.md#deletemetriccostforframework) | **DELETE** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Delete metric costs for this framework
136
- *ValueFrameworkApi* | [**deleteObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#deleteobjectiveweightforframework) | **DELETE** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Delete an objective weight for this framework
137
131
  *ValueFrameworkApi* | [**deleteValueFramework**](docs/ValueFrameworkApi.md#deletevalueframework) | **DELETE** /value_framework/{value_framework_id} | Delete a value framework
138
- *ValueFrameworkApi* | [**getCostsForValueFramework**](docs/ValueFrameworkApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
139
- *ValueFrameworkApi* | [**getCostsForValueFrameworkByMetric**](docs/ValueFrameworkApi.md#getcostsforvalueframeworkbymetric) | **GET** /value_framework/{value_framework_id}/costs/{metric_id} | List metric costs for a value framework filtered by metric
140
- *ValueFrameworkApi* | [**getMetricCostForFramework**](docs/ValueFrameworkApi.md#getmetriccostforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Get a yearly metric cost for this framework
141
- *ValueFrameworkApi* | [**getMetricCostsForFramework**](docs/ValueFrameworkApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
142
- *ValueFrameworkApi* | [**getObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Get an objective weight for this framework
143
- *ValueFrameworkApi* | [**getObjectiveWeightsForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
144
132
  *ValueFrameworkApi* | [**getValueFrameworkById**](docs/ValueFrameworkApi.md#getvalueframeworkbyid) | **GET** /value_framework/{value_framework_id} | Get a value framework by ID
145
133
  *ValueFrameworkApi* | [**getValueFrameworks**](docs/ValueFrameworkApi.md#getvalueframeworks) | **GET** /value_framework/ | List value frameworks
146
- *ValueFrameworkApi* | [**getWeightsForValueFramework**](docs/ValueFrameworkApi.md#getweightsforvalueframework) | **GET** /value_framework/{value_framework_id}/weights/ | List all objective weights for a value framework
147
- *ValueFrameworkApi* | [**patchMetricCostForFramework**](docs/ValueFrameworkApi.md#patchmetriccostforframework) | **PATCH** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Partially update metric costs for this framework
148
- *ValueFrameworkApi* | [**patchObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#patchobjectiveweightforframework) | **PATCH** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Partially update an objective weight for this framework
149
134
  *ValueFrameworkApi* | [**patchValueFramework**](docs/ValueFrameworkApi.md#patchvalueframework) | **PATCH** /value_framework/{value_framework_id} | Partially update a value framework
150
135
  *ValueFrameworkApi* | [**postValueFramework**](docs/ValueFrameworkApi.md#postvalueframework) | **POST** /value_framework/ | Create a value framework
151
136
  *ValueFrameworkCostsApi* | [**getCostsForValueFramework**](docs/ValueFrameworkCostsApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
@@ -167,6 +152,7 @@ Class | Method | HTTP request | Description
167
152
  - [EvolutionType](docs/EvolutionType.md)
168
153
  - [HTTPValidationError](docs/HTTPValidationError.md)
169
154
  - [ImpactAPIResponse](docs/ImpactAPIResponse.md)
155
+ - [ImpactBulkItem](docs/ImpactBulkItem.md)
170
156
  - [ImpactCreate](docs/ImpactCreate.md)
171
157
  - [ImpactUpdate](docs/ImpactUpdate.md)
172
158
  - [InvestmentCreate](docs/InvestmentCreate.md)
@@ -179,9 +165,13 @@ Class | Method | HTTP request | Description
179
165
  - [MetricCostsPerYearResponse](docs/MetricCostsPerYearResponse.md)
180
166
  - [MetricCostsPerYearUpdate](docs/MetricCostsPerYearUpdate.md)
181
167
  - [MetricCreate](docs/MetricCreate.md)
168
+ - [MetricPerformanceResponse](docs/MetricPerformanceResponse.md)
169
+ - [MetricPerformanceYear](docs/MetricPerformanceYear.md)
182
170
  - [MetricResponse](docs/MetricResponse.md)
183
171
  - [MetricType](docs/MetricType.md)
184
172
  - [MetricUpdate](docs/MetricUpdate.md)
173
+ - [MonetizedImpactResponse](docs/MonetizedImpactResponse.md)
174
+ - [MonetizedImpactYear](docs/MonetizedImpactYear.md)
185
175
  - [ObjectiveCreate](docs/ObjectiveCreate.md)
186
176
  - [ObjectiveResponse](docs/ObjectiveResponse.md)
187
177
  - [ObjectiveUpdate](docs/ObjectiveUpdate.md)
@@ -194,6 +184,24 @@ Class | Method | HTTP request | Description
194
184
  - [OptionOverviewResponse](docs/OptionOverviewResponse.md)
195
185
  - [OptionResponse](docs/OptionResponse.md)
196
186
  - [OptionUpdate](docs/OptionUpdate.md)
187
+ - [PortfolioBudgetExpenditureResponse](docs/PortfolioBudgetExpenditureResponse.md)
188
+ - [PortfolioBudgetExpenditureYear](docs/PortfolioBudgetExpenditureYear.md)
189
+ - [PortfolioBudgetUsageItem](docs/PortfolioBudgetUsageItem.md)
190
+ - [PortfolioBulkDeleteRequest](docs/PortfolioBulkDeleteRequest.md)
191
+ - [PortfolioCreate](docs/PortfolioCreate.md)
192
+ - [PortfolioInvestmentBulkAddRequest](docs/PortfolioInvestmentBulkAddRequest.md)
193
+ - [PortfolioInvestmentBulkAddResponse](docs/PortfolioInvestmentBulkAddResponse.md)
194
+ - [PortfolioInvestmentBulkDeleteRequest](docs/PortfolioInvestmentBulkDeleteRequest.md)
195
+ - [PortfolioInvestmentResponse](docs/PortfolioInvestmentResponse.md)
196
+ - [PortfolioKPIDistributionBudgetItem](docs/PortfolioKPIDistributionBudgetItem.md)
197
+ - [PortfolioKPIDistributionResponse](docs/PortfolioKPIDistributionResponse.md)
198
+ - [PortfolioKPIDistributionYearOverrun](docs/PortfolioKPIDistributionYearOverrun.md)
199
+ - [PortfolioKPIDistributionYearValue](docs/PortfolioKPIDistributionYearValue.md)
200
+ - [PortfolioKPIOverrunDistributionResponse](docs/PortfolioKPIOverrunDistributionResponse.md)
201
+ - [PortfolioKPIResponse](docs/PortfolioKPIResponse.md)
202
+ - [PortfolioOverviewItemResponse](docs/PortfolioOverviewItemResponse.md)
203
+ - [PortfolioResponse](docs/PortfolioResponse.md)
204
+ - [PortfolioUpdate](docs/PortfolioUpdate.md)
197
205
  - [PreferredOptionRequest](docs/PreferredOptionRequest.md)
198
206
  - [PreferredOptionResponse](docs/PreferredOptionResponse.md)
199
207
  - [ValidationError](docs/ValidationError.md)
package/api/budget-api.ts CHANGED
@@ -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.4.0-dev1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -43,7 +43,7 @@ import type { BudgetUpdate } from '../models';
43
43
  export const BudgetApiAxiosParamCreator = function (configuration?: Configuration) {
44
44
  return {
45
45
  /**
46
- * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
46
+ * Delete multiple budgets 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 budgets are deleted. Options linked to deleted budgets will have their budget link removed (set to null).
47
47
  * @summary Bulk delete budgets
48
48
  * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
49
49
  * @param {*} [options] Override http request option.
@@ -52,7 +52,7 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
52
52
  bulkDeleteBudgets: async (budgetBulkDeleteRequest: BudgetBulkDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
53
53
  // verify required parameter 'budgetBulkDeleteRequest' is not null or undefined
54
54
  assertParamExists('bulkDeleteBudgets', 'budgetBulkDeleteRequest', budgetBulkDeleteRequest)
55
- const localVarPath = `/budget/bulk`;
55
+ const localVarPath = `/budget/bulk-delete`;
56
56
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
57
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
58
  let baseOptions;
@@ -60,7 +60,7 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
60
60
  baseOptions = configuration.baseOptions;
61
61
  }
62
62
 
63
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
63
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
64
64
  const localVarHeaderParameter = {} as any;
65
65
  const localVarQueryParameter = {} as any;
66
66
 
@@ -462,7 +462,7 @@ export const BudgetApiFp = function(configuration?: Configuration) {
462
462
  const localVarAxiosParamCreator = BudgetApiAxiosParamCreator(configuration)
463
463
  return {
464
464
  /**
465
- * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
465
+ * Delete multiple budgets 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 budgets are deleted. Options linked to deleted budgets will have their budget link removed (set to null).
466
466
  * @summary Bulk delete budgets
467
467
  * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
468
468
  * @param {*} [options] Override http request option.
@@ -606,7 +606,7 @@ export const BudgetApiFactory = function (configuration?: Configuration, basePat
606
606
  const localVarFp = BudgetApiFp(configuration)
607
607
  return {
608
608
  /**
609
- * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
609
+ * Delete multiple budgets 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 budgets are deleted. Options linked to deleted budgets will have their budget link removed (set to null).
610
610
  * @summary Bulk delete budgets
611
611
  * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
612
612
  * @param {*} [options] Override http request option.
@@ -718,7 +718,7 @@ export const BudgetApiFactory = function (configuration?: Configuration, basePat
718
718
  */
719
719
  export class BudgetApi extends BaseAPI {
720
720
  /**
721
- * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
721
+ * Delete multiple budgets 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 budgets are deleted. Options linked to deleted budgets will have their budget link removed (set to null).
722
722
  * @summary Bulk delete budgets
723
723
  * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
724
724
  * @param {*} [options] Override http request option.
@@ -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.4.0-dev1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/api/impact-api.ts CHANGED
@@ -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.4.0-dev1
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
24
24
  // @ts-ignore
25
25
  import type { ImpactAPIResponse } from '../models';
26
26
  // @ts-ignore
27
+ import type { ImpactBulkItem } from '../models';
28
+ // @ts-ignore
27
29
  import type { ImpactCreate } from '../models';
28
30
  // @ts-ignore
29
31
  import type { ImpactUpdate } from '../models';
@@ -32,6 +34,53 @@ import type { ImpactUpdate } from '../models';
32
34
  */
33
35
  export const ImpactApiAxiosParamCreator = function (configuration?: Configuration) {
34
36
  return {
37
+ /**
38
+ * Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
39
+ * @summary Bulk upsert impacts for this option
40
+ * @param {string} optionId UUID of the option
41
+ * @param {string} investmentId UUID of the investment
42
+ * @param {Array<ImpactBulkItem>} impactBulkItem
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ bulkUpsertImpactsForOption: async (optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'optionId' is not null or undefined
48
+ assertParamExists('bulkUpsertImpactsForOption', 'optionId', optionId)
49
+ // verify required parameter 'investmentId' is not null or undefined
50
+ assertParamExists('bulkUpsertImpactsForOption', 'investmentId', investmentId)
51
+ // verify required parameter 'impactBulkItem' is not null or undefined
52
+ assertParamExists('bulkUpsertImpactsForOption', 'impactBulkItem', impactBulkItem)
53
+ const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
54
+ .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
55
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ }
62
+
63
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
64
+ const localVarHeaderParameter = {} as any;
65
+ const localVarQueryParameter = {} as any;
66
+
67
+ // authentication OAuth2AuthorizationCodeBearer required
68
+ // oauth required
69
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
70
+
71
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72
+ localVarHeaderParameter['Accept'] = 'application/json';
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+ localVarRequestOptions.data = serializeDataIfNeeded(impactBulkItem, localVarRequestOptions, configuration)
78
+
79
+ return {
80
+ url: toPathString(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
35
84
  /**
36
85
  * Create a new impact under this option.
37
86
  * @summary Create an impact for this option
@@ -282,6 +331,21 @@ export const ImpactApiAxiosParamCreator = function (configuration?: Configuratio
282
331
  export const ImpactApiFp = function(configuration?: Configuration) {
283
332
  const localVarAxiosParamCreator = ImpactApiAxiosParamCreator(configuration)
284
333
  return {
334
+ /**
335
+ * Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
336
+ * @summary Bulk upsert impacts for this option
337
+ * @param {string} optionId UUID of the option
338
+ * @param {string} investmentId UUID of the investment
339
+ * @param {Array<ImpactBulkItem>} impactBulkItem
340
+ * @param {*} [options] Override http request option.
341
+ * @throws {RequiredError}
342
+ */
343
+ async bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImpactAPIResponse>>> {
344
+ const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options);
345
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
346
+ const localVarOperationServerBasePath = operationServerMap['ImpactApi.bulkUpsertImpactsForOption']?.[localVarOperationServerIndex]?.url;
347
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
348
+ },
285
349
  /**
286
350
  * Create a new impact under this option.
287
351
  * @summary Create an impact for this option
@@ -368,6 +432,18 @@ export const ImpactApiFp = function(configuration?: Configuration) {
368
432
  export const ImpactApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
369
433
  const localVarFp = ImpactApiFp(configuration)
370
434
  return {
435
+ /**
436
+ * Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
437
+ * @summary Bulk upsert impacts for this option
438
+ * @param {string} optionId UUID of the option
439
+ * @param {string} investmentId UUID of the investment
440
+ * @param {Array<ImpactBulkItem>} impactBulkItem
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig): AxiosPromise<Array<ImpactAPIResponse>> {
445
+ return localVarFp.bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options).then((request) => request(axios, basePath));
446
+ },
371
447
  /**
372
448
  * Create a new impact under this option.
373
449
  * @summary Create an impact for this option
@@ -437,6 +513,19 @@ export const ImpactApiFactory = function (configuration?: Configuration, basePat
437
513
  * ImpactApi - object-oriented interface
438
514
  */
439
515
  export class ImpactApi extends BaseAPI {
516
+ /**
517
+ * Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
518
+ * @summary Bulk upsert impacts for this option
519
+ * @param {string} optionId UUID of the option
520
+ * @param {string} investmentId UUID of the investment
521
+ * @param {Array<ImpactBulkItem>} impactBulkItem
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ public bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig) {
526
+ return ImpactApiFp(this.configuration).bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options).then((request) => request(this.axios, this.basePath));
527
+ }
528
+
440
529
  /**
441
530
  * Create a new impact under this option.
442
531
  * @summary Create an impact for this option