@cosmotech/aip-client 0.3.0-dev1 → 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 +6 -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 +68 -1193
- 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 +18 -535
- package/dist/api/investment-api.js +79 -1142
- 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 +18 -535
- package/dist/esm/api/investment-api.js +78 -1141
- 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 +20 -0
- package/dist/esm/models/bulk-delete-request.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-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 +2 -0
- package/dist/esm/models/index.js +2 -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 +20 -0
- package/dist/models/bulk-delete-request.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-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 +2 -0
- package/dist/models/index.js +2 -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/BulkDeleteRequest.md +21 -0
- package/docs/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +29 -0
- package/docs/InvestmentApi.md +43 -811
- 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 +26 -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-bulk-item.ts +47 -0
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +2 -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
|
@@ -4,31 +4,18 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**
|
|
8
|
-
|[**createOptionForInvestment**](#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment|
|
|
9
|
-
|[**deleteImpactForOption**](#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option|
|
|
7
|
+
|[**bulkDeleteInvestments**](#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments|
|
|
10
8
|
|[**deleteInvestment**](#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment|
|
|
11
|
-
|[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
|
|
12
|
-
|[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
|
|
13
|
-
|[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
|
|
14
9
|
|[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
|
|
15
10
|
|[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
|
|
16
11
|
|[**getInvestmentsOverview**](#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table|
|
|
17
|
-
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
18
|
-
|[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
|
|
19
|
-
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
20
|
-
|[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
|
|
21
|
-
|[**getPreferredOption**](#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment|
|
|
22
|
-
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
23
12
|
|[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
|
|
24
|
-
|[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
|
|
25
13
|
|[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
|
|
26
|
-
|[**setPreferredOption**](#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment|
|
|
27
14
|
|
|
28
|
-
# **
|
|
29
|
-
>
|
|
15
|
+
# **bulkDeleteInvestments**
|
|
16
|
+
> bulkDeleteInvestments(bulkDeleteRequest)
|
|
30
17
|
|
|
31
|
-
|
|
18
|
+
Delete multiple investments by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no investments are deleted. Associated options are also deleted via cascade.
|
|
32
19
|
|
|
33
20
|
### Example
|
|
34
21
|
|
|
@@ -36,522 +23,16 @@ Create a new impact under this option.
|
|
|
36
23
|
import {
|
|
37
24
|
InvestmentApi,
|
|
38
25
|
Configuration,
|
|
39
|
-
|
|
26
|
+
BulkDeleteRequest
|
|
40
27
|
} from '@cosmotech/aip-client';
|
|
41
28
|
|
|
42
29
|
const configuration = new Configuration();
|
|
43
30
|
const apiInstance = new InvestmentApi(configuration);
|
|
44
31
|
|
|
45
|
-
let
|
|
46
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
47
|
-
let impactCreate: ImpactCreate; //
|
|
48
|
-
|
|
49
|
-
const { status, data } = await apiInstance.createImpactForOption(
|
|
50
|
-
optionId,
|
|
51
|
-
investmentId,
|
|
52
|
-
impactCreate
|
|
53
|
-
);
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Parameters
|
|
57
|
-
|
|
58
|
-
|Name | Type | Description | Notes|
|
|
59
|
-
|------------- | ------------- | ------------- | -------------|
|
|
60
|
-
| **impactCreate** | **ImpactCreate**| | |
|
|
61
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
62
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
### Return type
|
|
66
|
-
|
|
67
|
-
**ImpactAPIResponse**
|
|
68
|
-
|
|
69
|
-
### Authorization
|
|
70
|
-
|
|
71
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
72
|
-
|
|
73
|
-
### HTTP request headers
|
|
74
|
-
|
|
75
|
-
- **Content-Type**: application/json
|
|
76
|
-
- **Accept**: application/json
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
### HTTP response details
|
|
80
|
-
| Status code | Description | Response headers |
|
|
81
|
-
|-------------|-------------|------------------|
|
|
82
|
-
|**201** | Impact created successfully | - |
|
|
83
|
-
|**400** | Invalid input or constraint violation | - |
|
|
84
|
-
|**404** | Investment or option not found | - |
|
|
85
|
-
|
|
86
|
-
[[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)
|
|
87
|
-
|
|
88
|
-
# **createOptionForInvestment**
|
|
89
|
-
> OptionResponse createOptionForInvestment(optionCreate)
|
|
90
|
-
|
|
91
|
-
Create a new option under this investment.
|
|
92
|
-
|
|
93
|
-
### Example
|
|
94
|
-
|
|
95
|
-
```typescript
|
|
96
|
-
import {
|
|
97
|
-
InvestmentApi,
|
|
98
|
-
Configuration,
|
|
99
|
-
OptionCreate
|
|
100
|
-
} from '@cosmotech/aip-client';
|
|
101
|
-
|
|
102
|
-
const configuration = new Configuration();
|
|
103
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
104
|
-
|
|
105
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
106
|
-
let optionCreate: OptionCreate; //
|
|
107
|
-
|
|
108
|
-
const { status, data } = await apiInstance.createOptionForInvestment(
|
|
109
|
-
investmentId,
|
|
110
|
-
optionCreate
|
|
111
|
-
);
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### Parameters
|
|
115
|
-
|
|
116
|
-
|Name | Type | Description | Notes|
|
|
117
|
-
|------------- | ------------- | ------------- | -------------|
|
|
118
|
-
| **optionCreate** | **OptionCreate**| | |
|
|
119
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
### Return type
|
|
123
|
-
|
|
124
|
-
**OptionResponse**
|
|
125
|
-
|
|
126
|
-
### Authorization
|
|
127
|
-
|
|
128
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
129
|
-
|
|
130
|
-
### HTTP request headers
|
|
131
|
-
|
|
132
|
-
- **Content-Type**: application/json
|
|
133
|
-
- **Accept**: application/json
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### HTTP response details
|
|
137
|
-
| Status code | Description | Response headers |
|
|
138
|
-
|-------------|-------------|------------------|
|
|
139
|
-
|**201** | Option created successfully | - |
|
|
140
|
-
|**400** | Invalid input or constraint violation | - |
|
|
141
|
-
|**404** | Investment not found | - |
|
|
142
|
-
|
|
143
|
-
[[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)
|
|
144
|
-
|
|
145
|
-
# **deleteImpactForOption**
|
|
146
|
-
> deleteImpactForOption()
|
|
147
|
-
|
|
148
|
-
Delete an existing impact by its ID.
|
|
149
|
-
|
|
150
|
-
### Example
|
|
151
|
-
|
|
152
|
-
```typescript
|
|
153
|
-
import {
|
|
154
|
-
InvestmentApi,
|
|
155
|
-
Configuration
|
|
156
|
-
} from '@cosmotech/aip-client';
|
|
157
|
-
|
|
158
|
-
const configuration = new Configuration();
|
|
159
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
160
|
-
|
|
161
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
162
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
163
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
164
|
-
|
|
165
|
-
const { status, data } = await apiInstance.deleteImpactForOption(
|
|
166
|
-
impactId,
|
|
167
|
-
optionId,
|
|
168
|
-
investmentId
|
|
169
|
-
);
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
### Parameters
|
|
173
|
-
|
|
174
|
-
|Name | Type | Description | Notes|
|
|
175
|
-
|------------- | ------------- | ------------- | -------------|
|
|
176
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
177
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
178
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
### Return type
|
|
182
|
-
|
|
183
|
-
void (empty response body)
|
|
184
|
-
|
|
185
|
-
### Authorization
|
|
186
|
-
|
|
187
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
188
|
-
|
|
189
|
-
### HTTP request headers
|
|
190
|
-
|
|
191
|
-
- **Content-Type**: Not defined
|
|
192
|
-
- **Accept**: Not defined
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### HTTP response details
|
|
196
|
-
| Status code | Description | Response headers |
|
|
197
|
-
|-------------|-------------|------------------|
|
|
198
|
-
|**204** | Impact successfully deleted | - |
|
|
199
|
-
|**404** | Investment, option, or impact not found | - |
|
|
200
|
-
|
|
201
|
-
[[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)
|
|
202
|
-
|
|
203
|
-
# **deleteInvestment**
|
|
204
|
-
> deleteInvestment()
|
|
205
|
-
|
|
206
|
-
Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
207
|
-
|
|
208
|
-
### Example
|
|
209
|
-
|
|
210
|
-
```typescript
|
|
211
|
-
import {
|
|
212
|
-
InvestmentApi,
|
|
213
|
-
Configuration
|
|
214
|
-
} from '@cosmotech/aip-client';
|
|
215
|
-
|
|
216
|
-
const configuration = new Configuration();
|
|
217
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
218
|
-
|
|
219
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
220
|
-
|
|
221
|
-
const { status, data } = await apiInstance.deleteInvestment(
|
|
222
|
-
investmentId
|
|
223
|
-
);
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
### Parameters
|
|
227
|
-
|
|
228
|
-
|Name | Type | Description | Notes|
|
|
229
|
-
|------------- | ------------- | ------------- | -------------|
|
|
230
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
### Return type
|
|
234
|
-
|
|
235
|
-
void (empty response body)
|
|
236
|
-
|
|
237
|
-
### Authorization
|
|
238
|
-
|
|
239
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
240
|
-
|
|
241
|
-
### HTTP request headers
|
|
242
|
-
|
|
243
|
-
- **Content-Type**: Not defined
|
|
244
|
-
- **Accept**: Not defined
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
### HTTP response details
|
|
248
|
-
| Status code | Description | Response headers |
|
|
249
|
-
|-------------|-------------|------------------|
|
|
250
|
-
|**204** | Investment successfully deleted | - |
|
|
251
|
-
|**404** | Investment not found | - |
|
|
252
|
-
|
|
253
|
-
[[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)
|
|
254
|
-
|
|
255
|
-
# **deleteOptionForInvestment**
|
|
256
|
-
> deleteOptionForInvestment()
|
|
257
|
-
|
|
258
|
-
Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
259
|
-
|
|
260
|
-
### Example
|
|
261
|
-
|
|
262
|
-
```typescript
|
|
263
|
-
import {
|
|
264
|
-
InvestmentApi,
|
|
265
|
-
Configuration
|
|
266
|
-
} from '@cosmotech/aip-client';
|
|
267
|
-
|
|
268
|
-
const configuration = new Configuration();
|
|
269
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
270
|
-
|
|
271
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
272
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
273
|
-
|
|
274
|
-
const { status, data } = await apiInstance.deleteOptionForInvestment(
|
|
275
|
-
optionId,
|
|
276
|
-
investmentId
|
|
277
|
-
);
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
### Parameters
|
|
281
|
-
|
|
282
|
-
|Name | Type | Description | Notes|
|
|
283
|
-
|------------- | ------------- | ------------- | -------------|
|
|
284
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
285
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
### Return type
|
|
289
|
-
|
|
290
|
-
void (empty response body)
|
|
291
|
-
|
|
292
|
-
### Authorization
|
|
293
|
-
|
|
294
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
295
|
-
|
|
296
|
-
### HTTP request headers
|
|
297
|
-
|
|
298
|
-
- **Content-Type**: Not defined
|
|
299
|
-
- **Accept**: Not defined
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
### HTTP response details
|
|
303
|
-
| Status code | Description | Response headers |
|
|
304
|
-
|-------------|-------------|------------------|
|
|
305
|
-
|**204** | Option successfully deleted | - |
|
|
306
|
-
|**404** | Investment or option not found | - |
|
|
307
|
-
|
|
308
|
-
[[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)
|
|
309
|
-
|
|
310
|
-
# **getImpactForOption**
|
|
311
|
-
> ImpactAPIResponse getImpactForOption()
|
|
312
|
-
|
|
313
|
-
Retrieve a specific impact for the option.
|
|
314
|
-
|
|
315
|
-
### Example
|
|
316
|
-
|
|
317
|
-
```typescript
|
|
318
|
-
import {
|
|
319
|
-
InvestmentApi,
|
|
320
|
-
Configuration
|
|
321
|
-
} from '@cosmotech/aip-client';
|
|
322
|
-
|
|
323
|
-
const configuration = new Configuration();
|
|
324
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
325
|
-
|
|
326
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
327
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
328
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
329
|
-
|
|
330
|
-
const { status, data } = await apiInstance.getImpactForOption(
|
|
331
|
-
impactId,
|
|
332
|
-
optionId,
|
|
333
|
-
investmentId
|
|
334
|
-
);
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### Parameters
|
|
338
|
-
|
|
339
|
-
|Name | Type | Description | Notes|
|
|
340
|
-
|------------- | ------------- | ------------- | -------------|
|
|
341
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
342
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
343
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
### Return type
|
|
347
|
-
|
|
348
|
-
**ImpactAPIResponse**
|
|
349
|
-
|
|
350
|
-
### Authorization
|
|
351
|
-
|
|
352
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
353
|
-
|
|
354
|
-
### HTTP request headers
|
|
355
|
-
|
|
356
|
-
- **Content-Type**: Not defined
|
|
357
|
-
- **Accept**: application/json
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
### HTTP response details
|
|
361
|
-
| Status code | Description | Response headers |
|
|
362
|
-
|-------------|-------------|------------------|
|
|
363
|
-
|**200** | The requested impact | - |
|
|
364
|
-
|**404** | Investment, option, or impact not found | - |
|
|
365
|
-
|
|
366
|
-
[[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)
|
|
367
|
-
|
|
368
|
-
# **getImpactsForOption**
|
|
369
|
-
> Array<ImpactAPIResponse> getImpactsForOption()
|
|
370
|
-
|
|
371
|
-
Retrieve a paginated list of all impacts for a specific option.
|
|
372
|
-
|
|
373
|
-
### Example
|
|
374
|
-
|
|
375
|
-
```typescript
|
|
376
|
-
import {
|
|
377
|
-
InvestmentApi,
|
|
378
|
-
Configuration
|
|
379
|
-
} from '@cosmotech/aip-client';
|
|
380
|
-
|
|
381
|
-
const configuration = new Configuration();
|
|
382
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
383
|
-
|
|
384
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
385
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
386
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
387
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
388
|
-
|
|
389
|
-
const { status, data } = await apiInstance.getImpactsForOption(
|
|
390
|
-
optionId,
|
|
391
|
-
investmentId,
|
|
392
|
-
offset,
|
|
393
|
-
limit
|
|
394
|
-
);
|
|
395
|
-
```
|
|
396
|
-
|
|
397
|
-
### Parameters
|
|
398
|
-
|
|
399
|
-
|Name | Type | Description | Notes|
|
|
400
|
-
|------------- | ------------- | ------------- | -------------|
|
|
401
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
402
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
403
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
404
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
### Return type
|
|
408
|
-
|
|
409
|
-
**Array<ImpactAPIResponse>**
|
|
410
|
-
|
|
411
|
-
### Authorization
|
|
412
|
-
|
|
413
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
414
|
-
|
|
415
|
-
### HTTP request headers
|
|
416
|
-
|
|
417
|
-
- **Content-Type**: Not defined
|
|
418
|
-
- **Accept**: application/json
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
### HTTP response details
|
|
422
|
-
| Status code | Description | Response headers |
|
|
423
|
-
|-------------|-------------|------------------|
|
|
424
|
-
|**200** | List of impacts for the option | - |
|
|
425
|
-
|**404** | Investment or option not found | - |
|
|
426
|
-
|
|
427
|
-
[[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)
|
|
428
|
-
|
|
429
|
-
# **getInvestmentById**
|
|
430
|
-
> InvestmentResponse getInvestmentById()
|
|
431
|
-
|
|
432
|
-
Retrieve a single investment by its ID.
|
|
433
|
-
|
|
434
|
-
### Example
|
|
435
|
-
|
|
436
|
-
```typescript
|
|
437
|
-
import {
|
|
438
|
-
InvestmentApi,
|
|
439
|
-
Configuration
|
|
440
|
-
} from '@cosmotech/aip-client';
|
|
441
|
-
|
|
442
|
-
const configuration = new Configuration();
|
|
443
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
444
|
-
|
|
445
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
446
|
-
|
|
447
|
-
const { status, data } = await apiInstance.getInvestmentById(
|
|
448
|
-
investmentId
|
|
449
|
-
);
|
|
450
|
-
```
|
|
451
|
-
|
|
452
|
-
### Parameters
|
|
453
|
-
|
|
454
|
-
|Name | Type | Description | Notes|
|
|
455
|
-
|------------- | ------------- | ------------- | -------------|
|
|
456
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
### Return type
|
|
460
|
-
|
|
461
|
-
**InvestmentResponse**
|
|
462
|
-
|
|
463
|
-
### Authorization
|
|
464
|
-
|
|
465
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
466
|
-
|
|
467
|
-
### HTTP request headers
|
|
468
|
-
|
|
469
|
-
- **Content-Type**: Not defined
|
|
470
|
-
- **Accept**: application/json
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
### HTTP response details
|
|
474
|
-
| Status code | Description | Response headers |
|
|
475
|
-
|-------------|-------------|------------------|
|
|
476
|
-
|**200** | The requested investment | - |
|
|
477
|
-
|**404** | Investment not found | - |
|
|
478
|
-
|
|
479
|
-
[[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)
|
|
480
|
-
|
|
481
|
-
# **getInvestments**
|
|
482
|
-
> Array<InvestmentResponse> getInvestments()
|
|
483
|
-
|
|
484
|
-
Retrieve a paginated list of all investments.
|
|
485
|
-
|
|
486
|
-
### Example
|
|
487
|
-
|
|
488
|
-
```typescript
|
|
489
|
-
import {
|
|
490
|
-
InvestmentApi,
|
|
491
|
-
Configuration
|
|
492
|
-
} from '@cosmotech/aip-client';
|
|
493
|
-
|
|
494
|
-
const configuration = new Configuration();
|
|
495
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
496
|
-
|
|
497
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
498
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
499
|
-
|
|
500
|
-
const { status, data } = await apiInstance.getInvestments(
|
|
501
|
-
offset,
|
|
502
|
-
limit
|
|
503
|
-
);
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
### Parameters
|
|
507
|
-
|
|
508
|
-
|Name | Type | Description | Notes|
|
|
509
|
-
|------------- | ------------- | ------------- | -------------|
|
|
510
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
511
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
### Return type
|
|
515
|
-
|
|
516
|
-
**Array<InvestmentResponse>**
|
|
517
|
-
|
|
518
|
-
### Authorization
|
|
519
|
-
|
|
520
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
521
|
-
|
|
522
|
-
### HTTP request headers
|
|
523
|
-
|
|
524
|
-
- **Content-Type**: Not defined
|
|
525
|
-
- **Accept**: application/json
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
### HTTP response details
|
|
529
|
-
| Status code | Description | Response headers |
|
|
530
|
-
|-------------|-------------|------------------|
|
|
531
|
-
|**200** | List of investments | - |
|
|
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
|
-
# **getInvestmentsOverview**
|
|
536
|
-
> Array<InvestmentOverviewResponse> getInvestmentsOverview()
|
|
537
|
-
|
|
538
|
-
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.
|
|
539
|
-
|
|
540
|
-
### Example
|
|
541
|
-
|
|
542
|
-
```typescript
|
|
543
|
-
import {
|
|
544
|
-
InvestmentApi,
|
|
545
|
-
Configuration
|
|
546
|
-
} from '@cosmotech/aip-client';
|
|
32
|
+
let bulkDeleteRequest: BulkDeleteRequest; //
|
|
547
33
|
|
|
548
|
-
const
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
552
|
-
|
|
553
|
-
const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
554
|
-
valueFrameworkId
|
|
34
|
+
const { status, data } = await apiInstance.bulkDeleteInvestments(
|
|
35
|
+
bulkDeleteRequest
|
|
555
36
|
);
|
|
556
37
|
```
|
|
557
38
|
|
|
@@ -559,12 +40,12 @@ const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
|
559
40
|
|
|
560
41
|
|Name | Type | Description | Notes|
|
|
561
42
|
|------------- | ------------- | ------------- | -------------|
|
|
562
|
-
| **
|
|
43
|
+
| **bulkDeleteRequest** | **BulkDeleteRequest**| | |
|
|
563
44
|
|
|
564
45
|
|
|
565
46
|
### Return type
|
|
566
47
|
|
|
567
|
-
|
|
48
|
+
void (empty response body)
|
|
568
49
|
|
|
569
50
|
### Authorization
|
|
570
51
|
|
|
@@ -572,22 +53,22 @@ const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
|
572
53
|
|
|
573
54
|
### HTTP request headers
|
|
574
55
|
|
|
575
|
-
- **Content-Type**:
|
|
576
|
-
- **Accept**:
|
|
56
|
+
- **Content-Type**: application/json
|
|
57
|
+
- **Accept**: Not defined
|
|
577
58
|
|
|
578
59
|
|
|
579
60
|
### HTTP response details
|
|
580
61
|
| Status code | Description | Response headers |
|
|
581
62
|
|-------------|-------------|------------------|
|
|
582
|
-
|**
|
|
583
|
-
|**404** |
|
|
63
|
+
|**204** | All investments successfully deleted | - |
|
|
64
|
+
|**404** | One or more investment IDs not found | - |
|
|
584
65
|
|
|
585
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)
|
|
586
67
|
|
|
587
|
-
# **
|
|
588
|
-
>
|
|
68
|
+
# **deleteInvestment**
|
|
69
|
+
> deleteInvestment()
|
|
589
70
|
|
|
590
|
-
|
|
71
|
+
Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
591
72
|
|
|
592
73
|
### Example
|
|
593
74
|
|
|
@@ -600,11 +81,9 @@ import {
|
|
|
600
81
|
const configuration = new Configuration();
|
|
601
82
|
const apiInstance = new InvestmentApi(configuration);
|
|
602
83
|
|
|
603
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
604
84
|
let investmentId: string; //UUID of the investment (default to undefined)
|
|
605
85
|
|
|
606
|
-
const { status, data } = await apiInstance.
|
|
607
|
-
optionId,
|
|
86
|
+
const { status, data } = await apiInstance.deleteInvestment(
|
|
608
87
|
investmentId
|
|
609
88
|
);
|
|
610
89
|
```
|
|
@@ -613,13 +92,12 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
613
92
|
|
|
614
93
|
|Name | Type | Description | Notes|
|
|
615
94
|
|------------- | ------------- | ------------- | -------------|
|
|
616
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
617
95
|
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
618
96
|
|
|
619
97
|
|
|
620
98
|
### Return type
|
|
621
99
|
|
|
622
|
-
|
|
100
|
+
void (empty response body)
|
|
623
101
|
|
|
624
102
|
### Authorization
|
|
625
103
|
|
|
@@ -628,21 +106,21 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
628
106
|
### HTTP request headers
|
|
629
107
|
|
|
630
108
|
- **Content-Type**: Not defined
|
|
631
|
-
- **Accept**:
|
|
109
|
+
- **Accept**: Not defined
|
|
632
110
|
|
|
633
111
|
|
|
634
112
|
### HTTP response details
|
|
635
113
|
| Status code | Description | Response headers |
|
|
636
114
|
|-------------|-------------|------------------|
|
|
637
|
-
|**
|
|
638
|
-
|**404** | Investment
|
|
115
|
+
|**204** | Investment successfully deleted | - |
|
|
116
|
+
|**404** | Investment not found | - |
|
|
639
117
|
|
|
640
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)
|
|
641
119
|
|
|
642
|
-
# **
|
|
643
|
-
>
|
|
120
|
+
# **getInvestmentById**
|
|
121
|
+
> InvestmentResponse getInvestmentById()
|
|
644
122
|
|
|
645
|
-
|
|
123
|
+
Retrieve a single investment by its ID.
|
|
646
124
|
|
|
647
125
|
### Example
|
|
648
126
|
|
|
@@ -656,13 +134,9 @@ const configuration = new Configuration();
|
|
|
656
134
|
const apiInstance = new InvestmentApi(configuration);
|
|
657
135
|
|
|
658
136
|
let investmentId: string; //UUID of the investment (default to undefined)
|
|
659
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
660
|
-
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
661
137
|
|
|
662
|
-
const { status, data } = await apiInstance.
|
|
663
|
-
investmentId
|
|
664
|
-
optionId,
|
|
665
|
-
valueFrameworkId
|
|
138
|
+
const { status, data } = await apiInstance.getInvestmentById(
|
|
139
|
+
investmentId
|
|
666
140
|
);
|
|
667
141
|
```
|
|
668
142
|
|
|
@@ -671,13 +145,11 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
671
145
|
|Name | Type | Description | Notes|
|
|
672
146
|
|------------- | ------------- | ------------- | -------------|
|
|
673
147
|
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
674
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
675
|
-
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
676
148
|
|
|
677
149
|
|
|
678
150
|
### Return type
|
|
679
151
|
|
|
680
|
-
**
|
|
152
|
+
**InvestmentResponse**
|
|
681
153
|
|
|
682
154
|
### Authorization
|
|
683
155
|
|
|
@@ -692,15 +164,15 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
692
164
|
### HTTP response details
|
|
693
165
|
| Status code | Description | Response headers |
|
|
694
166
|
|-------------|-------------|------------------|
|
|
695
|
-
|**200** | The requested
|
|
696
|
-
|**404** | Investment
|
|
167
|
+
|**200** | The requested investment | - |
|
|
168
|
+
|**404** | Investment not found | - |
|
|
697
169
|
|
|
698
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)
|
|
699
171
|
|
|
700
|
-
# **
|
|
701
|
-
> Array<
|
|
172
|
+
# **getInvestments**
|
|
173
|
+
> Array<InvestmentResponse> getInvestments()
|
|
702
174
|
|
|
703
|
-
Retrieve a paginated list of all
|
|
175
|
+
Retrieve a paginated list of all investments.
|
|
704
176
|
|
|
705
177
|
### Example
|
|
706
178
|
|
|
@@ -713,12 +185,10 @@ import {
|
|
|
713
185
|
const configuration = new Configuration();
|
|
714
186
|
const apiInstance = new InvestmentApi(configuration);
|
|
715
187
|
|
|
716
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
717
188
|
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
718
189
|
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
719
190
|
|
|
720
|
-
const { status, data } = await apiInstance.
|
|
721
|
-
investmentId,
|
|
191
|
+
const { status, data } = await apiInstance.getInvestments(
|
|
722
192
|
offset,
|
|
723
193
|
limit
|
|
724
194
|
);
|
|
@@ -728,14 +198,13 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
728
198
|
|
|
729
199
|
|Name | Type | Description | Notes|
|
|
730
200
|
|------------- | ------------- | ------------- | -------------|
|
|
731
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
732
201
|
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
733
202
|
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
734
203
|
|
|
735
204
|
|
|
736
205
|
### Return type
|
|
737
206
|
|
|
738
|
-
**Array<
|
|
207
|
+
**Array<InvestmentResponse>**
|
|
739
208
|
|
|
740
209
|
### Authorization
|
|
741
210
|
|
|
@@ -750,15 +219,14 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
750
219
|
### HTTP response details
|
|
751
220
|
| Status code | Description | Response headers |
|
|
752
221
|
|-------------|-------------|------------------|
|
|
753
|
-
|**200** | List of
|
|
754
|
-
|**404** | Investment not found | - |
|
|
222
|
+
|**200** | List of investments | - |
|
|
755
223
|
|
|
756
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)
|
|
757
225
|
|
|
758
|
-
# **
|
|
759
|
-
> Array<
|
|
226
|
+
# **getInvestmentsOverview**
|
|
227
|
+
> Array<InvestmentOverviewResponse> getInvestmentsOverview()
|
|
760
228
|
|
|
761
|
-
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.
|
|
762
230
|
|
|
763
231
|
### Example
|
|
764
232
|
|
|
@@ -771,11 +239,9 @@ import {
|
|
|
771
239
|
const configuration = new Configuration();
|
|
772
240
|
const apiInstance = new InvestmentApi(configuration);
|
|
773
241
|
|
|
774
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
775
242
|
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
776
243
|
|
|
777
|
-
const { status, data } = await apiInstance.
|
|
778
|
-
investmentId,
|
|
244
|
+
const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
779
245
|
valueFrameworkId
|
|
780
246
|
);
|
|
781
247
|
```
|
|
@@ -784,65 +250,12 @@ const { status, data } = await apiInstance.getOptionsOverview(
|
|
|
784
250
|
|
|
785
251
|
|Name | Type | Description | Notes|
|
|
786
252
|
|------------- | ------------- | ------------- | -------------|
|
|
787
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
788
253
|
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
789
254
|
|
|
790
255
|
|
|
791
256
|
### Return type
|
|
792
257
|
|
|
793
|
-
**Array<
|
|
794
|
-
|
|
795
|
-
### Authorization
|
|
796
|
-
|
|
797
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
798
|
-
|
|
799
|
-
### HTTP request headers
|
|
800
|
-
|
|
801
|
-
- **Content-Type**: Not defined
|
|
802
|
-
- **Accept**: application/json
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
### HTTP response details
|
|
806
|
-
| Status code | Description | Response headers |
|
|
807
|
-
|-------------|-------------|------------------|
|
|
808
|
-
|**200** | Overview list of all options for the investment | - |
|
|
809
|
-
|**404** | Investment or value framework not found | - |
|
|
810
|
-
|
|
811
|
-
[[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)
|
|
812
|
-
|
|
813
|
-
# **getPreferredOption**
|
|
814
|
-
> PreferredOptionResponse getPreferredOption()
|
|
815
|
-
|
|
816
|
-
Get the preferred option for an investment.
|
|
817
|
-
|
|
818
|
-
### Example
|
|
819
|
-
|
|
820
|
-
```typescript
|
|
821
|
-
import {
|
|
822
|
-
InvestmentApi,
|
|
823
|
-
Configuration
|
|
824
|
-
} from '@cosmotech/aip-client';
|
|
825
|
-
|
|
826
|
-
const configuration = new Configuration();
|
|
827
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
828
|
-
|
|
829
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
830
|
-
|
|
831
|
-
const { status, data } = await apiInstance.getPreferredOption(
|
|
832
|
-
investmentId
|
|
833
|
-
);
|
|
834
|
-
```
|
|
835
|
-
|
|
836
|
-
### Parameters
|
|
837
|
-
|
|
838
|
-
|Name | Type | Description | Notes|
|
|
839
|
-
|------------- | ------------- | ------------- | -------------|
|
|
840
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
### Return type
|
|
844
|
-
|
|
845
|
-
**PreferredOptionResponse**
|
|
258
|
+
**Array<InvestmentOverviewResponse>**
|
|
846
259
|
|
|
847
260
|
### Authorization
|
|
848
261
|
|
|
@@ -857,72 +270,8 @@ const { status, data } = await apiInstance.getPreferredOption(
|
|
|
857
270
|
### HTTP response details
|
|
858
271
|
| Status code | Description | Response headers |
|
|
859
272
|
|-------------|-------------|------------------|
|
|
860
|
-
|**200** |
|
|
861
|
-
|**
|
|
862
|
-
|**404** | Investment not found | - |
|
|
863
|
-
|
|
864
|
-
[[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)
|
|
865
|
-
|
|
866
|
-
# **patchImpactForOption**
|
|
867
|
-
> ImpactAPIResponse patchImpactForOption(impactUpdate)
|
|
868
|
-
|
|
869
|
-
Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
870
|
-
|
|
871
|
-
### Example
|
|
872
|
-
|
|
873
|
-
```typescript
|
|
874
|
-
import {
|
|
875
|
-
InvestmentApi,
|
|
876
|
-
Configuration,
|
|
877
|
-
ImpactUpdate
|
|
878
|
-
} from '@cosmotech/aip-client';
|
|
879
|
-
|
|
880
|
-
const configuration = new Configuration();
|
|
881
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
882
|
-
|
|
883
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
884
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
885
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
886
|
-
let impactUpdate: ImpactUpdate; //
|
|
887
|
-
|
|
888
|
-
const { status, data } = await apiInstance.patchImpactForOption(
|
|
889
|
-
impactId,
|
|
890
|
-
optionId,
|
|
891
|
-
investmentId,
|
|
892
|
-
impactUpdate
|
|
893
|
-
);
|
|
894
|
-
```
|
|
895
|
-
|
|
896
|
-
### Parameters
|
|
897
|
-
|
|
898
|
-
|Name | Type | Description | Notes|
|
|
899
|
-
|------------- | ------------- | ------------- | -------------|
|
|
900
|
-
| **impactUpdate** | **ImpactUpdate**| | |
|
|
901
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
902
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
903
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
### Return type
|
|
907
|
-
|
|
908
|
-
**ImpactAPIResponse**
|
|
909
|
-
|
|
910
|
-
### Authorization
|
|
911
|
-
|
|
912
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
913
|
-
|
|
914
|
-
### HTTP request headers
|
|
915
|
-
|
|
916
|
-
- **Content-Type**: application/json
|
|
917
|
-
- **Accept**: application/json
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
### HTTP response details
|
|
921
|
-
| Status code | Description | Response headers |
|
|
922
|
-
|-------------|-------------|------------------|
|
|
923
|
-
|**200** | Impact updated successfully | - |
|
|
924
|
-
|**400** | Validation or constraint error | - |
|
|
925
|
-
|**404** | Investment, option, or impact not found | - |
|
|
273
|
+
|**200** | Overview list of all investments | - |
|
|
274
|
+
|**404** | Value framework not found | - |
|
|
926
275
|
|
|
927
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)
|
|
928
277
|
|
|
@@ -983,66 +332,6 @@ const { status, data } = await apiInstance.patchInvestment(
|
|
|
983
332
|
|
|
984
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)
|
|
985
334
|
|
|
986
|
-
# **patchOptionForInvestment**
|
|
987
|
-
> OptionResponse patchOptionForInvestment(optionUpdate)
|
|
988
|
-
|
|
989
|
-
Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
990
|
-
|
|
991
|
-
### Example
|
|
992
|
-
|
|
993
|
-
```typescript
|
|
994
|
-
import {
|
|
995
|
-
InvestmentApi,
|
|
996
|
-
Configuration,
|
|
997
|
-
OptionUpdate
|
|
998
|
-
} from '@cosmotech/aip-client';
|
|
999
|
-
|
|
1000
|
-
const configuration = new Configuration();
|
|
1001
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
1002
|
-
|
|
1003
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
1004
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
1005
|
-
let optionUpdate: OptionUpdate; //
|
|
1006
|
-
|
|
1007
|
-
const { status, data } = await apiInstance.patchOptionForInvestment(
|
|
1008
|
-
optionId,
|
|
1009
|
-
investmentId,
|
|
1010
|
-
optionUpdate
|
|
1011
|
-
);
|
|
1012
|
-
```
|
|
1013
|
-
|
|
1014
|
-
### Parameters
|
|
1015
|
-
|
|
1016
|
-
|Name | Type | Description | Notes|
|
|
1017
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1018
|
-
| **optionUpdate** | **OptionUpdate**| | |
|
|
1019
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
1020
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
### Return type
|
|
1024
|
-
|
|
1025
|
-
**OptionResponse**
|
|
1026
|
-
|
|
1027
|
-
### Authorization
|
|
1028
|
-
|
|
1029
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
1030
|
-
|
|
1031
|
-
### HTTP request headers
|
|
1032
|
-
|
|
1033
|
-
- **Content-Type**: application/json
|
|
1034
|
-
- **Accept**: application/json
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
### HTTP response details
|
|
1038
|
-
| Status code | Description | Response headers |
|
|
1039
|
-
|-------------|-------------|------------------|
|
|
1040
|
-
|**200** | Option updated successfully | - |
|
|
1041
|
-
|**400** | Validation or constraint error | - |
|
|
1042
|
-
|**404** | Investment or option not found | - |
|
|
1043
|
-
|
|
1044
|
-
[[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)
|
|
1045
|
-
|
|
1046
335
|
# **postInvestment**
|
|
1047
336
|
> InvestmentResponse postInvestment(investmentCreate)
|
|
1048
337
|
|
|
@@ -1096,60 +385,3 @@ const { status, data } = await apiInstance.postInvestment(
|
|
|
1096
385
|
|
|
1097
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)
|
|
1098
387
|
|
|
1099
|
-
# **setPreferredOption**
|
|
1100
|
-
> PreferredOptionResponse setPreferredOption(preferredOptionRequest)
|
|
1101
|
-
|
|
1102
|
-
Set the preferred option for an investment.
|
|
1103
|
-
|
|
1104
|
-
### Example
|
|
1105
|
-
|
|
1106
|
-
```typescript
|
|
1107
|
-
import {
|
|
1108
|
-
InvestmentApi,
|
|
1109
|
-
Configuration,
|
|
1110
|
-
PreferredOptionRequest
|
|
1111
|
-
} from '@cosmotech/aip-client';
|
|
1112
|
-
|
|
1113
|
-
const configuration = new Configuration();
|
|
1114
|
-
const apiInstance = new InvestmentApi(configuration);
|
|
1115
|
-
|
|
1116
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
1117
|
-
let preferredOptionRequest: PreferredOptionRequest; //
|
|
1118
|
-
|
|
1119
|
-
const { status, data } = await apiInstance.setPreferredOption(
|
|
1120
|
-
investmentId,
|
|
1121
|
-
preferredOptionRequest
|
|
1122
|
-
);
|
|
1123
|
-
```
|
|
1124
|
-
|
|
1125
|
-
### Parameters
|
|
1126
|
-
|
|
1127
|
-
|Name | Type | Description | Notes|
|
|
1128
|
-
|------------- | ------------- | ------------- | -------------|
|
|
1129
|
-
| **preferredOptionRequest** | **PreferredOptionRequest**| | |
|
|
1130
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
### Return type
|
|
1134
|
-
|
|
1135
|
-
**PreferredOptionResponse**
|
|
1136
|
-
|
|
1137
|
-
### Authorization
|
|
1138
|
-
|
|
1139
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
1140
|
-
|
|
1141
|
-
### HTTP request headers
|
|
1142
|
-
|
|
1143
|
-
- **Content-Type**: application/json
|
|
1144
|
-
- **Accept**: application/json
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
### HTTP response details
|
|
1148
|
-
| Status code | Description | Response headers |
|
|
1149
|
-
|-------------|-------------|------------------|
|
|
1150
|
-
|**200** | Preferred option updated successfully | - |
|
|
1151
|
-
|**400** | Option does not belong to this investment | - |
|
|
1152
|
-
|**404** | Investment or option not found | - |
|
|
1153
|
-
|
|
1154
|
-
[[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)
|
|
1155
|
-
|