@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
@@ -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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,10 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { FavoredOptionRequest } from '../models';
26
- // @ts-ignore
27
- import type { FavoredOptionResponse } from '../models';
28
- // @ts-ignore
29
25
  import type { ImpactAPIResponse } from '../models';
30
26
  // @ts-ignore
31
27
  import type { ImpactCreate } from '../models';
@@ -34,6 +30,8 @@ import type { ImpactUpdate } from '../models';
34
30
  // @ts-ignore
35
31
  import type { InvestmentCreate } from '../models';
36
32
  // @ts-ignore
33
+ import type { InvestmentOverviewResponse } from '../models';
34
+ // @ts-ignore
37
35
  import type { InvestmentResponse } from '../models';
38
36
  // @ts-ignore
39
37
  import type { InvestmentUpdate } from '../models';
@@ -42,9 +40,15 @@ import type { OptionChartKPIsYearly } from '../models';
42
40
  // @ts-ignore
43
41
  import type { OptionCreate } from '../models';
44
42
  // @ts-ignore
43
+ import type { OptionOverviewResponse } from '../models';
44
+ // @ts-ignore
45
45
  import type { OptionResponse } from '../models';
46
46
  // @ts-ignore
47
47
  import type { OptionUpdate } from '../models';
48
+ // @ts-ignore
49
+ import type { PreferredOptionRequest } from '../models';
50
+ // @ts-ignore
51
+ import type { PreferredOptionResponse } from '../models';
48
52
  /**
49
53
  * InvestmentApi - axios parameter creator
50
54
  */
@@ -254,44 +258,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
254
258
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
255
259
 
256
260
 
257
- setSearchParams(localVarUrlObj, localVarQueryParameter);
258
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
-
261
- return {
262
- url: toPathString(localVarUrlObj),
263
- options: localVarRequestOptions,
264
- };
265
- },
266
- /**
267
- * Get the preferred option for an investment.
268
- * @summary Get the preferred option for an investment
269
- * @param {string} investmentId UUID of the investment
270
- * @param {*} [options] Override http request option.
271
- * @throws {RequiredError}
272
- */
273
- getFavoredOption: async (investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
274
- // verify required parameter 'investmentId' is not null or undefined
275
- assertParamExists('getFavoredOption', 'investmentId', investmentId)
276
- const localVarPath = `/investment/{investment_id}/favored_option`
277
- .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
278
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
279
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
280
- let baseOptions;
281
- if (configuration) {
282
- baseOptions = configuration.baseOptions;
283
- }
284
-
285
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
286
- const localVarHeaderParameter = {} as any;
287
- const localVarQueryParameter = {} as any;
288
-
289
- // authentication OAuth2AuthorizationCodeBearer required
290
- // oauth required
291
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
292
-
293
- localVarHeaderParameter['Accept'] = 'application/json';
294
-
295
261
  setSearchParams(localVarUrlObj, localVarQueryParameter);
296
262
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
263
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -481,6 +447,47 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
481
447
  options: localVarRequestOptions,
482
448
  };
483
449
  },
