@cosmotech/aip-client 0.2.0-dev5 → 0.2.0-dev7

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 (289) hide show
  1. package/README.md +13 -8
  2. package/api/default-api.ts +1 -1
  3. package/api/impact-api.ts +1 -1
  4. package/api/investment-api.ts +259 -98
  5. package/api/metric-api.ts +1 -1
  6. package/api/metric-costs-api.ts +1 -1
  7. package/api/metric-costs-per-year-api.ts +1 -1
  8. package/api/objective-api.ts +1 -1
  9. package/api/objective-weight-api.ts +1 -1
  10. package/api/objective-weights-api.ts +1 -1
  11. package/api/option-api.ts +89 -5
  12. package/api/{favored-option-api.ts → preferred-option-api.ts} +40 -40
  13. package/api/value-framework-api.ts +1 -1
  14. package/api/value-framework-costs-api.ts +1 -1
  15. package/api/value-framework-weights-api.ts +1 -1
  16. package/api.ts +2 -2
  17. package/base.ts +1 -1
  18. package/common.ts +1 -1
  19. package/configuration.ts +1 -1
  20. package/dist/api/default-api.d.ts +1 -1
  21. package/dist/api/default-api.js +1 -1
  22. package/dist/api/impact-api.d.ts +1 -1
  23. package/dist/api/impact-api.js +1 -1
  24. package/dist/api/investment-api.d.ts +117 -47
  25. package/dist/api/investment-api.js +240 -91
  26. package/dist/api/metric-api.d.ts +1 -1
  27. package/dist/api/metric-api.js +1 -1
  28. package/dist/api/metric-costs-api.d.ts +1 -1
  29. package/dist/api/metric-costs-api.js +1 -1
  30. package/dist/api/metric-costs-per-year-api.d.ts +1 -1
  31. package/dist/api/metric-costs-per-year-api.js +1 -1
  32. package/dist/api/objective-api.d.ts +1 -1
  33. package/dist/api/objective-api.js +1 -1
  34. package/dist/api/objective-weight-api.d.ts +1 -1
  35. package/dist/api/objective-weight-api.js +1 -1
  36. package/dist/api/objective-weights-api.d.ts +1 -1
  37. package/dist/api/objective-weights-api.js +1 -1
  38. package/dist/api/option-api.d.ts +42 -5
  39. package/dist/api/option-api.js +83 -5
  40. package/dist/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
  41. package/dist/api/{favored-option-api.js → preferred-option-api.js} +43 -43
  42. package/dist/api/value-framework-api.d.ts +1 -1
  43. package/dist/api/value-framework-api.js +1 -1
  44. package/dist/api/value-framework-costs-api.d.ts +1 -1
  45. package/dist/api/value-framework-costs-api.js +1 -1
  46. package/dist/api/value-framework-weights-api.d.ts +1 -1
  47. package/dist/api/value-framework-weights-api.js +1 -1
  48. package/dist/api.d.ts +2 -2
  49. package/dist/api.js +2 -2
  50. package/dist/base.d.ts +1 -1
  51. package/dist/base.js +1 -1
  52. package/dist/common.d.ts +1 -1
  53. package/dist/common.js +1 -1
  54. package/dist/configuration.d.ts +1 -1
  55. package/dist/configuration.js +1 -1
  56. package/dist/esm/api/default-api.d.ts +1 -1
  57. package/dist/esm/api/default-api.js +1 -1
  58. package/dist/esm/api/impact-api.d.ts +1 -1
  59. package/dist/esm/api/impact-api.js +1 -1
  60. package/dist/esm/api/investment-api.d.ts +117 -47
  61. package/dist/esm/api/investment-api.js +240 -91
  62. package/dist/esm/api/metric-api.d.ts +1 -1
  63. package/dist/esm/api/metric-api.js +1 -1
  64. package/dist/esm/api/metric-costs-api.d.ts +1 -1
  65. package/dist/esm/api/metric-costs-api.js +1 -1
  66. package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
  67. package/dist/esm/api/metric-costs-per-year-api.js +1 -1
  68. package/dist/esm/api/objective-api.d.ts +1 -1
  69. package/dist/esm/api/objective-api.js +1 -1
  70. package/dist/esm/api/objective-weight-api.d.ts +1 -1
  71. package/dist/esm/api/objective-weight-api.js +1 -1
  72. package/dist/esm/api/objective-weights-api.d.ts +1 -1
  73. package/dist/esm/api/objective-weights-api.js +1 -1
  74. package/dist/esm/api/option-api.d.ts +42 -5
  75. package/dist/esm/api/option-api.js +83 -5
  76. package/dist/esm/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
  77. package/dist/esm/api/{favored-option-api.js → preferred-option-api.js} +38 -38
  78. package/dist/esm/api/value-framework-api.d.ts +1 -1
  79. package/dist/esm/api/value-framework-api.js +1 -1
  80. package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
  81. package/dist/esm/api/value-framework-costs-api.js +1 -1
  82. package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
  83. package/dist/esm/api/value-framework-weights-api.js +1 -1
  84. package/dist/esm/api.d.ts +2 -2
  85. package/dist/esm/api.js +2 -2
  86. package/dist/esm/base.d.ts +1 -1
  87. package/dist/esm/base.js +1 -1
  88. package/dist/esm/common.d.ts +1 -1
  89. package/dist/esm/common.js +1 -1
  90. package/dist/esm/configuration.d.ts +1 -1
  91. package/dist/esm/configuration.js +1 -1
  92. package/dist/esm/index.d.ts +1 -1
  93. package/dist/esm/index.js +1 -1
  94. package/dist/esm/models/evolution-type.d.ts +1 -1
  95. package/dist/esm/models/evolution-type.js +1 -1
  96. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  97. package/dist/esm/models/httpvalidation-error.js +1 -1
  98. package/dist/esm/models/impact-apiresponse.d.ts +1 -1
  99. package/dist/esm/models/impact-apiresponse.js +1 -1
  100. package/dist/esm/models/impact-create.d.ts +1 -1
  101. package/dist/esm/models/impact-create.js +1 -1
  102. package/dist/esm/models/impact-update.d.ts +1 -1
  103. package/dist/esm/models/impact-update.js +1 -1
  104. package/dist/esm/models/index.d.ts +4 -2
  105. package/dist/esm/models/index.js +4 -2
  106. package/dist/esm/models/investment-create.d.ts +1 -1
  107. package/dist/esm/models/investment-create.js +1 -1
  108. package/dist/esm/models/investment-overview-response.d.ts +29 -0
  109. package/dist/esm/models/{favored-option-request.js → investment-overview-response.js} +1 -1
  110. package/dist/esm/models/investment-response.d.ts +1 -1
  111. package/dist/esm/models/investment-response.js +1 -1
  112. package/dist/esm/models/investment-update.d.ts +1 -1
  113. package/dist/esm/models/investment-update.js +1 -1
  114. package/dist/esm/models/location-inner.d.ts +1 -1
  115. package/dist/esm/models/location-inner.js +1 -1
  116. package/dist/esm/models/measurement-type.d.ts +1 -1
  117. package/dist/esm/models/measurement-type.js +1 -1
  118. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  119. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  120. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  121. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  122. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  123. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  124. package/dist/esm/models/metric-create.d.ts +1 -1
  125. package/dist/esm/models/metric-create.js +1 -1
  126. package/dist/esm/models/metric-response.d.ts +1 -1
  127. package/dist/esm/models/metric-response.js +1 -1
  128. package/dist/esm/models/metric-type.d.ts +1 -1
  129. package/dist/esm/models/metric-type.js +1 -1
  130. package/dist/esm/models/metric-update.d.ts +1 -1
  131. package/dist/esm/models/metric-update.js +1 -1
  132. package/dist/esm/models/objective-create.d.ts +1 -1
  133. package/dist/esm/models/objective-create.js +1 -1
  134. package/dist/esm/models/objective-response.d.ts +1 -1
  135. package/dist/esm/models/objective-response.js +1 -1
  136. package/dist/esm/models/objective-update.d.ts +1 -1
  137. package/dist/esm/models/objective-update.js +1 -1
  138. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  139. package/dist/esm/models/objective-weight-create.js +1 -1
  140. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  141. package/dist/esm/models/objective-weight-response.js +1 -1
  142. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  143. package/dist/esm/models/objective-weight-update.js +1 -1
  144. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  145. package/dist/esm/models/option-chart-kpi.js +1 -1
  146. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  147. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  148. package/dist/esm/models/option-create.d.ts +1 -1
  149. package/dist/esm/models/option-create.js +1 -1
  150. package/dist/esm/models/option-overview-response.d.ts +37 -0
  151. package/dist/esm/models/{favored-option-response.js → option-overview-response.js} +1 -1
  152. package/dist/esm/models/option-response.d.ts +1 -1
  153. package/dist/esm/models/option-response.js +1 -1
  154. package/dist/esm/models/option-update.d.ts +1 -1
  155. package/dist/esm/models/option-update.js +1 -1
  156. package/dist/esm/models/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
  157. package/dist/esm/models/preferred-option-request.js +14 -0
  158. package/dist/esm/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
  159. package/dist/esm/models/preferred-option-response.js +14 -0
  160. package/dist/esm/models/validation-error.d.ts +1 -1
  161. package/dist/esm/models/validation-error.js +1 -1
  162. package/dist/esm/models/value-framework-create.d.ts +1 -1
  163. package/dist/esm/models/value-framework-create.js +1 -1
  164. package/dist/esm/models/value-framework-response.d.ts +1 -1
  165. package/dist/esm/models/value-framework-response.js +1 -1
  166. package/dist/esm/models/value-framework-update.d.ts +1 -1
  167. package/dist/esm/models/value-framework-update.js +1 -1
  168. package/dist/index.d.ts +1 -1
  169. package/dist/index.js +1 -1
  170. package/dist/models/evolution-type.d.ts +1 -1
  171. package/dist/models/evolution-type.js +1 -1
  172. package/dist/models/httpvalidation-error.d.ts +1 -1
  173. package/dist/models/httpvalidation-error.js +1 -1
  174. package/dist/models/impact-apiresponse.d.ts +1 -1
  175. package/dist/models/impact-apiresponse.js +1 -1
  176. package/dist/models/impact-create.d.ts +1 -1
  177. package/dist/models/impact-create.js +1 -1
  178. package/dist/models/impact-update.d.ts +1 -1
  179. package/dist/models/impact-update.js +1 -1
  180. package/dist/models/index.d.ts +4 -2
  181. package/dist/models/index.js +4 -2
  182. package/dist/models/investment-create.d.ts +1 -1
  183. package/dist/models/investment-create.js +1 -1
  184. package/dist/models/investment-overview-response.d.ts +29 -0
  185. package/dist/models/{favored-option-request.js → investment-overview-response.js} +1 -1
  186. package/dist/models/investment-response.d.ts +1 -1
  187. package/dist/models/investment-response.js +1 -1
  188. package/dist/models/investment-update.d.ts +1 -1
  189. package/dist/models/investment-update.js +1 -1
  190. package/dist/models/location-inner.d.ts +1 -1
  191. package/dist/models/location-inner.js +1 -1
  192. package/dist/models/measurement-type.d.ts +1 -1
  193. package/dist/models/measurement-type.js +1 -1
  194. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  195. package/dist/models/metric-costs-per-year-create.js +1 -1
  196. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  197. package/dist/models/metric-costs-per-year-response.js +1 -1
  198. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  199. package/dist/models/metric-costs-per-year-update.js +1 -1
  200. package/dist/models/metric-create.d.ts +1 -1
  201. package/dist/models/metric-create.js +1 -1
  202. package/dist/models/metric-response.d.ts +1 -1
  203. package/dist/models/metric-response.js +1 -1
  204. package/dist/models/metric-type.d.ts +1 -1
  205. package/dist/models/metric-type.js +1 -1
  206. package/dist/models/metric-update.d.ts +1 -1
  207. package/dist/models/metric-update.js +1 -1
  208. package/dist/models/objective-create.d.ts +1 -1
  209. package/dist/models/objective-create.js +1 -1
  210. package/dist/models/objective-response.d.ts +1 -1
  211. package/dist/models/objective-response.js +1 -1
  212. package/dist/models/objective-update.d.ts +1 -1
  213. package/dist/models/objective-update.js +1 -1
  214. package/dist/models/objective-weight-create.d.ts +1 -1
  215. package/dist/models/objective-weight-create.js +1 -1
  216. package/dist/models/objective-weight-response.d.ts +1 -1
  217. package/dist/models/objective-weight-response.js +1 -1
  218. package/dist/models/objective-weight-update.d.ts +1 -1
  219. package/dist/models/objective-weight-update.js +1 -1
  220. package/dist/models/option-chart-kpi.d.ts +1 -1
  221. package/dist/models/option-chart-kpi.js +1 -1
  222. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  223. package/dist/models/option-chart-kpis-yearly.js +1 -1
  224. package/dist/models/option-create.d.ts +1 -1
  225. package/dist/models/option-create.js +1 -1
  226. package/dist/models/option-overview-response.d.ts +37 -0
  227. package/dist/models/{favored-option-response.js → option-overview-response.js} +1 -1
  228. package/dist/models/option-response.d.ts +1 -1
  229. package/dist/models/option-response.js +1 -1
  230. package/dist/models/option-update.d.ts +1 -1
  231. package/dist/models/option-update.js +1 -1
  232. package/dist/models/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
  233. package/dist/models/preferred-option-request.js +15 -0
  234. package/dist/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
  235. package/dist/models/preferred-option-response.js +15 -0
  236. package/dist/models/validation-error.d.ts +1 -1
  237. package/dist/models/validation-error.js +1 -1
  238. package/dist/models/value-framework-create.d.ts +1 -1
  239. package/dist/models/value-framework-create.js +1 -1
  240. package/dist/models/value-framework-response.d.ts +1 -1
  241. package/dist/models/value-framework-response.js +1 -1
  242. package/dist/models/value-framework-update.d.ts +1 -1
  243. package/dist/models/value-framework-update.js +1 -1
  244. package/docs/InvestmentApi.md +174 -65
  245. package/docs/InvestmentOverviewResponse.md +33 -0
  246. package/docs/OptionApi.md +58 -2
  247. package/docs/OptionOverviewResponse.md +31 -0
  248. package/docs/{FavoredOptionApi.md → PreferredOptionApi.md} +19 -19
  249. package/docs/{FavoredOptionRequest.md → PreferredOptionRequest.md} +3 -3
  250. package/docs/{FavoredOptionResponse.md → PreferredOptionResponse.md} +4 -4
  251. package/index.ts +1 -1
  252. package/models/evolution-type.ts +1 -1
  253. package/models/httpvalidation-error.ts +1 -1
  254. package/models/impact-apiresponse.ts +1 -1
  255. package/models/impact-create.ts +1 -1
  256. package/models/impact-update.ts +1 -1
  257. package/models/index.ts +4 -2
  258. package/models/investment-create.ts +1 -1
  259. package/models/investment-overview-response.ts +35 -0
  260. package/models/investment-response.ts +1 -1
  261. package/models/investment-update.ts +1 -1
  262. package/models/location-inner.ts +1 -1
  263. package/models/measurement-type.ts +1 -1
  264. package/models/metric-costs-per-year-create.ts +1 -1
  265. package/models/metric-costs-per-year-response.ts +1 -1
  266. package/models/metric-costs-per-year-update.ts +1 -1
  267. package/models/metric-create.ts +1 -1
  268. package/models/metric-response.ts +1 -1
  269. package/models/metric-type.ts +1 -1
  270. package/models/metric-update.ts +1 -1
  271. package/models/objective-create.ts +1 -1
  272. package/models/objective-response.ts +1 -1
  273. package/models/objective-update.ts +1 -1
  274. package/models/objective-weight-create.ts +1 -1
  275. package/models/objective-weight-response.ts +1 -1
  276. package/models/objective-weight-update.ts +1 -1
  277. package/models/option-chart-kpi.ts +1 -1
  278. package/models/option-chart-kpis-yearly.ts +1 -1
  279. package/models/option-create.ts +1 -1
  280. package/models/option-overview-response.ts +43 -0
  281. package/models/option-response.ts +1 -1
  282. package/models/option-update.ts +1 -1
  283. package/models/{favored-option-request.ts → preferred-option-request.ts} +2 -2
  284. package/models/{favored-option-response.ts → preferred-option-response.ts} +3 -3
  285. package/models/validation-error.ts +1 -1
  286. package/models/value-framework-create.ts +1 -1
  287. package/models/value-framework-response.ts +1 -1
  288. package/models/value-framework-update.ts +1 -1
  289. package/package.json +1 -1
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -222,39 +222,6 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
222
222
  options: localVarRequestOptions,
