@cosmotech/aip-client 0.2.0-dev3 → 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 (70) hide show
  1. package/README.md +12 -2
  2. package/api/favored-option-api.ts +210 -0
  3. package/api/investment-api.ts +244 -0
  4. package/api/option-api.ts +88 -0
  5. package/api.ts +1 -0
  6. package/dist/api/favored-option-api.d.ts +104 -0
  7. package/dist/api/favored-option-api.js +209 -0
  8. package/dist/api/investment-api.d.ts +111 -0
  9. package/dist/api/investment-api.js +229 -0
  10. package/dist/api/option-api.d.ts +41 -0
  11. package/dist/api/option-api.js +83 -0
  12. package/dist/api.d.ts +1 -0
  13. package/dist/api.js +1 -0
  14. package/dist/esm/api/favored-option-api.d.ts +104 -0
  15. package/dist/esm/api/favored-option-api.js +202 -0
  16. package/dist/esm/api/investment-api.d.ts +111 -0
  17. package/dist/esm/api/investment-api.js +229 -0
  18. package/dist/esm/api/option-api.d.ts +41 -0
  19. package/dist/esm/api/option-api.js +83 -0
  20. package/dist/esm/api.d.ts +1 -0
  21. package/dist/esm/api.js +1 -0
  22. package/dist/esm/models/favored-option-request.d.ts +20 -0
  23. package/dist/esm/models/favored-option-request.js +14 -0
  24. package/dist/esm/models/favored-option-response.d.ts +20 -0
  25. package/dist/esm/models/favored-option-response.js +14 -0
  26. package/dist/esm/models/index.d.ts +4 -0
  27. package/dist/esm/models/index.js +4 -0
  28. package/dist/esm/models/investment-response.d.ts +1 -0
  29. package/dist/esm/models/option-chart-kpi.d.ts +29 -0
  30. package/dist/esm/models/option-chart-kpi.js +14 -0
  31. package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
  32. package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
  33. package/dist/esm/models/option-create.d.ts +1 -1
  34. package/dist/esm/models/option-response.d.ts +2 -1
  35. package/dist/esm/models/option-update.d.ts +2 -0
  36. package/dist/models/favored-option-request.d.ts +20 -0
  37. package/dist/models/favored-option-request.js +15 -0
  38. package/dist/models/favored-option-response.d.ts +20 -0
  39. package/dist/models/favored-option-response.js +15 -0
  40. package/dist/models/index.d.ts +4 -0
  41. package/dist/models/index.js +4 -0
  42. package/dist/models/investment-response.d.ts +1 -0
  43. package/dist/models/option-chart-kpi.d.ts +29 -0
  44. package/dist/models/option-chart-kpi.js +15 -0
  45. package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
  46. package/dist/models/option-chart-kpis-yearly.js +15 -0
  47. package/dist/models/option-create.d.ts +1 -1
  48. package/dist/models/option-response.d.ts +2 -1
  49. package/dist/models/option-update.d.ts +2 -0
  50. package/docs/FavoredOptionApi.md +119 -0
  51. package/docs/FavoredOptionRequest.md +21 -0
  52. package/docs/FavoredOptionResponse.md +21 -0
  53. package/docs/InvestmentApi.md +171 -0
  54. package/docs/InvestmentResponse.md +2 -0
  55. package/docs/OptionApi.md +59 -0
  56. package/docs/OptionChartKPI.md +27 -0
  57. package/docs/OptionChartKPIsYearly.md +25 -0
  58. package/docs/OptionCreate.md +1 -1
  59. package/docs/OptionResponse.md +4 -2
  60. package/docs/OptionUpdate.md +4 -0
  61. package/models/favored-option-request.ts +26 -0
  62. package/models/favored-option-response.ts +26 -0
  63. package/models/index.ts +4 -0
  64. package/models/investment-response.ts +1 -0
  65. package/models/option-chart-kpi.ts +35 -0
  66. package/models/option-chart-kpis-yearly.ts +37 -0
  67. package/models/option-create.ts +1 -1
  68. package/models/option-response.ts +2 -1
  69. package/models/option-update.ts +2 -0
  70. package/package.json +1 -1
