@cosmotech/aip-client 0.2.0-dev6 → 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.
@@ -16,10 +16,12 @@ import type { ImpactAPIResponse } from '../models';
16
16
  import type { ImpactCreate } from '../models';
17
17
  import type { ImpactUpdate } from '../models';
18
18
  import type { InvestmentCreate } from '../models';
19
+ import type { InvestmentOverviewResponse } from '../models';
19
20
  import type { InvestmentResponse } from '../models';
20
21
  import type { InvestmentUpdate } from '../models';
21
22
  import type { OptionChartKPIsYearly } from '../models';
22
23
  import type { OptionCreate } from '../models';
24
+ import type { OptionOverviewResponse } from '../models';
23
25
  import type { OptionResponse } from '../models';
24
26
  import type { OptionUpdate } from '../models';
25
27
  import type { PreferredOptionRequest } from '../models';
@@ -112,6 +114,14 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
112
114
  * @throws {RequiredError}
113
115
  */
114
116
  getInvestments: (offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
117
+ /**
118
+ * 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.
119
+ * @summary Investment overview table
120
+ * @param {string} valueFrameworkId UUID of the value framework
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ getInvestmentsOverview: (valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
115
125
  /**
116
126
  * Retrieve a specific option for the investment.
117
127
  * @summary Get an option for this investment
@@ -122,7 +132,7 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
122
132
  */
123
133
  getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
124
134
  /**
125
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
135
+ * 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.
126
136
  * @summary Get the kpis for a given option inside a value framework
127
137
  * @param {string} investmentId UUID of the investment
128
138
  * @param {string} optionId UUID of the option
@@ -141,6 +151,15 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
141
151
  * @throws {RequiredError}
142
152
  */
143
153
  getOptionsForInvestment: (investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
154
+ /**
155
+ * 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.
156
+ * @summary Option overview table for this investment
157
+ * @param {string} investmentId UUID of the investment
158
+ * @param {string} valueFrameworkId UUID of the value framework
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ getOptionsOverview: (investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
144
163
  /**
145
164
  * Get the preferred option for an investment.
146
165
  * @summary Get the preferred option for an investment
@@ -285,6 +304,14 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
285
304
  * @throws {RequiredError}
286
305
  */
287
306
  getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentResponse>>>;
307
+ /**
308
+ * 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.
309
+ * @summary Investment overview table
310
+ * @param {string} valueFrameworkId UUID of the value framework
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentOverviewResponse>>>;
288
315
  /**
289
316
  * Retrieve a specific option for the investment.
290
317
  * @summary Get an option for this investment
@@ -295,7 +322,7 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
295
322
  */
296
323
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
297
324
  /**
298
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
325
+ * 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.
299
326
  * @summary Get the kpis for a given option inside a value framework
300
327
  * @param {string} investmentId UUID of the investment
301
328
  * @param {string} optionId UUID of the option
@@ -314,6 +341,15 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
314
341
  * @throws {RequiredError}
315
342
  */
316
343
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionResponse>>>;
344
+ /**
345
+ * 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.
346
+ * @summary Option overview table for this investment
347
+ * @param {string} investmentId UUID of the investment
348
+ * @param {string} valueFrameworkId UUID of the value framework
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>>;
317
353
  /**
318
354
  * Get the preferred option for an investment.
319
355
  * @summary Get the preferred option for an investment
@@ -458,6 +494,14 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
458
494
  * @throws {RequiredError}
459
495
  */
460
496
  getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentResponse>>;
497
+ /**
498
+ * 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.
499
+ * @summary Investment overview table
500
+ * @param {string} valueFrameworkId UUID of the value framework
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>>;
461
505
  /**
462
506
  * Retrieve a specific option for the investment.
463
507
  * @summary Get an option for this investment
@@ -468,7 +512,7 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
468
512
  */
469
513
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
470
514
  /**
471
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
515
+ * 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.
472
516
  * @summary Get the kpis for a given option inside a value framework
473
517
  * @param {string} investmentId UUID of the investment
474
518
  * @param {string} optionId UUID of the option
@@ -487,6 +531,15 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
487
531
  * @throws {RequiredError}
488
532
  */
489
533
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>>;
534
+ /**
535
+ * 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.
536
+ * @summary Option overview table for this investment
537
+ * @param {string} investmentId UUID of the investment
538
+ * @param {string} valueFrameworkId UUID of the value framework
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>>;
490
543
  /**
491
544
  * Get the preferred option for an investment.
492
545
  * @summary Get the preferred option for an investment
@@ -631,6 +684,14 @@ export declare class InvestmentApi extends BaseAPI {
631
684
  * @throws {RequiredError}
632
685
  */
633
686
  getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InvestmentResponse[], any, {}>>;
687
+ /**
688
+ * 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.
689
+ * @summary Investment overview table
690
+ * @param {string} valueFrameworkId UUID of the value framework
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ */
694
+ getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InvestmentOverviewResponse[], any, {}>>;
634
695
  /**
635
696
  * Retrieve a specific option for the investment.
636
697
  * @summary Get an option for this investment
@@ -641,7 +702,7 @@ export declare class InvestmentApi extends BaseAPI {
641
702
  */
642
703
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
643
704
  /**
644
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
705
+ * 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.
645
706
  * @summary Get the kpis for a given option inside a value framework
646
707
  * @param {string} investmentId UUID of the investment
647
708
  * @param {string} optionId UUID of the option
@@ -660,6 +721,15 @@ export declare class InvestmentApi extends BaseAPI {
660
721
  * @throws {RequiredError}
661
722
  */
662
723
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse[], any, {}>>;
724
+ /**
725
+ * 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.
726
+ * @summary Option overview table for this investment
727
+ * @param {string} investmentId UUID of the investment
728
+ * @param {string} valueFrameworkId UUID of the value framework
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionOverviewResponse[], any, {}>>;
663
733
  /**
664
734
  * Get the preferred option for an investment.
665
735
  * @summary Get the preferred option for an investment
@@ -375,6 +375,41 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
375
375
  options: localVarRequestOptions,
376
376
  };
377
377
  }),
378
+ /**
379
+ * 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.
380
+ * @summary Investment overview table
381
+ * @param {string} valueFrameworkId UUID of the value framework
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ getInvestmentsOverview: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
386
+ // verify required parameter 'valueFrameworkId' is not null or undefined
387
+ assertParamExists('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId);
388
+ const localVarPath = `/investment/overview`;
389
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
390
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
391
+ let baseOptions;
392
+ if (configuration) {
393
+ baseOptions = configuration.baseOptions;
394
+ }
395
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
396
+ const localVarHeaderParameter = {};
397
+ const localVarQueryParameter = {};
398
+ // authentication OAuth2AuthorizationCodeBearer required
399
+ // oauth required
400
+ yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
401
+ if (valueFrameworkId !== undefined) {
402
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
403
+ }
404
+ localVarHeaderParameter['Accept'] = 'application/json';
405
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
406
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
407
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
408
+ return {
409
+ url: toPathString(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ }),
378
413
  /**
379
414
  * Retrieve a specific option for the investment.
380
415
  * @summary Get an option for this investment
@@ -413,7 +448,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
413
448
  };
414
449
  }),
415
450
  /**
416
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
451
+ * 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.
417
452
  * @summary Get the kpis for a given option inside a value framework
418
453
  * @param {string} investmentId UUID of the investment
419
454
  * @param {string} optionId UUID of the option
@@ -494,6 +529,45 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
494
529
  options: localVarRequestOptions,
495
530
  };
496
531
  }),
532
+ /**
533
+ * 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.
534
+ * @summary Option overview table for this investment
535
+ * @param {string} investmentId UUID of the investment
536
+ * @param {string} valueFrameworkId UUID of the value framework
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
541
+ // verify required parameter 'investmentId' is not null or undefined
542
+ assertParamExists('getOptionsOverview', 'investmentId', investmentId);
543
+ // verify required parameter 'valueFrameworkId' is not null or undefined
544
+ assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
545
+ const localVarPath = `/investment/{investment_id}/option/overview`
546
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
549
+ let baseOptions;
550
+ if (configuration) {
551
+ baseOptions = configuration.baseOptions;
552
+ }
553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
554
+ const localVarHeaderParameter = {};
555
+ const localVarQueryParameter = {};
556
+ // authentication OAuth2AuthorizationCodeBearer required
557
+ // oauth required
558
+ yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
559
+ if (valueFrameworkId !== undefined) {
560
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
561
+ }
562
+ localVarHeaderParameter['Accept'] = 'application/json';
563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
566
+ return {
567
+ url: toPathString(localVarUrlObj),
568
+ options: localVarRequestOptions,
569
+ };
570
+ }),
497
571
  /**
498
572
  * Get the preferred option for an investment.
499
573
  * @summary Get the preferred option for an investment
@@ -889,6 +963,22 @@ export const InvestmentApiFp = function (configuration) {
889
963
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
964
  });
891
965
  },
966
+ /**
967
+ * 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.
968
+ * @summary Investment overview table
969
+ * @param {string} valueFrameworkId UUID of the value framework
970
+ * @param {*} [options] Override http request option.
971
+ * @throws {RequiredError}
972
+ */
973
+ getInvestmentsOverview(valueFrameworkId, options) {
974
+ return __awaiter(this, void 0, void 0, function* () {
975
+ var _a, _b, _c;
976
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
977
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
978
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
979
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
980
+ });
981
+ },
892
982
  /**
893
983
  * Retrieve a specific option for the investment.
894
984
  * @summary Get an option for this investment
@@ -907,7 +997,7 @@ export const InvestmentApiFp = function (configuration) {
907
997
  });
908
998
  },
909
999
  /**
910
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1000
+ * 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.
911
1001
  * @summary Get the kpis for a given option inside a value framework
912
1002
  * @param {string} investmentId UUID of the investment
913
1003
  * @param {string} optionId UUID of the option
@@ -942,6 +1032,23 @@ export const InvestmentApiFp = function (configuration) {
942
1032
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
943
1033
  });
944
1034
  },
1035
+ /**
1036
+ * 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.
1037
+ * @summary Option overview table for this investment
1038
+ * @param {string} investmentId UUID of the investment
1039
+ * @param {string} valueFrameworkId UUID of the value framework
1040
+ * @param {*} [options] Override http request option.
1041
+ * @throws {RequiredError}
1042
+ */
1043
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1044
+ return __awaiter(this, void 0, void 0, function* () {
1045
+ var _a, _b, _c;
1046
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
1047
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1048
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1049
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1050
+ });
1051
+ },
945
1052
  /**
946
1053
  * Get the preferred option for an investment.
947
1054
  * @summary Get the preferred option for an investment
@@ -1155,6 +1262,16 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
1155
1262
  getInvestments(offset, limit, options) {
1156
1263
  return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
1157
1264
  },
1265
+ /**
1266
+ * 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.
1267
+ * @summary Investment overview table
1268
+ * @param {string} valueFrameworkId UUID of the value framework
1269
+ * @param {*} [options] Override http request option.
1270
+ * @throws {RequiredError}
1271
+ */
1272
+ getInvestmentsOverview(valueFrameworkId, options) {
1273
+ return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
1274
+ },
1158
1275
  /**
1159
1276
  * Retrieve a specific option for the investment.
1160
1277
  * @summary Get an option for this investment
@@ -1167,7 +1284,7 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
1167
1284
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1168
1285
  },
1169
1286
  /**
1170
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1287
+ * 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.
1171
1288
  * @summary Get the kpis for a given option inside a value framework
1172
1289
  * @param {string} investmentId UUID of the investment
1173
1290
  * @param {string} optionId UUID of the option
@@ -1190,6 +1307,17 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
1190
1307
  getOptionsForInvestment(investmentId, offset, limit, options) {
1191
1308
  return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
1192
1309
  },
1310
+ /**
1311
+ * 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.
1312
+ * @summary Option overview table for this investment
1313
+ * @param {string} investmentId UUID of the investment
1314
+ * @param {string} valueFrameworkId UUID of the value framework
1315
+ * @param {*} [options] Override http request option.
1316
+ * @throws {RequiredError}
1317
+ */
1318
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1319
+ return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
1320
+ },
1193
1321
  /**
1194
1322
  * Get the preferred option for an investment.
1195
1323
  * @summary Get the preferred option for an investment
@@ -1365,6 +1493,16 @@ export class InvestmentApi extends BaseAPI {
1365
1493
  getInvestments(offset, limit, options) {
1366
1494
  return InvestmentApiFp(this.configuration).getInvestments(offset, limit, options).then((request) => request(this.axios, this.basePath));
1367
1495
  }
1496
+ /**
1497
+ * 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.
1498
+ * @summary Investment overview table
1499
+ * @param {string} valueFrameworkId UUID of the value framework
1500
+ * @param {*} [options] Override http request option.
1501
+ * @throws {RequiredError}
1502
+ */
1503
+ getInvestmentsOverview(valueFrameworkId, options) {
1504
+ return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1505
+ }
1368
1506
  /**
1369
1507
  * Retrieve a specific option for the investment.
1370
1508
  * @summary Get an option for this investment
@@ -1377,7 +1515,7 @@ export class InvestmentApi extends BaseAPI {
1377
1515
  return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1378
1516
  }
1379
1517
  /**
1380
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1518
+ * 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.
1381
1519
  * @summary Get the kpis for a given option inside a value framework
1382
1520
  * @param {string} investmentId UUID of the investment
1383
1521
  * @param {string} optionId UUID of the option
@@ -1400,6 +1538,17 @@ export class InvestmentApi extends BaseAPI {
1400
1538
  getOptionsForInvestment(investmentId, offset, limit, options) {
1401
1539
  return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1402
1540
  }
1541
+ /**
1542
+ * 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.
1543
+ * @summary Option overview table for this investment
1544
+ * @param {string} investmentId UUID of the investment
1545
+ * @param {string} valueFrameworkId UUID of the value framework
1546
+ * @param {*} [options] Override http request option.
1547
+ * @throws {RequiredError}
1548
+ */
1549
+ getOptionsOverview(investmentId, valueFrameworkId, options) {
1550
+ return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1551
+ }
1403
1552
  /**
1404
1553
  * Get the preferred option for an investment.
1405
1554
  * @summary Get the preferred option for an investment
@@ -17,6 +17,7 @@ import type { ImpactCreate } from '../models';
17
17
  import type { ImpactUpdate } from '../models';
18
18
  import type { OptionChartKPIsYearly } from '../models';
19
19
  import type { OptionCreate } from '../models';
20
+ import type { OptionOverviewResponse } from '../models';
20
21
  import type { OptionResponse } from '../models';
21
22
  import type { OptionUpdate } from '../models';
22
23
  /**
@@ -92,7 +93,7 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
92
93
  */
