@cosmotech/aip-client 0.2.0-dev5 → 0.2.0-dev7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -8
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +259 -98
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +89 -5
- package/api/{favored-option-api.ts → preferred-option-api.ts} +40 -40
- package/api/value-framework-api.ts +1 -1
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +2 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +1 -1
- package/dist/api/impact-api.js +1 -1
- package/dist/api/investment-api.d.ts +117 -47
- package/dist/api/investment-api.js +240 -91
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -1
- package/dist/api/objective-api.js +1 -1
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +42 -5
- package/dist/api/option-api.js +83 -5
- package/dist/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
- package/dist/api/{favored-option-api.js → preferred-option-api.js} +43 -43
- package/dist/api/value-framework-api.d.ts +1 -1
- package/dist/api/value-framework-api.js +1 -1
- package/dist/api/value-framework-costs-api.d.ts +1 -1
- package/dist/api/value-framework-costs-api.js +1 -1
- package/dist/api/value-framework-weights-api.d.ts +1 -1
- package/dist/api/value-framework-weights-api.js +1 -1
- package/dist/api.d.ts +2 -2
- package/dist/api.js +2 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +1 -1
- package/dist/esm/api/impact-api.js +1 -1
- package/dist/esm/api/investment-api.d.ts +117 -47
- package/dist/esm/api/investment-api.js +240 -91
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -1
- package/dist/esm/api/objective-api.js +1 -1
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +42 -5
- package/dist/esm/api/option-api.js +83 -5
- package/dist/esm/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
- package/dist/esm/api/{favored-option-api.js → preferred-option-api.js} +38 -38
- package/dist/esm/api/value-framework-api.d.ts +1 -1
- package/dist/esm/api/value-framework-api.js +1 -1
- package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
- package/dist/esm/api/value-framework-costs-api.js +1 -1
- package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
- package/dist/esm/api/value-framework-weights-api.js +1 -1
- package/dist/esm/api.d.ts +2 -2
- package/dist/esm/api.js +2 -2
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +1 -1
- package/dist/esm/models/evolution-type.js +1 -1
- package/dist/esm/models/httpvalidation-error.d.ts +1 -1
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +1 -1
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-create.d.ts +1 -1
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -1
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +4 -2
- package/dist/esm/models/index.js +4 -2
- package/dist/esm/models/investment-create.d.ts +1 -1
- package/dist/esm/models/investment-create.js +1 -1
- package/dist/esm/models/investment-overview-response.d.ts +29 -0
- package/dist/esm/models/{favored-option-request.js → investment-overview-response.js} +1 -1
- package/dist/esm/models/investment-response.d.ts +1 -1
- package/dist/esm/models/investment-response.js +1 -1
- package/dist/esm/models/investment-update.d.ts +1 -1
- package/dist/esm/models/investment-update.js +1 -1
- package/dist/esm/models/location-inner.d.ts +1 -1
- package/dist/esm/models/location-inner.js +1 -1
- package/dist/esm/models/measurement-type.d.ts +1 -1
- package/dist/esm/models/measurement-type.js +1 -1
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +1 -1
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +37 -0
- package/dist/esm/models/{favored-option-response.js → option-overview-response.js} +1 -1
- package/dist/esm/models/option-response.d.ts +1 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +1 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
- package/dist/esm/models/preferred-option-request.js +14 -0
- package/dist/esm/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
- package/dist/esm/models/preferred-option-response.js +14 -0
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/evolution-type.d.ts +1 -1
- package/dist/models/evolution-type.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +1 -1
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-create.d.ts +1 -1
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -1
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.js +4 -2
- package/dist/models/investment-create.d.ts +1 -1
- package/dist/models/investment-create.js +1 -1
- package/dist/models/investment-overview-response.d.ts +29 -0
- package/dist/models/{favored-option-request.js → investment-overview-response.js} +1 -1
- package/dist/models/investment-response.d.ts +1 -1
- package/dist/models/investment-response.js +1 -1
- package/dist/models/investment-update.d.ts +1 -1
- package/dist/models/investment-update.js +1 -1
- package/dist/models/location-inner.d.ts +1 -1
- package/dist/models/location-inner.js +1 -1
- package/dist/models/measurement-type.d.ts +1 -1
- package/dist/models/measurement-type.js +1 -1
- package/dist/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +1 -1
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +37 -0
- package/dist/models/{favored-option-response.js → option-overview-response.js} +1 -1
- package/dist/models/option-response.d.ts +1 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +1 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
- package/dist/models/preferred-option-request.js +15 -0
- package/dist/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
- package/dist/models/preferred-option-response.js +15 -0
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/InvestmentApi.md +174 -65
- package/docs/InvestmentOverviewResponse.md +33 -0
- package/docs/OptionApi.md +58 -2
- package/docs/OptionOverviewResponse.md +31 -0
- package/docs/{FavoredOptionApi.md → PreferredOptionApi.md} +19 -19
- package/docs/{FavoredOptionRequest.md → PreferredOptionRequest.md} +3 -3
- package/docs/{FavoredOptionResponse.md → PreferredOptionResponse.md} +4 -4
- package/index.ts +1 -1
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -1
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +4 -2
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +35 -0
- package/models/investment-response.ts +1 -1
- package/models/investment-update.ts +1 -1
- package/models/location-inner.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +1 -1
- package/models/option-overview-response.ts +43 -0
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/{favored-option-request.ts → preferred-option-request.ts} +2 -2
- package/models/{favored-option-response.ts → preferred-option-response.ts} +3 -3
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -219,39 +219,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
219
219
|
options: localVarRequestOptions,
|
|
220
220
|
};
|
|
221
221
|
}),
|
|
222
|
-
/**
|
|
223
|
-
* Get the preferred option for an investment.
|
|
224
|
-
* @summary Get the preferred option for an investment
|
|
225
|
-
* @param {string} investmentId UUID of the investment
|
|
226
|
-
* @param {*} [options] Override http request option.
|
|
227
|
-
* @throws {RequiredError}
|
|
228
|
-
*/
|
|
229
|
-
getFavoredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
|
|
230
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
231
|
-
assertParamExists('getFavoredOption', 'investmentId', investmentId);
|
|
232
|
-
const localVarPath = `/investment/{investment_id}/favored_option`
|
|
233
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
234
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
235
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
236
|
-
let baseOptions;
|
|
237
|
-
if (configuration) {
|
|
238
|
-
baseOptions = configuration.baseOptions;
|
|
239
|
-
}
|
|
240
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
241
|
-
const localVarHeaderParameter = {};
|
|
242
|
-
const localVarQueryParameter = {};
|
|
243
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
244
|
-
// oauth required
|
|
245
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
246
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
247
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
250
|
-
return {
|
|
251
|
-
url: toPathString(localVarUrlObj),
|
|
252
|
-
options: localVarRequestOptions,
|
|
253
|
-
};
|
|
254
|
-
}),
|
|
255
222
|
/**
|
|
256
223
|
* Retrieve a specific impact for the option.
|
|
257
224
|
* @summary Get an impact for this option
|
|
@@ -408,6 +375,41 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
408
375
|
options: localVarRequestOptions,
|
|
409
376
|
};
|
|
410
377
|
}),
|
|
378
|
+
/**
|
|
379
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
380
|
+
* @summary Investment overview table
|
|
381
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
getInvestmentsOverview: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
|
|
386
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
387
|
+
assertParamExists('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId);
|
|
388
|
+
const localVarPath = `/investment/overview`;
|
|
389
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
390
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
391
|
+
let baseOptions;
|
|
392
|
+
if (configuration) {
|
|
393
|
+
baseOptions = configuration.baseOptions;
|
|
394
|
+
}
|
|
395
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
396
|
+
const localVarHeaderParameter = {};
|
|
397
|
+
const localVarQueryParameter = {};
|
|
398
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
399
|
+
// oauth required
|
|
400
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
401
|
+
if (valueFrameworkId !== undefined) {
|
|
402
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
403
|
+
}
|
|
404
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
405
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
406
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
407
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
408
|
+
return {
|
|
409
|
+
url: toPathString(localVarUrlObj),
|
|
410
|
+
options: localVarRequestOptions,
|
|
411
|
+
};
|
|
412
|
+
}),
|
|
411
413
|
/**
|
|
412
414
|
* Retrieve a specific option for the investment.
|
|
413
415
|
* @summary Get an option for this investment
|
|
@@ -446,7 +448,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
446
448
|
};
|
|
447
449
|
}),
|
|
448
450
|
/**
|
|
449
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
451
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
450
452
|
* @summary Get the kpis for a given option inside a value framework
|
|
451
453
|
* @param {string} investmentId UUID of the investment
|
|
452
454
|
* @param {string} optionId UUID of the option
|
|
@@ -527,6 +529,78 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
527
529
|
options: localVarRequestOptions,
|
|
528
530
|
};
|
|
529
531
|
}),
|
|
532
|
+
/**
|
|
533
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
534
|
+
* @summary Option overview table for this investment
|
|
535
|
+
* @param {string} investmentId UUID of the investment
|
|
536
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
|
|
541
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
542
|
+
assertParamExists('getOptionsOverview', 'investmentId', investmentId);
|
|
543
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
544
|
+
assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
|
|
545
|
+
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
546
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
547
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
548
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
549
|
+
let baseOptions;
|
|
550
|
+
if (configuration) {
|
|
551
|
+
baseOptions = configuration.baseOptions;
|
|
552
|
+
}
|
|
553
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
554
|
+
const localVarHeaderParameter = {};
|
|
555
|
+
const localVarQueryParameter = {};
|
|
556
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
557
|
+
// oauth required
|
|
558
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
559
|
+
if (valueFrameworkId !== undefined) {
|
|
560
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
561
|
+
}
|
|
562
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
566
|
+
return {
|
|
567
|
+
url: toPathString(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
}),
|
|
571
|
+
/**
|
|
572
|
+
* Get the preferred option for an investment.
|
|
573
|
+
* @summary Get the preferred option for an investment
|
|
574
|
+
* @param {string} investmentId UUID of the investment
|
|
575
|
+
* @param {*} [options] Override http request option.
|
|
576
|
+
* @throws {RequiredError}
|
|
577
|
+
*/
|
|
578
|
+
getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
|
|
579
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
580
|
+
assertParamExists('getPreferredOption', 'investmentId', investmentId);
|
|
581
|
+
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
582
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
583
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
584
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
585
|
+
let baseOptions;
|
|
586
|
+
if (configuration) {
|
|
587
|
+
baseOptions = configuration.baseOptions;
|
|
588
|
+
}
|
|
589
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
590
|
+
const localVarHeaderParameter = {};
|
|
591
|
+
const localVarQueryParameter = {};
|
|
592
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
593
|
+
// oauth required
|
|
594
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
595
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
596
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
597
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
598
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
599
|
+
return {
|
|
600
|
+
url: toPathString(localVarUrlObj),
|
|
601
|
+
options: localVarRequestOptions,
|
|
602
|
+
};
|
|
603
|
+
}),
|
|
530
604
|
/**
|
|
531
605
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
532
606
|
* @summary Partially update an impact for this option
|
|
@@ -691,16 +765,16 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
691
765
|
* Set the preferred option for an investment.
|
|
692
766
|
* @summary Set the preferred option for an investment
|
|
693
767
|
* @param {string} investmentId UUID of the investment
|
|
694
|
-
* @param {
|
|
768
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
695
769
|
* @param {*} [options] Override http request option.
|
|
696
770
|
* @throws {RequiredError}
|
|
697
771
|
*/
|
|
698
|
-
|
|
772
|
+
setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
|
|
699
773
|
// verify required parameter 'investmentId' is not null or undefined
|
|
700
|
-
assertParamExists('
|
|
701
|
-
// verify required parameter '
|
|
702
|
-
assertParamExists('
|
|
703
|
-
const localVarPath = `/investment/{investment_id}/
|
|
774
|
+
assertParamExists('setPreferredOption', 'investmentId', investmentId);
|
|
775
|
+
// verify required parameter 'preferredOptionRequest' is not null or undefined
|
|
776
|
+
assertParamExists('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
|
|
777
|
+
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
704
778
|
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
705
779
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
706
780
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -719,7 +793,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
719
793
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
720
794
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
721
795
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
722
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
796
|
+
localVarRequestOptions.data = serializeDataIfNeeded(preferredOptionRequest, localVarRequestOptions, configuration);
|
|
723
797
|
return {
|
|
724
798
|
url: toPathString(localVarUrlObj),
|
|
725
799
|
options: localVarRequestOptions,
|
|
@@ -819,22 +893,6 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
819
893
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
820
894
|
});
|
|
821
895
|
},
|
|
822
|
-
/**
|
|
823
|
-
* Get the preferred option for an investment.
|
|
824
|
-
* @summary Get the preferred option for an investment
|
|
825
|
-
* @param {string} investmentId UUID of the investment
|
|
826
|
-
* @param {*} [options] Override http request option.
|
|
827
|
-
* @throws {RequiredError}
|
|
828
|
-
*/
|
|
829
|
-
getFavoredOption(investmentId, options) {
|
|
830
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
831
|
-
var _a, _b, _c;
|
|
832
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getFavoredOption(investmentId, options);
|
|
833
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
834
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getFavoredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
835
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
836
|
-
});
|
|
837
|
-
},
|
|
838
896
|
/**
|
|
839
897
|
* Retrieve a specific impact for the option.
|
|
840
898
|
* @summary Get an impact for this option
|
|
@@ -905,6 +963,22 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
905
963
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
906
964
|
});
|
|
907
965
|
},
|
|
966
|
+
/**
|
|
967
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
968
|
+
* @summary Investment overview table
|
|
969
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
970
|
+
* @param {*} [options] Override http request option.
|
|
971
|
+
* @throws {RequiredError}
|
|
972
|
+
*/
|
|
973
|
+
getInvestmentsOverview(valueFrameworkId, options) {
|
|
974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
+
var _a, _b, _c;
|
|
976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
|
|
977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
978
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
979
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
980
|
+
});
|
|
981
|
+
},
|
|
908
982
|
/**
|
|
909
983
|
* Retrieve a specific option for the investment.
|
|
910
984
|
* @summary Get an option for this investment
|
|
@@ -923,7 +997,7 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
923
997
|
});
|
|
924
998
|
},
|
|
925
999
|
/**
|
|
926
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1000
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
927
1001
|
* @summary Get the kpis for a given option inside a value framework
|
|
928
1002
|
* @param {string} investmentId UUID of the investment
|
|
929
1003
|
* @param {string} optionId UUID of the option
|
|
@@ -958,6 +1032,39 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
958
1032
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
959
1033
|
});
|
|
960
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1037
|
+
* @summary Option overview table for this investment
|
|
1038
|
+
* @param {string} investmentId UUID of the investment
|
|
1039
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1045
|
+
var _a, _b, _c;
|
|
1046
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
|
|
1047
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1048
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1049
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1050
|
+
});
|
|
1051
|
+
},
|
|
1052
|
+
/**
|
|
1053
|
+
* Get the preferred option for an investment.
|
|
1054
|
+
* @summary Get the preferred option for an investment
|
|
1055
|
+
* @param {string} investmentId UUID of the investment
|
|
1056
|
+
* @param {*} [options] Override http request option.
|
|
1057
|
+
* @throws {RequiredError}
|
|
1058
|
+
*/
|
|
1059
|
+
getPreferredOption(investmentId, options) {
|
|
1060
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1061
|
+
var _a, _b, _c;
|
|
1062
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
|
|
1063
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1064
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1065
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1066
|
+
});
|
|
1067
|
+
},
|
|
961
1068
|
/**
|
|
962
1069
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
963
1070
|
* @summary Partially update an impact for this option
|
|
@@ -1032,16 +1139,16 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
1032
1139
|
* Set the preferred option for an investment.
|
|
1033
1140
|
* @summary Set the preferred option for an investment
|
|
1034
1141
|
* @param {string} investmentId UUID of the investment
|
|
1035
|
-
* @param {
|
|
1142
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1036
1143
|
* @param {*} [options] Override http request option.
|
|
1037
1144
|
* @throws {RequiredError}
|
|
1038
1145
|
*/
|
|
1039
|
-
|
|
1146
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1040
1147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
1148
|
var _a, _b, _c;
|
|
1042
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
1149
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
|
|
1043
1150
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1044
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
1151
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.setPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1045
1152
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1046
1153
|
});
|
|
1047
1154
|
},
|
|
@@ -1109,16 +1216,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1109
1216
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
1110
1217
|
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1111
1218
|
},
|
|
1112
|
-
/**
|
|
1113
|
-
* Get the preferred option for an investment.
|
|
1114
|
-
* @summary Get the preferred option for an investment
|
|
1115
|
-
* @param {string} investmentId UUID of the investment
|
|
1116
|
-
* @param {*} [options] Override http request option.
|
|
1117
|
-
* @throws {RequiredError}
|
|
1118
|
-
*/
|
|
1119
|
-
getFavoredOption(investmentId, options) {
|
|
1120
|
-
return localVarFp.getFavoredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
1121
|
-
},
|
|
1122
1219
|
/**
|
|
1123
1220
|
* Retrieve a specific impact for the option.
|
|
1124
1221
|
* @summary Get an impact for this option
|
|
@@ -1165,6 +1262,16 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1165
1262
|
getInvestments(offset, limit, options) {
|
|
1166
1263
|
return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
|
|
1167
1264
|
},
|
|
1265
|
+
/**
|
|
1266
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
1267
|
+
* @summary Investment overview table
|
|
1268
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1269
|
+
* @param {*} [options] Override http request option.
|
|
1270
|
+
* @throws {RequiredError}
|
|
1271
|
+
*/
|
|
1272
|
+
getInvestmentsOverview(valueFrameworkId, options) {
|
|
1273
|
+
return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1274
|
+
},
|
|
1168
1275
|
/**
|
|
1169
1276
|
* Retrieve a specific option for the investment.
|
|
1170
1277
|
* @summary Get an option for this investment
|
|
@@ -1177,7 +1284,7 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1177
1284
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1178
1285
|
},
|
|
1179
1286
|
/**
|
|
1180
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1287
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
1181
1288
|
* @summary Get the kpis for a given option inside a value framework
|
|
1182
1289
|
* @param {string} investmentId UUID of the investment
|
|
1183
1290
|
* @param {string} optionId UUID of the option
|
|
@@ -1200,6 +1307,27 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1200
1307
|
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
1201
1308
|
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1202
1309
|
},
|
|
1310
|
+
/**
|
|
1311
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1312
|
+
* @summary Option overview table for this investment
|
|
1313
|
+
* @param {string} investmentId UUID of the investment
|
|
1314
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1315
|
+
* @param {*} [options] Override http request option.
|
|
1316
|
+
* @throws {RequiredError}
|
|
1317
|
+
*/
|
|
1318
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1319
|
+
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1320
|
+
},
|
|
1321
|
+
/**
|
|
1322
|
+
* Get the preferred option for an investment.
|
|
1323
|
+
* @summary Get the preferred option for an investment
|
|
1324
|
+
* @param {string} investmentId UUID of the investment
|
|
1325
|
+
* @param {*} [options] Override http request option.
|
|
1326
|
+
* @throws {RequiredError}
|
|
1327
|
+
*/
|
|
1328
|
+
getPreferredOption(investmentId, options) {
|
|
1329
|
+
return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
1330
|
+
},
|
|
1203
1331
|
/**
|
|
1204
1332
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1205
1333
|
* @summary Partially update an impact for this option
|
|
@@ -1250,12 +1378,12 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1250
1378
|
* Set the preferred option for an investment.
|
|
1251
1379
|
* @summary Set the preferred option for an investment
|
|
1252
1380
|
* @param {string} investmentId UUID of the investment
|
|
1253
|
-
* @param {
|
|
1381
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1254
1382
|
* @param {*} [options] Override http request option.
|
|
1255
1383
|
* @throws {RequiredError}
|
|
1256
1384
|
*/
|
|
1257
|
-
|
|
1258
|
-
return localVarFp.
|
|
1385
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1386
|
+
return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
|
|
1259
1387
|
},
|
|
1260
1388
|
};
|
|
1261
1389
|
};
|
|
@@ -1319,16 +1447,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1319
1447
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
1320
1448
|
return InvestmentApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1321
1449
|
}
|
|
1322
|
-
/**
|
|
1323
|
-
* Get the preferred option for an investment.
|
|
1324
|
-
* @summary Get the preferred option for an investment
|
|
1325
|
-
* @param {string} investmentId UUID of the investment
|
|
1326
|
-
* @param {*} [options] Override http request option.
|
|
1327
|
-
* @throws {RequiredError}
|
|
1328
|
-
*/
|
|
1329
|
-
getFavoredOption(investmentId, options) {
|
|
1330
|
-
return InvestmentApiFp(this.configuration).getFavoredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1331
|
-
}
|
|
1332
1450
|
/**
|
|
1333
1451
|
* Retrieve a specific impact for the option.
|
|
1334
1452
|
* @summary Get an impact for this option
|
|
@@ -1375,6 +1493,16 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1375
1493
|
getInvestments(offset, limit, options) {
|
|
1376
1494
|
return InvestmentApiFp(this.configuration).getInvestments(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1377
1495
|
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
1498
|
+
* @summary Investment overview table
|
|
1499
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1500
|
+
* @param {*} [options] Override http request option.
|
|
1501
|
+
* @throws {RequiredError}
|
|
1502
|
+
*/
|
|
1503
|
+
getInvestmentsOverview(valueFrameworkId, options) {
|
|
1504
|
+
return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1505
|
+
}
|
|
1378
1506
|
/**
|
|
1379
1507
|
* Retrieve a specific option for the investment.
|
|
1380
1508
|
* @summary Get an option for this investment
|
|
@@ -1387,7 +1515,7 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1387
1515
|
return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1388
1516
|
}
|
|
1389
1517
|
/**
|
|
1390
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1518
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
1391
1519
|
* @summary Get the kpis for a given option inside a value framework
|
|
1392
1520
|
* @param {string} investmentId UUID of the investment
|
|
1393
1521
|
* @param {string} optionId UUID of the option
|
|
@@ -1410,6 +1538,27 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1410
1538
|
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
1411
1539
|
return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1412
1540
|
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1543
|
+
* @summary Option overview table for this investment
|
|
1544
|
+
* @param {string} investmentId UUID of the investment
|
|
1545
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1546
|
+
* @param {*} [options] Override http request option.
|
|
1547
|
+
* @throws {RequiredError}
|
|
1548
|
+
*/
|
|
1549
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1550
|
+
return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1551
|
+
}
|
|
1552
|
+
/**
|
|
1553
|
+
* Get the preferred option for an investment.
|
|
1554
|
+
* @summary Get the preferred option for an investment
|
|
1555
|
+
* @param {string} investmentId UUID of the investment
|
|
1556
|
+
* @param {*} [options] Override http request option.
|
|
1557
|
+
* @throws {RequiredError}
|
|
1558
|
+
*/
|
|
1559
|
+
getPreferredOption(investmentId, options) {
|
|
1560
|
+
return InvestmentApiFp(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1561
|
+
}
|
|
1413
1562
|
/**
|
|
1414
1563
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1415
1564
|
* @summary Partially update an impact for this option
|
|
@@ -1460,11 +1609,11 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1460
1609
|
* Set the preferred option for an investment.
|
|
1461
1610
|
* @summary Set the preferred option for an investment
|
|
1462
1611
|
* @param {string} investmentId UUID of the investment
|
|
1463
|
-
* @param {
|
|
1612
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1464
1613
|
* @param {*} [options] Override http request option.
|
|
1465
1614
|
* @throws {RequiredError}
|
|
1466
1615
|
*/
|
|
1467
|
-
|
|
1468
|
-
return InvestmentApiFp(this.configuration).
|
|
1616
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1617
|
+
return InvestmentApiFp(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1469
1618
|
}
|
|
1470
1619
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|