223
223
  };
224
224
  }),
225
- /**
226
- * Get the preferred option for an investment.
227
- * @summary Get the preferred option for an investment
228
- * @param {string} investmentId UUID of the investment
229
- * @param {*} [options] Override http request option.
230
- * @throws {RequiredError}
231
- */
232
- getFavoredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
233
- // verify required parameter 'investmentId' is not null or undefined
234
- (0, common_1.assertParamExists)('getFavoredOption', 'investmentId', investmentId);
235
- const localVarPath = `/investment/{investment_id}/favored_option`
236
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
237
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
- let baseOptions;
240
- if (configuration) {
241
- baseOptions = configuration.baseOptions;
242
- }
243
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
244
- const localVarHeaderParameter = {};
245
- const localVarQueryParameter = {};
246
- // authentication OAuth2AuthorizationCodeBearer required
247
- // oauth required
248
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
249
- localVarHeaderParameter['Accept'] = 'application/json';
250
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
251
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
253
- return {
254
- url: (0, common_1.toPathString)(localVarUrlObj),
255
- options: localVarRequestOptions,
256
- };
257
- }),
258
225
  /**
259
226
  * Retrieve a specific impact for the option.
260
227
  * @summary Get an impact for this option
@@ -411,6 +378,41 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
411
378
  options: localVarRequestOptions,
412
379
  };
413
380
  }),
381
+ /**
382
+ * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
383
+ * @summary Investment overview table
384
+ * @param {string} valueFrameworkId UUID of the value framework
385
+ * @param {*} [options] Override http request option.
386
+ * @throws {RequiredError}
387
+ */
388
+ getInvestmentsOverview: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
389
+ // verify required parameter 'valueFrameworkId' is not null or undefined
390
+ (0, common_1.assertParamExists)('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId);
391
+ const localVarPath = `/investment/overview`;
392
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
393
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
394
+ let baseOptions;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ }
398
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
399
+ const localVarHeaderParameter = {};
400
+ const localVarQueryParameter = {};
401
+ // authentication OAuth2AuthorizationCodeBearer required
402
+ // oauth required
403
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
404
+ if (valueFrameworkId !== undefined) {
405
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
406
+ }
407
+ localVarHeaderParameter['Accept'] = 'application/json';
408
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
409
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
410
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
411
+ return {
412
+ url: (0, common_1.toPathString)(localVarUrlObj),
413
+ options: localVarRequestOptions,
414
+ };
415
+ }),
414
416
  /**
415
417
  * Retrieve a specific option for the investment.
416
418
  * @summary Get an option for this investment
@@ -449,7 +451,7 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
449
451
  };
450
452
  }),
451
453
  /**
452
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
454
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
453
455
  * @summary Get the kpis for a given option inside a value framework
454
456
  * @param {string} investmentId UUID of the investment
455
457
  * @param {string} optionId UUID of the option
@@ -530,6 +532,78 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
530
532
  options: localVarRequestOptions,
531
533
  };
532
534
  }),
535
+ /**
536
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
537
+ * @summary Option overview table for this investment
538
+ * @param {string} investmentId UUID of the investment
539
+ * @param {string} valueFrameworkId UUID of the value framework
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
544
+ // verify required parameter 'investmentId' is not null or undefined
545
+ (0, common_1.assertParamExists)('getOptionsOverview', 'investmentId', investmentId);
546
+ // verify required parameter 'valueFrameworkId' is not null or undefined
547
+ (0, common_1.assertParamExists)('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
548
+ const localVarPath = `/investment/{investment_id}/option/overview`
549
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
550
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
551
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
552
+ let baseOptions;
553
+ if (configuration) {
554
+ baseOptions = configuration.baseOptions;
555
+ }
556
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
557
+ const localVarHeaderParameter = {};
558
+ const localVarQueryParameter = {};
559
+ // authentication OAuth2AuthorizationCodeBearer required
560
+ // oauth required
561
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
562
+ if (valueFrameworkId !== undefined) {
563
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
564
+ }
565
+ localVarHeaderParameter['Accept'] = 'application/json';
566
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
568
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
569
+ return {
570
+ url: (0, common_1.toPathString)(localVarUrlObj),
571
+ options: localVarRequestOptions,
572
+ };
573
+ }),
574
+ /**
575
+ * Get the preferred option for an investment.
576
+ * @summary Get the preferred option for an investment
577
+ * @param {string} investmentId UUID of the investment
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
582
+ // verify required parameter 'investmentId' is not null or undefined
583
+ (0, common_1.assertParamExists)('getPreferredOption', 'investmentId', investmentId);
584
+ const localVarPath = `/investment/{investment_id}/preferred_option`
585
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
587
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
588
+ let baseOptions;
589
+ if (configuration) {
590
+ baseOptions = configuration.baseOptions;
591
+ }
592
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
593
+ const localVarHeaderParameter = {};
594
+ const localVarQueryParameter = {};
595
+ // authentication OAuth2AuthorizationCodeBearer required
596
+ // oauth required
597
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
598
+ localVarHeaderParameter['Accept'] = 'application/json';
599
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
600
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
601
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
602
+ return {
603
+ url: (0, common_1.toPathString)(localVarUrlObj),
604
+ options: localVarRequestOptions,
605
+ };
606
+ }),
533
607
  /**
534
608
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
535
609
  * @summary Partially update an impact for this option
@@ -694,16 +768,16 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
694
768
  * Set the preferred option for an investment.
695
769
  * @summary Set the preferred option for an investment
696
770
  * @param {string} investmentId UUID of the investment
697
- * @param {FavoredOptionRequest} favoredOptionRequest
771
+ * @param {PreferredOptionRequest} preferredOptionRequest
698
772
  * @param {*} [options] Override http request option.
699
773
  * @throws {RequiredError}
700
774
  */
