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

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 (35) hide show
  1. package/README.md +6 -2
  2. package/api/investment-api.ts +88 -0
  3. package/api/option-api.ts +88 -0
  4. package/dist/api/investment-api.d.ts +41 -0
  5. package/dist/api/investment-api.js +83 -0
  6. package/dist/api/option-api.d.ts +41 -0
  7. package/dist/api/option-api.js +83 -0
  8. package/dist/esm/api/investment-api.d.ts +41 -0
  9. package/dist/esm/api/investment-api.js +83 -0
  10. package/dist/esm/api/option-api.d.ts +41 -0
  11. package/dist/esm/api/option-api.js +83 -0
  12. package/dist/esm/models/index.d.ts +2 -0
  13. package/dist/esm/models/index.js +2 -0
  14. package/dist/esm/models/option-chart-kpi.d.ts +29 -0
  15. package/dist/esm/models/option-chart-kpi.js +14 -0
  16. package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
  17. package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
  18. package/dist/esm/models/option-create.d.ts +1 -1
  19. package/dist/models/index.d.ts +2 -0
  20. package/dist/models/index.js +2 -0
  21. package/dist/models/option-chart-kpi.d.ts +29 -0
  22. package/dist/models/option-chart-kpi.js +15 -0
  23. package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
  24. package/dist/models/option-chart-kpis-yearly.js +15 -0
  25. package/dist/models/option-create.d.ts +1 -1
  26. package/docs/InvestmentApi.md +59 -0
  27. package/docs/OptionApi.md +59 -0
  28. package/docs/OptionChartKPI.md +27 -0
  29. package/docs/OptionChartKPIsYearly.md +25 -0
  30. package/docs/OptionCreate.md +1 -1
  31. package/models/index.ts +2 -0
  32. package/models/option-chart-kpi.ts +35 -0
  33. package/models/option-chart-kpis-yearly.ts +37 -0
  34. package/models/option-create.ts +1 -1
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @cosmotech/aip-client@0.2.0-dev4
1
+ ## @cosmotech/aip-client@v0.2.0-dev5
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cosmotech/aip-client@0.2.0-dev4 --save
39
+ npm install @cosmotech/aip-client@v0.2.0-dev5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -70,6 +70,7 @@ Class | Method | HTTP request | Description
70
70
  *InvestmentApi* | [**getInvestmentById**](docs/InvestmentApi.md#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID
71
71
  *InvestmentApi* | [**getInvestments**](docs/InvestmentApi.md#getinvestments) | **GET** /investment/ | List investments
72
72
  *InvestmentApi* | [**getOptionForInvestment**](docs/InvestmentApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
73
+ *InvestmentApi* | [**getOptionKpis**](docs/InvestmentApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
73
74
  *InvestmentApi* | [**getOptionsForInvestment**](docs/InvestmentApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
74
75
  *InvestmentApi* | [**patchImpactForOption**](docs/InvestmentApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
75
76
  *InvestmentApi* | [**patchInvestment**](docs/InvestmentApi.md#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment
@@ -111,6 +112,7 @@ Class | Method | HTTP request | Description
111
112
  *OptionApi* | [**getImpactForOption**](docs/OptionApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
112
113
  *OptionApi* | [**getImpactsForOption**](docs/OptionApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
113
114
  *OptionApi* | [**getOptionForInvestment**](docs/OptionApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
115
+ *OptionApi* | [**getOptionKpis**](docs/OptionApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
114
116
  *OptionApi* | [**getOptionsForInvestment**](docs/OptionApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
115
117
  *OptionApi* | [**patchImpactForOption**](docs/OptionApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
116
118
  *OptionApi* | [**patchOptionForInvestment**](docs/OptionApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
@@ -164,6 +166,8 @@ Class | Method | HTTP request | Description
164
166
  - [ObjectiveWeightCreate](docs/ObjectiveWeightCreate.md)
165
167
  - [ObjectiveWeightResponse](docs/ObjectiveWeightResponse.md)
166
168
  - [ObjectiveWeightUpdate](docs/ObjectiveWeightUpdate.md)
169
+ - [OptionChartKPI](docs/OptionChartKPI.md)
170
+ - [OptionChartKPIsYearly](docs/OptionChartKPIsYearly.md)
167
171
  - [OptionCreate](docs/OptionCreate.md)
168
172
  - [OptionResponse](docs/OptionResponse.md)
169
173
  - [OptionUpdate](docs/OptionUpdate.md)
@@ -38,6 +38,8 @@ import type { InvestmentResponse } from '../models';
38
38
  // @ts-ignore
39
39
  import type { InvestmentUpdate } from '../models';
40
40
  // @ts-ignore
41
+ import type { OptionChartKPIsYearly } from '../models';
42
+ // @ts-ignore
41
43
  import type { OptionCreate } from '../models';
42
44
  // @ts-ignore
43
45
  import type { OptionResponse } from '../models';
@@ -521,6 +523,52 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
521
523
  options: localVarRequestOptions,
522
524
  };
523
525
  },
526
+ /**
527
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
528
+ * @summary Get the kpis for a given option inside a value framework
529
+ * @param {string} investmentId UUID of the investment
530
+ * @param {string} optionId UUID of the option
531
+ * @param {string} valueFrameworkId UUID of the value framework
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ getOptionKpis: async (investmentId: string, optionId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
536
+ // verify required parameter 'investmentId' is not null or undefined
537
+ assertParamExists('getOptionKpis', 'investmentId', investmentId)
538
+ // verify required parameter 'optionId' is not null or undefined
539
+ assertParamExists('getOptionKpis', 'optionId', optionId)
540
+ // verify required parameter 'valueFrameworkId' is not null or undefined
541
+ assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
542
+ const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
543
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
544
+ .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
545
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
546
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
547
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
548
+ let baseOptions;
549
+ if (configuration) {
550
+ baseOptions = configuration.baseOptions;
551
+ }
552
+
553
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
554
+ const localVarHeaderParameter = {} as any;
555
+ const localVarQueryParameter = {} as any;
556
+
557
+ // authentication OAuth2AuthorizationCodeBearer required
558
+ // oauth required
559
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
560
+
561
+ localVarHeaderParameter['Accept'] = 'application/json';
562
+
563
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
566
+
567
+ return {
568
+ url: toPathString(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ };
571
+ },
524
572
  /**
525
573
  * Retrieve a paginated list of all options for a specific investment.
526
574
  * @summary List options for this investment
@@ -957,6 +1005,21 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
957
1005
  const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionForInvestment']?.[localVarOperationServerIndex]?.url;
958
1006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
959
1007
  },
1008
+ /**
1009
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1010
+ * @summary Get the kpis for a given option inside a value framework
1011
+ * @param {string} investmentId UUID of the investment
1012
+ * @param {string} optionId UUID of the option
1013
+ * @param {string} valueFrameworkId UUID of the value framework
1014
+ * @param {*} [options] Override http request option.
1015
+ * @throws {RequiredError}
1016
+ */
1017
+ async getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>> {
1018
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
1019
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1020
+ const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionKpis']?.[localVarOperationServerIndex]?.url;
1021
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1022
+ },
960
1023
  /**
961
1024
  * Retrieve a paginated list of all options for a specific investment.
962
1025
  * @summary List options for this investment
@@ -1176,6 +1239,18 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
1176
1239
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
1177
1240
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1178
1241
  },
1242
+ /**
1243
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1244
+ * @summary Get the kpis for a given option inside a value framework
1245
+ * @param {string} investmentId UUID of the investment
1246
+ * @param {string} optionId UUID of the option
1247
+ * @param {string} valueFrameworkId UUID of the value framework
1248
+ * @param {*} [options] Override http request option.
1249
+ * @throws {RequiredError}
1250
+ */
1251
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
1252
+ return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
1253
+ },
1179
1254
  /**
1180
1255
  * Retrieve a paginated list of all options for a specific investment.
1181
1256
  * @summary List options for this investment
@@ -1386,6 +1461,19 @@ export class InvestmentApi extends BaseAPI {
1386
1461
  return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1387
1462
  }
1388
1463
 
1464
+ /**
1465
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1466
+ * @summary Get the kpis for a given option inside a value framework
1467
+ * @param {string} investmentId UUID of the investment
1468
+ * @param {string} optionId UUID of the option
1469
+ * @param {string} valueFrameworkId UUID of the value framework
1470
+ * @param {*} [options] Override http request option.
1471
+ * @throws {RequiredError}
1472
+ */
1473
+ public getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
1474
+ return InvestmentApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1475
+ }
1476
+
1389
1477
  /**
1390
1478
  * Retrieve a paginated list of all options for a specific investment.
1391
1479
  * @summary List options for this investment
package/api/option-api.ts CHANGED
@@ -28,6 +28,8 @@ import type { ImpactCreate } from '../models';
28
28
  // @ts-ignore
29
29
  import type { ImpactUpdate } from '../models';
30
30
  // @ts-ignore
31
+ import type { OptionChartKPIsYearly } from '../models';
32
+ // @ts-ignore
31
33
  import type { OptionCreate } from '../models';
32
34
  // @ts-ignore
33
35
  import type { OptionResponse } from '../models';
@@ -354,6 +356,52 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
354
356
  options: localVarRequestOptions,
355
357
  };
356
358
  },
359
+ /**
360
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
361
+ * @summary Get the kpis for a given option inside a value framework
362
+ * @param {string} investmentId UUID of the investment
363
+ * @param {string} optionId UUID of the option
364
+ * @param {string} valueFrameworkId UUID of the value framework
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ getOptionKpis: async (investmentId: string, optionId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
369
+ // verify required parameter 'investmentId' is not null or undefined
370
+ assertParamExists('getOptionKpis', 'investmentId', investmentId)
371
+ // verify required parameter 'optionId' is not null or undefined
372
+ assertParamExists('getOptionKpis', 'optionId', optionId)
373
+ // verify required parameter 'valueFrameworkId' is not null or undefined
374
+ assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
375
+ const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
376
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
377
+ .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
378
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
379
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
380
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
381
+ let baseOptions;
382
+ if (configuration) {
383
+ baseOptions = configuration.baseOptions;
384
+ }
385
+
386
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
387
+ const localVarHeaderParameter = {} as any;
388
+ const localVarQueryParameter = {} as any;
389
+
390
+ // authentication OAuth2AuthorizationCodeBearer required
391
+ // oauth required
392
+ await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
393
+
394
+ localVarHeaderParameter['Accept'] = 'application/json';
395
+
396
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
397
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
398
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
399
+
400
+ return {
401
+ url: toPathString(localVarUrlObj),
402
+ options: localVarRequestOptions,
403
+ };
404
+ },
357
405
  /**
358
406
  * Retrieve a paginated list of all options for a specific investment.
359
407
  * @summary List options for this investment
@@ -612,6 +660,21 @@ export const OptionApiFp = function(configuration?: Configuration) {
612
660
  const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionForInvestment']?.[localVarOperationServerIndex]?.url;
613
661
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
614
662
  },
663
+ /**
664
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
665
+ * @summary Get the kpis for a given option inside a value framework
666
+ * @param {string} investmentId UUID of the investment
667
+ * @param {string} optionId UUID of the option
668
+ * @param {string} valueFrameworkId UUID of the value framework
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ async getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>> {
673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
674
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
675
+ const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionKpis']?.[localVarOperationServerIndex]?.url;
676
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
677
+ },
615
678
  /**
616
679
  * Retrieve a paginated list of all options for a specific investment.
617
680
  * @summary List options for this investment
@@ -749,6 +812,18 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
749
812
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
750
813
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
751
814
  },
815
+ /**
816
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
817
+ * @summary Get the kpis for a given option inside a value framework
818
+ * @param {string} investmentId UUID of the investment
819
+ * @param {string} optionId UUID of the option
820
+ * @param {string} valueFrameworkId UUID of the value framework
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
825
+ return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
826
+ },
752
827
  /**
753
828
  * Retrieve a paginated list of all options for a specific investment.
754
829
  * @summary List options for this investment
@@ -882,6 +957,19 @@ export class OptionApi extends BaseAPI {
882
957
  return OptionApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
883
958
  }
884
959
 
960
+ /**
961
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
962
+ * @summary Get the kpis for a given option inside a value framework
963
+ * @param {string} investmentId UUID of the investment
964
+ * @param {string} optionId UUID of the option
965
+ * @param {string} valueFrameworkId UUID of the value framework
966
+ * @param {*} [options] Override http request option.
967
+ * @throws {RequiredError}
968
+ */
969
+ public getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
970
+ return OptionApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
971
+ }
972
+
885
973
  /**
886
974
  * Retrieve a paginated list of all options for a specific investment.
887
975
  * @summary List options for this investment
@@ -20,6 +20,7 @@ import type { ImpactUpdate } from '../models';
20
20
  import type { InvestmentCreate } from '../models';
21
21
  import type { InvestmentResponse } from '../models';
22
22
  import type { InvestmentUpdate } from '../models';
23
+ import type { OptionChartKPIsYearly } from '../models';
23
24
  import type { OptionCreate } from '../models';
24
25
  import type { OptionResponse } from '../models';
25
26
  import type { OptionUpdate } from '../models';
@@ -128,6 +129,16 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
128
129
  * @throws {RequiredError}
129
130
  */
130
131
  getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
132
+ /**
133
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
134
+ * @summary Get the kpis for a given option inside a value framework
135
+ * @param {string} investmentId UUID of the investment
136
+ * @param {string} optionId UUID of the option
137
+ * @param {string} valueFrameworkId UUID of the value framework
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ getOptionKpis: (investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
131
142
  /**
132
143
  * Retrieve a paginated list of all options for a specific investment.
133
144
  * @summary List options for this investment
@@ -291,6 +302,16 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
291
302
  * @throws {RequiredError}
292
303
  */
293
304
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
305
+ /**
306
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
307
+ * @summary Get the kpis for a given option inside a value framework
308
+ * @param {string} investmentId UUID of the investment
309
+ * @param {string} optionId UUID of the option
310
+ * @param {string} valueFrameworkId UUID of the value framework
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>>;
294
315
  /**
295
316
  * Retrieve a paginated list of all options for a specific investment.
296
317
  * @summary List options for this investment
@@ -454,6 +475,16 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
454
475
  * @throws {RequiredError}
455
476
  */
456
477
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
478
+ /**
479
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
480
+ * @summary Get the kpis for a given option inside a value framework
481
+ * @param {string} investmentId UUID of the investment
482
+ * @param {string} optionId UUID of the option
483
+ * @param {string} valueFrameworkId UUID of the value framework
484
+ * @param {*} [options] Override http request option.
485
+ * @throws {RequiredError}
486
+ */
487
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>>;
457
488
  /**
458
489
  * Retrieve a paginated list of all options for a specific investment.
459
490
  * @summary List options for this investment
@@ -617,6 +648,16 @@ export declare class InvestmentApi extends BaseAPI {
617
648
  * @throws {RequiredError}
618
649
  */
619
650
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
651
+ /**
652
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
653
+ * @summary Get the kpis for a given option inside a value framework
654
+ * @param {string} investmentId UUID of the investment
655
+ * @param {string} optionId UUID of the option
656
+ * @param {string} valueFrameworkId UUID of the value framework
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionChartKPIsYearly[], any, {}>>;
620
661
  /**
621
662
  * Retrieve a paginated list of all options for a specific investment.
622
663
  * @summary List options for this investment
@@ -448,6 +448,47 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
448
448
  options: localVarRequestOptions,
449
449
  };
450
450
  }),
451
+ /**
452
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
453
+ * @summary Get the kpis for a given option inside a value framework
454
+ * @param {string} investmentId UUID of the investment
455
+ * @param {string} optionId UUID of the option
456
+ * @param {string} valueFrameworkId UUID of the value framework
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
461
+ // verify required parameter 'investmentId' is not null or undefined
462
+ (0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
463
+ // verify required parameter 'optionId' is not null or undefined
464
+ (0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
465
+ // verify required parameter 'valueFrameworkId' is not null or undefined
466
+ (0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
467
+ const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
468
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
469
+ .replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
470
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
471
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
472
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
473
+ let baseOptions;
474
+ if (configuration) {
475
+ baseOptions = configuration.baseOptions;
476
+ }
477
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
478
+ const localVarHeaderParameter = {};
479
+ const localVarQueryParameter = {};
480
+ // authentication OAuth2AuthorizationCodeBearer required
481
+ // oauth required
482
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
483
+ localVarHeaderParameter['Accept'] = 'application/json';
484
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
+ return {
488
+ url: (0, common_1.toPathString)(localVarUrlObj),
489
+ options: localVarRequestOptions,
490
+ };
491
+ }),
451
492
  /**
452
493
  * Retrieve a paginated list of all options for a specific investment.
453
494
  * @summary List options for this investment
@@ -885,6 +926,24 @@ const InvestmentApiFp = function (configuration) {
885
926
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
886
927
  });
887
928
  },
929
+ /**
930
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
931
+ * @summary Get the kpis for a given option inside a value framework
932
+ * @param {string} investmentId UUID of the investment
933
+ * @param {string} optionId UUID of the option
934
+ * @param {string} valueFrameworkId UUID of the value framework
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ */
938
+ getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
939
+ return __awaiter(this, void 0, void 0, function* () {
940
+ var _a, _b, _c;
941
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
942
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
943
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
944
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
945
+ });
946
+ },
888
947
  /**
889
948
  * Retrieve a paginated list of all options for a specific investment.
890
949
  * @summary List options for this investment
@@ -1122,6 +1181,18 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
1122
1181
  getOptionForInvestment(optionId, investmentId, options) {
1123
1182
  return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
1124
1183
  },
1184
+ /**
1185
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1186
+ * @summary Get the kpis for a given option inside a value framework
1187
+ * @param {string} investmentId UUID of the investment
1188
+ * @param {string} optionId UUID of the option
1189
+ * @param {string} valueFrameworkId UUID of the value framework
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1194
+ return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
1195
+ },
1125
1196
  /**
1126
1197
  * Retrieve a paginated list of all options for a specific investment.
1127
1198
  * @summary List options for this investment
@@ -1321,6 +1392,18 @@ class InvestmentApi extends base_1.BaseAPI {
1321
1392
  getOptionForInvestment(optionId, investmentId, options) {
1322
1393
  return (0, exports.InvestmentApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
1323
1394
  }
1395
+ /**
1396
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
1397
+ * @summary Get the kpis for a given option inside a value framework
1398
+ * @param {string} investmentId UUID of the investment
1399
+ * @param {string} optionId UUID of the option
1400
+ * @param {string} valueFrameworkId UUID of the value framework
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
1405
+ return (0, exports.InvestmentApiFp)(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1406
+ }
1324
1407
  /**
1325
1408
  * Retrieve a paginated list of all options for a specific investment.
1326
1409
  * @summary List options for this investment
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from '../base';
15
15
  import type { ImpactAPIResponse } from '../models';
16
16
  import type { ImpactCreate } from '../models';
17
17
  import type { ImpactUpdate } from '../models';
18
+ import type { OptionChartKPIsYearly } from '../models';
18
19
  import type { OptionCreate } from '../models';
19
20
  import type { OptionResponse } from '../models';
20
21
  import type { OptionUpdate } from '../models';
@@ -90,6 +91,16 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
90
91
  * @throws {RequiredError}
91
92
  */
92
93
  getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
94
+ /**
95
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
96
+ * @summary Get the kpis for a given option inside a value framework
97
+ * @param {string} investmentId UUID of the investment
98
+ * @param {string} optionId UUID of the option
99
+ * @param {string} valueFrameworkId UUID of the value framework
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ getOptionKpis: (investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
93
104
  /**
94
105
  * Retrieve a paginated list of all options for a specific investment.
95
106
  * @summary List options for this investment
@@ -194,6 +205,16 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
194
205
  * @throws {RequiredError}
195
206
  */
196
207
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
208
+ /**
209
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
210
+ * @summary Get the kpis for a given option inside a value framework
211
+ * @param {string} investmentId UUID of the investment
212
+ * @param {string} optionId UUID of the option
213
+ * @param {string} valueFrameworkId UUID of the value framework
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ */
217
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>>;
197
218
  /**
198
219
  * Retrieve a paginated list of all options for a specific investment.
199
220
  * @summary List options for this investment
@@ -298,6 +319,16 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
298
319
  * @throws {RequiredError}
299
320
  */
300
321
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
322
+ /**
323
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
324
+ * @summary Get the kpis for a given option inside a value framework
325
+ * @param {string} investmentId UUID of the investment
326
+ * @param {string} optionId UUID of the option
327
+ * @param {string} valueFrameworkId UUID of the value framework
328
+ * @param {*} [options] Override http request option.
329
+ * @throws {RequiredError}
330
+ */
331
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>>;
301
332
  /**
302
333
  * Retrieve a paginated list of all options for a specific investment.
303
334
  * @summary List options for this investment
@@ -402,6 +433,16 @@ export declare class OptionApi extends BaseAPI {
402
433
  * @throws {RequiredError}
403
434
  */
404
435
  getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
436
+ /**
437
+ * Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
438
+ * @summary Get the kpis for a given option inside a value framework
439
+ * @param {string} investmentId UUID of the investment
440
+ * @param {string} optionId UUID of the option
441
+ * @param {string} valueFrameworkId UUID of the value framework
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionChartKPIsYearly[], any, {}>>;
405
446
  /**
406
447
  * Retrieve a paginated list of all options for a specific investment.
407
448
  * @summary List options for this investment