450
+ /**
451
+ * 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.
452
+ * @summary Investment overview table
453
+ * @param {string} valueFrameworkId UUID of the value framework
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ */
457
+ getInvestmentsOverview: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
458
+ // verify required parameter 'valueFrameworkId' is not null or undefined
459
+ assertParamExists('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId)
460
+ const localVarPath = `/investment/overview`;
461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
462
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
463
+ let baseOptions;
464
+ if (configuration) {
465
+ baseOptions = configuration.baseOptions;
466
+ }
467
+
468
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
469
+ const localVarHeaderParameter = {} as any;
470
+ const localVarQueryParameter = {} as any;
471
+
472
+ // authentication OAuth2AuthorizationCodeBearer required
473
+ // oauth required
474
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
475
+
476
+ if (valueFrameworkId !== undefined) {
477
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
478
+ }
479
+
480
+ localVarHeaderParameter['Accept'] = 'application/json';
481
+
482
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
483
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
484
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
485
+
486
+ return {
487
+ url: toPathString(localVarUrlObj),
488
+ options: localVarRequestOptions,
489
+ };
490
+ },
484
491
  /**
485
492
  * Retrieve a specific option for the investment.
486
493
  * @summary Get an option for this investment
@@ -524,7 +531,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
524
531
  };
525
532
  },
526
533
  /**
527
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
534
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
528
535
  * @summary Get the kpis for a given option inside a value framework
529
536
  * @param {string} investmentId UUID of the investment
530
537
  * @param {string} optionId UUID of the option
@@ -617,6 +624,89 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
617
624
  options: localVarRequestOptions,
618
625
  };
619
626
  },
627
+ /**
628
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
629
+ * @summary Option overview table for this investment
630
+ * @param {string} investmentId UUID of the investment
631
+ * @param {string} valueFrameworkId UUID of the value framework
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ getOptionsOverview: async (investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
636
+ // verify required parameter 'investmentId' is not null or undefined
637
+ assertParamExists('getOptionsOverview', 'investmentId', investmentId)
638
+ // verify required parameter 'valueFrameworkId' is not null or undefined
639
+ assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId)
640
+ const localVarPath = `/investment/{investment_id}/option/overview`
641
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
643
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
644
+ let baseOptions;
645
+ if (configuration) {
646
+ baseOptions = configuration.baseOptions;
647
+ }
648
+
649
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
650
+ const localVarHeaderParameter = {} as any;
651
+ const localVarQueryParameter = {} as any;
652
+
653
+ // authentication OAuth2AuthorizationCodeBearer required
654
+ // oauth required
655
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
656
+
657
+ if (valueFrameworkId !== undefined) {
658
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
659
+ }
660
+
661
+ localVarHeaderParameter['Accept'] = 'application/json';
662
+
663
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
664
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
665
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
666
+
667
+ return {
668
+ url: toPathString(localVarUrlObj),
669
+ options: localVarRequestOptions,
670
+ };
671
+ },
672
+ /**
673
+ * Get the preferred option for an investment.
674
+ * @summary Get the preferred option for an investment
675
+ * @param {string} investmentId UUID of the investment
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ getPreferredOption: async (investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
680
+ // verify required parameter 'investmentId' is not null or undefined
681
+ assertParamExists('getPreferredOption', 'investmentId', investmentId)
682
+ const localVarPath = `/investment/{investment_id}/preferred_option`
683
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
684
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
685
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
686
+ let baseOptions;
687
+ if (configuration) {
688
+ baseOptions = configuration.baseOptions;
689
+ }
690
+
691
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
692
+ const localVarHeaderParameter = {} as any;
693
+ const localVarQueryParameter = {} as any;
694
+
695
+ // authentication OAuth2AuthorizationCodeBearer required
696
+ // oauth required
697
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
698
+
699
+ localVarHeaderParameter['Accept'] = 'application/json';
700
+
701
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
702
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
703
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
704
+
705
+ return {
706
+ url: toPathString(localVarUrlObj),
707
+ options: localVarRequestOptions,
708
+ };
709
+ },
620
710
  /**
621
711
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
622
712
  * @summary Partially update an impact for this option
@@ -801,16 +891,16 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
801
891
  * Set the preferred option for an investment.
802
892
  * @summary Set the preferred option for an investment
803
893
  * @param {string} investmentId UUID of the investment
804
- * @param {FavoredOptionRequest} favoredOptionRequest
894
+ * @param {PreferredOptionRequest} preferredOptionRequest
805
895
  * @param {*} [options] Override http request option.
806
896
  * @throws {RequiredError}
807
897
  */