701
- setFavoredOption: (investmentId_1, favoredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, favoredOptionRequest_1, ...args_1], void 0, function* (investmentId, favoredOptionRequest, options = {}) {
775
+ setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
702
776
  // verify required parameter 'investmentId' is not null or undefined
703
- (0, common_1.assertParamExists)('setFavoredOption', 'investmentId', investmentId);
704
- // verify required parameter 'favoredOptionRequest' is not null or undefined
705
- (0, common_1.assertParamExists)('setFavoredOption', 'favoredOptionRequest', favoredOptionRequest);
706
- const localVarPath = `/investment/{investment_id}/favored_option`
777
+ (0, common_1.assertParamExists)('setPreferredOption', 'investmentId', investmentId);
778
+ // verify required parameter 'preferredOptionRequest' is not null or undefined
779
+ (0, common_1.assertParamExists)('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
780
+ const localVarPath = `/investment/{investment_id}/preferred_option`
707
781
  .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
708
782
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
709
783
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -722,7 +796,7 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
722
796
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
723
797
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
724
798
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
725
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoredOptionRequest, localVarRequestOptions, configuration);
799
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(preferredOptionRequest, localVarRequestOptions, configuration);
726
800
  return {
727
801
  url: (0, common_1.toPathString)(localVarUrlObj),
728
802
  options: localVarRequestOptions,
@@ -823,22 +897,6 @@ const InvestmentApiFp = function (configuration) {
823
897
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
824
898
  });
825
899
  },
