@cosmotech/aip-client 0.2.0-dev6 → 0.3.0-dev1
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 +25 -2
- package/api/budget-api.ts +835 -0
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +166 -5
- 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/preferred-option-api.ts +1 -1
- 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 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +382 -0
- package/dist/api/budget-api.js +794 -0
- 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 +75 -5
- package/dist/api/investment-api.js +154 -5
- 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/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- 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 -1
- package/dist/api.js +2 -1
- 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/budget-api.d.ts +382 -0
- package/dist/esm/api/budget-api.js +787 -0
- 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 +75 -5
- package/dist/esm/api/investment-api.js +154 -5
- 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/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- 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 -1
- package/dist/esm/api.js +2 -1
- 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/budget-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/budget-bulk-delete-request.js +14 -0
- package/dist/esm/models/budget-create.d.ts +22 -0
- package/dist/esm/models/budget-create.js +14 -0
- package/dist/esm/models/budget-investment-response.d.ts +34 -0
- package/dist/esm/models/budget-investment-response.js +14 -0
- package/dist/esm/models/budget-link-options-request.d.ts +20 -0
- package/dist/esm/models/budget-link-options-request.js +14 -0
- package/dist/esm/models/budget-option-response.d.ts +50 -0
- package/dist/esm/models/budget-option-response.js +14 -0
- package/dist/esm/models/budget-overview-response.d.ts +25 -0
- package/dist/esm/models/budget-overview-response.js +14 -0
- package/dist/esm/models/budget-response.d.ts +26 -0
- package/dist/esm/models/budget-response.js +14 -0
- package/dist/esm/models/budget-update.d.ts +19 -0
- package/dist/esm/models/budget-update.js +14 -0
- 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 +10 -0
- package/dist/esm/models/index.js +10 -0
- 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/investment-overview-response.js +14 -0
- 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 +2 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +38 -0
- package/dist/esm/models/option-overview-response.js +14 -0
- package/dist/esm/models/option-response.d.ts +2 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +2 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- 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/budget-bulk-delete-request.d.ts +20 -0
- package/dist/models/budget-bulk-delete-request.js +15 -0
- package/dist/models/budget-create.d.ts +22 -0
- package/dist/models/budget-create.js +15 -0
- package/dist/models/budget-investment-response.d.ts +34 -0
- package/dist/models/budget-investment-response.js +15 -0
- package/dist/models/budget-link-options-request.d.ts +20 -0
- package/dist/models/budget-link-options-request.js +15 -0
- package/dist/models/budget-option-response.d.ts +50 -0
- package/dist/models/budget-option-response.js +15 -0
- package/dist/models/budget-overview-response.d.ts +25 -0
- package/dist/models/budget-overview-response.js +15 -0
- package/dist/models/budget-response.d.ts +26 -0
- package/dist/models/budget-response.js +15 -0
- package/dist/models/budget-update.d.ts +19 -0
- package/dist/models/budget-update.js +15 -0
- 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 +10 -0
- package/dist/models/index.js +10 -0
- 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/investment-overview-response.js +15 -0
- 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 +2 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +38 -0
- package/dist/models/option-overview-response.js +15 -0
- package/dist/models/option-response.d.ts +2 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +2 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- 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/BudgetApi.md +559 -0
- package/docs/BudgetBulkDeleteRequest.md +21 -0
- package/docs/BudgetCreate.md +25 -0
- package/docs/BudgetInvestmentResponse.md +37 -0
- package/docs/BudgetLinkOptionsRequest.md +21 -0
- package/docs/BudgetOptionResponse.md +39 -0
- package/docs/BudgetOverviewResponse.md +25 -0
- package/docs/BudgetResponse.md +33 -0
- package/docs/BudgetUpdate.md +25 -0
- package/docs/InvestmentApi.md +111 -2
- package/docs/InvestmentOverviewResponse.md +33 -0
- package/docs/OptionApi.md +58 -2
- package/docs/OptionCreate.md +2 -0
- package/docs/OptionOverviewResponse.md +33 -0
- package/docs/OptionResponse.md +2 -0
- package/docs/OptionUpdate.md +2 -0
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +26 -0
- package/models/budget-create.ts +28 -0
- package/models/budget-investment-response.ts +40 -0
- package/models/budget-link-options-request.ts +26 -0
- package/models/budget-option-response.ts +56 -0
- package/models/budget-overview-response.ts +31 -0
- package/models/budget-response.ts +32 -0
- package/models/budget-update.ts +25 -0
- 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 +10 -0
- 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 +2 -1
- package/models/option-overview-response.ts +44 -0
- package/models/option-response.ts +2 -1
- package/models/option-update.ts +2 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- 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
package/api/default-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/impact-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/investment-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -30,6 +30,8 @@ import type { ImpactUpdate } from '../models';
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import type { InvestmentCreate } from '../models';
|
|
32
32
|
// @ts-ignore
|
|
33
|
+
import type { InvestmentOverviewResponse } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
33
35
|
import type { InvestmentResponse } from '../models';
|
|
34
36
|
// @ts-ignore
|
|
35
37
|
import type { InvestmentUpdate } from '../models';
|
|
@@ -38,6 +40,8 @@ import type { OptionChartKPIsYearly } from '../models';
|
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
import type { OptionCreate } from '../models';
|
|
40
42
|
// @ts-ignore
|
|
43
|
+
import type { OptionOverviewResponse } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
41
45
|
import type { OptionResponse } from '../models';
|
|
42
46
|
// @ts-ignore
|
|
43
47
|
import type { OptionUpdate } from '../models';
|
|
@@ -443,6 +447,47 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
443
447
|
options: localVarRequestOptions,
|
|
444
448
|
};
|
|
445
449
|
},
|
|
450
|
+
/**
|
|
451
|
+
* 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.
|
|
452
|
+
* @summary Investment overview table
|
|
453
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
getInvestmentsOverview: async (valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
458
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
459
|
+
assertParamExists('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId)
|
|
460
|
+
const localVarPath = `/investment/overview`;
|
|
461
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
462
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
463
|
+
let baseOptions;
|
|
464
|
+
if (configuration) {
|
|
465
|
+
baseOptions = configuration.baseOptions;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
469
|
+
const localVarHeaderParameter = {} as any;
|
|
470
|
+
const localVarQueryParameter = {} as any;
|
|
471
|
+
|
|
472
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
473
|
+
// oauth required
|
|
474
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
475
|
+
|
|
476
|
+
if (valueFrameworkId !== undefined) {
|
|
477
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
481
|
+
|
|
482
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
483
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
484
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
485
|
+
|
|
486
|
+
return {
|
|
487
|
+
url: toPathString(localVarUrlObj),
|
|
488
|
+
options: localVarRequestOptions,
|
|
489
|
+
};
|
|
490
|
+
},
|
|
446
491
|
/**
|
|
447
492
|
* Retrieve a specific option for the investment.
|
|
448
493
|
* @summary Get an option for this investment
|
|
@@ -486,7 +531,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
486
531
|
};
|
|
487
532
|
},
|
|
488
533
|
/**
|
|
489
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
534
|
+
* 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.
|
|
490
535
|
* @summary Get the kpis for a given option inside a value framework
|
|
491
536
|
* @param {string} investmentId UUID of the investment
|
|
492
537
|
* @param {string} optionId UUID of the option
|
|
@@ -579,6 +624,51 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
579
624
|
options: localVarRequestOptions,
|
|
580
625
|
};
|
|
581
626
|
},
|
|
627
|
+
/**
|
|
628
|
+
* 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.
|
|
629
|
+
* @summary Option overview table for this investment
|
|
630
|
+
* @param {string} investmentId UUID of the investment
|
|
631
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
getOptionsOverview: async (investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
636
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
637
|
+
assertParamExists('getOptionsOverview', 'investmentId', investmentId)
|
|
638
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
639
|
+
assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId)
|
|
640
|
+
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
641
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
643
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
644
|
+
let baseOptions;
|
|
645
|
+
if (configuration) {
|
|
646
|
+
baseOptions = configuration.baseOptions;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
650
|
+
const localVarHeaderParameter = {} as any;
|
|
651
|
+
const localVarQueryParameter = {} as any;
|
|
652
|
+
|
|
653
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
654
|
+
// oauth required
|
|
655
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
656
|
+
|
|
657
|
+
if (valueFrameworkId !== undefined) {
|
|
658
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
662
|
+
|
|
663
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
664
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
665
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
666
|
+
|
|
667
|
+
return {
|
|
668
|
+
url: toPathString(localVarUrlObj),
|
|
669
|
+
options: localVarRequestOptions,
|
|
670
|
+
};
|
|
671
|
+
},
|
|
582
672
|
/**
|
|
583
673
|
* Get the preferred option for an investment.
|
|
584
674
|
* @summary Get the preferred option for an investment
|
|
@@ -978,6 +1068,19 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
978
1068
|
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestments']?.[localVarOperationServerIndex]?.url;
|
|
979
1069
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
980
1070
|
},
|
|
1071
|
+
/**
|
|
1072
|
+
* 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.
|
|
1073
|
+
* @summary Investment overview table
|
|
1074
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
async getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentOverviewResponse>>> {
|
|
1079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
|
|
1080
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1081
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
|
|
1082
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1083
|
+
},
|
|
981
1084
|
/**
|
|
982
1085
|
* Retrieve a specific option for the investment.
|
|
983
1086
|
* @summary Get an option for this investment
|
|
@@ -993,7 +1096,7 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
993
1096
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
1097
|
},
|
|
995
1098
|
/**
|
|
996
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1099
|
+
* 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.
|
|
997
1100
|
* @summary Get the kpis for a given option inside a value framework
|
|
998
1101
|
* @param {string} investmentId UUID of the investment
|
|
999
1102
|
* @param {string} optionId UUID of the option
|
|
@@ -1022,6 +1125,20 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
1022
1125
|
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1023
1126
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1024
1127
|
},
|
|
1128
|
+
/**
|
|
1129
|
+
* 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.
|
|
1130
|
+
* @summary Option overview table for this investment
|
|
1131
|
+
* @param {string} investmentId UUID of the investment
|
|
1132
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1133
|
+
* @param {*} [options] Override http request option.
|
|
1134
|
+
* @throws {RequiredError}
|
|
1135
|
+
*/
|
|
1136
|
+
async getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>> {
|
|
1137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
|
|
1138
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1139
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
|
|
1140
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1141
|
+
},
|
|
1025
1142
|
/**
|
|
1026
1143
|
* Get the preferred option for an investment.
|
|
1027
1144
|
* @summary Get the preferred option for an investment
|
|
@@ -1218,6 +1335,16 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1218
1335
|
getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentResponse>> {
|
|
1219
1336
|
return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
|
|
1220
1337
|
},
|
|
1338
|
+
/**
|
|
1339
|
+
* 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.
|
|
1340
|
+
* @summary Investment overview table
|
|
1341
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1342
|
+
* @param {*} [options] Override http request option.
|
|
1343
|
+
* @throws {RequiredError}
|
|
1344
|
+
*/
|
|
1345
|
+
getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>> {
|
|
1346
|
+
return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1347
|
+
},
|
|
1221
1348
|
/**
|
|
1222
1349
|
* Retrieve a specific option for the investment.
|
|
1223
1350
|
* @summary Get an option for this investment
|
|
@@ -1230,7 +1357,7 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1230
1357
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1231
1358
|
},
|
|
1232
1359
|
/**
|
|
1233
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1360
|
+
* 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.
|
|
1234
1361
|
* @summary Get the kpis for a given option inside a value framework
|
|
1235
1362
|
* @param {string} investmentId UUID of the investment
|
|
1236
1363
|
* @param {string} optionId UUID of the option
|
|
@@ -1253,6 +1380,17 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1253
1380
|
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>> {
|
|
1254
1381
|
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1255
1382
|
},
|
|
1383
|
+
/**
|
|
1384
|
+
* 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.
|
|
1385
|
+
* @summary Option overview table for this investment
|
|
1386
|
+
* @param {string} investmentId UUID of the investment
|
|
1387
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1388
|
+
* @param {*} [options] Override http request option.
|
|
1389
|
+
* @throws {RequiredError}
|
|
1390
|
+
*/
|
|
1391
|
+
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
|
|
1392
|
+
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1393
|
+
},
|
|
1256
1394
|
/**
|
|
1257
1395
|
* Get the preferred option for an investment.
|
|
1258
1396
|
* @summary Get the preferred option for an investment
|
|
@@ -1438,6 +1576,17 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1438
1576
|
return InvestmentApiFp(this.configuration).getInvestments(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1439
1577
|
}
|
|
1440
1578
|
|
|
1579
|
+
/**
|
|
1580
|
+
* 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.
|
|
1581
|
+
* @summary Investment overview table
|
|
1582
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1583
|
+
* @param {*} [options] Override http request option.
|
|
1584
|
+
* @throws {RequiredError}
|
|
1585
|
+
*/
|
|
1586
|
+
public getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
1587
|
+
return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1441
1590
|
/**
|
|
1442
1591
|
* Retrieve a specific option for the investment.
|
|
1443
1592
|
* @summary Get an option for this investment
|
|
@@ -1451,7 +1600,7 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1451
1600
|
}
|
|
1452
1601
|
|
|
1453
1602
|
/**
|
|
1454
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1603
|
+
* 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.
|
|
1455
1604
|
* @summary Get the kpis for a given option inside a value framework
|
|
1456
1605
|
* @param {string} investmentId UUID of the investment
|
|
1457
1606
|
* @param {string} optionId UUID of the option
|
|
@@ -1476,6 +1625,18 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1476
1625
|
return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1477
1626
|
}
|
|
1478
1627
|
|
|
1628
|
+
/**
|
|
1629
|
+
* 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.
|
|
1630
|
+
* @summary Option overview table for this investment
|
|
1631
|
+
* @param {string} investmentId UUID of the investment
|
|
1632
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
*/
|
|
1636
|
+
public getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
1637
|
+
return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1479
1640
|
/**
|
|
1480
1641
|
* Get the preferred option for an investment.
|
|
1481
1642
|
* @summary Get the preferred option for an investment
|
package/api/metric-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/metric-costs-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/objective-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/option-api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -32,6 +32,8 @@ import type { OptionChartKPIsYearly } from '../models';
|
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
import type { OptionCreate } from '../models';
|
|
34
34
|
// @ts-ignore
|
|
35
|
+
import type { OptionOverviewResponse } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
35
37
|
import type { OptionResponse } from '../models';
|
|
36
38
|
// @ts-ignore
|
|
37
39
|
import type { OptionUpdate } from '../models';
|
|
@@ -357,7 +359,7 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
357
359
|
};
|
|
358
360
|
},
|
|
359
361
|
/**
|
|
360
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
362
|
+
* 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.
|
|
361
363
|
* @summary Get the kpis for a given option inside a value framework
|
|
362
364
|
* @param {string} investmentId UUID of the investment
|
|
363
365
|
* @param {string} optionId UUID of the option
|
|
@@ -450,6 +452,51 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
450
452
|
options: localVarRequestOptions,
|
|
451
453
|
};
|
|
452
454
|
},
|
|
455
|
+
/**
|
|
456
|
+
* 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.
|
|
457
|
+
* @summary Option overview table for this investment
|
|
458
|
+
* @param {string} investmentId UUID of the investment
|
|
459
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
*/
|
|
463
|
+
getOptionsOverview: async (investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
464
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
465
|
+
assertParamExists('getOptionsOverview', 'investmentId', investmentId)
|
|
466
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
467
|
+
assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId)
|
|
468
|
+
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
469
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
472
|
+
let baseOptions;
|
|
473
|
+
if (configuration) {
|
|
474
|
+
baseOptions = configuration.baseOptions;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
478
|
+
const localVarHeaderParameter = {} as any;
|
|
479
|
+
const localVarQueryParameter = {} as any;
|
|
480
|
+
|
|
481
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
482
|
+
// oauth required
|
|
483
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
484
|
+
|
|
485
|
+
if (valueFrameworkId !== undefined) {
|
|
486
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
490
|
+
|
|
491
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
492
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
493
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
494
|
+
|
|
495
|
+
return {
|
|
496
|
+
url: toPathString(localVarUrlObj),
|
|
497
|
+
options: localVarRequestOptions,
|
|
498
|
+
};
|
|
499
|
+
},
|
|
453
500
|
/**
|
|
454
501
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
455
502
|
* @summary Partially update an impact for this option
|
|
@@ -661,7 +708,7 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
661
708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
662
709
|
},
|
|
663
710
|
/**
|
|
664
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
711
|
+
* 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.
|
|
665
712
|
* @summary Get the kpis for a given option inside a value framework
|
|
666
713
|
* @param {string} investmentId UUID of the investment
|
|
667
714
|
* @param {string} optionId UUID of the option
|
|
@@ -690,6 +737,20 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
690
737
|
const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionsForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
691
738
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
692
739
|
},
|
|
740
|
+
/**
|
|
741
|
+
* 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.
|
|
742
|
+
* @summary Option overview table for this investment
|
|
743
|
+
* @param {string} investmentId UUID of the investment
|
|
744
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
async getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>> {
|
|
749
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
|
|
750
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
751
|
+
const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
|
|
752
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
|
+
},
|
|
693
754
|
/**
|
|
694
755
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
695
756
|
* @summary Partially update an impact for this option
|
|
@@ -813,7 +874,7 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
813
874
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
814
875
|
},
|
|
815
876
|
/**
|
|
816
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
877
|
+
* 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.
|
|
817
878
|
* @summary Get the kpis for a given option inside a value framework
|
|
818
879
|
* @param {string} investmentId UUID of the investment
|
|
819
880
|
* @param {string} optionId UUID of the option
|
|
@@ -836,6 +897,17 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
836
897
|
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>> {
|
|
837
898
|
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
838
899
|
},
|
|
900
|
+
/**
|
|
901
|
+
* 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.
|
|
902
|
+
* @summary Option overview table for this investment
|
|
903
|
+
* @param {string} investmentId UUID of the investment
|
|
904
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
|
|
909
|
+
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
910
|
+
},
|
|
839
911
|
/**
|
|
840
912
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
841
913
|
* @summary Partially update an impact for this option
|
|
@@ -958,7 +1030,7 @@ export class OptionApi extends BaseAPI {
|
|
|
958
1030
|
}
|
|
959
1031
|
|
|
960
1032
|
/**
|
|
961
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1033
|
+
* 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.
|
|
962
1034
|
* @summary Get the kpis for a given option inside a value framework
|
|
963
1035
|
* @param {string} investmentId UUID of the investment
|
|
964
1036
|
* @param {string} optionId UUID of the option
|
|
@@ -983,6 +1055,18 @@ export class OptionApi extends BaseAPI {
|
|
|
983
1055
|
return OptionApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
984
1056
|
}
|
|
985
1057
|
|
|
1058
|
+
/**
|
|
1059
|
+
* 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.
|
|
1060
|
+
* @summary Option overview table for this investment
|
|
1061
|
+
* @param {string} investmentId UUID of the investment
|
|
1062
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1063
|
+
* @param {*} [options] Override http request option.
|
|
1064
|
+
* @throws {RequiredError}
|
|
1065
|
+
*/
|
|
1066
|
+
public getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
1067
|
+
return OptionApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1068
|
+
}
|
|
1069
|
+
|
|
986
1070
|
/**
|
|
987
1071
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
988
1072
|
* @summary Partially update an impact for this option
|
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* 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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
+
export * from './api/budget-api';
|
|
17
18
|
export * from './api/default-api';
|
|
18
19
|
export * from './api/impact-api';
|
|
19
20
|
export * from './api/investment-api';
|
package/base.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -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.
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Asset Investment Planning
|
|
4
4
|
* API for Asset Investment Planning
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 0.
|
|
6
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
7
7
|
*
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|