@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/api/investment-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -24,12 +24,6 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { BulkDeleteRequest } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import type { ImpactAPIResponse } from '../models';
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import type { ImpactCreate } from '../models';
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
import type { ImpactUpdate } from '../models';
|
|
32
|
-
// @ts-ignore
|
|
33
27
|
import type { InvestmentCreate } from '../models';
|
|
34
28
|
// @ts-ignore
|
|
35
29
|
import type { InvestmentOverviewResponse } from '../models';
|
|
@@ -37,20 +31,6 @@ import type { InvestmentOverviewResponse } from '../models';
|
|
|
37
31
|
import type { InvestmentResponse } from '../models';
|
|
38
32
|
// @ts-ignore
|
|
39
33
|
import type { InvestmentUpdate } from '../models';
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
import type { OptionChartKPIsYearly } from '../models';
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
import type { OptionCreate } from '../models';
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
import type { OptionOverviewResponse } from '../models';
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
import type { OptionResponse } from '../models';
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
import type { OptionUpdate } from '../models';
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
import type { PreferredOptionRequest } from '../models';
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
import type { PreferredOptionResponse } from '../models';
|
|
54
34
|
/**
|
|
55
35
|
* InvestmentApi - axios parameter creator
|
|
56
36
|
*/
|
|
@@ -94,141 +74,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
94
74
|
options: localVarRequestOptions,
|
|
95
75
|
};
|
|
96
76
|
},
|
|
97
|
-
/**
|
|
98
|
-
* Create a new impact under this option.
|
|
99
|
-
* @summary Create an impact for this option
|
|
100
|
-
* @param {string} optionId UUID of the option
|
|
101
|
-
* @param {string} investmentId UUID of the investment
|
|
102
|
-
* @param {ImpactCreate} impactCreate
|
|
103
|
-
* @param {*} [options] Override http request option.
|
|
104
|
-
* @throws {RequiredError}
|
|
105
|
-
*/
|
|
106
|
-
createImpactForOption: async (optionId: string, investmentId: string, impactCreate: ImpactCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
108
|
-
assertParamExists('createImpactForOption', 'optionId', optionId)
|
|
109
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
110
|
-
assertParamExists('createImpactForOption', 'investmentId', investmentId)
|
|
111
|
-
// verify required parameter 'impactCreate' is not null or undefined
|
|
112
|
-
assertParamExists('createImpactForOption', 'impactCreate', impactCreate)
|
|
113
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
114
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
115
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
116
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
117
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
118
|
-
let baseOptions;
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
124
|
-
const localVarHeaderParameter = {} as any;
|
|
125
|
-
const localVarQueryParameter = {} as any;
|
|
126
|
-
|
|
127
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
128
|
-
// oauth required
|
|
129
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
130
|
-
|
|
131
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
133
|
-
|
|
134
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
135
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
136
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
137
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactCreate, localVarRequestOptions, configuration)
|
|
138
|
-
|
|
139
|
-
return {
|
|
140
|
-
url: toPathString(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
};
|
|
143
|
-
},
|
|
144
|
-
/**
|
|
145
|
-
* Create a new option under this investment.
|
|
146
|
-
* @summary Create an option for this investment
|
|
147
|
-
* @param {string} investmentId UUID of the investment
|
|
148
|
-
* @param {OptionCreate} optionCreate
|
|
149
|
-
* @param {*} [options] Override http request option.
|
|
150
|
-
* @throws {RequiredError}
|
|
151
|
-
*/
|
|
152
|
-
createOptionForInvestment: async (investmentId: string, optionCreate: OptionCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
153
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
154
|
-
assertParamExists('createOptionForInvestment', 'investmentId', investmentId)
|
|
155
|
-
// verify required parameter 'optionCreate' is not null or undefined
|
|
156
|
-
assertParamExists('createOptionForInvestment', 'optionCreate', optionCreate)
|
|
157
|
-
const localVarPath = `/investment/{investment_id}/option/`
|
|
158
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
159
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
160
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
161
|
-
let baseOptions;
|
|
162
|
-
if (configuration) {
|
|
163
|
-
baseOptions = configuration.baseOptions;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
167
|
-
const localVarHeaderParameter = {} as any;
|
|
168
|
-
const localVarQueryParameter = {} as any;
|
|
169
|
-
|
|
170
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
171
|
-
// oauth required
|
|
172
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
173
|
-
|
|
174
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
175
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
176
|
-
|
|
177
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
178
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
179
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
180
|
-
localVarRequestOptions.data = serializeDataIfNeeded(optionCreate, localVarRequestOptions, configuration)
|
|
181
|
-
|
|
182
|
-
return {
|
|
183
|
-
url: toPathString(localVarUrlObj),
|
|
184
|
-
options: localVarRequestOptions,
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
/**
|
|
188
|
-
* Delete an existing impact by its ID.
|
|
189
|
-
* @summary Delete an impact for this option
|
|
190
|
-
* @param {string} impactId UUID of the impact
|
|
191
|
-
* @param {string} optionId UUID of the option
|
|
192
|
-
* @param {string} investmentId UUID of the investment
|
|
193
|
-
* @param {*} [options] Override http request option.
|
|
194
|
-
* @throws {RequiredError}
|
|
195
|
-
*/
|
|
196
|
-
deleteImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
198
|
-
assertParamExists('deleteImpactForOption', 'impactId', impactId)
|
|
199
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
200
|
-
assertParamExists('deleteImpactForOption', 'optionId', optionId)
|
|
201
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
202
|
-
assertParamExists('deleteImpactForOption', 'investmentId', investmentId)
|
|
203
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
204
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
205
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
206
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
207
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
209
|
-
let baseOptions;
|
|
210
|
-
if (configuration) {
|
|
211
|
-
baseOptions = configuration.baseOptions;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
215
|
-
const localVarHeaderParameter = {} as any;
|
|
216
|
-
const localVarQueryParameter = {} as any;
|
|
217
|
-
|
|
218
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
219
|
-
// oauth required
|
|
220
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
224
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
226
|
-
|
|
227
|
-
return {
|
|
228
|
-
url: toPathString(localVarUrlObj),
|
|
229
|
-
options: localVarRequestOptions,
|
|
230
|
-
};
|
|
231
|
-
},
|
|
232
77
|
/**
|
|
233
78
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
234
79
|
* @summary Delete an investment
|
|
@@ -257,145 +102,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
257
102
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
258
103
|
|
|
259
104
|
|
|
260
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
263
|
-
|
|
264
|
-
return {
|
|
265
|
-
url: toPathString(localVarUrlObj),
|
|
266
|
-
options: localVarRequestOptions,
|
|
267
|
-
};
|
|
268
|
-
},
|
|
269
|
-
/**
|
|
270
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
271
|
-
* @summary Delete an option for this investment
|
|
272
|
-
* @param {string} optionId UUID of the option
|
|
273
|
-
* @param {string} investmentId UUID of the investment
|
|
274
|
-
* @param {*} [options] Override http request option.
|
|
275
|
-
* @throws {RequiredError}
|
|
276
|
-
*/
|
|
277
|
-
deleteOptionForInvestment: async (optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
279
|
-
assertParamExists('deleteOptionForInvestment', 'optionId', optionId)
|
|
280
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
281
|
-
assertParamExists('deleteOptionForInvestment', 'investmentId', investmentId)
|
|
282
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
283
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
284
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
-
let baseOptions;
|
|
288
|
-
if (configuration) {
|
|
289
|
-
baseOptions = configuration.baseOptions;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
293
|
-
const localVarHeaderParameter = {} as any;
|
|
294
|
-
const localVarQueryParameter = {} as any;
|
|
295
|
-
|
|
296
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
297
|
-
// oauth required
|
|
298
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
302
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
303
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
304
|
-
|
|
305
|
-
return {
|
|
306
|
-
url: toPathString(localVarUrlObj),
|
|
307
|
-
options: localVarRequestOptions,
|
|
308
|
-
};
|
|
309
|
-
},
|
|
310
|
-
/**
|
|
311
|
-
* Retrieve a specific impact for the option.
|
|
312
|
-
* @summary Get an impact for this option
|
|
313
|
-
* @param {string} impactId UUID of the impact
|
|
314
|
-
* @param {string} optionId UUID of the option
|
|
315
|
-
* @param {string} investmentId UUID of the investment
|
|
316
|
-
* @param {*} [options] Override http request option.
|
|
317
|
-
* @throws {RequiredError}
|
|
318
|
-
*/
|
|
319
|
-
getImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
320
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
321
|
-
assertParamExists('getImpactForOption', 'impactId', impactId)
|
|
322
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
323
|
-
assertParamExists('getImpactForOption', 'optionId', optionId)
|
|
324
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
325
|
-
assertParamExists('getImpactForOption', 'investmentId', investmentId)
|
|
326
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
327
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
328
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
329
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
330
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
331
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
332
|
-
let baseOptions;
|
|
333
|
-
if (configuration) {
|
|
334
|
-
baseOptions = configuration.baseOptions;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
338
|
-
const localVarHeaderParameter = {} as any;
|
|
339
|
-
const localVarQueryParameter = {} as any;
|
|
340
|
-
|
|
341
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
342
|
-
// oauth required
|
|
343
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
344
|
-
|
|
345
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
346
|
-
|
|
347
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
348
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
349
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
350
|
-
|
|
351
|
-
return {
|
|
352
|
-
url: toPathString(localVarUrlObj),
|
|
353
|
-
options: localVarRequestOptions,
|
|
354
|
-
};
|
|
355
|
-
},
|
|
356
|
-
/**
|
|
357
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
358
|
-
* @summary List impacts for this option
|
|
359
|
-
* @param {string} optionId UUID of the option
|
|
360
|
-
* @param {string} investmentId UUID of the investment
|
|
361
|
-
* @param {number} [offset] Number of records to skip
|
|
362
|
-
* @param {number} [limit] Max number of records to return
|
|
363
|
-
* @param {*} [options] Override http request option.
|
|
364
|
-
* @throws {RequiredError}
|
|
365
|
-
*/
|
|
366
|
-
getImpactsForOption: async (optionId: string, investmentId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
367
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
368
|
-
assertParamExists('getImpactsForOption', 'optionId', optionId)
|
|
369
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
370
|
-
assertParamExists('getImpactsForOption', 'investmentId', investmentId)
|
|
371
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
372
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
373
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
374
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
375
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
376
|
-
let baseOptions;
|
|
377
|
-
if (configuration) {
|
|
378
|
-
baseOptions = configuration.baseOptions;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
382
|
-
const localVarHeaderParameter = {} as any;
|
|
383
|
-
const localVarQueryParameter = {} as any;
|
|
384
|
-
|
|
385
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
386
|
-
// oauth required
|
|
387
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
388
|
-
|
|
389
|
-
if (offset !== undefined) {
|
|
390
|
-
localVarQueryParameter['offset'] = offset;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
if (limit !== undefined) {
|
|
394
|
-
localVarQueryParameter['limit'] = limit;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
398
|
-
|
|
399
105
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
400
106
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
401
107
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -529,20 +235,19 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
529
235
|
};
|
|
530
236
|
},
|
|
531
237
|
/**
|
|
532
|
-
*
|
|
533
|
-
* @summary
|
|
534
|
-
* @param {string} optionId UUID of the option
|
|
238
|
+
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
239
|
+
* @summary Partially update an investment
|
|
535
240
|
* @param {string} investmentId UUID of the investment
|
|
241
|
+
* @param {InvestmentUpdate} investmentUpdate
|
|
536
242
|
* @param {*} [options] Override http request option.
|
|
537
243
|
* @throws {RequiredError}
|
|
538
244
|
*/
|
|
539
|
-
|
|
540
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
541
|
-
assertParamExists('getOptionForInvestment', 'optionId', optionId)
|
|
245
|
+
patchInvestment: async (investmentId: string, investmentUpdate: InvestmentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
542
246
|
// verify required parameter 'investmentId' is not null or undefined
|
|
543
|
-
assertParamExists('
|
|
544
|
-
|
|
545
|
-
|
|
247
|
+
assertParamExists('patchInvestment', 'investmentId', investmentId)
|
|
248
|
+
// verify required parameter 'investmentUpdate' is not null or undefined
|
|
249
|
+
assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate)
|
|
250
|
+
const localVarPath = `/investment/{investment_id}`
|
|
546
251
|
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
547
252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
548
253
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -551,7 +256,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
551
256
|
baseOptions = configuration.baseOptions;
|
|
552
257
|
}
|
|
553
258
|
|
|
554
|
-
const localVarRequestOptions = { method: '
|
|
259
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
555
260
|
const localVarHeaderParameter = {} as any;
|
|
556
261
|
const localVarQueryParameter = {} as any;
|
|
557
262
|
|
|
@@ -559,11 +264,13 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
559
264
|
// oauth required
|
|
560
265
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
561
266
|
|
|
267
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
562
268
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
563
269
|
|
|
564
270
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
565
271
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
566
272
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
273
|
+
localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration)
|
|
567
274
|
|
|
568
275
|
return {
|
|
569
276
|
url: toPathString(localVarUrlObj),
|
|
@@ -571,25 +278,16 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
571
278
|
};
|
|
572
279
|
},
|
|
573
280
|
/**
|
|
574
|
-
*
|
|
575
|
-
* @summary
|
|
576
|
-
* @param {
|
|
577
|
-
* @param {string} optionId UUID of the option
|
|
578
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
281
|
+
* Create a new investment.
|
|
282
|
+
* @summary Create an investment
|
|
283
|
+
* @param {InvestmentCreate} investmentCreate
|
|
579
284
|
* @param {*} [options] Override http request option.
|
|
580
285
|
* @throws {RequiredError}
|
|
581
286
|
*/
|
|
582
|
-
|
|
583
|
-
// verify required parameter '
|
|
584
|
-
assertParamExists('
|
|
585
|
-
|
|
586
|
-
assertParamExists('getOptionKpis', 'optionId', optionId)
|
|
587
|
-
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
588
|
-
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
|
|
589
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
590
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
591
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
592
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
287
|
+
postInvestment: async (investmentCreate: InvestmentCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
288
|
+
// verify required parameter 'investmentCreate' is not null or undefined
|
|
289
|
+
assertParamExists('postInvestment', 'investmentCreate', investmentCreate)
|
|
290
|
+
const localVarPath = `/investment/`;
|
|
593
291
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
594
292
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
595
293
|
let baseOptions;
|
|
@@ -597,7 +295,7 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
597
295
|
baseOptions = configuration.baseOptions;
|
|
598
296
|
}
|
|
599
297
|
|
|
600
|
-
const localVarRequestOptions = { method: '
|
|
298
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
601
299
|
const localVarHeaderParameter = {} as any;
|
|
602
300
|
const localVarQueryParameter = {} as any;
|
|
603
301
|
|
|
@@ -605,620 +303,92 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
605
303
|
// oauth required
|
|
606
304
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
607
305
|
|
|
306
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
608
307
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
609
308
|
|
|
610
309
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
611
310
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
612
311
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
312
|
+
localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration)
|
|
613
313
|
|
|
614
314
|
return {
|
|
615
315
|
url: toPathString(localVarUrlObj),
|
|
616
316
|
options: localVarRequestOptions,
|
|
617
317
|
};
|
|
618
318
|
},
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
getOptionsForInvestment: async (investmentId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
629
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
630
|
-
assertParamExists('getOptionsForInvestment', 'investmentId', investmentId)
|
|
631
|
-
const localVarPath = `/investment/{investment_id}/option/`
|
|
632
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
633
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
634
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
635
|
-
let baseOptions;
|
|
636
|
-
if (configuration) {
|
|
637
|
-
baseOptions = configuration.baseOptions;
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
641
|
-
const localVarHeaderParameter = {} as any;
|
|
642
|
-
const localVarQueryParameter = {} as any;
|
|
643
|
-
|
|
644
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
645
|
-
// oauth required
|
|
646
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
647
|
-
|
|
648
|
-
if (offset !== undefined) {
|
|
649
|
-
localVarQueryParameter['offset'] = offset;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
if (limit !== undefined) {
|
|
653
|
-
localVarQueryParameter['limit'] = limit;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
657
|
-
|
|
658
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
659
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
660
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
661
|
-
|
|
662
|
-
return {
|
|
663
|
-
url: toPathString(localVarUrlObj),
|
|
664
|
-
options: localVarRequestOptions,
|
|
665
|
-
};
|
|
666
|
-
},
|
|
667
|
-
/**
|
|
668
|
-
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
669
|
-
* @summary Option overview table for this investment
|
|
670
|
-
* @param {string} investmentId UUID of the investment
|
|
671
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
672
|
-
* @param {*} [options] Override http request option.
|
|
673
|
-
* @throws {RequiredError}
|
|
674
|
-
*/
|
|
675
|
-
getOptionsOverview: async (investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
676
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
677
|
-
assertParamExists('getOptionsOverview', 'investmentId', investmentId)
|
|
678
|
-
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
679
|
-
assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId)
|
|
680
|
-
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
681
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
682
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
683
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
684
|
-
let baseOptions;
|
|
685
|
-
if (configuration) {
|
|
686
|
-
baseOptions = configuration.baseOptions;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
690
|
-
const localVarHeaderParameter = {} as any;
|
|
691
|
-
const localVarQueryParameter = {} as any;
|
|
692
|
-
|
|
693
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
694
|
-
// oauth required
|
|
695
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
696
|
-
|
|
697
|
-
if (valueFrameworkId !== undefined) {
|
|
698
|
-
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
702
|
-
|
|
703
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
704
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
705
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
706
|
-
|
|
707
|
-
return {
|
|
708
|
-
url: toPathString(localVarUrlObj),
|
|
709
|
-
options: localVarRequestOptions,
|
|
710
|
-
};
|
|
711
|
-
},
|
|
712
|
-
/**
|
|
713
|
-
* Get the preferred option for an investment.
|
|
714
|
-
* @summary Get the preferred option for an investment
|
|
715
|
-
* @param {string} investmentId UUID of the investment
|
|
716
|
-
* @param {*} [options] Override http request option.
|
|
717
|
-
* @throws {RequiredError}
|
|
718
|
-
*/
|
|
719
|
-
getPreferredOption: async (investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
720
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
721
|
-
assertParamExists('getPreferredOption', 'investmentId', investmentId)
|
|
722
|
-
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
723
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
724
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
725
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
726
|
-
let baseOptions;
|
|
727
|
-
if (configuration) {
|
|
728
|
-
baseOptions = configuration.baseOptions;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
732
|
-
const localVarHeaderParameter = {} as any;
|
|
733
|
-
const localVarQueryParameter = {} as any;
|
|
734
|
-
|
|
735
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
736
|
-
// oauth required
|
|
737
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
738
|
-
|
|
739
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
740
|
-
|
|
741
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
742
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
743
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
744
|
-
|
|
745
|
-
return {
|
|
746
|
-
url: toPathString(localVarUrlObj),
|
|
747
|
-
options: localVarRequestOptions,
|
|
748
|
-
};
|
|
749
|
-
},
|
|
750
|
-
/**
|
|
751
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
752
|
-
* @summary Partially update an impact for this option
|
|
753
|
-
* @param {string} impactId UUID of the impact
|
|
754
|
-
* @param {string} optionId UUID of the option
|
|
755
|
-
* @param {string} investmentId UUID of the investment
|
|
756
|
-
* @param {ImpactUpdate} impactUpdate
|
|
757
|
-
* @param {*} [options] Override http request option.
|
|
758
|
-
* @throws {RequiredError}
|
|
759
|
-
*/
|
|
760
|
-
patchImpactForOption: async (impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
761
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
762
|
-
assertParamExists('patchImpactForOption', 'impactId', impactId)
|
|
763
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
764
|
-
assertParamExists('patchImpactForOption', 'optionId', optionId)
|
|
765
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
766
|
-
assertParamExists('patchImpactForOption', 'investmentId', investmentId)
|
|
767
|
-
// verify required parameter 'impactUpdate' is not null or undefined
|
|
768
|
-
assertParamExists('patchImpactForOption', 'impactUpdate', impactUpdate)
|
|
769
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
770
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
771
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
772
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
773
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
774
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
775
|
-
let baseOptions;
|
|
776
|
-
if (configuration) {
|
|
777
|
-
baseOptions = configuration.baseOptions;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
781
|
-
const localVarHeaderParameter = {} as any;
|
|
782
|
-
const localVarQueryParameter = {} as any;
|
|
783
|
-
|
|
784
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
785
|
-
// oauth required
|
|
786
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
787
|
-
|
|
788
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
789
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
790
|
-
|
|
791
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
792
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
793
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
794
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactUpdate, localVarRequestOptions, configuration)
|
|
795
|
-
|
|
796
|
-
return {
|
|
797
|
-
url: toPathString(localVarUrlObj),
|
|
798
|
-
options: localVarRequestOptions,
|
|
799
|
-
};
|
|
800
|
-
},
|
|
801
|
-
/**
|
|
802
|
-
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
803
|
-
* @summary Partially update an investment
|
|
804
|
-
* @param {string} investmentId UUID of the investment
|
|
805
|
-
* @param {InvestmentUpdate} investmentUpdate
|
|
806
|
-
* @param {*} [options] Override http request option.
|
|
807
|
-
* @throws {RequiredError}
|
|
808
|
-
*/
|
|
809
|
-
patchInvestment: async (investmentId: string, investmentUpdate: InvestmentUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
810
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
811
|
-
assertParamExists('patchInvestment', 'investmentId', investmentId)
|
|
812
|
-
// verify required parameter 'investmentUpdate' is not null or undefined
|
|
813
|
-
assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate)
|
|
814
|
-
const localVarPath = `/investment/{investment_id}`
|
|
815
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
816
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
817
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
818
|
-
let baseOptions;
|
|
819
|
-
if (configuration) {
|
|
820
|
-
baseOptions = configuration.baseOptions;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
824
|
-
const localVarHeaderParameter = {} as any;
|
|
825
|
-
const localVarQueryParameter = {} as any;
|
|
826
|
-
|
|
827
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
828
|
-
// oauth required
|
|
829
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
830
|
-
|
|
831
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
832
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
833
|
-
|
|
834
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
835
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
836
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
837
|
-
localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration)
|
|
838
|
-
|
|
839
|
-
return {
|
|
840
|
-
url: toPathString(localVarUrlObj),
|
|
841
|
-
options: localVarRequestOptions,
|
|
842
|
-
};
|
|
843
|
-
},
|
|
844
|
-
/**
|
|
845
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
846
|
-
* @summary Partially update an option for this investment
|
|
847
|
-
* @param {string} optionId UUID of the option
|
|
848
|
-
* @param {string} investmentId UUID of the investment
|
|
849
|
-
* @param {OptionUpdate} optionUpdate
|
|
850
|
-
* @param {*} [options] Override http request option.
|
|
851
|
-
* @throws {RequiredError}
|
|
852
|
-
*/
|
|
853
|
-
patchOptionForInvestment: async (optionId: string, investmentId: string, optionUpdate: OptionUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
854
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
855
|
-
assertParamExists('patchOptionForInvestment', 'optionId', optionId)
|
|
856
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
857
|
-
assertParamExists('patchOptionForInvestment', 'investmentId', investmentId)
|
|
858
|
-
// verify required parameter 'optionUpdate' is not null or undefined
|
|
859
|
-
assertParamExists('patchOptionForInvestment', 'optionUpdate', optionUpdate)
|
|
860
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
861
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
862
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
863
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
864
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
865
|
-
let baseOptions;
|
|
866
|
-
if (configuration) {
|
|
867
|
-
baseOptions = configuration.baseOptions;
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
871
|
-
const localVarHeaderParameter = {} as any;
|
|
872
|
-
const localVarQueryParameter = {} as any;
|
|
873
|
-
|
|
874
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
875
|
-
// oauth required
|
|
876
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
877
|
-
|
|
878
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
879
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
880
|
-
|
|
881
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
882
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
883
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
884
|
-
localVarRequestOptions.data = serializeDataIfNeeded(optionUpdate, localVarRequestOptions, configuration)
|
|
885
|
-
|
|
886
|
-
return {
|
|
887
|
-
url: toPathString(localVarUrlObj),
|
|
888
|
-
options: localVarRequestOptions,
|
|
889
|
-
};
|
|
890
|
-
},
|
|
891
|
-
/**
|
|
892
|
-
* Create a new investment.
|
|
893
|
-
* @summary Create an investment
|
|
894
|
-
* @param {InvestmentCreate} investmentCreate
|
|
895
|
-
* @param {*} [options] Override http request option.
|
|
896
|
-
* @throws {RequiredError}
|
|
897
|
-
*/
|
|
898
|
-
postInvestment: async (investmentCreate: InvestmentCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
899
|
-
// verify required parameter 'investmentCreate' is not null or undefined
|
|
900
|
-
assertParamExists('postInvestment', 'investmentCreate', investmentCreate)
|
|
901
|
-
const localVarPath = `/investment/`;
|
|
902
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
903
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
904
|
-
let baseOptions;
|
|
905
|
-
if (configuration) {
|
|
906
|
-
baseOptions = configuration.baseOptions;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
910
|
-
const localVarHeaderParameter = {} as any;
|
|
911
|
-
const localVarQueryParameter = {} as any;
|
|
912
|
-
|
|
913
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
914
|
-
// oauth required
|
|
915
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
916
|
-
|
|
917
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
918
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
919
|
-
|
|
920
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
921
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
922
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
923
|
-
localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration)
|
|
924
|
-
|
|
925
|
-
return {
|
|
926
|
-
url: toPathString(localVarUrlObj),
|
|
927
|
-
options: localVarRequestOptions,
|
|
928
|
-
};
|
|
929
|
-
},
|
|
930
|
-
/**
|
|
931
|
-
* Set the preferred option for an investment.
|
|
932
|
-
* @summary Set the preferred option for an investment
|
|
933
|
-
* @param {string} investmentId UUID of the investment
|
|
934
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
935
|
-
* @param {*} [options] Override http request option.
|
|
936
|
-
* @throws {RequiredError}
|
|
937
|
-
*/
|
|
938
|
-
setPreferredOption: async (investmentId: string, preferredOptionRequest: PreferredOptionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
939
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
940
|
-
assertParamExists('setPreferredOption', 'investmentId', investmentId)
|
|
941
|
-
// verify required parameter 'preferredOptionRequest' is not null or undefined
|
|
942
|
-
assertParamExists('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest)
|
|
943
|
-
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
944
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
945
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
946
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
947
|
-
let baseOptions;
|
|
948
|
-
if (configuration) {
|
|
949
|
-
baseOptions = configuration.baseOptions;
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
953
|
-
const localVarHeaderParameter = {} as any;
|
|
954
|
-
const localVarQueryParameter = {} as any;
|
|
955
|
-
|
|
956
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
957
|
-
// oauth required
|
|
958
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
959
|
-
|
|
960
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
961
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
962
|
-
|
|
963
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
964
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
965
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
966
|
-
localVarRequestOptions.data = serializeDataIfNeeded(preferredOptionRequest, localVarRequestOptions, configuration)
|
|
967
|
-
|
|
968
|
-
return {
|
|
969
|
-
url: toPathString(localVarUrlObj),
|
|
970
|
-
options: localVarRequestOptions,
|
|
971
|
-
};
|
|
972
|
-
},
|
|
973
|
-
}
|
|
974
|
-
};
|
|
975
|
-
|
|
976
|
-
/**
|
|
977
|
-
* InvestmentApi - functional programming interface
|
|
978
|
-
*/
|
|
979
|
-
export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
980
|
-
const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration)
|
|
981
|
-
return {
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* InvestmentApi - functional programming interface
|
|
324
|
+
*/
|
|
325
|
+
export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
326
|
+
const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration)
|
|
327
|
+
return {
|
|
982
328
|
/**
|
|
983
329
|
* 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.
|
|
984
330
|
* @summary Bulk delete investments
|
|
985
|
-
* @param {BulkDeleteRequest} bulkDeleteRequest
|
|
986
|
-
* @param {*} [options] Override http request option.
|
|
987
|
-
* @throws {RequiredError}
|
|
988
|
-
*/
|
|
989
|
-
async bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
990
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
|
|
991
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
992
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.bulkDeleteInvestments']?.[localVarOperationServerIndex]?.url;
|
|
993
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
994
|
-
},
|
|
995
|
-
/**
|
|
996
|
-
* Create a new impact under this option.
|
|
997
|
-
* @summary Create an impact for this option
|
|
998
|
-
* @param {string} optionId UUID of the option
|
|
999
|
-
* @param {string} investmentId UUID of the investment
|
|
1000
|
-
* @param {ImpactCreate} impactCreate
|
|
1001
|
-
* @param {*} [options] Override http request option.
|
|
1002
|
-
* @throws {RequiredError}
|
|
1003
|
-
*/
|
|
1004
|
-
async createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
|
|
1005
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
|
|
1006
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1007
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.createImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
1008
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1009
|
-
},
|
|
1010
|
-
/**
|
|
1011
|
-
* Create a new option under this investment.
|
|
1012
|
-
* @summary Create an option for this investment
|
|
1013
|
-
* @param {string} investmentId UUID of the investment
|
|
1014
|
-
* @param {OptionCreate} optionCreate
|
|
1015
|
-
* @param {*} [options] Override http request option.
|
|
1016
|
-
* @throws {RequiredError}
|
|
1017
|
-
*/
|
|
1018
|
-
async createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>> {
|
|
1019
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOptionForInvestment(investmentId, optionCreate, options);
|
|
1020
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1021
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.createOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1022
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1023
|
-
},
|
|
1024
|
-
/**
|
|
1025
|
-
* Delete an existing impact by its ID.
|
|
1026
|
-
* @summary Delete an impact for this option
|
|
1027
|
-
* @param {string} impactId UUID of the impact
|
|
1028
|
-
* @param {string} optionId UUID of the option
|
|
1029
|
-
* @param {string} investmentId UUID of the investment
|
|
1030
|
-
* @param {*} [options] Override http request option.
|
|
1031
|
-
* @throws {RequiredError}
|
|
1032
|
-
*/
|
|
1033
|
-
async deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1034
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
|
|
1035
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1036
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
1037
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1038
|
-
},
|
|
1039
|
-
/**
|
|
1040
|
-
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
1041
|
-
* @summary Delete an investment
|
|
1042
|
-
* @param {string} investmentId UUID of the investment
|
|
1043
|
-
* @param {*} [options] Override http request option.
|
|
1044
|
-
* @throws {RequiredError}
|
|
1045
|
-
*/
|
|
1046
|
-
async deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1047
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvestment(investmentId, options);
|
|
1048
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1049
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1050
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1051
|
-
},
|
|
1052
|
-
/**
|
|
1053
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
1054
|
-
* @summary Delete an option for this investment
|
|
1055
|
-
* @param {string} optionId UUID of the option
|
|
1056
|
-
* @param {string} investmentId UUID of the investment
|
|
1057
|
-
* @param {*} [options] Override http request option.
|
|
1058
|
-
* @throws {RequiredError}
|
|
1059
|
-
*/
|
|
1060
|
-
async deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1061
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
|
|
1062
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1063
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1064
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1065
|
-
},
|
|
1066
|
-
/**
|
|
1067
|
-
* Retrieve a specific impact for the option.
|
|
1068
|
-
* @summary Get an impact for this option
|
|
1069
|
-
* @param {string} impactId UUID of the impact
|
|
1070
|
-
* @param {string} optionId UUID of the option
|
|
1071
|
-
* @param {string} investmentId UUID of the investment
|
|
1072
|
-
* @param {*} [options] Override http request option.
|
|
1073
|
-
* @throws {RequiredError}
|
|
1074
|
-
*/
|
|
1075
|
-
async getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
|
|
1076
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
|
|
1077
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1078
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
1079
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1080
|
-
},
|
|
1081
|
-
/**
|
|
1082
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1083
|
-
* @summary List impacts for this option
|
|
1084
|
-
* @param {string} optionId UUID of the option
|
|
1085
|
-
* @param {string} investmentId UUID of the investment
|
|
1086
|
-
* @param {number} [offset] Number of records to skip
|
|
1087
|
-
* @param {number} [limit] Max number of records to return
|
|
1088
|
-
* @param {*} [options] Override http request option.
|
|
1089
|
-
* @throws {RequiredError}
|
|
1090
|
-
*/
|
|
1091
|
-
async getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImpactAPIResponse>>> {
|
|
1092
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
|
|
1093
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1094
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getImpactsForOption']?.[localVarOperationServerIndex]?.url;
|
|
1095
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1096
|
-
},
|
|
1097
|
-
/**
|
|
1098
|
-
* Retrieve a single investment by its ID.
|
|
1099
|
-
* @summary Get an investment by ID
|
|
1100
|
-
* @param {string} investmentId UUID of the investment
|
|
1101
|
-
* @param {*} [options] Override http request option.
|
|
1102
|
-
* @throws {RequiredError}
|
|
1103
|
-
*/
|
|
1104
|
-
async getInvestmentById(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvestmentResponse>> {
|
|
1105
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentById(investmentId, options);
|
|
1106
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1107
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentById']?.[localVarOperationServerIndex]?.url;
|
|
1108
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1109
|
-
},
|
|
1110
|
-
/**
|
|
1111
|
-
* Retrieve a paginated list of all investments.
|
|
1112
|
-
* @summary List investments
|
|
1113
|
-
* @param {number} [offset] Number of records to skip
|
|
1114
|
-
* @param {number} [limit] Max number of records to return
|
|
1115
|
-
* @param {*} [options] Override http request option.
|
|
1116
|
-
* @throws {RequiredError}
|
|
1117
|
-
*/
|
|
1118
|
-
async getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentResponse>>> {
|
|
1119
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestments(offset, limit, options);
|
|
1120
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1121
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestments']?.[localVarOperationServerIndex]?.url;
|
|
1122
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1123
|
-
},
|
|
1124
|
-
/**
|
|
1125
|
-
* 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.
|
|
1126
|
-
* @summary Investment overview table
|
|
1127
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
331
|
+
* @param {BulkDeleteRequest} bulkDeleteRequest
|
|
1128
332
|
* @param {*} [options] Override http request option.
|
|
1129
333
|
* @throws {RequiredError}
|
|
1130
334
|
*/
|
|
1131
|
-
async
|
|
1132
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
335
|
+
async bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
336
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
|
|
1133
337
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1134
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.
|
|
338
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.bulkDeleteInvestments']?.[localVarOperationServerIndex]?.url;
|
|
1135
339
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1136
340
|
},
|
|
1137
341
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
* @summary
|
|
1140
|
-
* @param {string} optionId UUID of the option
|
|
342
|
+
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
343
|
+
* @summary Delete an investment
|
|
1141
344
|
* @param {string} investmentId UUID of the investment
|
|
1142
345
|
* @param {*} [options] Override http request option.
|
|
1143
346
|
* @throws {RequiredError}
|
|
1144
347
|
*/
|
|
1145
|
-
async
|
|
1146
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
348
|
+
async deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvestment(investmentId, options);
|
|
1147
350
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1148
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.
|
|
351
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.deleteInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1149
352
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1150
353
|
},
|
|
1151
354
|
/**
|
|
1152
|
-
*
|
|
1153
|
-
* @summary Get
|
|
355
|
+
* Retrieve a single investment by its ID.
|
|
356
|
+
* @summary Get an investment by ID
|
|
1154
357
|
* @param {string} investmentId UUID of the investment
|
|
1155
|
-
* @param {string} optionId UUID of the option
|
|
1156
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1157
358
|
* @param {*} [options] Override http request option.
|
|
1158
359
|
* @throws {RequiredError}
|
|
1159
360
|
*/
|
|
1160
|
-
async
|
|
1161
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
361
|
+
async getInvestmentById(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InvestmentResponse>> {
|
|
362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentById(investmentId, options);
|
|
1162
363
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1163
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.
|
|
364
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentById']?.[localVarOperationServerIndex]?.url;
|
|
1164
365
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1165
366
|
},
|
|
1166
367
|
/**
|
|
1167
|
-
* Retrieve a paginated list of all
|
|
1168
|
-
* @summary List
|
|
1169
|
-
* @param {string} investmentId UUID of the investment
|
|
368
|
+
* Retrieve a paginated list of all investments.
|
|
369
|
+
* @summary List investments
|
|
1170
370
|
* @param {number} [offset] Number of records to skip
|
|
1171
371
|
* @param {number} [limit] Max number of records to return
|
|
1172
372
|
* @param {*} [options] Override http request option.
|
|
1173
373
|
* @throws {RequiredError}
|
|
1174
374
|
*/
|
|
1175
|
-
async
|
|
1176
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
375
|
+
async getInvestments(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentResponse>>> {
|
|
376
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestments(offset, limit, options);
|
|
1177
377
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1178
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.
|
|
378
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestments']?.[localVarOperationServerIndex]?.url;
|
|
1179
379
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1180
380
|
},
|
|
1181
381
|
/**
|
|
1182
|
-
* Return a flat overview of all
|
|
1183
|
-
* @summary
|
|
1184
|
-
* @param {string} investmentId UUID of the investment
|
|
382
|
+
* 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.
|
|
383
|
+
* @summary Investment overview table
|
|
1185
384
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
1186
385
|
* @param {*} [options] Override http request option.
|
|
1187
386
|
* @throws {RequiredError}
|
|
1188
387
|
*/
|
|
1189
|
-
async
|
|
1190
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1191
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1192
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
|
|
1193
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1194
|
-
},
|
|
1195
|
-
/**
|
|
1196
|
-
* Get the preferred option for an investment.
|
|
1197
|
-
* @summary Get the preferred option for an investment
|
|
1198
|
-
* @param {string} investmentId UUID of the investment
|
|
1199
|
-
* @param {*} [options] Override http request option.
|
|
1200
|
-
* @throws {RequiredError}
|
|
1201
|
-
*/
|
|
1202
|
-
async getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
|
|
1203
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPreferredOption(investmentId, options);
|
|
1204
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1205
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getPreferredOption']?.[localVarOperationServerIndex]?.url;
|
|
1206
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1207
|
-
},
|
|
1208
|
-
/**
|
|
1209
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1210
|
-
* @summary Partially update an impact for this option
|
|
1211
|
-
* @param {string} impactId UUID of the impact
|
|
1212
|
-
* @param {string} optionId UUID of the option
|
|
1213
|
-
* @param {string} investmentId UUID of the investment
|
|
1214
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1215
|
-
* @param {*} [options] Override http request option.
|
|
1216
|
-
* @throws {RequiredError}
|
|
1217
|
-
*/
|
|
1218
|
-
async patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
|
|
1219
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
|
|
388
|
+
async getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentOverviewResponse>>> {
|
|
389
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
|
|
1220
390
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1221
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.
|
|
391
|
+
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
|
|
1222
392
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1223
393
|
},
|
|
1224
394
|
/**
|
|
@@ -1235,21 +405,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
1235
405
|
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.patchInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1236
406
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1237
407
|
},
|
|
1238
|
-
/**
|
|
1239
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1240
|
-
* @summary Partially update an option for this investment
|
|
1241
|
-
* @param {string} optionId UUID of the option
|
|
1242
|
-
* @param {string} investmentId UUID of the investment
|
|
1243
|
-
* @param {OptionUpdate} optionUpdate
|
|
1244
|
-
* @param {*} [options] Override http request option.
|
|
1245
|
-
* @throws {RequiredError}
|
|
1246
|
-
*/
|
|
1247
|
-
async patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>> {
|
|
1248
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchOptionForInvestment(optionId, investmentId, optionUpdate, options);
|
|
1249
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1250
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.patchOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1251
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1252
|
-
},
|
|
1253
408
|
/**
|
|
1254
409
|
* Create a new investment.
|
|
1255
410
|
* @summary Create an investment
|
|
@@ -1263,20 +418,6 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
1263
418
|
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.postInvestment']?.[localVarOperationServerIndex]?.url;
|
|
1264
419
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1265
420
|
},
|
|
1266
|
-
/**
|
|
1267
|
-
* Set the preferred option for an investment.
|
|
1268
|
-
* @summary Set the preferred option for an investment
|
|
1269
|
-
* @param {string} investmentId UUID of the investment
|
|
1270
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1271
|
-
* @param {*} [options] Override http request option.
|
|
1272
|
-
* @throws {RequiredError}
|
|
1273
|
-
*/
|
|
1274
|
-
async setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>> {
|
|
1275
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
|
|
1276
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1277
|
-
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.setPreferredOption']?.[localVarOperationServerIndex]?.url;
|
|
1278
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1279
|
-
},
|
|
1280
421
|
}
|
|
1281
422
|
};
|
|
1282
423
|
|
|
@@ -1296,41 +437,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1296
437
|
bulkDeleteInvestments(bulkDeleteRequest: BulkDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1297
438
|
return localVarFp.bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1298
439
|
},
|
|
1299
|
-
/**
|
|
1300
|
-
* Create a new impact under this option.
|
|
1301
|
-
* @summary Create an impact for this option
|
|
1302
|
-
* @param {string} optionId UUID of the option
|
|
1303
|
-
* @param {string} investmentId UUID of the investment
|
|
1304
|
-
* @param {ImpactCreate} impactCreate
|
|
1305
|
-
* @param {*} [options] Override http request option.
|
|
1306
|
-
* @throws {RequiredError}
|
|
1307
|
-
*/
|
|
1308
|
-
createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
1309
|
-
return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
|
|
1310
|
-
},
|
|
1311
|
-
/**
|
|
1312
|
-
* Create a new option under this investment.
|
|
1313
|
-
* @summary Create an option for this investment
|
|
1314
|
-
* @param {string} investmentId UUID of the investment
|
|
1315
|
-
* @param {OptionCreate} optionCreate
|
|
1316
|
-
* @param {*} [options] Override http request option.
|
|
1317
|
-
* @throws {RequiredError}
|
|
1318
|
-
*/
|
|
1319
|
-
createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
|
|
1320
|
-
return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
|
|
1321
|
-
},
|
|
1322
|
-
/**
|
|
1323
|
-
* Delete an existing impact by its ID.
|
|
1324
|
-
* @summary Delete an impact for this option
|
|
1325
|
-
* @param {string} impactId UUID of the impact
|
|
1326
|
-
* @param {string} optionId UUID of the option
|
|
1327
|
-
* @param {string} investmentId UUID of the investment
|
|
1328
|
-
* @param {*} [options] Override http request option.
|
|
1329
|
-
* @throws {RequiredError}
|
|
1330
|
-
*/
|
|
1331
|
-
deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1332
|
-
return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1333
|
-
},
|
|
1334
440
|
/**
|
|
1335
441
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
1336
442
|
* @summary Delete an investment
|
|
@@ -1341,42 +447,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1341
447
|
deleteInvestment(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1342
448
|
return localVarFp.deleteInvestment(investmentId, options).then((request) => request(axios, basePath));
|
|
1343
449
|
},
|
|
1344
|
-
/**
|
|
1345
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
1346
|
-
* @summary Delete an option for this investment
|
|
1347
|
-
* @param {string} optionId UUID of the option
|
|
1348
|
-
* @param {string} investmentId UUID of the investment
|
|
1349
|
-
* @param {*} [options] Override http request option.
|
|
1350
|
-
* @throws {RequiredError}
|
|
1351
|
-
*/
|
|
1352
|
-
deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1353
|
-
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1354
|
-
},
|
|
1355
|
-
/**
|
|
1356
|
-
* Retrieve a specific impact for the option.
|
|
1357
|
-
* @summary Get an impact for this option
|
|
1358
|
-
* @param {string} impactId UUID of the impact
|
|
1359
|
-
* @param {string} optionId UUID of the option
|
|
1360
|
-
* @param {string} investmentId UUID of the investment
|
|
1361
|
-
* @param {*} [options] Override http request option.
|
|
1362
|
-
* @throws {RequiredError}
|
|
1363
|
-
*/
|
|
1364
|
-
getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
1365
|
-
return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1366
|
-
},
|
|
1367
|
-
/**
|
|
1368
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1369
|
-
* @summary List impacts for this option
|
|
1370
|
-
* @param {string} optionId UUID of the option
|
|
1371
|
-
* @param {string} investmentId UUID of the investment
|
|
1372
|
-
* @param {number} [offset] Number of records to skip
|
|
1373
|
-
* @param {number} [limit] Max number of records to return
|
|
1374
|
-
* @param {*} [options] Override http request option.
|
|
1375
|
-
* @throws {RequiredError}
|
|
1376
|
-
*/
|
|
1377
|
-
getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ImpactAPIResponse>> {
|
|
1378
|
-
return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1379
|
-
},
|
|
1380
450
|
/**
|
|
1381
451
|
* Retrieve a single investment by its ID.
|
|
1382
452
|
* @summary Get an investment by ID
|
|
@@ -1408,75 +478,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1408
478
|
getInvestmentsOverview(valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>> {
|
|
1409
479
|
return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1410
480
|
},
|
|
1411
|
-
/**
|
|
1412
|
-
* Retrieve a specific option for the investment.
|
|
1413
|
-
* @summary Get an option for this investment
|
|
1414
|
-
* @param {string} optionId UUID of the option
|
|
1415
|
-
* @param {string} investmentId UUID of the investment
|
|
1416
|
-
* @param {*} [options] Override http request option.
|
|
1417
|
-
* @throws {RequiredError}
|
|
1418
|
-
*/
|
|
1419
|
-
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
|
|
1420
|
-
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1421
|
-
},
|
|
1422
|
-
/**
|
|
1423
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
1424
|
-
* @summary Get the kpis for a given option inside a value framework
|
|
1425
|
-
* @param {string} investmentId UUID of the investment
|
|
1426
|
-
* @param {string} optionId UUID of the option
|
|
1427
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1428
|
-
* @param {*} [options] Override http request option.
|
|
1429
|
-
* @throws {RequiredError}
|
|
1430
|
-
*/
|
|
1431
|
-
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
|
|
1432
|
-
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1433
|
-
},
|
|
1434
|
-
/**
|
|
1435
|
-
* Retrieve a paginated list of all options for a specific investment.
|
|
1436
|
-
* @summary List options for this investment
|
|
1437
|
-
* @param {string} investmentId UUID of the investment
|
|
1438
|
-
* @param {number} [offset] Number of records to skip
|
|
1439
|
-
* @param {number} [limit] Max number of records to return
|
|
1440
|
-
* @param {*} [options] Override http request option.
|
|
1441
|
-
* @throws {RequiredError}
|
|
1442
|
-
*/
|
|
1443
|
-
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>> {
|
|
1444
|
-
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1445
|
-
},
|
|
1446
|
-
/**
|
|
1447
|
-
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1448
|
-
* @summary Option overview table for this investment
|
|
1449
|
-
* @param {string} investmentId UUID of the investment
|
|
1450
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1451
|
-
* @param {*} [options] Override http request option.
|
|
1452
|
-
* @throws {RequiredError}
|
|
1453
|
-
*/
|
|
1454
|
-
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
|
|
1455
|
-
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1456
|
-
},
|
|
1457
|
-
/**
|
|
1458
|
-
* Get the preferred option for an investment.
|
|
1459
|
-
* @summary Get the preferred option for an investment
|
|
1460
|
-
* @param {string} investmentId UUID of the investment
|
|
1461
|
-
* @param {*} [options] Override http request option.
|
|
1462
|
-
* @throws {RequiredError}
|
|
1463
|
-
*/
|
|
1464
|
-
getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
|
|
1465
|
-
return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
1466
|
-
},
|
|
1467
|
-
/**
|
|
1468
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1469
|
-
* @summary Partially update an impact for this option
|
|
1470
|
-
* @param {string} impactId UUID of the impact
|
|
1471
|
-
* @param {string} optionId UUID of the option
|
|
1472
|
-
* @param {string} investmentId UUID of the investment
|
|
1473
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1474
|
-
* @param {*} [options] Override http request option.
|
|
1475
|
-
* @throws {RequiredError}
|
|
1476
|
-
*/
|
|
1477
|
-
patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
1478
|
-
return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
|
|
1479
|
-
},
|
|
1480
481
|
/**
|
|
1481
482
|
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1482
483
|
* @summary Partially update an investment
|
|
@@ -1488,18 +489,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1488
489
|
patchInvestment(investmentId: string, investmentUpdate: InvestmentUpdate, options?: RawAxiosRequestConfig): AxiosPromise<InvestmentResponse> {
|
|
1489
490
|
return localVarFp.patchInvestment(investmentId, investmentUpdate, options).then((request) => request(axios, basePath));
|
|
1490
491
|
},
|
|
1491
|
-
/**
|
|
1492
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1493
|
-
* @summary Partially update an option for this investment
|
|
1494
|
-
* @param {string} optionId UUID of the option
|
|
1495
|
-
* @param {string} investmentId UUID of the investment
|
|
1496
|
-
* @param {OptionUpdate} optionUpdate
|
|
1497
|
-
* @param {*} [options] Override http request option.
|
|
1498
|
-
* @throws {RequiredError}
|
|
1499
|
-
*/
|
|
1500
|
-
patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
|
|
1501
|
-
return localVarFp.patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(axios, basePath));
|
|
1502
|
-
},
|
|
1503
492
|
/**
|
|
1504
493
|
* Create a new investment.
|
|
1505
494
|
* @summary Create an investment
|
|
@@ -1510,17 +499,6 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
1510
499
|
postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig): AxiosPromise<InvestmentResponse> {
|
|
1511
500
|
return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
|
|
1512
501
|
},
|
|
1513
|
-
/**
|
|
1514
|
-
* Set the preferred option for an investment.
|
|
1515
|
-
* @summary Set the preferred option for an investment
|
|
1516
|
-
* @param {string} investmentId UUID of the investment
|
|
1517
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1518
|
-
* @param {*} [options] Override http request option.
|
|
1519
|
-
* @throws {RequiredError}
|
|
1520
|
-
*/
|
|
1521
|
-
setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse> {
|
|
1522
|
-
return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
|
|
1523
|
-
},
|
|
1524
502
|
};
|
|
1525
503
|
};
|
|
1526
504
|
|
|
@@ -1539,44 +517,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1539
517
|
return InvestmentApiFp(this.configuration).bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1540
518
|
}
|
|
1541
519
|
|
|
1542
|
-
/**
|
|
1543
|
-
* Create a new impact under this option.
|
|
1544
|
-
* @summary Create an impact for this option
|
|
1545
|
-
* @param {string} optionId UUID of the option
|
|
1546
|
-
* @param {string} investmentId UUID of the investment
|
|
1547
|
-
* @param {ImpactCreate} impactCreate
|
|
1548
|
-
* @param {*} [options] Override http request option.
|
|
1549
|
-
* @throws {RequiredError}
|
|
1550
|
-
*/
|
|
1551
|
-
public createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig) {
|
|
1552
|
-
return InvestmentApiFp(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* Create a new option under this investment.
|
|
1557
|
-
* @summary Create an option for this investment
|
|
1558
|
-
* @param {string} investmentId UUID of the investment
|
|
1559
|
-
* @param {OptionCreate} optionCreate
|
|
1560
|
-
* @param {*} [options] Override http request option.
|
|
1561
|
-
* @throws {RequiredError}
|
|
1562
|
-
*/
|
|
1563
|
-
public createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig) {
|
|
1564
|
-
return InvestmentApiFp(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
/**
|
|
1568
|
-
* Delete an existing impact by its ID.
|
|
1569
|
-
* @summary Delete an impact for this option
|
|
1570
|
-
* @param {string} impactId UUID of the impact
|
|
1571
|
-
* @param {string} optionId UUID of the option
|
|
1572
|
-
* @param {string} investmentId UUID of the investment
|
|
1573
|
-
* @param {*} [options] Override http request option.
|
|
1574
|
-
* @throws {RequiredError}
|
|
1575
|
-
*/
|
|
1576
|
-
public deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1577
|
-
return InvestmentApiFp(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
520
|
/**
|
|
1581
521
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
1582
522
|
* @summary Delete an investment
|
|
@@ -1588,45 +528,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1588
528
|
return InvestmentApiFp(this.configuration).deleteInvestment(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1589
529
|
}
|
|
1590
530
|
|
|
1591
|
-
/**
|
|
1592
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
1593
|
-
* @summary Delete an option for this investment
|
|
1594
|
-
* @param {string} optionId UUID of the option
|
|
1595
|
-
* @param {string} investmentId UUID of the investment
|
|
1596
|
-
* @param {*} [options] Override http request option.
|
|
1597
|
-
* @throws {RequiredError}
|
|
1598
|
-
*/
|
|
1599
|
-
public deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1600
|
-
return InvestmentApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
/**
|
|
1604
|
-
* Retrieve a specific impact for the option.
|
|
1605
|
-
* @summary Get an impact for this option
|
|
1606
|
-
* @param {string} impactId UUID of the impact
|
|
1607
|
-
* @param {string} optionId UUID of the option
|
|
1608
|
-
* @param {string} investmentId UUID of the investment
|
|
1609
|
-
* @param {*} [options] Override http request option.
|
|
1610
|
-
* @throws {RequiredError}
|
|
1611
|
-
*/
|
|
1612
|
-
public getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1613
|
-
return InvestmentApiFp(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
/**
|
|
1617
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1618
|
-
* @summary List impacts for this option
|
|
1619
|
-
* @param {string} optionId UUID of the option
|
|
1620
|
-
* @param {string} investmentId UUID of the investment
|
|
1621
|
-
* @param {number} [offset] Number of records to skip
|
|
1622
|
-
* @param {number} [limit] Max number of records to return
|
|
1623
|
-
* @param {*} [options] Override http request option.
|
|
1624
|
-
* @throws {RequiredError}
|
|
1625
|
-
*/
|
|
1626
|
-
public getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
1627
|
-
return InvestmentApiFp(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
531
|
/**
|
|
1631
532
|
* Retrieve a single investment by its ID.
|
|
1632
533
|
* @summary Get an investment by ID
|
|
@@ -1661,81 +562,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1661
562
|
return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1662
563
|
}
|
|
1663
564
|
|
|
1664
|
-
/**
|
|
1665
|
-
* Retrieve a specific option for the investment.
|
|
1666
|
-
* @summary Get an option for this investment
|
|
1667
|
-
* @param {string} optionId UUID of the option
|
|
1668
|
-
* @param {string} investmentId UUID of the investment
|
|
1669
|
-
* @param {*} [options] Override http request option.
|
|
1670
|
-
* @throws {RequiredError}
|
|
1671
|
-
*/
|
|
1672
|
-
public getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1673
|
-
return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
/**
|
|
1677
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
1678
|
-
* @summary Get the kpis for a given option inside a value framework
|
|
1679
|
-
* @param {string} investmentId UUID of the investment
|
|
1680
|
-
* @param {string} optionId UUID of the option
|
|
1681
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1682
|
-
* @param {*} [options] Override http request option.
|
|
1683
|
-
* @throws {RequiredError}
|
|
1684
|
-
*/
|
|
1685
|
-
public getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
1686
|
-
return InvestmentApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
/**
|
|
1690
|
-
* Retrieve a paginated list of all options for a specific investment.
|
|
1691
|
-
* @summary List options for this investment
|
|
1692
|
-
* @param {string} investmentId UUID of the investment
|
|
1693
|
-
* @param {number} [offset] Number of records to skip
|
|
1694
|
-
* @param {number} [limit] Max number of records to return
|
|
1695
|
-
* @param {*} [options] Override http request option.
|
|
1696
|
-
* @throws {RequiredError}
|
|
1697
|
-
*/
|
|
1698
|
-
public getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
1699
|
-
return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1700
|
-
}
|
|
1701
|
-
|
|
1702
|
-
/**
|
|
1703
|
-
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1704
|
-
* @summary Option overview table for this investment
|
|
1705
|
-
* @param {string} investmentId UUID of the investment
|
|
1706
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1707
|
-
* @param {*} [options] Override http request option.
|
|
1708
|
-
* @throws {RequiredError}
|
|
1709
|
-
*/
|
|
1710
|
-
public getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
1711
|
-
return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/**
|
|
1715
|
-
* Get the preferred option for an investment.
|
|
1716
|
-
* @summary Get the preferred option for an investment
|
|
1717
|
-
* @param {string} investmentId UUID of the investment
|
|
1718
|
-
* @param {*} [options] Override http request option.
|
|
1719
|
-
* @throws {RequiredError}
|
|
1720
|
-
*/
|
|
1721
|
-
public getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1722
|
-
return InvestmentApiFp(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1727
|
-
* @summary Partially update an impact for this option
|
|
1728
|
-
* @param {string} impactId UUID of the impact
|
|
1729
|
-
* @param {string} optionId UUID of the option
|
|
1730
|
-
* @param {string} investmentId UUID of the investment
|
|
1731
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1732
|
-
* @param {*} [options] Override http request option.
|
|
1733
|
-
* @throws {RequiredError}
|
|
1734
|
-
*/
|
|
1735
|
-
public patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig) {
|
|
1736
|
-
return InvestmentApiFp(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
565
|
/**
|
|
1740
566
|
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1741
567
|
* @summary Partially update an investment
|
|
@@ -1748,19 +574,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1748
574
|
return InvestmentApiFp(this.configuration).patchInvestment(investmentId, investmentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1749
575
|
}
|
|
1750
576
|
|
|
1751
|
-
/**
|
|
1752
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1753
|
-
* @summary Partially update an option for this investment
|
|
1754
|
-
* @param {string} optionId UUID of the option
|
|
1755
|
-
* @param {string} investmentId UUID of the investment
|
|
1756
|
-
* @param {OptionUpdate} optionUpdate
|
|
1757
|
-
* @param {*} [options] Override http request option.
|
|
1758
|
-
* @throws {RequiredError}
|
|
1759
|
-
*/
|
|
1760
|
-
public patchOptionForInvestment(optionId: string, investmentId: string, optionUpdate: OptionUpdate, options?: RawAxiosRequestConfig) {
|
|
1761
|
-
return InvestmentApiFp(this.configuration).patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
577
|
/**
|
|
1765
578
|
* Create a new investment.
|
|
1766
579
|
* @summary Create an investment
|
|
@@ -1771,17 +584,5 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1771
584
|
public postInvestment(investmentCreate: InvestmentCreate, options?: RawAxiosRequestConfig) {
|
|
1772
585
|
return InvestmentApiFp(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1773
586
|
}
|
|
1774
|
-
|
|
1775
|
-
/**
|
|
1776
|
-
* Set the preferred option for an investment.
|
|
1777
|
-
* @summary Set the preferred option for an investment
|
|
1778
|
-
* @param {string} investmentId UUID of the investment
|
|
1779
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1780
|
-
* @param {*} [options] Override http request option.
|
|
1781
|
-
* @throws {RequiredError}
|
|
1782
|
-
*/
|
|
1783
|
-
public setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig) {
|
|
1784
|
-
return InvestmentApiFp(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1785
|
-
}
|
|
1786
587
|
}
|
|
1787
588
|
|