826
- /**
827
- * Get the preferred option for an investment.
828
- * @summary Get the preferred option for an investment
829
- * @param {string} investmentId UUID of the investment
830
- * @param {*} [options] Override http request option.
831
- * @throws {RequiredError}
832
- */
833
- getFavoredOption(investmentId, options) {
834
- return __awaiter(this, void 0, void 0, function* () {
835
- var _a, _b, _c;
836
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoredOption(investmentId, options);
837
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
838
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
839
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
840
- });
841
- },
842
900
  /**
843
901
  * Retrieve a specific impact for the option.
844
902
  * @summary Get an impact for this option
@@ -909,6 +967,22 @@ const InvestmentApiFp = function (configuration) {
909
967
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
910
968
  });
911
969
  },
970
+ /**
971
+ * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
972
+ * @summary Investment overview table
973
+ * @param {string} valueFrameworkId UUID of the value framework
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ getInvestmentsOverview(valueFrameworkId, options) {
978
+ return __awaiter(this, void 0, void 0, function* () {
979
+ var _a, _b, _c;
980
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
981
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
982
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
983
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
984
+ });
985
+ },
912
986
  /**
913
987
  * Retrieve a specific option for the investment.
914
988
  * @summary Get an option for this investment
@@ -927,7 +1001,7 @@ const InvestmentApiFp = function (configuration) {
927
1001
  });
928
1002
  },
929
1003
  /**
930
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1004
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
931
1005
  * @summary Get the kpis for a given option inside a value framework
932
1006
  * @param {string} investmentId UUID of the investment
933
1007
  * @param {string} optionId UUID of the option
@@ -962,6 +1036,39 @@ const InvestmentApiFp = function (configuration) {
962
1036
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
963
1037
  });
964
1038
  },
1039
+ /**
1040
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1041
+ * @summary Option overview table for this investment
1042
+ * @param {string} investmentId UUID of the investment
1043
+ * @param {string} valueFrameworkId UUID of the value framework
1044
+ * @param {*} [options] Override http request option.
1045
+ * @throws {RequiredError}
1046
+ */
1047
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1048
+ return __awaiter(this, void 0, void 0, function* () {
1049
+ var _a, _b, _c;
1050
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1051
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1052
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1053
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1054
+ });
1055
+ },
1056
+ /**
1057
+ * Get the preferred option for an investment.
1058
+ * @summary Get the preferred option for an investment
1059
+ * @param {string} investmentId UUID of the investment
1060
+ * @param {*} [options] Override http request option.
1061
+ * @throws {RequiredError}
1062
+ */
1063
+ getPreferredOption(investmentId, options) {
1064
+ return __awaiter(this, void 0, void 0, function* () {
1065
+ var _a, _b, _c;
1066
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
1067
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1068
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1069
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1070
+ });
1071
+ },
965
1072
  /**
966
1073
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
967
1074
  * @summary Partially update an impact for this option
@@ -1036,16 +1143,16 @@ const InvestmentApiFp = function (configuration) {
1036
1143
  * Set the preferred option for an investment.
1037
1144
  * @summary Set the preferred option for an investment
1038
1145
  * @param {string} investmentId UUID of the investment
1039
- * @param {FavoredOptionRequest} favoredOptionRequest
1146
+ * @param {PreferredOptionRequest} preferredOptionRequest
1040
1147
  * @param {*} [options] Override http request option.
1041
1148
  * @throws {RequiredError}
1042
1149
  */
