@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
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cosmotech/aip-client@0.3.0-dev1
1
+ ## @cosmotech/aip-client@0.3.0-dev3
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@0.3.0-dev1 --save
39
+ npm install @cosmotech/aip-client@0.3.0-dev3 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -62,31 +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
- *InvestmentApi* | [**createImpactForOption**](docs/InvestmentApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
71
- *InvestmentApi* | [**createOptionForInvestment**](docs/InvestmentApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
72
- *InvestmentApi* | [**deleteImpactForOption**](docs/InvestmentApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
71
+ *InvestmentApi* | [**bulkDeleteInvestments**](docs/InvestmentApi.md#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments
73
72
  *InvestmentApi* | [**deleteInvestment**](docs/InvestmentApi.md#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment
74
- *InvestmentApi* | [**deleteOptionForInvestment**](docs/InvestmentApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
75
- *InvestmentApi* | [**getImpactForOption**](docs/InvestmentApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
76
- *InvestmentApi* | [**getImpactsForOption**](docs/InvestmentApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
77
73
  *InvestmentApi* | [**getInvestmentById**](docs/InvestmentApi.md#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID
78
74
  *InvestmentApi* | [**getInvestments**](docs/InvestmentApi.md#getinvestments) | **GET** /investment/ | List investments
79
75
  *InvestmentApi* | [**getInvestmentsOverview**](docs/InvestmentApi.md#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table
80
- *InvestmentApi* | [**getOptionForInvestment**](docs/InvestmentApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
81
- *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
82
- *InvestmentApi* | [**getOptionsForInvestment**](docs/InvestmentApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
83
- *InvestmentApi* | [**getOptionsOverview**](docs/InvestmentApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
84
- *InvestmentApi* | [**getPreferredOption**](docs/InvestmentApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
85
- *InvestmentApi* | [**patchImpactForOption**](docs/InvestmentApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
86
76
  *InvestmentApi* | [**patchInvestment**](docs/InvestmentApi.md#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment
87
- *InvestmentApi* | [**patchOptionForInvestment**](docs/InvestmentApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
88
77
  *InvestmentApi* | [**postInvestment**](docs/InvestmentApi.md#postinvestment) | **POST** /investment/ | Create an investment
89
- *InvestmentApi* | [**setPreferredOption**](docs/InvestmentApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
90
78
  *MetricApi* | [**createMetricForObjective**](docs/MetricApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
91
79
  *MetricApi* | [**deleteMetricForObjective**](docs/MetricApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
92
80
  *MetricApi* | [**getMetricForObjective**](docs/MetricApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
@@ -98,15 +86,9 @@ Class | Method | HTTP request | Description
98
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
99
87
  *MetricCostsPerYearApi* | [**getMetricCostsForFramework**](docs/MetricCostsPerYearApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
100
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
101
- *ObjectiveApi* | [**createMetricForObjective**](docs/ObjectiveApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
102
- *ObjectiveApi* | [**deleteMetricForObjective**](docs/ObjectiveApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
103
89
  *ObjectiveApi* | [**deleteObjective**](docs/ObjectiveApi.md#deleteobjective) | **DELETE** /objective/{objective_id} | Delete an objective
104
- *ObjectiveApi* | [**getMetricForObjective**](docs/ObjectiveApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
105
- *ObjectiveApi* | [**getMetricsForObjective**](docs/ObjectiveApi.md#getmetricsforobjective) | **GET** /objective/{objective_id}/metric/ | List metrics for this objective
106
90
  *ObjectiveApi* | [**getObjectiveById**](docs/ObjectiveApi.md#getobjectivebyid) | **GET** /objective/{objective_id} | Get an objective by ID
107
91
  *ObjectiveApi* | [**getObjectives**](docs/ObjectiveApi.md#getobjectives) | **GET** /objective/ | List objectives
108
- *ObjectiveApi* | [**getWeightsForObjective**](docs/ObjectiveApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
109
- *ObjectiveApi* | [**patchMetricForObjective**](docs/ObjectiveApi.md#patchmetricforobjective) | **PATCH** /objective/{objective_id}/metric/{metric_id} | Partially update a metric for this objective
110
92
  *ObjectiveApi* | [**patchObjective**](docs/ObjectiveApi.md#patchobjective) | **PATCH** /objective/{objective_id} | Partially update an objective
111
93
  *ObjectiveApi* | [**postObjective**](docs/ObjectiveApi.md#postobjective) | **POST** /objective/ | Create an objective
112
94
  *ObjectiveWeightApi* | [**createObjectiveWeightForFramework**](docs/ObjectiveWeightApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
@@ -115,36 +97,18 @@ Class | Method | HTTP request | Description
115
97
  *ObjectiveWeightApi* | [**getObjectiveWeightsForFramework**](docs/ObjectiveWeightApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
116
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
117
99
  *ObjectiveWeightsApi* | [**getWeightsForObjective**](docs/ObjectiveWeightsApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
118
- *OptionApi* | [**createImpactForOption**](docs/OptionApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
119
100
  *OptionApi* | [**createOptionForInvestment**](docs/OptionApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
120
- *OptionApi* | [**deleteImpactForOption**](docs/OptionApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
121
101
  *OptionApi* | [**deleteOptionForInvestment**](docs/OptionApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
122
- *OptionApi* | [**getImpactForOption**](docs/OptionApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
123
- *OptionApi* | [**getImpactsForOption**](docs/OptionApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
124
102
  *OptionApi* | [**getOptionForInvestment**](docs/OptionApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
125
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
126
104
  *OptionApi* | [**getOptionsForInvestment**](docs/OptionApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
127
105
  *OptionApi* | [**getOptionsOverview**](docs/OptionApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
128
- *OptionApi* | [**patchImpactForOption**](docs/OptionApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
129
106
  *OptionApi* | [**patchOptionForInvestment**](docs/OptionApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
130
107
  *PreferredOptionApi* | [**getPreferredOption**](docs/PreferredOptionApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
131
108
  *PreferredOptionApi* | [**setPreferredOption**](docs/PreferredOptionApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
132
- *ValueFrameworkApi* | [**createMetricCostForFramework**](docs/ValueFrameworkApi.md#createmetriccostforframework) | **POST** /value_framework/{value_framework_id}/metric_costs_per_year/ | Create a yearly metric cost for this framework
133
- *ValueFrameworkApi* | [**createObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
134
- *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
135
- *ValueFrameworkApi* | [**deleteObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#deleteobjectiveweightforframework) | **DELETE** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Delete an objective weight for this framework
136
109
  *ValueFrameworkApi* | [**deleteValueFramework**](docs/ValueFrameworkApi.md#deletevalueframework) | **DELETE** /value_framework/{value_framework_id} | Delete a value framework
137
- *ValueFrameworkApi* | [**getCostsForValueFramework**](docs/ValueFrameworkApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
138
- *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
139
- *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
140
- *ValueFrameworkApi* | [**getMetricCostsForFramework**](docs/ValueFrameworkApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
141
- *ValueFrameworkApi* | [**getObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Get an objective weight for this framework
142
- *ValueFrameworkApi* | [**getObjectiveWeightsForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
143
110
  *ValueFrameworkApi* | [**getValueFrameworkById**](docs/ValueFrameworkApi.md#getvalueframeworkbyid) | **GET** /value_framework/{value_framework_id} | Get a value framework by ID
144
111
  *ValueFrameworkApi* | [**getValueFrameworks**](docs/ValueFrameworkApi.md#getvalueframeworks) | **GET** /value_framework/ | List value frameworks
145
- *ValueFrameworkApi* | [**getWeightsForValueFramework**](docs/ValueFrameworkApi.md#getweightsforvalueframework) | **GET** /value_framework/{value_framework_id}/weights/ | List all objective weights for a value framework
146
- *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
147
- *ValueFrameworkApi* | [**patchObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#patchobjectiveweightforframework) | **PATCH** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Partially update an objective weight for this framework
148
112
  *ValueFrameworkApi* | [**patchValueFramework**](docs/ValueFrameworkApi.md#patchvalueframework) | **PATCH** /value_framework/{value_framework_id} | Partially update a value framework
149
113
  *ValueFrameworkApi* | [**postValueFramework**](docs/ValueFrameworkApi.md#postvalueframework) | **POST** /value_framework/ | Create a value framework
150
114
  *ValueFrameworkCostsApi* | [**getCostsForValueFramework**](docs/ValueFrameworkCostsApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
@@ -162,9 +126,11 @@ Class | Method | HTTP request | Description
162
126
  - [BudgetOverviewResponse](docs/BudgetOverviewResponse.md)
163
127
  - [BudgetResponse](docs/BudgetResponse.md)
164
128
  - [BudgetUpdate](docs/BudgetUpdate.md)
129
+ - [BulkDeleteRequest](docs/BulkDeleteRequest.md)
165
130
  - [EvolutionType](docs/EvolutionType.md)
166
131
  - [HTTPValidationError](docs/HTTPValidationError.md)
167
132
  - [ImpactAPIResponse](docs/ImpactAPIResponse.md)
133
+ - [ImpactBulkItem](docs/ImpactBulkItem.md)
168
134
  - [ImpactCreate](docs/ImpactCreate.md)
169
135
  - [ImpactUpdate](docs/ImpactUpdate.md)
170
136
  - [InvestmentCreate](docs/InvestmentCreate.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.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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).
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.3.0-dev3
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