@cosmotech/aip-client 0.3.0-dev2 → 0.4.0-dev1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -41
- package/api/budget-api.ts +7 -7
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +90 -1
- package/api/investment-api.ts +55 -1254
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -509
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +28 -481
- package/api/portfolio-api.ts +601 -0
- package/api/portfolio-investment-api.ts +545 -0
- package/api/portfolio-kpiapi.ts +772 -0
- 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 +4 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +5 -5
- package/dist/api/budget-api.js +7 -7
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +42 -1
- package/dist/api/impact-api.js +85 -1
- package/dist/api/investment-api.d.ts +1 -551
- package/dist/api/investment-api.js +57 -1189
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -233
- package/dist/api/objective-api.js +1 -479
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +13 -224
- package/dist/api/option-api.js +28 -458
- package/dist/api/portfolio-api.d.ts +279 -0
- package/dist/api/portfolio-api.js +575 -0
- package/dist/api/portfolio-investment-api.d.ts +258 -0
- package/dist/api/portfolio-investment-api.js +526 -0
- package/dist/api/portfolio-kpiapi.d.ts +361 -0
- package/dist/api/portfolio-kpiapi.js +740 -0
- 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 +4 -1
- package/dist/api.js +4 -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 +5 -5
- package/dist/esm/api/budget-api.js +7 -7
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +42 -1
- package/dist/esm/api/impact-api.js +85 -1
- package/dist/esm/api/investment-api.d.ts +1 -551
- package/dist/esm/api/investment-api.js +56 -1188
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -233
- package/dist/esm/api/objective-api.js +1 -479
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +13 -224
- package/dist/esm/api/option-api.js +28 -458
- package/dist/esm/api/portfolio-api.d.ts +279 -0
- package/dist/esm/api/portfolio-api.js +568 -0
- package/dist/esm/api/portfolio-investment-api.d.ts +258 -0
- package/dist/esm/api/portfolio-investment-api.js +519 -0
- package/dist/esm/api/portfolio-kpiapi.d.ts +361 -0
- package/dist/esm/api/portfolio-kpiapi.js +733 -0
- 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 +4 -1
- package/dist/esm/api.js +4 -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 +3 -3
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/bulk-delete-request.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +1 -1
- package/dist/esm/models/evolution-type.js +1 -1
- package/dist/esm/models/httpvalidation-error.d.ts +1 -1
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +1 -2
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-bulk-item.d.ts +33 -0
- package/dist/esm/models/impact-bulk-item.js +14 -0
- package/dist/esm/models/impact-create.d.ts +1 -5
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -2
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +23 -0
- package/dist/esm/models/index.js +23 -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-performance-response.d.ts +21 -0
- package/dist/esm/models/metric-performance-response.js +14 -0
- package/dist/esm/models/metric-performance-year.d.ts +18 -0
- package/dist/esm/models/metric-performance-year.js +14 -0
- 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/monetized-impact-response.d.ts +18 -0
- package/dist/esm/models/monetized-impact-response.js +14 -0
- package/dist/esm/models/monetized-impact-year.d.ts +19 -0
- package/dist/esm/models/monetized-impact-year.js +14 -0
- 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/portfolio-budget-expenditure-response.d.ts +21 -0
- package/dist/esm/models/portfolio-budget-expenditure-response.js +14 -0
- package/dist/esm/models/portfolio-budget-expenditure-year.d.ts +18 -0
- package/dist/esm/models/portfolio-budget-expenditure-year.js +14 -0
- package/dist/esm/models/portfolio-budget-usage-item.d.ts +28 -0
- package/dist/esm/models/portfolio-budget-usage-item.js +14 -0
- package/dist/esm/models/portfolio-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/portfolio-bulk-delete-request.js +14 -0
- package/dist/esm/models/portfolio-create.d.ts +21 -0
- package/dist/esm/models/portfolio-create.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-add-request.d.ts +20 -0
- package/dist/esm/models/portfolio-investment-bulk-add-request.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-add-response.d.ts +24 -0
- package/dist/esm/models/portfolio-investment-bulk-add-response.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/portfolio-investment-bulk-delete-request.js +14 -0
- package/dist/esm/models/portfolio-investment-response.d.ts +25 -0
- package/dist/esm/models/portfolio-investment-response.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
- package/dist/esm/models/portfolio-kpidistribution-budget-item.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-response.d.ts +20 -0
- package/dist/esm/models/portfolio-kpidistribution-response.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-year-value.d.ts +18 -0
- package/dist/esm/models/portfolio-kpidistribution-year-value.js +14 -0
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.js +14 -0
- package/dist/esm/models/portfolio-kpiresponse.d.ts +31 -0
- package/dist/esm/models/portfolio-kpiresponse.js +14 -0
- package/dist/esm/models/portfolio-overview-item-response.d.ts +40 -0
- package/dist/esm/models/portfolio-overview-item-response.js +14 -0
- package/dist/esm/models/portfolio-response.d.ts +25 -0
- package/dist/esm/models/portfolio-response.js +14 -0
- package/dist/esm/models/portfolio-update.d.ts +18 -0
- package/dist/esm/models/portfolio-update.js +14 -0
- 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 +3 -3
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +1 -1
- package/dist/models/bulk-delete-request.js +1 -1
- package/dist/models/evolution-type.d.ts +1 -1
- package/dist/models/evolution-type.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +1 -2
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-bulk-item.d.ts +33 -0
- package/dist/models/impact-bulk-item.js +15 -0
- package/dist/models/impact-create.d.ts +1 -5
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -2
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +23 -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-performance-response.d.ts +21 -0
- package/dist/models/metric-performance-response.js +15 -0
- package/dist/models/metric-performance-year.d.ts +18 -0
- package/dist/models/metric-performance-year.js +15 -0
- 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/monetized-impact-response.d.ts +18 -0
- package/dist/models/monetized-impact-response.js +15 -0
- package/dist/models/monetized-impact-year.d.ts +19 -0
- package/dist/models/monetized-impact-year.js +15 -0
- 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/portfolio-budget-expenditure-response.d.ts +21 -0
- package/dist/models/portfolio-budget-expenditure-response.js +15 -0
- package/dist/models/portfolio-budget-expenditure-year.d.ts +18 -0
- package/dist/models/portfolio-budget-expenditure-year.js +15 -0
- package/dist/models/portfolio-budget-usage-item.d.ts +28 -0
- package/dist/models/portfolio-budget-usage-item.js +15 -0
- package/dist/models/portfolio-bulk-delete-request.d.ts +20 -0
- package/dist/models/portfolio-bulk-delete-request.js +15 -0
- package/dist/models/portfolio-create.d.ts +21 -0
- package/dist/models/portfolio-create.js +15 -0
- package/dist/models/portfolio-investment-bulk-add-request.d.ts +20 -0
- package/dist/models/portfolio-investment-bulk-add-request.js +15 -0
- package/dist/models/portfolio-investment-bulk-add-response.d.ts +24 -0
- package/dist/models/portfolio-investment-bulk-add-response.js +15 -0
- package/dist/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
- package/dist/models/portfolio-investment-bulk-delete-request.js +15 -0
- package/dist/models/portfolio-investment-response.d.ts +25 -0
- package/dist/models/portfolio-investment-response.js +15 -0
- package/dist/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
- package/dist/models/portfolio-kpidistribution-budget-item.js +15 -0
- package/dist/models/portfolio-kpidistribution-response.d.ts +20 -0
- package/dist/models/portfolio-kpidistribution-response.js +15 -0
- package/dist/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
- package/dist/models/portfolio-kpidistribution-year-overrun.js +15 -0
- package/dist/models/portfolio-kpidistribution-year-value.d.ts +18 -0
- package/dist/models/portfolio-kpidistribution-year-value.js +15 -0
- package/dist/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
- package/dist/models/portfolio-kpioverrun-distribution-response.js +15 -0
- package/dist/models/portfolio-kpiresponse.d.ts +31 -0
- package/dist/models/portfolio-kpiresponse.js +15 -0
- package/dist/models/portfolio-overview-item-response.d.ts +40 -0
- package/dist/models/portfolio-overview-item-response.js +15 -0
- package/dist/models/portfolio-response.d.ts +25 -0
- package/dist/models/portfolio-response.js +15 -0
- package/dist/models/portfolio-update.d.ts +18 -0
- package/dist/models/portfolio-update.js +15 -0
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/BudgetApi.md +4 -4
- package/docs/BudgetBulkDeleteRequest.md +2 -2
- package/docs/ImpactAPIResponse.md +0 -2
- package/docs/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +27 -0
- package/docs/ImpactCreate.md +0 -2
- package/docs/ImpactUpdate.md +0 -2
- package/docs/InvestmentApi.md +29 -851
- package/docs/MetricPerformanceResponse.md +27 -0
- package/docs/MetricPerformanceYear.md +23 -0
- package/docs/MonetizedImpactResponse.md +21 -0
- package/docs/MonetizedImpactYear.md +25 -0
- package/docs/ObjectiveApi.md +0 -351
- package/docs/OptionApi.md +7 -312
- package/docs/PortfolioApi.md +395 -0
- package/docs/PortfolioBudgetExpenditureResponse.md +27 -0
- package/docs/PortfolioBudgetExpenditureYear.md +23 -0
- package/docs/PortfolioBudgetUsageItem.md +31 -0
- package/docs/PortfolioBulkDeleteRequest.md +21 -0
- package/docs/PortfolioCreate.md +23 -0
- package/docs/PortfolioInvestmentApi.md +350 -0
- package/docs/PortfolioInvestmentBulkAddRequest.md +21 -0
- package/docs/PortfolioInvestmentBulkAddResponse.md +23 -0
- package/docs/PortfolioInvestmentBulkDeleteRequest.md +21 -0
- package/docs/PortfolioInvestmentResponse.md +25 -0
- package/docs/PortfolioKPIApi.md +508 -0
- package/docs/PortfolioKPIDistributionBudgetItem.md +25 -0
- package/docs/PortfolioKPIDistributionResponse.md +25 -0
- package/docs/PortfolioKPIDistributionYearOverrun.md +23 -0
- package/docs/PortfolioKPIDistributionYearValue.md +23 -0
- package/docs/PortfolioKPIOverrunDistributionResponse.md +23 -0
- package/docs/PortfolioKPIResponse.md +31 -0
- package/docs/PortfolioOverviewItemResponse.md +43 -0
- package/docs/PortfolioResponse.md +31 -0
- package/docs/PortfolioUpdate.md +23 -0
- package/docs/ValueFrameworkApi.md +7 -778
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +3 -3
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.ts +1 -1
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -2
- package/models/impact-bulk-item.ts +43 -0
- package/models/impact-create.ts +1 -5
- package/models/impact-update.ts +1 -2
- package/models/index.ts +23 -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-performance-response.ts +29 -0
- package/models/metric-performance-year.ts +24 -0
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/monetized-impact-response.ts +26 -0
- package/models/monetized-impact-year.ts +25 -0
- 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/portfolio-budget-expenditure-response.ts +29 -0
- package/models/portfolio-budget-expenditure-year.ts +24 -0
- package/models/portfolio-budget-usage-item.ts +34 -0
- package/models/portfolio-bulk-delete-request.ts +26 -0
- package/models/portfolio-create.ts +27 -0
- package/models/portfolio-investment-bulk-add-request.ts +26 -0
- package/models/portfolio-investment-bulk-add-response.ts +30 -0
- package/models/portfolio-investment-bulk-delete-request.ts +26 -0
- package/models/portfolio-investment-response.ts +31 -0
- package/models/portfolio-kpidistribution-budget-item.ts +25 -0
- package/models/portfolio-kpidistribution-response.ts +28 -0
- package/models/portfolio-kpidistribution-year-overrun.ts +27 -0
- package/models/portfolio-kpidistribution-year-value.ts +24 -0
- package/models/portfolio-kpioverrun-distribution-response.ts +27 -0
- package/models/portfolio-kpiresponse.ts +37 -0
- package/models/portfolio-overview-item-response.ts +46 -0
- package/models/portfolio-response.ts +31 -0
- package/models/portfolio-update.ts +24 -0
- 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/OptionApi.md
CHANGED
|
@@ -4,79 +4,14 @@ All URIs are relative to *http://localhost*
|
|
|
4
4
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
|[**createImpactForOption**](#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option|
|
|
8
7
|
|[**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|
|
|
10
8
|
|[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
|
|
11
|
-
|[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
|
|
12
|
-
|[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
|
|
13
9
|
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
14
10
|
|[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
|
|
15
11
|
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
16
12
|
|[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
|
|
17
|
-
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
18
13
|
|[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
|
|
19
14
|
|
|
20
|
-
# **createImpactForOption**
|
|
21
|
-
> ImpactAPIResponse createImpactForOption(impactCreate)
|
|
22
|
-
|
|
23
|
-
Create a new impact under this option.
|
|
24
|
-
|
|
25
|
-
### Example
|
|
26
|
-
|
|
27
|
-
```typescript
|
|
28
|
-
import {
|
|
29
|
-
OptionApi,
|
|
30
|
-
Configuration,
|
|
31
|
-
ImpactCreate
|
|
32
|
-
} from '@cosmotech/aip-client';
|
|
33
|
-
|
|
34
|
-
const configuration = new Configuration();
|
|
35
|
-
const apiInstance = new OptionApi(configuration);
|
|
36
|
-
|
|
37
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
38
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
39
|
-
let impactCreate: ImpactCreate; //
|
|
40
|
-
|
|
41
|
-
const { status, data } = await apiInstance.createImpactForOption(
|
|
42
|
-
optionId,
|
|
43
|
-
investmentId,
|
|
44
|
-
impactCreate
|
|
45
|
-
);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### Parameters
|
|
49
|
-
|
|
50
|
-
|Name | Type | Description | Notes|
|
|
51
|
-
|------------- | ------------- | ------------- | -------------|
|
|
52
|
-
| **impactCreate** | **ImpactCreate**| | |
|
|
53
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
54
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Return type
|
|
58
|
-
|
|
59
|
-
**ImpactAPIResponse**
|
|
60
|
-
|
|
61
|
-
### Authorization
|
|
62
|
-
|
|
63
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
64
|
-
|
|
65
|
-
### HTTP request headers
|
|
66
|
-
|
|
67
|
-
- **Content-Type**: application/json
|
|
68
|
-
- **Accept**: application/json
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### HTTP response details
|
|
72
|
-
| Status code | Description | Response headers |
|
|
73
|
-
|-------------|-------------|------------------|
|
|
74
|
-
|**201** | Impact created successfully | - |
|
|
75
|
-
|**400** | Invalid input or constraint violation | - |
|
|
76
|
-
|**404** | Investment or option not found | - |
|
|
77
|
-
|
|
78
|
-
[[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)
|
|
79
|
-
|
|
80
15
|
# **createOptionForInvestment**
|
|
81
16
|
> OptionResponse createOptionForInvestment(optionCreate)
|
|
82
17
|
|
|
@@ -134,64 +69,6 @@ const { status, data } = await apiInstance.createOptionForInvestment(
|
|
|
134
69
|
|
|
135
70
|
[[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)
|
|
136
71
|
|
|
137
|
-
# **deleteImpactForOption**
|
|
138
|
-
> deleteImpactForOption()
|
|
139
|
-
|
|
140
|
-
Delete an existing impact by its ID.
|
|
141
|
-
|
|
142
|
-
### Example
|
|
143
|
-
|
|
144
|
-
```typescript
|
|
145
|
-
import {
|
|
146
|
-
OptionApi,
|
|
147
|
-
Configuration
|
|
148
|
-
} from '@cosmotech/aip-client';
|
|
149
|
-
|
|
150
|
-
const configuration = new Configuration();
|
|
151
|
-
const apiInstance = new OptionApi(configuration);
|
|
152
|
-
|
|
153
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
154
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
155
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
156
|
-
|
|
157
|
-
const { status, data } = await apiInstance.deleteImpactForOption(
|
|
158
|
-
impactId,
|
|
159
|
-
optionId,
|
|
160
|
-
investmentId
|
|
161
|
-
);
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
### Parameters
|
|
165
|
-
|
|
166
|
-
|Name | Type | Description | Notes|
|
|
167
|
-
|------------- | ------------- | ------------- | -------------|
|
|
168
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
169
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
170
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### Return type
|
|
174
|
-
|
|
175
|
-
void (empty response body)
|
|
176
|
-
|
|
177
|
-
### Authorization
|
|
178
|
-
|
|
179
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
180
|
-
|
|
181
|
-
### HTTP request headers
|
|
182
|
-
|
|
183
|
-
- **Content-Type**: Not defined
|
|
184
|
-
- **Accept**: Not defined
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
### HTTP response details
|
|
188
|
-
| Status code | Description | Response headers |
|
|
189
|
-
|-------------|-------------|------------------|
|
|
190
|
-
|**204** | Impact successfully deleted | - |
|
|
191
|
-
|**404** | Investment, option, or impact not found | - |
|
|
192
|
-
|
|
193
|
-
[[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)
|
|
194
|
-
|
|
195
72
|
# **deleteOptionForInvestment**
|
|
196
73
|
> deleteOptionForInvestment()
|
|
197
74
|
|
|
@@ -208,12 +85,12 @@ import {
|
|
|
208
85
|
const configuration = new Configuration();
|
|
209
86
|
const apiInstance = new OptionApi(configuration);
|
|
210
87
|
|
|
211
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
212
88
|
let investmentId: string; //UUID of the investment (default to undefined)
|
|
89
|
+
let optionId: string; //UUID of the option (default to undefined)
|
|
213
90
|
|
|
214
91
|
const { status, data } = await apiInstance.deleteOptionForInvestment(
|
|
215
|
-
|
|
216
|
-
|
|
92
|
+
investmentId,
|
|
93
|
+
optionId
|
|
217
94
|
);
|
|
218
95
|
```
|
|
219
96
|
|
|
@@ -221,8 +98,8 @@ const { status, data } = await apiInstance.deleteOptionForInvestment(
|
|
|
221
98
|
|
|
222
99
|
|Name | Type | Description | Notes|
|
|
223
100
|
|------------- | ------------- | ------------- | -------------|
|
|
224
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
225
101
|
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
102
|
+
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
226
103
|
|
|
227
104
|
|
|
228
105
|
### Return type
|
|
@@ -247,125 +124,6 @@ void (empty response body)
|
|
|
247
124
|
|
|
248
125
|
[[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)
|
|
249
126
|
|
|
250
|
-
# **getImpactForOption**
|
|
251
|
-
> ImpactAPIResponse getImpactForOption()
|
|
252
|
-
|
|
253
|
-
Retrieve a specific impact for the option.
|
|
254
|
-
|
|
255
|
-
### Example
|
|
256
|
-
|
|
257
|
-
```typescript
|
|
258
|
-
import {
|
|
259
|
-
OptionApi,
|
|
260
|
-
Configuration
|
|
261
|
-
} from '@cosmotech/aip-client';
|
|
262
|
-
|
|
263
|
-
const configuration = new Configuration();
|
|
264
|
-
const apiInstance = new OptionApi(configuration);
|
|
265
|
-
|
|
266
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
267
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
268
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
269
|
-
|
|
270
|
-
const { status, data } = await apiInstance.getImpactForOption(
|
|
271
|
-
impactId,
|
|
272
|
-
optionId,
|
|
273
|
-
investmentId
|
|
274
|
-
);
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
### Parameters
|
|
278
|
-
|
|
279
|
-
|Name | Type | Description | Notes|
|
|
280
|
-
|------------- | ------------- | ------------- | -------------|
|
|
281
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
282
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
283
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
### Return type
|
|
287
|
-
|
|
288
|
-
**ImpactAPIResponse**
|
|
289
|
-
|
|
290
|
-
### Authorization
|
|
291
|
-
|
|
292
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
293
|
-
|
|
294
|
-
### HTTP request headers
|
|
295
|
-
|
|
296
|
-
- **Content-Type**: Not defined
|
|
297
|
-
- **Accept**: application/json
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
### HTTP response details
|
|
301
|
-
| Status code | Description | Response headers |
|
|
302
|
-
|-------------|-------------|------------------|
|
|
303
|
-
|**200** | The requested impact | - |
|
|
304
|
-
|**404** | Investment, option, or impact not found | - |
|
|
305
|
-
|
|
306
|
-
[[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)
|
|
307
|
-
|
|
308
|
-
# **getImpactsForOption**
|
|
309
|
-
> Array<ImpactAPIResponse> getImpactsForOption()
|
|
310
|
-
|
|
311
|
-
Retrieve a paginated list of all impacts for a specific option.
|
|
312
|
-
|
|
313
|
-
### Example
|
|
314
|
-
|
|
315
|
-
```typescript
|
|
316
|
-
import {
|
|
317
|
-
OptionApi,
|
|
318
|
-
Configuration
|
|
319
|
-
} from '@cosmotech/aip-client';
|
|
320
|
-
|
|
321
|
-
const configuration = new Configuration();
|
|
322
|
-
const apiInstance = new OptionApi(configuration);
|
|
323
|
-
|
|
324
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
325
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
326
|
-
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
327
|
-
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
328
|
-
|
|
329
|
-
const { status, data } = await apiInstance.getImpactsForOption(
|
|
330
|
-
optionId,
|
|
331
|
-
investmentId,
|
|
332
|
-
offset,
|
|
333
|
-
limit
|
|
334
|
-
);
|
|
335
|
-
```
|
|
336
|
-
|
|
337
|
-
### Parameters
|
|
338
|
-
|
|
339
|
-
|Name | Type | Description | Notes|
|
|
340
|
-
|------------- | ------------- | ------------- | -------------|
|
|
341
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
342
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
343
|
-
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
344
|
-
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
### Return type
|
|
348
|
-
|
|
349
|
-
**Array<ImpactAPIResponse>**
|
|
350
|
-
|
|
351
|
-
### Authorization
|
|
352
|
-
|
|
353
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
354
|
-
|
|
355
|
-
### HTTP request headers
|
|
356
|
-
|
|
357
|
-
- **Content-Type**: Not defined
|
|
358
|
-
- **Accept**: application/json
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
### HTTP response details
|
|
362
|
-
| Status code | Description | Response headers |
|
|
363
|
-
|-------------|-------------|------------------|
|
|
364
|
-
|**200** | List of impacts for the option | - |
|
|
365
|
-
|**404** | Investment or option not found | - |
|
|
366
|
-
|
|
367
|
-
[[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)
|
|
368
|
-
|
|
369
127
|
# **getOptionForInvestment**
|
|
370
128
|
> OptionResponse getOptionForInvestment()
|
|
371
129
|
|
|
@@ -437,13 +195,13 @@ import {
|
|
|
437
195
|
const configuration = new Configuration();
|
|
438
196
|
const apiInstance = new OptionApi(configuration);
|
|
439
197
|
|
|
440
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
441
198
|
let optionId: string; //UUID of the option (default to undefined)
|
|
199
|
+
let investmentId: string; //UUID of the investment (default to undefined)
|
|
442
200
|
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
443
201
|
|
|
444
202
|
const { status, data } = await apiInstance.getOptionKpis(
|
|
445
|
-
investmentId,
|
|
446
203
|
optionId,
|
|
204
|
+
investmentId,
|
|
447
205
|
valueFrameworkId
|
|
448
206
|
);
|
|
449
207
|
```
|
|
@@ -452,8 +210,8 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
452
210
|
|
|
453
211
|
|Name | Type | Description | Notes|
|
|
454
212
|
|------------- | ------------- | ------------- | -------------|
|
|
455
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
456
213
|
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
214
|
+
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
457
215
|
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
458
216
|
|
|
459
217
|
|
|
@@ -592,69 +350,6 @@ const { status, data } = await apiInstance.getOptionsOverview(
|
|
|
592
350
|
|
|
593
351
|
[[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)
|
|
594
352
|
|
|
595
|
-
# **patchImpactForOption**
|
|
596
|
-
> ImpactAPIResponse patchImpactForOption(impactUpdate)
|
|
597
|
-
|
|
598
|
-
Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
599
|
-
|
|
600
|
-
### Example
|
|
601
|
-
|
|
602
|
-
```typescript
|
|
603
|
-
import {
|
|
604
|
-
OptionApi,
|
|
605
|
-
Configuration,
|
|
606
|
-
ImpactUpdate
|
|
607
|
-
} from '@cosmotech/aip-client';
|
|
608
|
-
|
|
609
|
-
const configuration = new Configuration();
|
|
610
|
-
const apiInstance = new OptionApi(configuration);
|
|
611
|
-
|
|
612
|
-
let impactId: string; //UUID of the impact (default to undefined)
|
|
613
|
-
let optionId: string; //UUID of the option (default to undefined)
|
|
614
|
-
let investmentId: string; //UUID of the investment (default to undefined)
|
|
615
|
-
let impactUpdate: ImpactUpdate; //
|
|
616
|
-
|
|
617
|
-
const { status, data } = await apiInstance.patchImpactForOption(
|
|
618
|
-
impactId,
|
|
619
|
-
optionId,
|
|
620
|
-
investmentId,
|
|
621
|
-
impactUpdate
|
|
622
|
-
);
|
|
623
|
-
```
|
|
624
|
-
|
|
625
|
-
### Parameters
|
|
626
|
-
|
|
627
|
-
|Name | Type | Description | Notes|
|
|
628
|
-
|------------- | ------------- | ------------- | -------------|
|
|
629
|
-
| **impactUpdate** | **ImpactUpdate**| | |
|
|
630
|
-
| **impactId** | [**string**] | UUID of the impact | defaults to undefined|
|
|
631
|
-
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
632
|
-
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
### Return type
|
|
636
|
-
|
|
637
|
-
**ImpactAPIResponse**
|
|
638
|
-
|
|
639
|
-
### Authorization
|
|
640
|
-
|
|
641
|
-
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
642
|
-
|
|
643
|
-
### HTTP request headers
|
|
644
|
-
|
|
645
|
-
- **Content-Type**: application/json
|
|
646
|
-
- **Accept**: application/json
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
### HTTP response details
|
|
650
|
-
| Status code | Description | Response headers |
|
|
651
|
-
|-------------|-------------|------------------|
|
|
652
|
-
|**200** | Impact updated successfully | - |
|
|
653
|
-
|**400** | Validation or constraint error | - |
|
|
654
|
-
|**404** | Investment, option, or impact not found | - |
|
|
655
|
-
|
|
656
|
-
[[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)
|
|
657
|
-
|
|
658
353
|
# **patchOptionForInvestment**
|
|
659
354
|
> OptionResponse patchOptionForInvestment(optionUpdate)
|
|
660
355
|
|