808
- setFavoredOption: async (investmentId: string, favoredOptionRequest: FavoredOptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
898
+ setPreferredOption: async (investmentId: string, preferredOptionRequest: PreferredOptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
809
899
  // verify required parameter 'investmentId' is not null or undefined
810
- assertParamExists('setFavoredOption', 'investmentId', investmentId)
811
- // verify required parameter 'favoredOptionRequest' is not null or undefined
812
- assertParamExists('setFavoredOption', 'favoredOptionRequest', favoredOptionRequest)
813
- const localVarPath = `/investment/{investment_id}/favored_option`
900
+ assertParamExists('setPreferredOption', 'investmentId', investmentId)
901
+ // verify required parameter 'preferredOptionRequest' is not null or undefined
902
+ assertParamExists('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest)
903
+ const localVarPath = `/investment/{investment_id}/preferred_option`
814
904
  .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
815
905
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
816
906
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -833,7 +923,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
833
923
  setSearchParams(localVarUrlObj, localVarQueryParameter);
834
924
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
835
925
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
836
- localVarRequestOptions.data = serializeDataIfNeeded(favoredOptionRequest, localVarRequestOptions, configuration)
926
+ localVarRequestOptions.data = serializeDataIfNeeded(preferredOptionRequest, localVarRequestOptions, configuration)
837
927
 
838
928
  return {
839
929
  url: toPathString(localVarUrlObj),
@@ -920,19 +1010,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
920
1010
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteOptionForInvestment']?.[localVarOperationServerIndex]?.url;
921
1011
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
922
1012
  },
923
- /**
924
- * Get the preferred option for an investment.
925
- * @summary Get the preferred option for an investment
926
- * @param {string} investmentId UUID of the investment
927
- * @param {*} [options] Override http request option.
928
- * @throws {RequiredError}
929
- */
930
- async getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>> {
931
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFavoredOption(investmentId, options);
932
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
933
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getFavoredOption']?.[localVarOperationServerIndex]?.url;
934
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
935
- },
936
1013
  /**
937
1014
  * Retrieve a specific impact for the option.
938
1015
  * @summary Get an impact for this option
@@ -991,6 +1068,19 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
991
1068
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestments']?.[localVarOperationServerIndex]?.url;
992
1069
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
993
1070
  },
1071
+ /**
1072
+ * 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.
1073
+ * @summary Investment overview table
1074
+ * @param {string} valueFrameworkId UUID of the value framework
1075
+ * @param {*} [options] Override http request option.
1076
+ * @throws {RequiredError}
1077
+ */
1078
+ async getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentOverviewResponse>>> {
1079
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
1080
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1081
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
1082
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1083
+ },
994
1084
  /**
995
1085
  * Retrieve a specific option for the investment.
996
1086
  * @summary Get an option for this investment
@@ -1006,7 +1096,7 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1006
1096
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1007
1097
  },
1008
1098
  /**
1009
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1099
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1010
1100
  * @summary Get the kpis for a given option inside a value framework
1011
1101
  * @param {string} investmentId UUID of the investment
1012
1102
  * @param {string} optionId UUID of the option
@@ -1035,6 +1125,33 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1035
1125
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsForInvestment']?.[localVarOperationServerIndex]?.url;
1036
1126
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1037
1127
  },
1128
+ /**
1129
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1130
+ * @summary Option overview table for this investment
1131
+ * @param {string} investmentId UUID of the investment
1132
+ * @param {string} valueFrameworkId UUID of the value framework
1133
+ * @param {*} [options] Override http request option.
1134
+ * @throws {RequiredError}
1135
+ */
1136
+ async getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>> {
1137
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1138
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1139
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
1140
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1141
+ },
1142
+ /**
1143
+ * Get the preferred option for an investment.
1144
+ * @summary Get the preferred option for an investment
1145
+ * @param {string} investmentId UUID of the investment
1146
+ * @param {*} [options] Override http request option.
1147
+ * @throws {RequiredError}
1148
+ */
1149
+ async getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
1150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferredOption(investmentId, options);
1151
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1152
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getPreferredOption']?.[localVarOperationServerIndex]?.url;
1153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1154
+ },
1038
1155
  /**
1039
1156
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1040
1157
  * @summary Partially update an impact for this option
@@ -1097,14 +1214,14 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
1097
1214
  * Set the preferred option for an investment.
1098
1215
  * @summary Set the preferred option for an investment
1099
1216
  * @param {string} investmentId UUID of the investment
1100
- * @param {FavoredOptionRequest} favoredOptionRequest
1217
+ * @param {PreferredOptionRequest} preferredOptionRequest
1101
1218
  * @param {*} [options] Override http request option.
1102
1219
  * @throws {RequiredError}
1103
1220
  */
1104
- async setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>> {
1105
- const localVarAxiosArgs = await localVarAxiosParamCreator.setFavoredOption(investmentId, favoredOptionRequest, options);
1221
+ async setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
1222
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
1106
1223
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1107
- const localVarOperationServerBasePath = operationServerMap['InvestmentApi.setFavoredOption']?.[localVarOperationServerIndex]?.url;
1224
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.setPreferredOption']?.[localVarOperationServerIndex]?.url;
1108
1225
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1109
1226
  },
1110
1227
  }
@@ -1172,16 +1289,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1172
1289
  deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1173
1290
  return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1174
1291
  },
