@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/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cosmotech/aip-client@0.3.0-
|
|
1
|
+
## @cosmotech/aip-client@0.3.0-dev3
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cosmotech/aip-client@0.3.0-
|
|
39
|
+
npm install @cosmotech/aip-client@0.3.0-dev3 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -62,31 +62,19 @@ Class | Method | HTTP request | Description
|
|
|
62
62
|
*BudgetApi* | [**patchBudget**](docs/BudgetApi.md#patchbudget) | **PATCH** /budget/{budget_id} | Partially update a budget
|
|
63
63
|
*BudgetApi* | [**postBudget**](docs/BudgetApi.md#postbudget) | **POST** /budget/ | Create a budget
|
|
64
64
|
*DefaultApi* | [**root**](docs/DefaultApi.md#root) | **GET** /about | Root
|
|
65
|
+
*ImpactApi* | [**bulkUpsertImpactsForOption**](docs/ImpactApi.md#bulkupsertimpactsforoption) | **PUT** /investment/{investment_id}/option/{option_id}/impact/ | Bulk upsert impacts for this option
|
|
65
66
|
*ImpactApi* | [**createImpactForOption**](docs/ImpactApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
|
|
66
67
|
*ImpactApi* | [**deleteImpactForOption**](docs/ImpactApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
|
|
67
68
|
*ImpactApi* | [**getImpactForOption**](docs/ImpactApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
|
|
68
69
|
*ImpactApi* | [**getImpactsForOption**](docs/ImpactApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
|
|
69
70
|
*ImpactApi* | [**patchImpactForOption**](docs/ImpactApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
|
|
70
|
-
*InvestmentApi* | [**
|
|
71
|
-
*InvestmentApi* | [**createOptionForInvestment**](docs/InvestmentApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
|
|
72
|
-
*InvestmentApi* | [**deleteImpactForOption**](docs/InvestmentApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
|
|
71
|
+
*InvestmentApi* | [**bulkDeleteInvestments**](docs/InvestmentApi.md#bulkdeleteinvestments) | **POST** /investment/bulk-delete | Bulk delete investments
|
|
73
72
|
*InvestmentApi* | [**deleteInvestment**](docs/InvestmentApi.md#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment
|
|
74
|
-
*InvestmentApi* | [**deleteOptionForInvestment**](docs/InvestmentApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
|
|
75
|
-
*InvestmentApi* | [**getImpactForOption**](docs/InvestmentApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
|
|
76
|
-
*InvestmentApi* | [**getImpactsForOption**](docs/InvestmentApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
|
|
77
73
|
*InvestmentApi* | [**getInvestmentById**](docs/InvestmentApi.md#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID
|
|
78
74
|
*InvestmentApi* | [**getInvestments**](docs/InvestmentApi.md#getinvestments) | **GET** /investment/ | List investments
|
|
79
75
|
*InvestmentApi* | [**getInvestmentsOverview**](docs/InvestmentApi.md#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table
|
|
80
|
-
*InvestmentApi* | [**getOptionForInvestment**](docs/InvestmentApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
|
|
81
|
-
*InvestmentApi* | [**getOptionKpis**](docs/InvestmentApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
|
|
82
|
-
*InvestmentApi* | [**getOptionsForInvestment**](docs/InvestmentApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
|
|
83
|
-
*InvestmentApi* | [**getOptionsOverview**](docs/InvestmentApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
|
|
84
|
-
*InvestmentApi* | [**getPreferredOption**](docs/InvestmentApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
|
|
85
|
-
*InvestmentApi* | [**patchImpactForOption**](docs/InvestmentApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
|
|
86
76
|
*InvestmentApi* | [**patchInvestment**](docs/InvestmentApi.md#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment
|
|
87
|
-
*InvestmentApi* | [**patchOptionForInvestment**](docs/InvestmentApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
|
|
88
77
|
*InvestmentApi* | [**postInvestment**](docs/InvestmentApi.md#postinvestment) | **POST** /investment/ | Create an investment
|
|
89
|
-
*InvestmentApi* | [**setPreferredOption**](docs/InvestmentApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
|
|
90
78
|
*MetricApi* | [**createMetricForObjective**](docs/MetricApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
|
|
91
79
|
*MetricApi* | [**deleteMetricForObjective**](docs/MetricApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
|
|
92
80
|
*MetricApi* | [**getMetricForObjective**](docs/MetricApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
|
|
@@ -98,15 +86,9 @@ Class | Method | HTTP request | Description
|
|
|
98
86
|
*MetricCostsPerYearApi* | [**getMetricCostForFramework**](docs/MetricCostsPerYearApi.md#getmetriccostforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Get a yearly metric cost for this framework
|
|
99
87
|
*MetricCostsPerYearApi* | [**getMetricCostsForFramework**](docs/MetricCostsPerYearApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
|
|
100
88
|
*MetricCostsPerYearApi* | [**patchMetricCostForFramework**](docs/MetricCostsPerYearApi.md#patchmetriccostforframework) | **PATCH** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Partially update metric costs for this framework
|
|
101
|
-
*ObjectiveApi* | [**createMetricForObjective**](docs/ObjectiveApi.md#createmetricforobjective) | **POST** /objective/{objective_id}/metric/ | Create a metric for this objective
|
|
102
|
-
*ObjectiveApi* | [**deleteMetricForObjective**](docs/ObjectiveApi.md#deletemetricforobjective) | **DELETE** /objective/{objective_id}/metric/{metric_id} | Delete a metric for this objective
|
|
103
89
|
*ObjectiveApi* | [**deleteObjective**](docs/ObjectiveApi.md#deleteobjective) | **DELETE** /objective/{objective_id} | Delete an objective
|
|
104
|
-
*ObjectiveApi* | [**getMetricForObjective**](docs/ObjectiveApi.md#getmetricforobjective) | **GET** /objective/{objective_id}/metric/{metric_id} | Get a metric for this objective
|
|
105
|
-
*ObjectiveApi* | [**getMetricsForObjective**](docs/ObjectiveApi.md#getmetricsforobjective) | **GET** /objective/{objective_id}/metric/ | List metrics for this objective
|
|
106
90
|
*ObjectiveApi* | [**getObjectiveById**](docs/ObjectiveApi.md#getobjectivebyid) | **GET** /objective/{objective_id} | Get an objective by ID
|
|
107
91
|
*ObjectiveApi* | [**getObjectives**](docs/ObjectiveApi.md#getobjectives) | **GET** /objective/ | List objectives
|
|
108
|
-
*ObjectiveApi* | [**getWeightsForObjective**](docs/ObjectiveApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
|
|
109
|
-
*ObjectiveApi* | [**patchMetricForObjective**](docs/ObjectiveApi.md#patchmetricforobjective) | **PATCH** /objective/{objective_id}/metric/{metric_id} | Partially update a metric for this objective
|
|
110
92
|
*ObjectiveApi* | [**patchObjective**](docs/ObjectiveApi.md#patchobjective) | **PATCH** /objective/{objective_id} | Partially update an objective
|
|
111
93
|
*ObjectiveApi* | [**postObjective**](docs/ObjectiveApi.md#postobjective) | **POST** /objective/ | Create an objective
|
|
112
94
|
*ObjectiveWeightApi* | [**createObjectiveWeightForFramework**](docs/ObjectiveWeightApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
|
|
@@ -115,36 +97,18 @@ Class | Method | HTTP request | Description
|
|
|
115
97
|
*ObjectiveWeightApi* | [**getObjectiveWeightsForFramework**](docs/ObjectiveWeightApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
|
|
116
98
|
*ObjectiveWeightApi* | [**patchObjectiveWeightForFramework**](docs/ObjectiveWeightApi.md#patchobjectiveweightforframework) | **PATCH** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Partially update an objective weight for this framework
|
|
117
99
|
*ObjectiveWeightsApi* | [**getWeightsForObjective**](docs/ObjectiveWeightsApi.md#getweightsforobjective) | **GET** /objective/{objective_id}/weights/ | List all objective weights for an objective
|
|
118
|
-
*OptionApi* | [**createImpactForOption**](docs/OptionApi.md#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option
|
|
119
100
|
*OptionApi* | [**createOptionForInvestment**](docs/OptionApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
|
|
120
|
-
*OptionApi* | [**deleteImpactForOption**](docs/OptionApi.md#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option
|
|
121
101
|
*OptionApi* | [**deleteOptionForInvestment**](docs/OptionApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
|
|
122
|
-
*OptionApi* | [**getImpactForOption**](docs/OptionApi.md#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option
|
|
123
|
-
*OptionApi* | [**getImpactsForOption**](docs/OptionApi.md#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option
|
|
124
102
|
*OptionApi* | [**getOptionForInvestment**](docs/OptionApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
|
|
125
103
|
*OptionApi* | [**getOptionKpis**](docs/OptionApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework
|
|
126
104
|
*OptionApi* | [**getOptionsForInvestment**](docs/OptionApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
|
|
127
105
|
*OptionApi* | [**getOptionsOverview**](docs/OptionApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
|
|
128
|
-
*OptionApi* | [**patchImpactForOption**](docs/OptionApi.md#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option
|
|
129
106
|
*OptionApi* | [**patchOptionForInvestment**](docs/OptionApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
|
|
130
107
|
*PreferredOptionApi* | [**getPreferredOption**](docs/PreferredOptionApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
|
|
131
108
|
*PreferredOptionApi* | [**setPreferredOption**](docs/PreferredOptionApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
|
|
132
|
-
*ValueFrameworkApi* | [**createMetricCostForFramework**](docs/ValueFrameworkApi.md#createmetriccostforframework) | **POST** /value_framework/{value_framework_id}/metric_costs_per_year/ | Create a yearly metric cost for this framework
|
|
133
|
-
*ValueFrameworkApi* | [**createObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#createobjectiveweightforframework) | **POST** /value_framework/{value_framework_id}/objective_weight/ | Create an objective weight for this framework
|
|
134
|
-
*ValueFrameworkApi* | [**deleteMetricCostForFramework**](docs/ValueFrameworkApi.md#deletemetriccostforframework) | **DELETE** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Delete metric costs for this framework
|
|
135
|
-
*ValueFrameworkApi* | [**deleteObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#deleteobjectiveweightforframework) | **DELETE** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Delete an objective weight for this framework
|
|
136
109
|
*ValueFrameworkApi* | [**deleteValueFramework**](docs/ValueFrameworkApi.md#deletevalueframework) | **DELETE** /value_framework/{value_framework_id} | Delete a value framework
|
|
137
|
-
*ValueFrameworkApi* | [**getCostsForValueFramework**](docs/ValueFrameworkApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
|
|
138
|
-
*ValueFrameworkApi* | [**getCostsForValueFrameworkByMetric**](docs/ValueFrameworkApi.md#getcostsforvalueframeworkbymetric) | **GET** /value_framework/{value_framework_id}/costs/{metric_id} | List metric costs for a value framework filtered by metric
|
|
139
|
-
*ValueFrameworkApi* | [**getMetricCostForFramework**](docs/ValueFrameworkApi.md#getmetriccostforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Get a yearly metric cost for this framework
|
|
140
|
-
*ValueFrameworkApi* | [**getMetricCostsForFramework**](docs/ValueFrameworkApi.md#getmetriccostsforframework) | **GET** /value_framework/{value_framework_id}/metric_costs_per_year/ | List yearly metric costs for this framework
|
|
141
|
-
*ValueFrameworkApi* | [**getObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Get an objective weight for this framework
|
|
142
|
-
*ValueFrameworkApi* | [**getObjectiveWeightsForFramework**](docs/ValueFrameworkApi.md#getobjectiveweightsforframework) | **GET** /value_framework/{value_framework_id}/objective_weight/ | List objective weights for this framework
|
|
143
110
|
*ValueFrameworkApi* | [**getValueFrameworkById**](docs/ValueFrameworkApi.md#getvalueframeworkbyid) | **GET** /value_framework/{value_framework_id} | Get a value framework by ID
|
|
144
111
|
*ValueFrameworkApi* | [**getValueFrameworks**](docs/ValueFrameworkApi.md#getvalueframeworks) | **GET** /value_framework/ | List value frameworks
|
|
145
|
-
*ValueFrameworkApi* | [**getWeightsForValueFramework**](docs/ValueFrameworkApi.md#getweightsforvalueframework) | **GET** /value_framework/{value_framework_id}/weights/ | List all objective weights for a value framework
|
|
146
|
-
*ValueFrameworkApi* | [**patchMetricCostForFramework**](docs/ValueFrameworkApi.md#patchmetriccostforframework) | **PATCH** /value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year} | Partially update metric costs for this framework
|
|
147
|
-
*ValueFrameworkApi* | [**patchObjectiveWeightForFramework**](docs/ValueFrameworkApi.md#patchobjectiveweightforframework) | **PATCH** /value_framework/{value_framework_id}/objective_weight/{objective_id} | Partially update an objective weight for this framework
|
|
148
112
|
*ValueFrameworkApi* | [**patchValueFramework**](docs/ValueFrameworkApi.md#patchvalueframework) | **PATCH** /value_framework/{value_framework_id} | Partially update a value framework
|
|
149
113
|
*ValueFrameworkApi* | [**postValueFramework**](docs/ValueFrameworkApi.md#postvalueframework) | **POST** /value_framework/ | Create a value framework
|
|
150
114
|
*ValueFrameworkCostsApi* | [**getCostsForValueFramework**](docs/ValueFrameworkCostsApi.md#getcostsforvalueframework) | **GET** /value_framework/{value_framework_id}/costs/ | List all metric costs for a value framework
|
|
@@ -162,9 +126,11 @@ Class | Method | HTTP request | Description
|
|
|
162
126
|
- [BudgetOverviewResponse](docs/BudgetOverviewResponse.md)
|
|
163
127
|
- [BudgetResponse](docs/BudgetResponse.md)
|
|
164
128
|
- [BudgetUpdate](docs/BudgetUpdate.md)
|
|
129
|
+
- [BulkDeleteRequest](docs/BulkDeleteRequest.md)
|
|
165
130
|
- [EvolutionType](docs/EvolutionType.md)
|
|
166
131
|
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
167
132
|
- [ImpactAPIResponse](docs/ImpactAPIResponse.md)
|
|
133
|
+
- [ImpactBulkItem](docs/ImpactBulkItem.md)
|
|
168
134
|
- [ImpactCreate](docs/ImpactCreate.md)
|
|
169
135
|
- [ImpactUpdate](docs/ImpactUpdate.md)
|
|
170
136
|
- [InvestmentCreate](docs/InvestmentCreate.md)
|
package/api/budget-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/default-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/impact-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { ImpactAPIResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { ImpactBulkItem } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { ImpactCreate } from '../models';
|
|
28
30
|
// @ts-ignore
|
|
29
31
|
import type { ImpactUpdate } from '../models';
|
|
@@ -32,6 +34,53 @@ import type { ImpactUpdate } from '../models';
|
|
|
32
34
|
*/
|
|
33
35
|
export const ImpactApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
36
|
return {
|
|
37
|
+
/**
|
|
38
|
+
* Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
|
|
39
|
+
* @summary Bulk upsert impacts for this option
|
|
40
|
+
* @param {string} optionId UUID of the option
|
|
41
|
+
* @param {string} investmentId UUID of the investment
|
|
42
|
+
* @param {Array<ImpactBulkItem>} impactBulkItem
|
|
43
|
+
* @param {*} [options] Override http request option.
|
|
44
|
+
* @throws {RequiredError}
|
|
45
|
+
*/
|
|
46
|
+
bulkUpsertImpactsForOption: async (optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
47
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
48
|
+
assertParamExists('bulkUpsertImpactsForOption', 'optionId', optionId)
|
|
49
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
50
|
+
assertParamExists('bulkUpsertImpactsForOption', 'investmentId', investmentId)
|
|
51
|
+
// verify required parameter 'impactBulkItem' is not null or undefined
|
|
52
|
+
assertParamExists('bulkUpsertImpactsForOption', 'impactBulkItem', impactBulkItem)
|
|
53
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
54
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
55
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
68
|
+
// oauth required
|
|
69
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(impactBulkItem, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
35
84
|
/**
|
|
36
85
|
* Create a new impact under this option.
|
|
37
86
|
* @summary Create an impact for this option
|
|
@@ -282,6 +331,21 @@ export const ImpactApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
282
331
|
export const ImpactApiFp = function(configuration?: Configuration) {
|
|
283
332
|
const localVarAxiosParamCreator = ImpactApiAxiosParamCreator(configuration)
|
|
284
333
|
return {
|
|
334
|
+
/**
|
|
335
|
+
* Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
|
|
336
|
+
* @summary Bulk upsert impacts for this option
|
|
337
|
+
* @param {string} optionId UUID of the option
|
|
338
|
+
* @param {string} investmentId UUID of the investment
|
|
339
|
+
* @param {Array<ImpactBulkItem>} impactBulkItem
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
async bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImpactAPIResponse>>> {
|
|
344
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options);
|
|
345
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
346
|
+
const localVarOperationServerBasePath = operationServerMap['ImpactApi.bulkUpsertImpactsForOption']?.[localVarOperationServerIndex]?.url;
|
|
347
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
348
|
+
},
|
|
285
349
|
/**
|
|
286
350
|
* Create a new impact under this option.
|
|
287
351
|
* @summary Create an impact for this option
|
|
@@ -368,6 +432,18 @@ export const ImpactApiFp = function(configuration?: Configuration) {
|
|
|
368
432
|
export const ImpactApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
369
433
|
const localVarFp = ImpactApiFp(configuration)
|
|
370
434
|
return {
|
|
435
|
+
/**
|
|
436
|
+
* Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
|
|
437
|
+
* @summary Bulk upsert impacts for this option
|
|
438
|
+
* @param {string} optionId UUID of the option
|
|
439
|
+
* @param {string} investmentId UUID of the investment
|
|
440
|
+
* @param {Array<ImpactBulkItem>} impactBulkItem
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig): AxiosPromise<Array<ImpactAPIResponse>> {
|
|
445
|
+
return localVarFp.bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options).then((request) => request(axios, basePath));
|
|
446
|
+
},
|
|
371
447
|
/**
|
|
372
448
|
* Create a new impact under this option.
|
|
373
449
|
* @summary Create an impact for this option
|
|
@@ -437,6 +513,19 @@ export const ImpactApiFactory = function (configuration?: Configuration, basePat
|
|
|
437
513
|
* ImpactApi - object-oriented interface
|
|
438
514
|
*/
|
|
439
515
|
export class ImpactApi extends BaseAPI {
|
|
516
|
+
/**
|
|
517
|
+
* Replace the full set of impacts for an option in a single call. Existing impacts matching a `metric_id` in the payload are updated; new `metric_id`s are created; impacts whose `metric_id` is absent from the payload are deleted. Duplicate `metric_id` values within the request are rejected with 422.
|
|
518
|
+
* @summary Bulk upsert impacts for this option
|
|
519
|
+
* @param {string} optionId UUID of the option
|
|
520
|
+
* @param {string} investmentId UUID of the investment
|
|
521
|
+
* @param {Array<ImpactBulkItem>} impactBulkItem
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
public bulkUpsertImpactsForOption(optionId: string, investmentId: string, impactBulkItem: Array<ImpactBulkItem>, options?: RawAxiosRequestConfig) {
|
|
526
|
+
return ImpactApiFp(this.configuration).bulkUpsertImpactsForOption(optionId, investmentId, impactBulkItem, options).then((request) => request(this.axios, this.basePath));
|
|
527
|
+
}
|
|
528
|
+
|
|
440
529
|
/**
|
|
441
530
|
* Create a new impact under this option.
|
|
442
531
|
* @summary Create an impact for this option
|