1043
- setFavoredOption(investmentId, favoredOptionRequest, options) {
1150
+ setPreferredOption(investmentId, preferredOptionRequest, options) {
1044
1151
  return __awaiter(this, void 0, void 0, function* () {
1045
1152
  var _a, _b, _c;
1046
- const localVarAxiosArgs = yield localVarAxiosParamCreator.setFavoredOption(investmentId, favoredOptionRequest, options);
1153
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
1047
1154
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1048
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.setFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1155
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.setPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1049
1156
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1050
1157
  });
1051
1158
  },
@@ -1114,16 +1221,6 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1114
1221
  deleteOptionForInvestment(optionId, investmentId, options) {
1115
1222
  return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1116
1223
  },
1117
- /**
1118
- * Get the preferred option for an investment.
1119
- * @summary Get the preferred option for an investment
1120
- * @param {string} investmentId UUID of the investment
1121
- * @param {*} [options] Override http request option.
1122
- * @throws {RequiredError}
1123
- */
1124
- getFavoredOption(investmentId, options) {
1125
- return localVarFp.getFavoredOption(investmentId, options).then((request) => request(axios, basePath));
1126
- },
1127
1224
  /**
1128
1225
  * Retrieve a specific impact for the option.
1129
1226
  * @summary Get an impact for this option
@@ -1170,6 +1267,16 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1170
1267
  getInvestments(offset, limit, options) {
1171
1268
  return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
1172
1269
  },
1270
+ /**
1271
+ * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
1272
+ * @summary Investment overview table
1273
+ * @param {string} valueFrameworkId UUID of the value framework
1274
+ * @param {*} [options] Override http request option.
1275
+ * @throws {RequiredError}
1276
+ */
1277
+ getInvestmentsOverview(valueFrameworkId, options) {
1278
+ return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1279
+ },
1173
1280
  /**
1174
1281
  * Retrieve a specific option for the investment.
1175
1282
  * @summary Get an option for this investment
@@ -1182,7 +1289,7 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1182
1289
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1183
1290
  },
1184
1291
  /**
1185
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1292
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1186
1293
  * @summary Get the kpis for a given option inside a value framework
1187
1294
  * @param {string} investmentId UUID of the investment
1188
1295
  * @param {string} optionId UUID of the option
@@ -1205,6 +1312,27 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1205
1312
  getOptionsForInvestment(investmentId, offset, limit, options) {
1206
1313
  return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1207
1314
  },
1315
+ /**
1316
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1317
+ * @summary Option overview table for this investment
1318
+ * @param {string} investmentId UUID of the investment
1319
+ * @param {string} valueFrameworkId UUID of the value framework
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1324
+ return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1325
+ },
1326
+ /**
1327
+ * Get the preferred option for an investment.
1328
+ * @summary Get the preferred option for an investment
1329
+ * @param {string} investmentId UUID of the investment
1330
+ * @param {*} [options] Override http request option.
1331
+ * @throws {RequiredError}
1332
+ */
1333
+ getPreferredOption(investmentId, options) {
1334
+ return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
1335
+ },
1208
1336
  /**
1209
1337
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1210
1338
  * @summary Partially update an impact for this option
@@ -1255,12 +1383,12 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1255
1383
  * Set the preferred option for an investment.
1256
1384
  * @summary Set the preferred option for an investment
1257
1385
  * @param {string} investmentId UUID of the investment
1258
- * @param {FavoredOptionRequest} favoredOptionRequest
1386
+ * @param {PreferredOptionRequest} preferredOptionRequest
1259
1387
  * @param {*} [options] Override http request option.
1260
1388
  * @throws {RequiredError}
1261
1389
  */
1262
- setFavoredOption(investmentId, favoredOptionRequest, options) {
1263
- return localVarFp.setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(axios, basePath));
1390
+ setPreferredOption(investmentId, preferredOptionRequest, options) {
1391
+ return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
1264
1392
  },
1265
1393
  };