1175
- /**
1176
- * Get the preferred option for an investment.
1177
- * @summary Get the preferred option for an investment
1178
- * @param {string} investmentId UUID of the investment
1179
- * @param {*} [options] Override http request option.
1180
- * @throws {RequiredError}
1181
- */
1182
- getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse> {
1183
- return localVarFp.getFavoredOption(investmentId, options).then((request) => request(axios, basePath));
1184
- },
1185
1292
  /**
1186
1293
  * Retrieve a specific impact for the option.
1187
1294
  * @summary Get an impact for this option
@@ -1228,6 +1335,16 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1228
1335
  getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentResponse>> {
1229
1336
  return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
1230
1337
  },
1338
+ /**
1339
+ * 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.
1340
+ * @summary Investment overview table
1341
+ * @param {string} valueFrameworkId UUID of the value framework
1342
+ * @param {*} [options] Override http request option.
1343
+ * @throws {RequiredError}
1344
+ */
1345
+ getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>> {
1346
+ return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1347
+ },
1231
1348
  /**
1232
1349
  * Retrieve a specific option for the investment.
1233
1350
  * @summary Get an option for this investment
@@ -1240,7 +1357,7 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1240
1357
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1241
1358
  },
1242
1359
  /**
1243
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1360
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1244
1361
  * @summary Get the kpis for a given option inside a value framework
1245
1362
  * @param {string} investmentId UUID of the investment
1246
1363
  * @param {string} optionId UUID of the option
@@ -1263,6 +1380,27 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1263
1380
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>> {
1264
1381
  return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1265
1382
  },
1383
+ /**
1384
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1385
+ * @summary Option overview table for this investment
1386
+ * @param {string} investmentId UUID of the investment
1387
+ * @param {string} valueFrameworkId UUID of the value framework
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
1392
+ return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1393
+ },
1394
+ /**
1395
+ * Get the preferred option for an investment.
1396
+ * @summary Get the preferred option for an investment
1397
+ * @param {string} investmentId UUID of the investment
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
1402
+ return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
1403
+ },
1266
1404
  /**
1267
1405
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1268
1406
  * @summary Partially update an impact for this option
@@ -1313,12 +1451,12 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1313
1451
  * Set the preferred option for an investment.
1314
1452
  * @summary Set the preferred option for an investment
1315
1453
  * @param {string} investmentId UUID of the investment
1316
- * @param {FavoredOptionRequest} favoredOptionRequest
1454
+ * @param {PreferredOptionRequest} preferredOptionRequest
1317
1455
  * @param {*} [options] Override http request option.
1318
1456
  * @throws {RequiredError}
1319
1457
  */
