@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.
- package/README.md +12 -2
- package/api/favored-option-api.ts +210 -0
- package/api/investment-api.ts +244 -0
- package/api/option-api.ts +88 -0
- package/api.ts +1 -0
- package/dist/api/favored-option-api.d.ts +104 -0
- package/dist/api/favored-option-api.js +209 -0
- package/dist/api/investment-api.d.ts +111 -0
- package/dist/api/investment-api.js +229 -0
- package/dist/api/option-api.d.ts +41 -0
- package/dist/api/option-api.js +83 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/esm/api/favored-option-api.d.ts +104 -0
- package/dist/esm/api/favored-option-api.js +202 -0
- package/dist/esm/api/investment-api.d.ts +111 -0
- package/dist/esm/api/investment-api.js +229 -0
- package/dist/esm/api/option-api.d.ts +41 -0
- package/dist/esm/api/option-api.js +83 -0
- package/dist/esm/api.d.ts +1 -0
- package/dist/esm/api.js +1 -0
- package/dist/esm/models/favored-option-request.d.ts +20 -0
- package/dist/esm/models/favored-option-request.js +14 -0
- package/dist/esm/models/favored-option-response.d.ts +20 -0
- package/dist/esm/models/favored-option-response.js +14 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/esm/models/investment-response.d.ts +1 -0
- package/dist/esm/models/option-chart-kpi.d.ts +29 -0
- package/dist/esm/models/option-chart-kpi.js +14 -0
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-response.d.ts +2 -1
- package/dist/esm/models/option-update.d.ts +2 -0
- package/dist/models/favored-option-request.d.ts +20 -0
- package/dist/models/favored-option-request.js +15 -0
- package/dist/models/favored-option-response.d.ts +20 -0
- package/dist/models/favored-option-response.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/investment-response.d.ts +1 -0
- package/dist/models/option-chart-kpi.d.ts +29 -0
- package/dist/models/option-chart-kpi.js +15 -0
- package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/models/option-chart-kpis-yearly.js +15 -0
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-response.d.ts +2 -1
- package/dist/models/option-update.d.ts +2 -0
- package/docs/FavoredOptionApi.md +119 -0
- package/docs/FavoredOptionRequest.md +21 -0
- package/docs/FavoredOptionResponse.md +21 -0
- package/docs/InvestmentApi.md +171 -0
- package/docs/InvestmentResponse.md +2 -0
- package/docs/OptionApi.md +59 -0
- package/docs/OptionChartKPI.md +27 -0
- package/docs/OptionChartKPIsYearly.md +25 -0
- package/docs/OptionCreate.md +1 -1
- package/docs/OptionResponse.md +4 -2
- package/docs/OptionUpdate.md +4 -0
- package/models/favored-option-request.ts +26 -0
- package/models/favored-option-response.ts +26 -0
- package/models/index.ts +4 -0
- package/models/investment-response.ts +1 -0
- package/models/option-chart-kpi.ts +35 -0
- package/models/option-chart-kpis-yearly.ts +37 -0
- package/models/option-create.ts +1 -1
- package/models/option-response.ts +2 -1
- package/models/option-update.ts +2 -0
- package/package.json +1 -1
|
@@ -222,6 +222,39 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
222
222
|
options: localVarRequestOptions,
|
|
223
223
|
};
|
|
224
224
|
}),
|
|
225
|
+
/**
|
|
226
|
+
* Get the preferred option for an investment.
|
|
227
|
+
* @summary Get the preferred option for an investment
|
|
228
|
+
* @param {string} investmentId UUID of the investment
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
getFavoredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
|
|
233
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
234
|
+
(0, common_1.assertParamExists)('getFavoredOption', 'investmentId', investmentId);
|
|
235
|
+
const localVarPath = `/investment/{investment_id}/favored_option`
|
|
236
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
237
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
238
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
239
|
+
let baseOptions;
|
|
240
|
+
if (configuration) {
|
|
241
|
+
baseOptions = configuration.baseOptions;
|
|
242
|
+
}
|
|
243
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
244
|
+
const localVarHeaderParameter = {};
|
|
245
|
+
const localVarQueryParameter = {};
|
|
246
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
247
|
+
// oauth required
|
|
248
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
249
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
250
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
253
|
+
return {
|
|
254
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
255
|
+
options: localVarRequestOptions,
|
|
256
|
+
};
|
|
257
|
+
}),
|
|
225
258
|
/**
|
|
226
259
|
* Retrieve a specific impact for the option.
|
|
227
260
|
* @summary Get an impact for this option
|
|
@@ -415,6 +448,47 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
415
448
|
options: localVarRequestOptions,
|
|
416
449
|
};
|
|
417
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
|
+
}),
|
|
418
492
|
/**
|
|
419
493
|
* Retrieve a paginated list of all options for a specific investment.
|
|
420
494
|
* @summary List options for this investment
|
|
@@ -616,6 +690,44 @@ const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
616
690
|
options: localVarRequestOptions,
|
|
617
691
|
};
|
|
618
692
|
}),
|
|
693
|
+
/**
|
|
694
|
+
* Set the preferred option for an investment.
|
|
695
|
+
* @summary Set the preferred option for an investment
|
|
696
|
+
* @param {string} investmentId UUID of the investment
|
|
697
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
setFavoredOption: (investmentId_1, favoredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, favoredOptionRequest_1, ...args_1], void 0, function* (investmentId, favoredOptionRequest, options = {}) {
|
|
702
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
703
|
+
(0, common_1.assertParamExists)('setFavoredOption', 'investmentId', investmentId);
|
|
704
|
+
// verify required parameter 'favoredOptionRequest' is not null or undefined
|
|
705
|
+
(0, common_1.assertParamExists)('setFavoredOption', 'favoredOptionRequest', favoredOptionRequest);
|
|
706
|
+
const localVarPath = `/investment/{investment_id}/favored_option`
|
|
707
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
709
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
710
|
+
let baseOptions;
|
|
711
|
+
if (configuration) {
|
|
712
|
+
baseOptions = configuration.baseOptions;
|
|
713
|
+
}
|
|
714
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
715
|
+
const localVarHeaderParameter = {};
|
|
716
|
+
const localVarQueryParameter = {};
|
|
717
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
718
|
+
// oauth required
|
|
719
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
720
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
721
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
722
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
723
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
724
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
725
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(favoredOptionRequest, localVarRequestOptions, configuration);
|
|
726
|
+
return {
|
|
727
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
728
|
+
options: localVarRequestOptions,
|
|
729
|
+
};
|
|
730
|
+
}),
|
|
619
731
|
};
|
|
620
732
|
};
|
|
621
733
|
exports.InvestmentApiAxiosParamCreator = InvestmentApiAxiosParamCreator;
|
|
@@ -711,6 +823,22 @@ const InvestmentApiFp = function (configuration) {
|
|
|
711
823
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
712
824
|
});
|
|
713
825
|
},
|
|
826
|
+
/**
|
|
827
|
+
* Get the preferred option for an investment.
|
|
828
|
+
* @summary Get the preferred option for an investment
|
|
829
|
+
* @param {string} investmentId UUID of the investment
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
getFavoredOption(investmentId, options) {
|
|
834
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
835
|
+
var _a, _b, _c;
|
|
836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoredOption(investmentId, options);
|
|
837
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
838
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['InvestmentApi.getFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
839
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
840
|
+
});
|
|
841
|
+
},
|
|
714
842
|
/**
|
|
715
843
|
* Retrieve a specific impact for the option.
|
|
716
844
|
* @summary Get an impact for this option
|
|
@@ -798,6 +926,24 @@ const InvestmentApiFp = function (configuration) {
|
|
|
798
926
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
799
927
|
});
|
|
800
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
|
+
},
|
|
801
947
|
/**
|
|
802
948
|
* Retrieve a paginated list of all options for a specific investment.
|
|
803
949
|
* @summary List options for this investment
|
|
@@ -886,6 +1032,23 @@ const InvestmentApiFp = function (configuration) {
|
|
|
886
1032
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
887
1033
|
});
|
|
888
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Set the preferred option for an investment.
|
|
1037
|
+
* @summary Set the preferred option for an investment
|
|
1038
|
+
* @param {string} investmentId UUID of the investment
|
|
1039
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
setFavoredOption(investmentId, favoredOptionRequest, options) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
+
var _a, _b, _c;
|
|
1046
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setFavoredOption(investmentId, favoredOptionRequest, 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 = base_1.operationServerMap['InvestmentApi.setFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1049
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1050
|
+
});
|
|
1051
|
+
},
|
|
889
1052
|
};
|
|
890
1053
|
};
|
|
891
1054
|
exports.InvestmentApiFp = InvestmentApiFp;
|
|
@@ -951,6 +1114,16 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
951
1114
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
952
1115
|
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
953
1116
|
},
|
|
1117
|
+
/**
|
|
1118
|
+
* Get the preferred option for an investment.
|
|
1119
|
+
* @summary Get the preferred option for an investment
|
|
1120
|
+
* @param {string} investmentId UUID of the investment
|
|
1121
|
+
* @param {*} [options] Override http request option.
|
|
1122
|
+
* @throws {RequiredError}
|
|
1123
|
+
*/
|
|
1124
|
+
getFavoredOption(investmentId, options) {
|
|
1125
|
+
return localVarFp.getFavoredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
1126
|
+
},
|
|
954
1127
|
/**
|
|
955
1128
|
* Retrieve a specific impact for the option.
|
|
956
1129
|
* @summary Get an impact for this option
|
|
@@ -1008,6 +1181,18 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1008
1181
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
1009
1182
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1010
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
|
+
},
|
|
1011
1196
|
/**
|
|
1012
1197
|
* Retrieve a paginated list of all options for a specific investment.
|
|
1013
1198
|
* @summary List options for this investment
|
|
@@ -1066,6 +1251,17 @@ const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1066
1251
|
postInvestment(investmentCreate, options) {
|
|
1067
1252
|
return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
|
|
1068
1253
|
},
|
|
1254
|
+
/**
|
|
1255
|
+
* Set the preferred option for an investment.
|
|
1256
|
+
* @summary Set the preferred option for an investment
|
|
1257
|
+
* @param {string} investmentId UUID of the investment
|
|
1258
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
1259
|
+
* @param {*} [options] Override http request option.
|
|
1260
|
+
* @throws {RequiredError}
|
|
1261
|
+
*/
|
|
1262
|
+
setFavoredOption(investmentId, favoredOptionRequest, options) {
|
|
1263
|
+
return localVarFp.setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(axios, basePath));
|
|
1264
|
+
},
|
|
1069
1265
|
};
|
|
1070
1266
|
};
|
|
1071
1267
|
exports.InvestmentApiFactory = InvestmentApiFactory;
|
|
@@ -1129,6 +1325,16 @@ class InvestmentApi extends base_1.BaseAPI {
|
|
|
1129
1325
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
1130
1326
|
return (0, exports.InvestmentApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1131
1327
|
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Get the preferred option for an investment.
|
|
1330
|
+
* @summary Get the preferred option for an investment
|
|
1331
|
+
* @param {string} investmentId UUID of the investment
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
*/
|
|
1335
|
+
getFavoredOption(investmentId, options) {
|
|
1336
|
+
return (0, exports.InvestmentApiFp)(this.configuration).getFavoredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1337
|
+
}
|
|
1132
1338
|
/**
|
|
1133
1339
|
* Retrieve a specific impact for the option.
|
|
1134
1340
|
* @summary Get an impact for this option
|
|
@@ -1186,6 +1392,18 @@ class InvestmentApi extends base_1.BaseAPI {
|
|
|
1186
1392
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
1187
1393
|
return (0, exports.InvestmentApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1188
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
|
+
}
|
|
1189
1407
|
/**
|
|
1190
1408
|
* Retrieve a paginated list of all options for a specific investment.
|
|
1191
1409
|
* @summary List options for this investment
|
|
@@ -1244,5 +1462,16 @@ class InvestmentApi extends base_1.BaseAPI {
|
|
|
1244
1462
|
postInvestment(investmentCreate, options) {
|
|
1245
1463
|
return (0, exports.InvestmentApiFp)(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1246
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Set the preferred option for an investment.
|
|
1467
|
+
* @summary Set the preferred option for an investment
|
|
1468
|
+
* @param {string} investmentId UUID of the investment
|
|
1469
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
1470
|
+
* @param {*} [options] Override http request option.
|
|
1471
|
+
* @throws {RequiredError}
|
|
1472
|
+
*/
|
|
1473
|
+
setFavoredOption(investmentId, favoredOptionRequest, options) {
|
|
1474
|
+
return (0, exports.InvestmentApiFp)(this.configuration).setFavoredOption(investmentId, favoredOptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1475
|
+
}
|
|
1247
1476
|
}
|
|
1248
1477
|
exports.InvestmentApi = InvestmentApi;
|
package/dist/api/option-api.d.ts
CHANGED
|
@@ -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
|
package/dist/api/option-api.js
CHANGED
|
@@ -313,6 +313,47 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
313
313
|
options: localVarRequestOptions,
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
|
+
/**
|
|
317
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
318
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
319
|
+
* @param {string} investmentId UUID of the investment
|
|
320
|
+
* @param {string} optionId UUID of the option
|
|
321
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
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 = {}) {
|
|
326
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
|
|
328
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
|
|
330
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
332
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
333
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
334
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
335
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
let baseOptions;
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
}
|
|
342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
343
|
+
const localVarHeaderParameter = {};
|
|
344
|
+
const localVarQueryParameter = {};
|
|
345
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
346
|
+
// oauth required
|
|
347
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
348
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
349
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
351
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
352
|
+
return {
|
|
353
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
};
|
|
356
|
+
}),
|
|
316
357
|
/**
|
|
317
358
|
* Retrieve a paginated list of all options for a specific investment.
|
|
318
359
|
* @summary List options for this investment
|
|
@@ -575,6 +616,24 @@ const OptionApiFp = function (configuration) {
|
|
|
575
616
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
617
|
});
|
|
577
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
621
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
622
|
+
* @param {string} investmentId UUID of the investment
|
|
623
|
+
* @param {string} optionId UUID of the option
|
|
624
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
var _a, _b, _c;
|
|
631
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
|
|
632
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
633
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
634
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
635
|
+
});
|
|
636
|
+
},
|
|
578
637
|
/**
|
|
579
638
|
* Retrieve a paginated list of all options for a specific investment.
|
|
580
639
|
* @summary List options for this investment
|
|
@@ -721,6 +780,18 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
721
780
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
722
781
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
723
782
|
},
|
|
783
|
+
/**
|
|
784
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
785
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
786
|
+
* @param {string} investmentId UUID of the investment
|
|
787
|
+
* @param {string} optionId UUID of the option
|
|
788
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
793
|
+
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
794
|
+
},
|
|
724
795
|
/**
|
|
725
796
|
* Retrieve a paginated list of all options for a specific investment.
|
|
726
797
|
* @summary List options for this investment
|
|
@@ -847,6 +918,18 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
847
918
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
848
919
|
return (0, exports.OptionApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
849
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
923
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
924
|
+
* @param {string} investmentId UUID of the investment
|
|
925
|
+
* @param {string} optionId UUID of the option
|
|
926
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
931
|
+
return (0, exports.OptionApiFp)(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
932
|
+
}
|
|
850
933
|
/**
|
|
851
934
|
* Retrieve a paginated list of all options for a specific investment.
|
|
852
935
|
* @summary List options for this investment
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/default-api"), exports);
|
|
31
|
+
__exportStar(require("./api/favored-option-api"), exports);
|
|
31
32
|
__exportStar(require("./api/impact-api"), exports);
|
|
32
33
|
__exportStar(require("./api/investment-api"), exports);
|
|
33
34
|
__exportStar(require("./api/metric-api"), exports);
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { FavoredOptionRequest } from '../models';
|
|
16
|
+
import type { FavoredOptionResponse } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* FavoredOptionApi - axios parameter creator
|
|
19
|
+
*/
|
|
20
|
+
export declare const FavoredOptionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Get the preferred option for an investment.
|
|
23
|
+
* @summary Get the preferred option for an investment
|
|
24
|
+
* @param {string} investmentId UUID of the investment
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
getFavoredOption: (investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
/**
|
|
30
|
+
* Set the preferred option for an investment.
|
|
31
|
+
* @summary Set the preferred option for an investment
|
|
32
|
+
* @param {string} investmentId UUID of the investment
|
|
33
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
34
|
+
* @param {*} [options] Override http request option.
|
|
35
|
+
* @throws {RequiredError}
|
|
36
|
+
*/
|
|
37
|
+
setFavoredOption: (investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* FavoredOptionApi - functional programming interface
|
|
41
|
+
*/
|
|
42
|
+
export declare const FavoredOptionApiFp: (configuration?: Configuration) => {
|
|
43
|
+
/**
|
|
44
|
+
* Get the preferred option for an investment.
|
|
45
|
+
* @summary Get the preferred option for an investment
|
|
46
|
+
* @param {string} investmentId UUID of the investment
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Set the preferred option for an investment.
|
|
53
|
+
* @summary Set the preferred option for an investment
|
|
54
|
+
* @param {string} investmentId UUID of the investment
|
|
55
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FavoredOptionResponse>>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* FavoredOptionApi - factory interface
|
|
63
|
+
*/
|
|
64
|
+
export declare const FavoredOptionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
65
|
+
/**
|
|
66
|
+
* Get the preferred option for an investment.
|
|
67
|
+
* @summary Get the preferred option for an investment
|
|
68
|
+
* @param {string} investmentId UUID of the investment
|
|
69
|
+
* @param {*} [options] Override http request option.
|
|
70
|
+
* @throws {RequiredError}
|
|
71
|
+
*/
|
|
72
|
+
getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Set the preferred option for an investment.
|
|
75
|
+
* @summary Set the preferred option for an investment
|
|
76
|
+
* @param {string} investmentId UUID of the investment
|
|
77
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<FavoredOptionResponse>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* FavoredOptionApi - object-oriented interface
|
|
85
|
+
*/
|
|
86
|
+
export declare class FavoredOptionApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
* Get the preferred option for an investment.
|
|
89
|
+
* @summary Get the preferred option for an investment
|
|
90
|
+
* @param {string} investmentId UUID of the investment
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getFavoredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoredOptionResponse, any, {}>>;
|
|
95
|
+
/**
|
|
96
|
+
* Set the preferred option for an investment.
|
|
97
|
+
* @summary Set the preferred option for an investment
|
|
98
|
+
* @param {string} investmentId UUID of the investment
|
|
99
|
+
* @param {FavoredOptionRequest} favoredOptionRequest
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
setFavoredOption(investmentId: string, favoredOptionRequest: FavoredOptionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FavoredOptionResponse, any, {}>>;
|
|
104
|
+
}
|