93
94
  getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
94
95
  /**
95
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
96
+ * 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.
96
97
  * @summary Get the kpis for a given option inside a value framework
97
98
  * @param {string} investmentId UUID of the investment
98
99
  * @param {string} optionId UUID of the option
@@ -111,6 +112,15 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
111
112
  * @throws {RequiredError}
112
113
  */
113
114
  getOptionsForInvestment: (investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
115
+ /**
116
+ * 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.
117
+ * @summary Option overview table for this investment
118
+ * @param {string} investmentId UUID of the investment
119
+ * @param {string} valueFrameworkId UUID of the value framework
120
+ * @param {*} [options] Override http request option.
121
+ * @throws {RequiredError}
122
+ */
123
+ getOptionsOverview: (investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
114
124
  /**
115
125
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
116
126
  * @summary Partially update an impact for this option
@@ -206,7 +216,7 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
206
216
  */
207
217
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
208
218
  /**
209
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
219
+ * 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.
210
220
  * @summary Get the kpis for a given option inside a value framework
211
221
  * @param {string} investmentId UUID of the investment
212
222
  * @param {string} optionId UUID of the option
@@ -225,6 +235,15 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
225
235
  * @throws {RequiredError}
226
236
  */
227
237
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionResponse>>>;
238
+ /**
239
+ * 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.
240
+ * @summary Option overview table for this investment
241
+ * @param {string} investmentId UUID of the investment
242
+ * @param {string} valueFrameworkId UUID of the value framework
243
+ * @param {*} [options] Override http request option.
244
+ * @throws {RequiredError}
245
+ */
246
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>>;
228
247
  /**
229
248
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
230
249
  * @summary Partially update an impact for this option
@@ -320,7 +339,7 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
320
339
  */
321
340
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
322
341
  /**
323
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
342
+ * 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.
324
343
  * @summary Get the kpis for a given option inside a value framework
325
344
  * @param {string} investmentId UUID of the investment
326
345
  * @param {string} optionId UUID of the option
@@ -339,6 +358,15 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
339
358
  * @throws {RequiredError}
340
359
  */
341
360
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>>;
361
+ /**
362
+ * 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.
363
+ * @summary Option overview table for this investment
364
+ * @param {string} investmentId UUID of the investment
365
+ * @param {string} valueFrameworkId UUID of the value framework
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>>;
342
370
  /**
343
371
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
344
372
  * @summary Partially update an impact for this option
@@ -434,7 +462,7 @@ export declare class OptionApi extends BaseAPI {
434
462
  */
435
463
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
436
464
  /**
437
- * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
465
+ * 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.
438
466
  * @summary Get the kpis for a given option inside a value framework
439
467
  * @param {string} investmentId UUID of the investment
440
468
  * @param {string} optionId UUID of the option
@@ -453,6 +481,15 @@ export declare class OptionApi extends BaseAPI {
453
481
  * @throws {RequiredError}
454
482
  */
455
483
  getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse[], any, {}>>;
484
+ /**
485
+ * 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.
486
+ * @summary Option overview table for this investment
487
+ * @param {string} investmentId UUID of the investment
488
+ * @param {string} valueFrameworkId UUID of the value framework
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionOverviewResponse[], any, {}>>;
456
493
  /**
457
494
  * Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
458
495
  * @summary Partially update an impact for this option