1266
1394
  };
@@ -1325,16 +1453,6 @@ class InvestmentApi extends base_1.BaseAPI {
1325
1453
  deleteOptionForInvestment(optionId, investmentId, options) {
1326
1454
  return (0, exports.InvestmentApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1327
1455
  }
1328
- /**
1329
- * Get the preferred option for an investment.
1330
- * @summary Get the preferred option for an investment
1331
- * @param {string} investmentId UUID of the investment
1332
- * @param {*} [options] Override http request option.
1333
- * @throws {RequiredError}
1334
- */
1335
- getFavoredOption(investmentId, options) {
1336
- return (0, exports.InvestmentApiFp)(this.configuration).getFavoredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1337
- }
1338
1456
  /**
1339
1457
  * Retrieve a specific impact for the option.
1340
1458
  * @summary Get an impact for this option
@@ -1381,6 +1499,16 @@ class InvestmentApi extends base_1.BaseAPI {
1381
1499
  getInvestments(offset, limit, options) {
1382
1500
  return (0, exports.InvestmentApiFp)(this.configuration).getInvestments(offset, limit, options).then((request) => request(this.axios, this.basePath));
1383
1501
  }
1502
+ /**
1503
+ * Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
1504
+ * @summary Investment overview table
1505
+ * @param {string} valueFrameworkId UUID of the value framework
1506
+ * @param {*} [options] Override http request option.
1507
+ * @throws {RequiredError}
1508
+ */
1509
+ getInvestmentsOverview(valueFrameworkId, options) {
1510
+ return (0, exports.InvestmentApiFp)(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1511
+ }
1384
1512
  /**
1385
1513
  * Retrieve a specific option for the investment.
1386
1514
  * @summary Get an option for this investment
@@ -1393,7 +1521,7 @@ class InvestmentApi extends base_1.BaseAPI {
1393
1521
  return (0, exports.InvestmentApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1394
1522
  }
1395
1523
  /**
1396
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1524
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1397
1525
  * @summary Get the kpis for a given option inside a value framework
1398
1526
  * @param {string} investmentId UUID of the investment
1399
1527
  * @param {string} optionId UUID of the option
@@ -1416,6 +1544,27 @@ class InvestmentApi extends base_1.BaseAPI {
1416
1544
  getOptionsForInvestment(investmentId, offset, limit, options) {
1417
1545
  return (0, exports.InvestmentApiFp)(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1418
1546
  }
1547
+ /**
1548
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1549
+ * @summary Option overview table for this investment
1550
+ * @param {string} investmentId UUID of the investment
1551
+ * @param {string} valueFrameworkId UUID of the value framework
1552
+ * @param {*} [options] Override http request option.
1553
+ * @throws {RequiredError}
1554
+ */
1555
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1556
+ return (0, exports.InvestmentApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1557
+ }
1558
+ /**
1559
+ * Get the preferred option for an investment.
1560
+ * @summary Get the preferred option for an investment
1561
+ * @param {string} investmentId UUID of the investment
1562
+ * @param {*} [options] Override http request option.
1563
+ * @throws {RequiredError}
1564
+ */
1565
+ getPreferredOption(investmentId, options) {
1566
+ return (0, exports.InvestmentApiFp)(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1567
+ }
1419
1568
  /**
1420
1569
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1421
1570
  * @summary Partially update an impact for this option
@@ -1466,12 +1615,12 @@ class InvestmentApi extends base_1.BaseAPI {
1466
1615
  * Set the preferred option for an investment.
1467
1616
  * @summary Set the preferred option for an investment
1468
1617
  * @param {string} investmentId UUID of the investment
1469
- * @param {FavoredOptionRequest} favoredOptionRequest
1618
+ * @param {PreferredOptionRequest} preferredOptionRequest
1470
1619
  * @param {*} [options] Override http request option.
1471
1620
  * @throws {RequiredError}
1472
1621
  */
1473
- setFavoredOption(investmentId, favoredOptionRequest, options) {
1474
- return (0, exports.InvestmentApiFp)(this.configuration).setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1622
+ setPreferredOption(investmentId, preferredOptionRequest, options) {
1623
+ return (0, exports.InvestmentApiFp)(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1475
1624
  }
1476
1625
  }
1477
1626
  exports.InvestmentApi = InvestmentApi;
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Asset Investment Planning
3
3
  * API for Asset Investment Planning
4
4
  *
5
- * The version of the OpenAPI document: 0.2.0-dev3
5
+ * The version of the OpenAPI document: 0.2.0-dev6
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.2.0-dev3
8
+ * The version of the OpenAPI document: 0.2.0-dev6
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).