1320
- setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse> {
1321
- return localVarFp.setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(axios, basePath));
1458
+ setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
1459
+ return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
1322
1460
  },
1323
1461
  };
1324
1462
  };
@@ -1388,17 +1526,6 @@ export class InvestmentApi extends BaseAPI {
1388
1526
  return InvestmentApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1389
1527
  }
1390
1528
 
1391
- /**
1392
- * Get the preferred option for an investment.
1393
- * @summary Get the preferred option for an investment
1394
- * @param {string} investmentId UUID of the investment
1395
- * @param {*} [options] Override http request option.
1396
- * @throws {RequiredError}
1397
- */
1398
- public getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig) {
1399
- return InvestmentApiFp(this.configuration).getFavoredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1400
- }
1401
-
1402
1529
  /**
1403
1530
  * Retrieve a specific impact for the option.
1404
1531
  * @summary Get an impact for this option
@@ -1449,6 +1576,17 @@ export class InvestmentApi extends BaseAPI {
1449
1576
  return InvestmentApiFp(this.configuration).getInvestments(offset, limit, options).then((request) => request(this.axios, this.basePath));
1450
1577
  }
1451
1578
 
1579
+ /**
1580
+ * 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.
1581
+ * @summary Investment overview table
1582
+ * @param {string} valueFrameworkId UUID of the value framework
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ */
1586
+ public getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig) {
1587
+ return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1588
+ }
1589
+
1452
1590
  /**
1453
1591
  * Retrieve a specific option for the investment.
1454
1592
  * @summary Get an option for this investment
@@ -1462,7 +1600,7 @@ export class InvestmentApi extends BaseAPI {
1462
1600
  }
1463
1601
 
1464
1602
  /**
1465
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1603
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
1466
1604
  * @summary Get the kpis for a given option inside a value framework
1467
1605
  * @param {string} investmentId UUID of the investment
1468
1606
  * @param {string} optionId UUID of the option
@@ -1487,6 +1625,29 @@ export class InvestmentApi extends BaseAPI {
1487
1625
  return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1488
1626
  }
1489
1627
 
1628
+ /**
1629
+ * Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
1630
+ * @summary Option overview table for this investment
1631
+ * @param {string} investmentId UUID of the investment
1632
+ * @param {string} valueFrameworkId UUID of the value framework
1633
+ * @param {*} [options] Override http request option.
1634
+ * @throws {RequiredError}
1635
+ */
1636
+ public getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
1637
+ return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1638
+ }
1639
+
1640
+ /**
1641
+ * Get the preferred option for an investment.
1642
+ * @summary Get the preferred option for an investment
1643
+ * @param {string} investmentId UUID of the investment
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ */
1647
+ public getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig) {
1648
+ return InvestmentApiFp(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
1649
+ }
1650
+
1490
1651
  /**
1491
1652
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1492
1653
  * @summary Partially update an impact for this option
@@ -1541,12 +1702,12 @@ export class InvestmentApi extends BaseAPI {
1541
1702
  * Set the preferred option for an investment.
1542
1703
  * @summary Set the preferred option for an investment
1543
1704
  * @param {string} investmentId UUID of the investment
1544
- * @param {FavoredOptionRequest} favoredOptionRequest
1705
+ * @param {PreferredOptionRequest} preferredOptionRequest
1545
1706
  * @param {*} [options] Override http request option.
1546
1707
  * @throws {RequiredError}
1547
1708
  */
1548
- public setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig) {
1549
- return InvestmentApiFp(this.configuration).setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1709
+ public setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig) {
1710
+ return InvestmentApiFp(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
1550
1711
  }
1551
1712
  }
1552
1713
 
package/api/metric-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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
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.2.0-dev3
7
+ * The version of the OpenAPI document: 0.2.0-dev6
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).