@cosmotech/aip-client 0.3.0-dev2 → 0.3.0-dev3
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 +4 -40
- package/api/budget-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +90 -1
- package/api/investment-api.ts +55 -1254
- 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 -509
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +1 -454
- package/api/preferred-option-api.ts +1 -1
- package/api/value-framework-api.ts +61 -1189
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +1 -1
- package/dist/api/budget-api.js +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 +42 -1
- package/dist/api/impact-api.js +85 -1
- package/dist/api/investment-api.d.ts +1 -551
- package/dist/api/investment-api.js +57 -1189
- 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 -233
- package/dist/api/objective-api.js +1 -479
- 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 +1 -212
- package/dist/api/option-api.js +1 -431
- 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 -519
- package/dist/api/value-framework-api.js +61 -1128
- 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 +1 -1
- package/dist/api.js +1 -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 +1 -1
- package/dist/esm/api/budget-api.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 +42 -1
- package/dist/esm/api/impact-api.js +85 -1
- package/dist/esm/api/investment-api.d.ts +1 -551
- package/dist/esm/api/investment-api.js +56 -1188
- 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 -233
- package/dist/esm/api/objective-api.js +1 -479
- 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 +1 -212
- package/dist/esm/api/option-api.js +1 -431
- 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 -519
- package/dist/esm/api/value-framework-api.js +61 -1128
- 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 +1 -1
- package/dist/esm/api.js +1 -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 +1 -1
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/bulk-delete-request.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-bulk-item.d.ts +37 -0
- package/dist/esm/models/impact-bulk-item.js +14 -0
- 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 +1 -0
- package/dist/esm/models/index.js +1 -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 +1 -1
- package/dist/esm/models/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 +1 -1
- package/dist/esm/models/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/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 +1 -1
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +1 -1
- package/dist/models/bulk-delete-request.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-bulk-item.d.ts +37 -0
- package/dist/models/impact-bulk-item.js +15 -0
- 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 +1 -0
- package/dist/models/index.js +1 -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 +1 -1
- package/dist/models/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 +1 -1
- package/dist/models/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/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/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +29 -0
- package/docs/InvestmentApi.md +29 -851
- package/docs/ObjectiveApi.md +0 -351
- package/docs/OptionApi.md +0 -305
- package/docs/ValueFrameworkApi.md +7 -778
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +1 -1
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.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-bulk-item.ts +47 -0
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +1 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +1 -1
- 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 +1 -1
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -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/docs/InvestmentApi.md
CHANGED
|
@@ -5,26 +5,12 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**bulkDeleteInvestments**](#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments|
|
|
8
|
-
|[**createImpactForOption**](#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option|
|
|
9
|
-
|[**createOptionForInvestment**](#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment|
|
|
10
|
-
|[**deleteImpactForOption**](#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option|
|
|
11
8
|
|[**deleteInvestment**](#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment|
|
|
12
|
-
|[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
|
|
13
|
-
|[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
|
|
14
|
-
|[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
|
|
15
9
|
|[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
|
|
16
10
|
|[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
|
|
17
11
|
|[**getInvestmentsOverview**](#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table|
|
|
18
|
-
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
19
|
-
|[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
|
|
20
|
-
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
21
|
-
|[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
|
|
22
|
-
|[**getPreferredOption**](#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment|
|
|
23
|
-
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
24
12
|
|[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
|
|
25
|
-
|[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
|
|
26
13
|
|[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
|
|
27
|
-
|[**setPreferredOption**](#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment|
|
|
28
14
|
|
|
29
15
|
# **bulkDeleteInvestments**
|
|
30
16
|
> bulkDeleteInvestments(bulkDeleteRequest)
|
|
@@ -79,569 +65,10 @@ void (empty response body)
|
|
|
79
65
|
|
|
80
66
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
81
67
|
|
|
82
|
-
# **
|
|
83
|
-
>
|
|
84
|
-
|
|
85
|
-
Create a new impact under this option.
|
|
86
|
-
|
|
87
|
-
### Example
|
|
88
|
-
|
|
89
|
-
```typescript
|
|
90
|
-
import {
|
|
91
|
-
InvestmentApi,
|
|
92
|
-
Configuration,
|
|
93
|
-
ImpactCreate
|
|
94
|
-
} from '@cosmotech/aip-client';
|
|
95
|
-
|
|
96
|
-
const configuration = new Configuration();
|
|
97
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
98
|
-
|
|
99
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
100
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
101
|
-
let impactCreate: ImpactCreate; //
|
|
102
|
-
|
|
103
|
-
const { status, data } = await apiInstance.createImpactForOption(
|
|
104
|
-
optionId,
|
|
105
|
-
investmentId,
|
|
106
|
-
impactCreate
|
|
107
|
-
);
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
### Parameters
|
|
111
|
-
|
|
112
|
-
|Name | Type | Description | Notes|
|
|
113
|
-
|------------- | ------------- | ------------- | -------------|
|
|
114
|
-
| **impactCreate** | **ImpactCreate**| | |
|
|
115
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
116
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
### Return type
|
|
120
|
-
|
|
121
|
-
**ImpactAPIResponse**
|
|
122
|
-
|
|
123
|
-
### Authorization
|
|
124
|
-
|
|
125
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
126
|
-
|
|
127
|
-
### HTTP request headers
|
|
128
|
-
|
|
129
|
-
- **Content-Type**: application/json
|
|
130
|
-
- **Accept**: application/json
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### HTTP response details
|
|
134
|
-
| Status code | Description | Response headers |
|
|
135
|
-
|-------------|-------------|------------------|
|
|
136
|
-
|**201** | Impact created successfully | - |
|
|
137
|
-
|**400** | Invalid input or constraint violation | - |
|
|
138
|
-
|**404** | Investment or option not found | - |
|
|
139
|
-
|
|
140
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
141
|
-
|
|
142
|
-
# **createOptionForInvestment**
|
|
143
|
-
> OptionResponse createOptionForInvestment(optionCreate)
|
|
144
|
-
|
|
145
|
-
Create a new option under this investment.
|
|
146
|
-
|
|
147
|
-
### Example
|
|
148
|
-
|
|
149
|
-
```typescript
|
|
150
|
-
import {
|
|
151
|
-
InvestmentApi,
|
|
152
|
-
Configuration,
|
|
153
|
-
OptionCreate
|
|
154
|
-
} from '@cosmotech/aip-client';
|
|
155
|
-
|
|
156
|
-
const configuration = new Configuration();
|
|
157
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
158
|
-
|
|
159
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
160
|
-
let optionCreate: OptionCreate; //
|
|
161
|
-
|
|
162
|
-
const { status, data } = await apiInstance.createOptionForInvestment(
|
|
163
|
-
investmentId,
|
|
164
|
-
optionCreate
|
|
165
|
-
);
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
### Parameters
|
|
169
|
-
|
|
170
|
-
|Name | Type | Description | Notes|
|
|
171
|
-
|------------- | ------------- | ------------- | -------------|
|
|
172
|
-
| **optionCreate** | **OptionCreate**| | |
|
|
173
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
### Return type
|
|
177
|
-
|
|
178
|
-
**OptionResponse**
|
|
179
|
-
|
|
180
|
-
### Authorization
|
|
181
|
-
|
|
182
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
183
|
-
|
|
184
|
-
### HTTP request headers
|
|
185
|
-
|
|
186
|
-
- **Content-Type**: application/json
|
|
187
|
-
- **Accept**: application/json
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
### HTTP response details
|
|
191
|
-
| Status code | Description | Response headers |
|
|
192
|
-
|-------------|-------------|------------------|
|
|
193
|
-
|**201** | Option created successfully | - |
|
|
194
|
-
|**400** | Invalid input or constraint violation | - |
|
|
195
|
-
|**404** | Investment not found | - |
|
|
196
|
-
|
|
197
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
198
|
-
|
|
199
|
-
# **deleteImpactForOption**
|
|
200
|
-
> deleteImpactForOption()
|
|
201
|
-
|
|
202
|
-
Delete an existing impact by its ID.
|
|
203
|
-
|
|
204
|
-
### Example
|
|
205
|
-
|
|
206
|
-
```typescript
|
|
207
|
-
import {
|
|
208
|
-
InvestmentApi,
|
|
209
|
-
Configuration
|
|
210
|
-
} from '@cosmotech/aip-client';
|
|
211
|
-
|
|
212
|
-
const configuration = new Configuration();
|
|
213
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
214
|
-
|
|
215
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
216
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
217
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
218
|
-
|
|
219
|
-
const { status, data } = await apiInstance.deleteImpactForOption(
|
|
220
|
-
impactId,
|
|
221
|
-
optionId,
|
|
222
|
-
investmentId
|
|
223
|
-
);
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
### Parameters
|
|
227
|
-
|
|
228
|
-
|Name | Type | Description | Notes|
|
|
229
|
-
|------------- | ------------- | ------------- | -------------|
|
|
230
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
231
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
232
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
### Return type
|
|
236
|
-
|
|
237
|
-
void (empty response body)
|
|
238
|
-
|
|
239
|
-
### Authorization
|
|
240
|
-
|
|
241
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
242
|
-
|
|
243
|
-
### HTTP request headers
|
|
244
|
-
|
|
245
|
-
- **Content-Type**: Not defined
|
|
246
|
-
- **Accept**: Not defined
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
### HTTP response details
|
|
250
|
-
| Status code | Description | Response headers |
|
|
251
|
-
|-------------|-------------|------------------|
|
|
252
|
-
|**204** | Impact successfully deleted | - |
|
|
253
|
-
|**404** | Investment, option, or impact not found | - |
|
|
254
|
-
|
|
255
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
256
|
-
|
|
257
|
-
# **deleteInvestment**
|
|
258
|
-
> deleteInvestment()
|
|
259
|
-
|
|
260
|
-
Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
261
|
-
|
|
262
|
-
### Example
|
|
263
|
-
|
|
264
|
-
```typescript
|
|
265
|
-
import {
|
|
266
|
-
InvestmentApi,
|
|
267
|
-
Configuration
|
|
268
|
-
} from '@cosmotech/aip-client';
|
|
269
|
-
|
|
270
|
-
const configuration = new Configuration();
|
|
271
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
272
|
-
|
|
273
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
274
|
-
|
|
275
|
-
const { status, data } = await apiInstance.deleteInvestment(
|
|
276
|
-
investmentId
|
|
277
|
-
);
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
### Parameters
|
|
281
|
-
|
|
282
|
-
|Name | Type | Description | Notes|
|
|
283
|
-
|------------- | ------------- | ------------- | -------------|
|
|
284
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
### Return type
|
|
288
|
-
|
|
289
|
-
void (empty response body)
|
|
290
|
-
|
|
291
|
-
### Authorization
|
|
292
|
-
|
|
293
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
294
|
-
|
|
295
|
-
### HTTP request headers
|
|
296
|
-
|
|
297
|
-
- **Content-Type**: Not defined
|
|
298
|
-
- **Accept**: Not defined
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
### HTTP response details
|
|
302
|
-
| Status code | Description | Response headers |
|
|
303
|
-
|-------------|-------------|------------------|
|
|
304
|
-
|**204** | Investment successfully deleted | - |
|
|
305
|
-
|**404** | Investment not found | - |
|
|
306
|
-
|
|
307
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
308
|
-
|
|
309
|
-
# **deleteOptionForInvestment**
|
|
310
|
-
> deleteOptionForInvestment()
|
|
311
|
-
|
|
312
|
-
Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
313
|
-
|
|
314
|
-
### Example
|
|
315
|
-
|
|
316
|
-
```typescript
|
|
317
|
-
import {
|
|
318
|
-
InvestmentApi,
|
|
319
|
-
Configuration
|
|
320
|
-
} from '@cosmotech/aip-client';
|
|
321
|
-
|
|
322
|
-
const configuration = new Configuration();
|
|
323
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
324
|
-
|
|
325
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
326
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
327
|
-
|
|
328
|
-
const { status, data } = await apiInstance.deleteOptionForInvestment(
|
|
329
|
-
optionId,
|
|
330
|
-
investmentId
|
|
331
|
-
);
|
|
332
|
-
```
|
|
333
|
-
|
|
334
|
-
### Parameters
|
|
335
|
-
|
|
336
|
-
|Name | Type | Description | Notes|
|
|
337
|
-
|------------- | ------------- | ------------- | -------------|
|
|
338
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
339
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
### Return type
|
|
343
|
-
|
|
344
|
-
void (empty response body)
|
|
345
|
-
|
|
346
|
-
### Authorization
|
|
347
|
-
|
|
348
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
349
|
-
|
|
350
|
-
### HTTP request headers
|
|
351
|
-
|
|
352
|
-
- **Content-Type**: Not defined
|
|
353
|
-
- **Accept**: Not defined
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
### HTTP response details
|
|
357
|
-
| Status code | Description | Response headers |
|
|
358
|
-
|-------------|-------------|------------------|
|
|
359
|
-
|**204** | Option successfully deleted | - |
|
|
360
|
-
|**404** | Investment or option not found | - |
|
|
361
|
-
|
|
362
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
363
|
-
|
|
364
|
-
# **getImpactForOption**
|
|
365
|
-
> ImpactAPIResponse getImpactForOption()
|
|
366
|
-
|
|
367
|
-
Retrieve a specific impact for the option.
|
|
368
|
-
|
|
369
|
-
### Example
|
|
370
|
-
|
|
371
|
-
```typescript
|
|
372
|
-
import {
|
|
373
|
-
InvestmentApi,
|
|
374
|
-
Configuration
|
|
375
|
-
} from '@cosmotech/aip-client';
|
|
376
|
-
|
|
377
|
-
const configuration = new Configuration();
|
|
378
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
379
|
-
|
|
380
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
381
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
382
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
383
|
-
|
|
384
|
-
const { status, data } = await apiInstance.getImpactForOption(
|
|
385
|
-
impactId,
|
|
386
|
-
optionId,
|
|
387
|
-
investmentId
|
|
388
|
-
);
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
### Parameters
|
|
392
|
-
|
|
393
|
-
|Name | Type | Description | Notes|
|
|
394
|
-
|------------- | ------------- | ------------- | -------------|
|
|
395
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
396
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
397
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
### Return type
|
|
401
|
-
|
|
402
|
-
**ImpactAPIResponse**
|
|
403
|
-
|
|
404
|
-
### Authorization
|
|
405
|
-
|
|
406
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
407
|
-
|
|
408
|
-
### HTTP request headers
|
|
409
|
-
|
|
410
|
-
- **Content-Type**: Not defined
|
|
411
|
-
- **Accept**: application/json
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
### HTTP response details
|
|
415
|
-
| Status code | Description | Response headers |
|
|
416
|
-
|-------------|-------------|------------------|
|
|
417
|
-
|**200** | The requested impact | - |
|
|
418
|
-
|**404** | Investment, option, or impact not found | - |
|
|
419
|
-
|
|
420
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
421
|
-
|
|
422
|
-
# **getImpactsForOption**
|
|
423
|
-
> Array<ImpactAPIResponse> getImpactsForOption()
|
|
424
|
-
|
|
425
|
-
Retrieve a paginated list of all impacts for a specific option.
|
|
426
|
-
|
|
427
|
-
### Example
|
|
428
|
-
|
|
429
|
-
```typescript
|
|
430
|
-
import {
|
|
431
|
-
InvestmentApi,
|
|
432
|
-
Configuration
|
|
433
|
-
} from '@cosmotech/aip-client';
|
|
434
|
-
|
|
435
|
-
const configuration = new Configuration();
|
|
436
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
437
|
-
|
|
438
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
439
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
440
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
441
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
442
|
-
|
|
443
|
-
const { status, data } = await apiInstance.getImpactsForOption(
|
|
444
|
-
optionId,
|
|
445
|
-
investmentId,
|
|
446
|
-
offset,
|
|
447
|
-
limit
|
|
448
|
-
);
|
|
449
|
-
```
|
|
450
|
-
|
|
451
|
-
### Parameters
|
|
452
|
-
|
|
453
|
-
|Name | Type | Description | Notes|
|
|
454
|
-
|------------- | ------------- | ------------- | -------------|
|
|
455
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
456
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
457
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
458
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
### Return type
|
|
462
|
-
|
|
463
|
-
**Array<ImpactAPIResponse>**
|
|
464
|
-
|
|
465
|
-
### Authorization
|
|
466
|
-
|
|
467
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
468
|
-
|
|
469
|
-
### HTTP request headers
|
|
470
|
-
|
|
471
|
-
- **Content-Type**: Not defined
|
|
472
|
-
- **Accept**: application/json
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
### HTTP response details
|
|
476
|
-
| Status code | Description | Response headers |
|
|
477
|
-
|-------------|-------------|------------------|
|
|
478
|
-
|**200** | List of impacts for the option | - |
|
|
479
|
-
|**404** | Investment or option not found | - |
|
|
480
|
-
|
|
481
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
482
|
-
|
|
483
|
-
# **getInvestmentById**
|
|
484
|
-
> InvestmentResponse getInvestmentById()
|
|
485
|
-
|
|
486
|
-
Retrieve a single investment by its ID.
|
|
487
|
-
|
|
488
|
-
### Example
|
|
489
|
-
|
|
490
|
-
```typescript
|
|
491
|
-
import {
|
|
492
|
-
InvestmentApi,
|
|
493
|
-
Configuration
|
|
494
|
-
} from '@cosmotech/aip-client';
|
|
495
|
-
|
|
496
|
-
const configuration = new Configuration();
|
|
497
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
498
|
-
|
|
499
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
500
|
-
|
|
501
|
-
const { status, data } = await apiInstance.getInvestmentById(
|
|
502
|
-
investmentId
|
|
503
|
-
);
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
### Parameters
|
|
507
|
-
|
|
508
|
-
|Name | Type | Description | Notes|
|
|
509
|
-
|------------- | ------------- | ------------- | -------------|
|
|
510
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
### Return type
|
|
514
|
-
|
|
515
|
-
**InvestmentResponse**
|
|
516
|
-
|
|
517
|
-
### Authorization
|
|
518
|
-
|
|
519
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
520
|
-
|
|
521
|
-
### HTTP request headers
|
|
522
|
-
|
|
523
|
-
- **Content-Type**: Not defined
|
|
524
|
-
- **Accept**: application/json
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
### HTTP response details
|
|
528
|
-
| Status code | Description | Response headers |
|
|
529
|
-
|-------------|-------------|------------------|
|
|
530
|
-
|**200** | The requested investment | - |
|
|
531
|
-
|**404** | Investment not found | - |
|
|
532
|
-
|
|
533
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
534
|
-
|
|
535
|
-
# **getInvestments**
|
|
536
|
-
> Array<InvestmentResponse> getInvestments()
|
|
537
|
-
|
|
538
|
-
Retrieve a paginated list of all investments.
|
|
539
|
-
|
|
540
|
-
### Example
|
|
541
|
-
|
|
542
|
-
```typescript
|
|
543
|
-
import {
|
|
544
|
-
InvestmentApi,
|
|
545
|
-
Configuration
|
|
546
|
-
} from '@cosmotech/aip-client';
|
|
547
|
-
|
|
548
|
-
const configuration = new Configuration();
|
|
549
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
550
|
-
|
|
551
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
552
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
553
|
-
|
|
554
|
-
const { status, data } = await apiInstance.getInvestments(
|
|
555
|
-
offset,
|
|
556
|
-
limit
|
|
557
|
-
);
|
|
558
|
-
```
|
|
559
|
-
|
|
560
|
-
### Parameters
|
|
561
|
-
|
|
562
|
-
|Name | Type | Description | Notes|
|
|
563
|
-
|------------- | ------------- | ------------- | -------------|
|
|
564
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
565
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
### Return type
|
|
569
|
-
|
|
570
|
-
**Array<InvestmentResponse>**
|
|
571
|
-
|
|
572
|
-
### Authorization
|
|
573
|
-
|
|
574
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
575
|
-
|
|
576
|
-
### HTTP request headers
|
|
577
|
-
|
|
578
|
-
- **Content-Type**: Not defined
|
|
579
|
-
- **Accept**: application/json
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
### HTTP response details
|
|
583
|
-
| Status code | Description | Response headers |
|
|
584
|
-
|-------------|-------------|------------------|
|
|
585
|
-
|**200** | List of investments | - |
|
|
586
|
-
|
|
587
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
588
|
-
|
|
589
|
-
# **getInvestmentsOverview**
|
|
590
|
-
> Array<InvestmentOverviewResponse> getInvestmentsOverview()
|
|
591
|
-
|
|
592
|
-
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.
|
|
593
|
-
|
|
594
|
-
### Example
|
|
595
|
-
|
|
596
|
-
```typescript
|
|
597
|
-
import {
|
|
598
|
-
InvestmentApi,
|
|
599
|
-
Configuration
|
|
600
|
-
} from '@cosmotech/aip-client';
|
|
601
|
-
|
|
602
|
-
const configuration = new Configuration();
|
|
603
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
604
|
-
|
|
605
|
-
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
606
|
-
|
|
607
|
-
const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
608
|
-
valueFrameworkId
|
|
609
|
-
);
|
|
610
|
-
```
|
|
611
|
-
|
|
612
|
-
### Parameters
|
|
613
|
-
|
|
614
|
-
|Name | Type | Description | Notes|
|
|
615
|
-
|------------- | ------------- | ------------- | -------------|
|
|
616
|
-
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
### Return type
|
|
620
|
-
|
|
621
|
-
**Array<InvestmentOverviewResponse>**
|
|
622
|
-
|
|
623
|
-
### Authorization
|
|
624
|
-
|
|
625
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
626
|
-
|
|
627
|
-
### HTTP request headers
|
|
628
|
-
|
|
629
|
-
- **Content-Type**: Not defined
|
|
630
|
-
- **Accept**: application/json
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
### HTTP response details
|
|
634
|
-
| Status code | Description | Response headers |
|
|
635
|
-
|-------------|-------------|------------------|
|
|
636
|
-
|**200** | Overview list of all investments | - |
|
|
637
|
-
|**404** | Value framework not found | - |
|
|
638
|
-
|
|
639
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
640
|
-
|
|
641
|
-
# **getOptionForInvestment**
|
|
642
|
-
> OptionResponse getOptionForInvestment()
|
|
68
|
+
# **deleteInvestment**
|
|
69
|
+
> deleteInvestment()
|
|
643
70
|
|
|
644
|
-
|
|
71
|
+
Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
645
72
|
|
|
646
73
|
### Example
|
|
647
74
|
|
|
@@ -654,11 +81,9 @@ import {
|
|
|
654
81
|
const configuration = new Configuration();
|
|
655
82
|
const apiInstance = new InvestmentApi(configuration);
|
|
656
83
|
|
|
657
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
658
84
|
let investmentId: string; //UUID of the investment (default to undefined)
|
|
659
85
|
|
|
660
|
-
const { status, data } = await apiInstance.
|
|
661
|
-
optionId,
|
|
86
|
+
const { status, data } = await apiInstance.deleteInvestment(
|
|
662
87
|
investmentId
|
|
663
88
|
);
|
|
664
89
|
```
|
|
@@ -667,13 +92,12 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
667
92
|
|
|
668
93
|
|Name | Type | Description | Notes|
|
|
669
94
|
|------------- | ------------- | ------------- | -------------|
|
|
670
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
671
95
|
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
672
96
|
|
|
673
97
|
|
|
674
98
|
### Return type
|
|
675
99
|
|
|
676
|
-
|
|
100
|
+
void (empty response body)
|
|
677
101
|
|
|
678
102
|
### Authorization
|
|
679
103
|
|
|
@@ -682,21 +106,21 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
682
106
|
### HTTP request headers
|
|
683
107
|
|
|
684
108
|
- **Content-Type**: Not defined
|
|
685
|
-
- **Accept**:
|
|
109
|
+
- **Accept**: Not defined
|
|
686
110
|
|
|
687
111
|
|
|
688
112
|
### HTTP response details
|
|
689
113
|
| Status code | Description | Response headers |
|
|
690
114
|
|-------------|-------------|------------------|
|
|
691
|
-
|**
|
|
692
|
-
|**404** | Investment
|
|
115
|
+
|**204** | Investment successfully deleted | - |
|
|
116
|
+
|**404** | Investment not found | - |
|
|
693
117
|
|
|
694
118
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
695
119
|
|
|
696
|
-
# **
|
|
697
|
-
>
|
|
120
|
+
# **getInvestmentById**
|
|
121
|
+
> InvestmentResponse getInvestmentById()
|
|
698
122
|
|
|
699
|
-
|
|
123
|
+
Retrieve a single investment by its ID.
|
|
700
124
|
|
|
701
125
|
### Example
|
|
702
126
|
|
|
@@ -710,13 +134,9 @@ const configuration = new Configuration();
|
|
|
710
134
|
const apiInstance = new InvestmentApi(configuration);
|
|
711
135
|
|
|
712
136
|
let investmentId: string; //UUID of the investment (default to undefined)
|
|
713
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
714
|
-
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
715
137
|
|
|
716
|
-
const { status, data } = await apiInstance.
|
|
717
|
-
investmentId
|
|
718
|
-
optionId,
|
|
719
|
-
valueFrameworkId
|
|
138
|
+
const { status, data } = await apiInstance.getInvestmentById(
|
|
139
|
+
investmentId
|
|
720
140
|
);
|
|
721
141
|
```
|
|
722
142
|
|
|
@@ -725,13 +145,11 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
725
145
|
|Name | Type | Description | Notes|
|
|
726
146
|
|------------- | ------------- | ------------- | -------------|
|
|
727
147
|
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
728
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
729
|
-
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
730
148
|
|
|
731
149
|
|
|
732
150
|
### Return type
|
|
733
151
|
|
|
734
|
-
**
|
|
152
|
+
**InvestmentResponse**
|
|
735
153
|
|
|
736
154
|
### Authorization
|
|
737
155
|
|
|
@@ -746,15 +164,15 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
746
164
|
### HTTP response details
|
|
747
165
|
| Status code | Description | Response headers |
|
|
748
166
|
|-------------|-------------|------------------|
|
|
749
|
-
|**200** | The requested
|
|
750
|
-
|**404** | Investment
|
|
167
|
+
|**200** | The requested investment | - |
|
|
168
|
+
|**404** | Investment not found | - |
|
|
751
169
|
|
|
752
170
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
753
171
|
|
|
754
|
-
# **
|
|
755
|
-
> Array<
|
|
172
|
+
# **getInvestments**
|
|
173
|
+
> Array<InvestmentResponse> getInvestments()
|
|
756
174
|
|
|
757
|
-
Retrieve a paginated list of all
|
|
175
|
+
Retrieve a paginated list of all investments.
|
|
758
176
|
|
|
759
177
|
### Example
|
|
760
178
|
|
|
@@ -767,12 +185,10 @@ import {
|
|
|
767
185
|
const configuration = new Configuration();
|
|
768
186
|
const apiInstance = new InvestmentApi(configuration);
|
|
769
187
|
|
|
770
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
771
188
|
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
772
189
|
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
773
190
|
|
|
774
|
-
const { status, data } = await apiInstance.
|
|
775
|
-
investmentId,
|
|
191
|
+
const { status, data } = await apiInstance.getInvestments(
|
|
776
192
|
offset,
|
|
777
193
|
limit
|
|
778
194
|
);
|
|
@@ -782,14 +198,13 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
782
198
|
|
|
783
199
|
|Name | Type | Description | Notes|
|
|
784
200
|
|------------- | ------------- | ------------- | -------------|
|
|
785
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
786
201
|
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
787
202
|
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
788
203
|
|
|
789
204
|
|
|
790
205
|
### Return type
|
|
791
206
|
|
|
792
|
-
**Array<
|
|
207
|
+
**Array<InvestmentResponse>**
|
|
793
208
|
|
|
794
209
|
### Authorization
|
|
795
210
|
|
|
@@ -804,15 +219,14 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
804
219
|
### HTTP response details
|
|
805
220
|
| Status code | Description | Response headers |
|
|
806
221
|
|-------------|-------------|------------------|
|
|
807
|
-
|**200** | List of
|
|
808
|
-
|**404** | Investment not found | - |
|
|
222
|
+
|**200** | List of investments | - |
|
|
809
223
|
|
|
810
224
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
811
225
|
|
|
812
|
-
# **
|
|
813
|
-
> Array<
|
|
226
|
+
# **getInvestmentsOverview**
|
|
227
|
+
> Array<InvestmentOverviewResponse> getInvestmentsOverview()
|
|
814
228
|
|
|
815
|
-
Return a flat overview of all
|
|
229
|
+
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.
|
|
816
230
|
|
|
817
231
|
### Example
|
|
818
232
|
|
|
@@ -825,11 +239,9 @@ import {
|
|
|
825
239
|
const configuration = new Configuration();
|
|
826
240
|
const apiInstance = new InvestmentApi(configuration);
|
|
827
241
|
|
|
828
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
829
242
|
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
830
243
|
|
|
831
|
-
const { status, data } = await apiInstance.
|
|
832
|
-
investmentId,
|
|
244
|
+
const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
833
245
|
valueFrameworkId
|
|
834
246
|
);
|
|
835
247
|
```
|
|
@@ -838,65 +250,12 @@ const { status, data } = await apiInstance.getOptionsOverview(
|
|
|
838
250
|
|
|
839
251
|
|Name | Type | Description | Notes|
|
|
840
252
|
|------------- | ------------- | ------------- | -------------|
|
|
841
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
842
253
|
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
843
254
|
|
|
844
255
|
|
|
845
256
|
### Return type
|
|
846
257
|
|
|
847
|
-
**Array<
|
|
848
|
-
|
|
849
|
-
### Authorization
|
|
850
|
-
|
|
851
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
852
|
-
|
|
853
|
-
### HTTP request headers
|
|
854
|
-
|
|
855
|
-
- **Content-Type**: Not defined
|
|
856
|
-
- **Accept**: application/json
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
### HTTP response details
|
|
860
|
-
| Status code | Description | Response headers |
|
|
861
|
-
|-------------|-------------|------------------|
|
|
862
|
-
|**200** | Overview list of all options for the investment | - |
|
|
863
|
-
|**404** | Investment or value framework not found | - |
|
|
864
|
-
|
|
865
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
866
|
-
|
|
867
|
-
# **getPreferredOption**
|
|
868
|
-
> PreferredOptionResponse getPreferredOption()
|
|
869
|
-
|
|
870
|
-
Get the preferred option for an investment.
|
|
871
|
-
|
|
872
|
-
### Example
|
|
873
|
-
|
|
874
|
-
```typescript
|
|
875
|
-
import {
|
|
876
|
-
InvestmentApi,
|
|
877
|
-
Configuration
|
|
878
|
-
} from '@cosmotech/aip-client';
|
|
879
|
-
|
|
880
|
-
const configuration = new Configuration();
|
|
881
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
882
|
-
|
|
883
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
884
|
-
|
|
885
|
-
const { status, data } = await apiInstance.getPreferredOption(
|
|
886
|
-
investmentId
|
|
887
|
-
);
|
|
888
|
-
```
|
|
889
|
-
|
|
890
|
-
### Parameters
|
|
891
|
-
|
|
892
|
-
|Name | Type | Description | Notes|
|
|
893
|
-
|------------- | ------------- | ------------- | -------------|
|
|
894
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
### Return type
|
|
898
|
-
|
|
899
|
-
**PreferredOptionResponse**
|
|
258
|
+
**Array<InvestmentOverviewResponse>**
|
|
900
259
|
|
|
901
260
|
### Authorization
|
|
902
261
|
|
|
@@ -911,72 +270,8 @@ const { status, data } = await apiInstance.getPreferredOption(
|
|
|
911
270
|
### HTTP response details
|
|
912
271
|
| Status code | Description | Response headers |
|
|
913
272
|
|-------------|-------------|------------------|
|
|
914
|
-
|**200** |
|
|
915
|
-
|**
|
|
916
|
-
|**404** | Investment not found | - |
|
|
917
|
-
|
|
918
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
919
|
-
|
|
920
|
-
# **patchImpactForOption**
|
|
921
|
-
> ImpactAPIResponse patchImpactForOption(impactUpdate)
|
|
922
|
-
|
|
923
|
-
Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
924
|
-
|
|
925
|
-
### Example
|
|
926
|
-
|
|
927
|
-
```typescript
|
|
928
|
-
import {
|
|
929
|
-
InvestmentApi,
|
|
930
|
-
Configuration,
|
|
931
|
-
ImpactUpdate
|
|
932
|
-
} from '@cosmotech/aip-client';
|
|
933
|
-
|
|
934
|
-
const configuration = new Configuration();
|
|
935
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
936
|
-
|
|
937
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
938
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
939
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
940
|
-
let impactUpdate: ImpactUpdate; //
|
|
941
|
-
|
|
942
|
-
const { status, data } = await apiInstance.patchImpactForOption(
|
|
943
|
-
impactId,
|
|
944
|
-
optionId,
|
|
945
|
-
investmentId,
|
|
946
|
-
impactUpdate
|
|
947
|
-
);
|
|
948
|
-
```
|
|
949
|
-
|
|
950
|
-
### Parameters
|
|
951
|
-
|
|
952
|
-
|Name | Type | Description | Notes|
|
|
953
|
-
|------------- | ------------- | ------------- | -------------|
|
|
954
|
-
| **impactUpdate** | **ImpactUpdate**| | |
|
|
955
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
956
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
957
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
### Return type
|
|
961
|
-
|
|
962
|
-
**ImpactAPIResponse**
|
|
963
|
-
|
|
964
|
-
### Authorization
|
|
965
|
-
|
|
966
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
967
|
-
|
|
968
|
-
### HTTP request headers
|
|
969
|
-
|
|
970
|
-
- **Content-Type**: application/json
|
|
971
|
-
- **Accept**: application/json
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
### HTTP response details
|
|
975
|
-
| Status code | Description | Response headers |
|
|
976
|
-
|-------------|-------------|------------------|
|
|
977
|
-
|**200** | Impact updated successfully | - |
|
|
978
|
-
|**400** | Validation or constraint error | - |
|
|
979
|
-
|**404** | Investment, option, or impact not found | - |
|
|
273
|
+
|**200** | Overview list of all investments | - |
|
|
274
|
+
|**404** | Value framework not found | - |
|
|
980
275
|
|
|
981
276
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
982
277
|
|
|
@@ -1037,66 +332,6 @@ const { status, data } = await apiInstance.patchInvestment(
|
|
|
1037
332
|
|
|
1038
333
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1039
334
|
|
|
1040
|
-
# **patchOptionForInvestment**
|
|
1041
|
-
> OptionResponse patchOptionForInvestment(optionUpdate)
|
|
1042
|
-
|
|
1043
|
-
Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1044
|
-
|
|
1045
|
-
### Example
|
|
1046
|
-
|
|
1047
|
-
```typescript
|
|
1048
|
-
import {
|
|
1049
|
-
InvestmentApi,
|
|
1050
|
-
Configuration,
|
|
1051
|
-
OptionUpdate
|
|
1052
|
-
} from '@cosmotech/aip-client';
|
|
1053
|
-
|
|
1054
|
-
const configuration = new Configuration();
|
|
1055
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
1056
|
-
|
|
1057
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
1058
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
1059
|
-
let optionUpdate: OptionUpdate; //
|
|
1060
|
-
|
|
1061
|
-
const { status, data } = await apiInstance.patchOptionForInvestment(
|
|
1062
|
-
optionId,
|
|
1063
|
-
investmentId,
|
|
1064
|
-
optionUpdate
|
|
1065
|
-
);
|
|
1066
|
-
```
|
|
1067
|
-
|
|
1068
|
-
### Parameters
|
|
1069
|
-
|
|
1070
|
-
|Name | Type | Description | Notes|
|
|
1071
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1072
|
-
| **optionUpdate** | **OptionUpdate**| | |
|
|
1073
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
1074
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
### Return type
|
|
1078
|
-
|
|
1079
|
-
**OptionResponse**
|
|
1080
|
-
|
|
1081
|
-
### Authorization
|
|
1082
|
-
|
|
1083
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
1084
|
-
|
|
1085
|
-
### HTTP request headers
|
|
1086
|
-
|
|
1087
|
-
- **Content-Type**: application/json
|
|
1088
|
-
- **Accept**: application/json
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
### HTTP response details
|
|
1092
|
-
| Status code | Description | Response headers |
|
|
1093
|
-
|-------------|-------------|------------------|
|
|
1094
|
-
|**200** | Option updated successfully | - |
|
|
1095
|
-
|**400** | Validation or constraint error | - |
|
|
1096
|
-
|**404** | Investment or option not found | - |
|
|
1097
|
-
|
|
1098
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1099
|
-
|
|
1100
335
|
# **postInvestment**
|
|
1101
336
|
> InvestmentResponse postInvestment(investmentCreate)
|
|
1102
337
|
|
|
@@ -1150,60 +385,3 @@ const { status, data } = await apiInstance.postInvestment(
|
|
|
1150
385
|
|
|
1151
386
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1152
387
|
|
|
1153
|
-
# **setPreferredOption**
|
|
1154
|
-
> PreferredOptionResponse setPreferredOption(preferredOptionRequest)
|
|
1155
|
-
|
|
1156
|
-
Set the preferred option for an investment.
|
|
1157
|
-
|
|
1158
|
-
### Example
|
|
1159
|
-
|
|
1160
|
-
```typescript
|
|
1161
|
-
import {
|
|
1162
|
-
InvestmentApi,
|
|
1163
|
-
Configuration,
|
|
1164
|
-
PreferredOptionRequest
|
|
1165
|
-
} from '@cosmotech/aip-client';
|
|
1166
|
-
|
|
1167
|
-
const configuration = new Configuration();
|
|
1168
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
1169
|
-
|
|
1170
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
1171
|
-
let preferredOptionRequest: PreferredOptionRequest; //
|
|
1172
|
-
|
|
1173
|
-
const { status, data } = await apiInstance.setPreferredOption(
|
|
1174
|
-
investmentId,
|
|
1175
|
-
preferredOptionRequest
|
|
1176
|
-
);
|
|
1177
|
-
```
|
|
1178
|
-
|
|
1179
|
-
### Parameters
|
|
1180
|
-
|
|
1181
|
-
|Name | Type | Description | Notes|
|
|
1182
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1183
|
-
| **preferredOptionRequest** | **PreferredOptionRequest**| | |
|
|
1184
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
### Return type
|
|
1188
|
-
|
|
1189
|
-
**PreferredOptionResponse**
|
|
1190
|
-
|
|
1191
|
-
### Authorization
|
|
1192
|
-
|
|
1193
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
1194
|
-
|
|
1195
|
-
### HTTP request headers
|
|
1196
|
-
|
|
1197
|
-
- **Content-Type**: application/json
|
|
1198
|
-
- **Accept**: application/json
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
### HTTP response details
|
|
1202
|
-
| Status code | Description | Response headers |
|
|
1203
|
-
|-------------|-------------|------------------|
|
|
1204
|
-
|**200** | Preferred option updated successfully | - |
|
|
1205
|
-
|**400** | Option does not belong to this investment | - |
|
|
1206
|
-
|**404** | Investment or option not found | - |
|
|
1207
|
-
|
|
1208
|
-
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1209
|
-
|