@@ -0,0 +1,202 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Asset Investment Planning
5
+ * API for Asset Investment Planning
6
+ *
7
+ * The version of the OpenAPI document: 0.2.0-dev3
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import globalAxios from 'axios';
24
+ // Some imports not used depending on template conditions
25
+ // @ts-ignore
26
+ import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
27
+ // @ts-ignore
28
+ import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
29
+ /**
30
+ * FavoredOptionApi - axios parameter creator
31
+ */
32
+ export const FavoredOptionApiAxiosParamCreator = function (configuration) {
33
+ return {
34
+ /**
35
+ * Get the preferred option for an investment.
36
+ * @summary Get the preferred option for an investment
37
+ * @param {string} investmentId UUID of the investment
38
+ * @param {*} [options] Override http request option.
39
+ * @throws {RequiredError}
40
+ */
41
+ getFavoredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
42
+ // verify required parameter 'investmentId' is not null or undefined
43
+ assertParamExists('getFavoredOption', 'investmentId', investmentId);
44
+ const localVarPath = `/investment/{investment_id}/favored_option`
45
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
46
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
+ let baseOptions;
49
+ if (configuration) {
50
+ baseOptions = configuration.baseOptions;
51
+ }
52
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
53
+ const localVarHeaderParameter = {};
54
+ const localVarQueryParameter = {};
55
+ // authentication OAuth2AuthorizationCodeBearer required
56
+ // oauth required
57
+ yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
58
+ localVarHeaderParameter['Accept'] = 'application/json';
59
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
60
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
62
+ return {
63
+ url: toPathString(localVarUrlObj),
64
+ options: localVarRequestOptions,
65
+ };
66
+ }),
67
+ /**
68
+ * Set the preferred option for an investment.
69
+ * @summary Set the preferred option for an investment
70
+ * @param {string} investmentId UUID of the investment
71
+ * @param {FavoredOptionRequest} favoredOptionRequest
72
+ * @param {*} [options] Override http request option.
73
+ * @throws {RequiredError}
74
+ */
75
+ setFavoredOption: (investmentId_1, favoredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, favoredOptionRequest_1, ...args_1], void 0, function* (investmentId, favoredOptionRequest, options = {}) {
76
+ // verify required parameter 'investmentId' is not null or undefined
77
+ assertParamExists('setFavoredOption', 'investmentId', investmentId);
78
+ // verify required parameter 'favoredOptionRequest' is not null or undefined
79
+ assertParamExists('setFavoredOption', 'favoredOptionRequest', favoredOptionRequest);
80
+ const localVarPath = `/investment/{investment_id}/favored_option`
81
+ .replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
89
+ const localVarHeaderParameter = {};
90
+ const localVarQueryParameter = {};
91
+ // authentication OAuth2AuthorizationCodeBearer required
92
+ // oauth required
93
+ yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
94
+ localVarHeaderParameter['Content-Type'] = 'application/json';
95
+ localVarHeaderParameter['Accept'] = 'application/json';
96
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
97
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
98
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
99
+ localVarRequestOptions.data = serializeDataIfNeeded(favoredOptionRequest, localVarRequestOptions, configuration);
100
+ return {
101
+ url: toPathString(localVarUrlObj),
102
+ options: localVarRequestOptions,
103
+ };
104
+ }),
105
+ };
106
+ };
107
+ /**
108
+ * FavoredOptionApi - functional programming interface
109
+ */
110
+ export const FavoredOptionApiFp = function (configuration) {
111
+ const localVarAxiosParamCreator = FavoredOptionApiAxiosParamCreator(configuration);
112
+ return {
113
+ /**
114
+ * Get the preferred option for an investment.
115
+ * @summary Get the preferred option for an investment
116
+ * @param {string} investmentId UUID of the investment
117
+ * @param {*} [options] Override http request option.
118
+ * @throws {RequiredError}
119
+ */
120
+ getFavoredOption(investmentId, options) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ var _a, _b, _c;
123
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoredOption(investmentId, options);
124
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
125
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FavoredOptionApi.getFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
126
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
127
+ });
128
+ },
129
+ /**
130
+ * Set the preferred option for an investment.
131
+ * @summary Set the preferred option for an investment
132
+ * @param {string} investmentId UUID of the investment
133
+ * @param {FavoredOptionRequest} favoredOptionRequest
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ setFavoredOption(investmentId, favoredOptionRequest, options) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ var _a, _b, _c;
140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.setFavoredOption(investmentId, favoredOptionRequest, options);
141
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
142
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FavoredOptionApi.setFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
143
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
144
+ });
145
+ },
146
+ };
147
+ };
148
+ /**
149
+ * FavoredOptionApi - factory interface
150
+ */
151
+ export const FavoredOptionApiFactory = function (configuration, basePath, axios) {
152
+ const localVarFp = FavoredOptionApiFp(configuration);
153
+ return {
154
+ /**
155
+ * Get the preferred option for an investment.
156
+ * @summary Get the preferred option for an investment
157
+ * @param {string} investmentId UUID of the investment
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ */
161
+ getFavoredOption(investmentId, options) {
162
+ return localVarFp.getFavoredOption(investmentId, options).then((request) => request(axios, basePath));
163
+ },
164
+ /**
165
+ * Set the preferred option for an investment.
166
+ * @summary Set the preferred option for an investment
167
+ * @param {string} investmentId UUID of the investment
168
+ * @param {FavoredOptionRequest} favoredOptionRequest
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ setFavoredOption(investmentId, favoredOptionRequest, options) {
173
+ return localVarFp.setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(axios, basePath));
174
+ },
175
+ };
176
+ };
177
+ /**
178
+ * FavoredOptionApi - object-oriented interface
179
+ */
180
+ export class FavoredOptionApi extends BaseAPI {
181
+ /**
182
+ * Get the preferred option for an investment.
183
+ * @summary Get the preferred option for an investment
184
+ * @param {string} investmentId UUID of the investment
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ getFavoredOption(investmentId, options) {
189
+ return FavoredOptionApiFp(this.configuration).getFavoredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
190
+ }
191
+ /**
192
+ * Set the preferred option for an investment.
193
+ * @summary Set the preferred option for an investment
194
+ * @param {string} investmentId UUID of the investment
195
+ * @param {FavoredOptionRequest} favoredOptionRequest
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ setFavoredOption(investmentId, favoredOptionRequest, options) {
200
+ return FavoredOptionApiFp(this.configuration).setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(this.axios, this.basePath));
201
+ }
202
+ }
@@ -12,12 +12,15 @@
12
12
  import type { Configuration } from '../configuration';
13
13
  import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
14
  import { type RequestArgs, BaseAPI } from '../base';
15
+ import type { FavoredOptionRequest } from '../models';
16
+ import type { FavoredOptionResponse } from '../models';
15
17
  import type { ImpactAPIResponse } from '../models';
16
18
  import type { ImpactCreate } from '../models';
17
19
  import type { ImpactUpdate } from '../models';
18
20
  import type { InvestmentCreate } from '../models';
19
21
  import type { InvestmentResponse } from '../models';
20
22
  import type { InvestmentUpdate } from '../models';
23
+ import type { OptionChartKPIsYearly } from '../models';
21
24
  import type { OptionCreate } from '../models';
22
25
  import type { OptionResponse } from '../models';
23
26
  import type { OptionUpdate } from '../models';
@@ -71,6 +74,14 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
71
74
  * @throws {RequiredError}
72
75
  */
73
76
  deleteOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
77
+ /**
78
+ * Get the preferred option for an investment.
79
+ * @summary Get the preferred option for an investment
80
+ * @param {string} investmentId UUID of the investment
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ */
84
+ getFavoredOption: (investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
74
85
  /**
75
86
  * Retrieve a specific impact for the option.
76
87
  * @summary Get an impact for this option
@@ -118,6 +129,16 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
118
129
  * @throws {RequiredError}
119
130
  */
120
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>;
121
142
  /**
122
143
  * Retrieve a paginated list of all options for a specific investment.
123
144
  * @summary List options for this investment
@@ -166,6 +187,15 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
166
187
  * @throws {RequiredError}
167
188
  */
168
189
  postInvestment: (investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
190
+ /**
191
+ * Set the preferred option for an investment.
192
+ * @summary Set the preferred option for an investment
193
+ * @param {string} investmentId UUID of the investment
194
+ * @param {FavoredOptionRequest} favoredOptionRequest
195
+ * @param {*} [options] Override http request option.
196
+ * @throws {RequiredError}
197
+ */
198
+ setFavoredOption: (investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
169
199
  };
170
200
  /**
171
201
  * InvestmentApi - functional programming interface
@@ -217,6 +247,14 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
217
247
  * @throws {RequiredError}
218
248
  */
219
249
  deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
250
+ /**
251
+ * Get the preferred option for an investment.
252
+ * @summary Get the preferred option for an investment
253
+ * @param {string} investmentId UUID of the investment
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>>;
220
258
  /**
221
259
  * Retrieve a specific impact for the option.
222
260
  * @summary Get an impact for this option
@@ -264,6 +302,16 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
264
302
  * @throws {RequiredError}
265
303
  */
266
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>>>;
267
315
  /**
268
316
  * Retrieve a paginated list of all options for a specific investment.
269
317
  * @summary List options for this investment
@@ -312,6 +360,15 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
312
360
  * @throws {RequiredError}
313
361
  */
314
362
  postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvestmentResponse>>;
363
+ /**
364
+ * Set the preferred option for an investment.
365
+ * @summary Set the preferred option for an investment
366
+ * @param {string} investmentId UUID of the investment
367
+ * @param {FavoredOptionRequest} favoredOptionRequest
368
+ * @param {*} [options] Override http request option.
369
+ * @throws {RequiredError}
370
+ */
371
+ setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>>;
315
372
  };
316
373
  /**
317
374
  * InvestmentApi - factory interface
@@ -363,6 +420,14 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
363
420
  * @throws {RequiredError}
364
421
  */
365
422
  deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
423
+ /**
424
+ * Get the preferred option for an investment.
425
+ * @summary Get the preferred option for an investment
426
+ * @param {string} investmentId UUID of the investment
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse>;
366
431
  /**
367
432
  * Retrieve a specific impact for the option.
368
433
  * @summary Get an impact for this option
@@ -410,6 +475,16 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
410
475
  * @throws {RequiredError}
411
476
  */
412
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>>;
413
488
  /**
414
489
  * Retrieve a paginated list of all options for a specific investment.
415
490
  * @summary List options for this investment
@@ -458,6 +533,15 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
458
533
  * @throws {RequiredError}
459
534
  */
460
535
  postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig): AxiosPromise<InvestmentResponse>;
536
+ /**
537
+ * Set the preferred option for an investment.
538
+ * @summary Set the preferred option for an investment
539
+ * @param {string} investmentId UUID of the investment
540
+ * @param {FavoredOptionRequest} favoredOptionRequest
541
+ * @param {*} [options] Override http request option.
542
+ * @throws {RequiredError}
543
+ */
544
+ setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse>;
461
545
  };
462
546
  /**
463
547
  * InvestmentApi - object-oriented interface
@@ -509,6 +593,14 @@ export declare class InvestmentApi extends BaseAPI {
509
593
  * @throws {RequiredError}
510
594
  */
511
595
  deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
596
+ /**
597
+ * Get the preferred option for an investment.
598
+ * @summary Get the preferred option for an investment
599
+ * @param {string} investmentId UUID of the investment
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoredOptionResponse, any, {}>>;
512
604
  /**
513
605
  * Retrieve a specific impact for the option.
514
606
  * @summary Get an impact for this option
@@ -556,6 +648,16 @@ export declare class InvestmentApi extends BaseAPI {
556
648
  * @throws {RequiredError}
557
649
  */
558
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, {}>>;
559
661
  /**
560
662
  * Retrieve a paginated list of all options for a specific investment.
561
663
  * @summary List options for this investment
@@ -604,4 +706,13 @@ export declare class InvestmentApi extends BaseAPI {
604
706
  * @throws {RequiredError}
605
707
  */
606
708
  postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<InvestmentResponse, any, {}>>;
709
+ /**
710
+ * Set the preferred option for an investment.
711
+ * @summary Set the preferred option for an investment
712
+ * @param {string} investmentId UUID of the investment
713
+ * @param {FavoredOptionRequest} favoredOptionRequest
714
+ * @param {*} [options] Override http request option.
715
+ * @throws {RequiredError}
716
+ */
717
+ setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoredOptionResponse, any, {}>>;
607
718
  }