@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
|
@@ -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).
|
|
@@ -64,126 +64,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
64
64
|
options: localVarRequestOptions,
|
|
65
65
|
};
|
|
66
66
|
}),
|
|
67
|
-
/**
|
|
68
|
-
* Create a new impact under this option.
|
|
69
|
-
* @summary Create an impact for this option
|
|
70
|
-
* @param {string} optionId UUID of the option
|
|
71
|
-
* @param {string} investmentId UUID of the investment
|
|
72
|
-
* @param {ImpactCreate} impactCreate
|
|
73
|
-
* @param {*} [options] Override http request option.
|
|
74
|
-
* @throws {RequiredError}
|
|
75
|
-
*/
|
|
76
|
-
createImpactForOption: (optionId_1, investmentId_1, impactCreate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, impactCreate_1, ...args_1], void 0, function* (optionId, investmentId, impactCreate, options = {}) {
|
|
77
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
78
|
-
assertParamExists('createImpactForOption', 'optionId', optionId);
|
|
79
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
80
|
-
assertParamExists('createImpactForOption', 'investmentId', investmentId);
|
|
81
|
-
// verify required parameter 'impactCreate' is not null or undefined
|
|
82
|
-
assertParamExists('createImpactForOption', 'impactCreate', impactCreate);
|
|
83
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
84
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
85
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
86
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
87
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
88
|
-
let baseOptions;
|
|
89
|
-
if (configuration) {
|
|
90
|
-
baseOptions = configuration.baseOptions;
|
|
91
|
-
}
|
|
92
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
93
|
-
const localVarHeaderParameter = {};
|
|
94
|
-
const localVarQueryParameter = {};
|
|
95
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
96
|
-
// oauth required
|
|
97
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
98
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
99
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
100
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
101
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
102
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
103
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactCreate, localVarRequestOptions, configuration);
|
|
104
|
-
return {
|
|
105
|
-
url: toPathString(localVarUrlObj),
|
|
106
|
-
options: localVarRequestOptions,
|
|
107
|
-
};
|
|
108
|
-
}),
|
|
109
|
-
/**
|
|
110
|
-
* Create a new option under this investment.
|
|
111
|
-
* @summary Create an option for this investment
|
|
112
|
-
* @param {string} investmentId UUID of the investment
|
|
113
|
-
* @param {OptionCreate} optionCreate
|
|
114
|
-
* @param {*} [options] Override http request option.
|
|
115
|
-
* @throws {RequiredError}
|
|
116
|
-
*/
|
|
117
|
-
createOptionForInvestment: (investmentId_1, optionCreate_1, ...args_1) => __awaiter(this, [investmentId_1, optionCreate_1, ...args_1], void 0, function* (investmentId, optionCreate, options = {}) {
|
|
118
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
119
|
-
assertParamExists('createOptionForInvestment', 'investmentId', investmentId);
|
|
120
|
-
// verify required parameter 'optionCreate' is not null or undefined
|
|
121
|
-
assertParamExists('createOptionForInvestment', 'optionCreate', optionCreate);
|
|
122
|
-
const localVarPath = `/investment/{investment_id}/option/`
|
|
123
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
124
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
125
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
126
|
-
let baseOptions;
|
|
127
|
-
if (configuration) {
|
|
128
|
-
baseOptions = configuration.baseOptions;
|
|
129
|
-
}
|
|
130
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
131
|
-
const localVarHeaderParameter = {};
|
|
132
|
-
const localVarQueryParameter = {};
|
|
133
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
134
|
-
// oauth required
|
|
135
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
136
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
137
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
138
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
139
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
140
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
141
|
-
localVarRequestOptions.data = serializeDataIfNeeded(optionCreate, localVarRequestOptions, configuration);
|
|
142
|
-
return {
|
|
143
|
-
url: toPathString(localVarUrlObj),
|
|
144
|
-
options: localVarRequestOptions,
|
|
145
|
-
};
|
|
146
|
-
}),
|
|
147
|
-
/**
|
|
148
|
-
* Delete an existing impact by its ID.
|
|
149
|
-
* @summary Delete an impact for this option
|
|
150
|
-
* @param {string} impactId UUID of the impact
|
|
151
|
-
* @param {string} optionId UUID of the option
|
|
152
|
-
* @param {string} investmentId UUID of the investment
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
deleteImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
157
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
158
|
-
assertParamExists('deleteImpactForOption', 'impactId', impactId);
|
|
159
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
160
|
-
assertParamExists('deleteImpactForOption', 'optionId', optionId);
|
|
161
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
162
|
-
assertParamExists('deleteImpactForOption', 'investmentId', investmentId);
|
|
163
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
164
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
165
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
166
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
167
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
169
|
-
let baseOptions;
|
|
170
|
-
if (configuration) {
|
|
171
|
-
baseOptions = configuration.baseOptions;
|
|
172
|
-
}
|
|
173
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
174
|
-
const localVarHeaderParameter = {};
|
|
175
|
-
const localVarQueryParameter = {};
|
|
176
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
177
|
-
// oauth required
|
|
178
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
179
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
180
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
-
return {
|
|
183
|
-
url: toPathString(localVarUrlObj),
|
|
184
|
-
options: localVarRequestOptions,
|
|
185
|
-
};
|
|
186
|
-
}),
|
|
187
67
|
/**
|
|
188
68
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
189
69
|
* @summary Delete an investment
|
|
@@ -216,128 +96,6 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
216
96
|
options: localVarRequestOptions,
|
|
217
97
|
};
|
|
218
98
|
}),
|
|
219
|
-
/**
|
|
220
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
221
|
-
* @summary Delete an option for this investment
|
|
222
|
-
* @param {string} optionId UUID of the option
|
|
223
|
-
* @param {string} investmentId UUID of the investment
|
|
224
|
-
* @param {*} [options] Override http request option.
|
|
225
|
-
* @throws {RequiredError}
|
|
226
|
-
*/
|
|
227
|
-
deleteOptionForInvestment: (optionId_1, investmentId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, ...args_1], void 0, function* (optionId, investmentId, options = {}) {
|
|
228
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
229
|
-
assertParamExists('deleteOptionForInvestment', 'optionId', optionId);
|
|
230
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
231
|
-
assertParamExists('deleteOptionForInvestment', 'investmentId', investmentId);
|
|
232
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
233
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
234
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
235
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
236
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
237
|
-
let baseOptions;
|
|
238
|
-
if (configuration) {
|
|
239
|
-
baseOptions = configuration.baseOptions;
|
|
240
|
-
}
|
|
241
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
242
|
-
const localVarHeaderParameter = {};
|
|
243
|
-
const localVarQueryParameter = {};
|
|
244
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
245
|
-
// oauth required
|
|
246
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
247
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
248
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
249
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
250
|
-
return {
|
|
251
|
-
url: toPathString(localVarUrlObj),
|
|
252
|
-
options: localVarRequestOptions,
|
|
253
|
-
};
|
|
254
|
-
}),
|
|
255
|
-
/**
|
|
256
|
-
* Retrieve a specific impact for the option.
|
|
257
|
-
* @summary Get an impact for this option
|
|
258
|
-
* @param {string} impactId UUID of the impact
|
|
259
|
-
* @param {string} optionId UUID of the option
|
|
260
|
-
* @param {string} investmentId UUID of the investment
|
|
261
|
-
* @param {*} [options] Override http request option.
|
|
262
|
-
* @throws {RequiredError}
|
|
263
|
-
*/
|
|
264
|
-
getImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
265
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
266
|
-
assertParamExists('getImpactForOption', 'impactId', impactId);
|
|
267
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
268
|
-
assertParamExists('getImpactForOption', 'optionId', optionId);
|
|
269
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
270
|
-
assertParamExists('getImpactForOption', 'investmentId', investmentId);
|
|
271
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
272
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
273
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
274
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
275
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
276
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
277
|
-
let baseOptions;
|
|
278
|
-
if (configuration) {
|
|
279
|
-
baseOptions = configuration.baseOptions;
|
|
280
|
-
}
|
|
281
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
282
|
-
const localVarHeaderParameter = {};
|
|
283
|
-
const localVarQueryParameter = {};
|
|
284
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
285
|
-
// oauth required
|
|
286
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
287
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
288
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
289
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
290
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
291
|
-
return {
|
|
292
|
-
url: toPathString(localVarUrlObj),
|
|
293
|
-
options: localVarRequestOptions,
|
|
294
|
-
};
|
|
295
|
-
}),
|
|
296
|
-
/**
|
|
297
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
298
|
-
* @summary List impacts for this option
|
|
299
|
-
* @param {string} optionId UUID of the option
|
|
300
|
-
* @param {string} investmentId UUID of the investment
|
|
301
|
-
* @param {number} [offset] Number of records to skip
|
|
302
|
-
* @param {number} [limit] Max number of records to return
|
|
303
|
-
* @param {*} [options] Override http request option.
|
|
304
|
-
* @throws {RequiredError}
|
|
305
|
-
*/
|
|
306
|
-
getImpactsForOption: (optionId_1, investmentId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, offset_1, limit_1, ...args_1], void 0, function* (optionId, investmentId, offset, limit, options = {}) {
|
|
307
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
308
|
-
assertParamExists('getImpactsForOption', 'optionId', optionId);
|
|
309
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
310
|
-
assertParamExists('getImpactsForOption', 'investmentId', investmentId);
|
|
311
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
312
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
313
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
314
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
315
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
316
|
-
let baseOptions;
|
|
317
|
-
if (configuration) {
|
|
318
|
-
baseOptions = configuration.baseOptions;
|
|
319
|
-
}
|
|
320
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
321
|
-
const localVarHeaderParameter = {};
|
|
322
|
-
const localVarQueryParameter = {};
|
|
323
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
324
|
-
// oauth required
|
|
325
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
326
|
-
if (offset !== undefined) {
|
|
327
|
-
localVarQueryParameter['offset'] = offset;
|
|
328
|
-
}
|
|
329
|
-
if (limit !== undefined) {
|
|
330
|
-
localVarQueryParameter['limit'] = limit;
|
|
331
|
-
}
|
|
332
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
333
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
334
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
335
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
336
|
-
return {
|
|
337
|
-
url: toPathString(localVarUrlObj),
|
|
338
|
-
options: localVarRequestOptions,
|
|
339
|
-
};
|
|
340
|
-
}),
|
|
341
99
|
/**
|
|
342
100
|
* Retrieve a single investment by its ID.
|
|
343
101
|
* @summary Get an investment by ID
|
|
@@ -444,20 +202,19 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
444
202
|
};
|
|
445
203
|
}),
|
|
446
204
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @summary
|
|
449
|
-
* @param {string} optionId UUID of the option
|
|
205
|
+
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
206
|
+
* @summary Partially update an investment
|
|
450
207
|
* @param {string} investmentId UUID of the investment
|
|
208
|
+
* @param {InvestmentUpdate} investmentUpdate
|
|
451
209
|
* @param {*} [options] Override http request option.
|
|
452
210
|
* @throws {RequiredError}
|
|
453
211
|
*/
|
|
454
|
-
|
|
455
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
456
|
-
assertParamExists('getOptionForInvestment', 'optionId', optionId);
|
|
212
|
+
patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
|
|
457
213
|
// verify required parameter 'investmentId' is not null or undefined
|
|
458
|
-
assertParamExists('
|
|
459
|
-
|
|
460
|
-
|
|
214
|
+
assertParamExists('patchInvestment', 'investmentId', investmentId);
|
|
215
|
+
// verify required parameter 'investmentUpdate' is not null or undefined
|
|
216
|
+
assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate);
|
|
217
|
+
const localVarPath = `/investment/{investment_id}`
|
|
461
218
|
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
462
219
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
463
220
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -465,671 +222,143 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
465
222
|
if (configuration) {
|
|
466
223
|
baseOptions = configuration.baseOptions;
|
|
467
224
|
}
|
|
468
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
469
|
-
const localVarHeaderParameter = {};
|
|
470
|
-
const localVarQueryParameter = {};
|
|
471
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
472
|
-
// oauth required
|
|
473
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
474
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
475
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
476
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
477
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
478
|
-
return {
|
|
479
|
-
url: toPathString(localVarUrlObj),
|
|
480
|
-
options: localVarRequestOptions,
|
|
481
|
-
};
|
|
482
|
-
}),
|
|
483
|
-
/**
|
|
484
|
-
* 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.
|
|
485
|
-
* @summary Get the kpis for a given option inside a value framework
|
|
486
|
-
* @param {string} investmentId UUID of the investment
|
|
487
|
-
* @param {string} optionId UUID of the option
|
|
488
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
489
|
-
* @param {*} [options] Override http request option.
|
|
490
|
-
* @throws {RequiredError}
|
|
491
|
-
*/
|
|
492
|
-
getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
|
|
493
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
494
|
-
assertParamExists('getOptionKpis', 'investmentId', investmentId);
|
|
495
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
496
|
-
assertParamExists('getOptionKpis', 'optionId', optionId);
|
|
497
|
-
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
498
|
-
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
499
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
500
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
501
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
502
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
503
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
504
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
505
|
-
let baseOptions;
|
|
506
|
-
if (configuration) {
|
|
507
|
-
baseOptions = configuration.baseOptions;
|
|
508
|
-
}
|
|
509
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
510
226
|
const localVarHeaderParameter = {};
|
|
511
227
|
const localVarQueryParameter = {};
|
|
512
228
|
// authentication OAuth2AuthorizationCodeBearer required
|
|
513
229
|
// oauth required
|
|
514
230
|
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
231
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
515
232
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
516
233
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
517
234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
518
235
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
+
localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration);
|
|
519
237
|
return {
|
|
520
238
|
url: toPathString(localVarUrlObj),
|
|
521
239
|
options: localVarRequestOptions,
|
|
522
240
|
};
|
|
523
241
|
}),
|
|
524
242
|
/**
|
|
525
|
-
*
|
|
526
|
-
* @summary
|
|
527
|
-
* @param {
|
|
528
|
-
* @param {number} [offset] Number of records to skip
|
|
529
|
-
* @param {number} [limit] Max number of records to return
|
|
243
|
+
* Create a new investment.
|
|
244
|
+
* @summary Create an investment
|
|
245
|
+
* @param {InvestmentCreate} investmentCreate
|
|
530
246
|
* @param {*} [options] Override http request option.
|
|
531
247
|
* @throws {RequiredError}
|
|
532
248
|
*/
|
|
533
|
-
|
|
534
|
-
// verify required parameter '
|
|
535
|
-
assertParamExists('
|
|
536
|
-
const localVarPath = `/investment
|
|
537
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
249
|
+
postInvestment: (investmentCreate_1, ...args_1) => __awaiter(this, [investmentCreate_1, ...args_1], void 0, function* (investmentCreate, options = {}) {
|
|
250
|
+
// verify required parameter 'investmentCreate' is not null or undefined
|
|
251
|
+
assertParamExists('postInvestment', 'investmentCreate', investmentCreate);
|
|
252
|
+
const localVarPath = `/investment/`;
|
|
538
253
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
539
254
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
540
255
|
let baseOptions;
|
|
541
256
|
if (configuration) {
|
|
542
257
|
baseOptions = configuration.baseOptions;
|
|
543
258
|
}
|
|
544
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
259
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
545
260
|
const localVarHeaderParameter = {};
|
|
546
261
|
const localVarQueryParameter = {};
|
|
547
262
|
// authentication OAuth2AuthorizationCodeBearer required
|
|
548
263
|
// oauth required
|
|
549
264
|
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
550
|
-
|
|
551
|
-
localVarQueryParameter['offset'] = offset;
|
|
552
|
-
}
|
|
553
|
-
if (limit !== undefined) {
|
|
554
|
-
localVarQueryParameter['limit'] = limit;
|
|
555
|
-
}
|
|
265
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
556
266
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
557
267
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
558
268
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
269
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
+
localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration);
|
|
560
271
|
return {
|
|
561
272
|
url: toPathString(localVarUrlObj),
|
|
562
273
|
options: localVarRequestOptions,
|
|
563
274
|
};
|
|
564
275
|
}),
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* InvestmentApi - functional programming interface
|
|
280
|
+
*/
|
|
281
|
+
export const InvestmentApiFp = function (configuration) {
|
|
282
|
+
const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration);
|
|
283
|
+
return {
|
|
565
284
|
/**
|
|
566
|
-
*
|
|
567
|
-
* @summary
|
|
568
|
-
* @param {
|
|
569
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
570
|
-
* @param {*} [options] Override http request option.
|
|
571
|
-
* @throws {RequiredError}
|
|
572
|
-
*/
|
|
573
|
-
getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
|
|
574
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
575
|
-
assertParamExists('getOptionsOverview', 'investmentId', investmentId);
|
|
576
|
-
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
577
|
-
assertParamExists('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
|
|
578
|
-
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
579
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
580
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
581
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
582
|
-
let baseOptions;
|
|
583
|
-
if (configuration) {
|
|
584
|
-
baseOptions = configuration.baseOptions;
|
|
585
|
-
}
|
|
586
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
587
|
-
const localVarHeaderParameter = {};
|
|
588
|
-
const localVarQueryParameter = {};
|
|
589
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
590
|
-
// oauth required
|
|
591
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
592
|
-
if (valueFrameworkId !== undefined) {
|
|
593
|
-
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
594
|
-
}
|
|
595
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
596
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
597
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
598
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
599
|
-
return {
|
|
600
|
-
url: toPathString(localVarUrlObj),
|
|
601
|
-
options: localVarRequestOptions,
|
|
602
|
-
};
|
|
603
|
-
}),
|
|
604
|
-
/**
|
|
605
|
-
* Get the preferred option for an investment.
|
|
606
|
-
* @summary Get the preferred option for an investment
|
|
607
|
-
* @param {string} investmentId UUID of the investment
|
|
608
|
-
* @param {*} [options] Override http request option.
|
|
609
|
-
* @throws {RequiredError}
|
|
610
|
-
*/
|
|
611
|
-
getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
|
|
612
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
613
|
-
assertParamExists('getPreferredOption', 'investmentId', investmentId);
|
|
614
|
-
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
615
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
616
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
618
|
-
let baseOptions;
|
|
619
|
-
if (configuration) {
|
|
620
|
-
baseOptions = configuration.baseOptions;
|
|
621
|
-
}
|
|
622
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
623
|
-
const localVarHeaderParameter = {};
|
|
624
|
-
const localVarQueryParameter = {};
|
|
625
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
626
|
-
// oauth required
|
|
627
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
628
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
629
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
630
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
631
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
632
|
-
return {
|
|
633
|
-
url: toPathString(localVarUrlObj),
|
|
634
|
-
options: localVarRequestOptions,
|
|
635
|
-
};
|
|
636
|
-
}),
|
|
637
|
-
/**
|
|
638
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
639
|
-
* @summary Partially update an impact for this option
|
|
640
|
-
* @param {string} impactId UUID of the impact
|
|
641
|
-
* @param {string} optionId UUID of the option
|
|
642
|
-
* @param {string} investmentId UUID of the investment
|
|
643
|
-
* @param {ImpactUpdate} impactUpdate
|
|
644
|
-
* @param {*} [options] Override http request option.
|
|
645
|
-
* @throws {RequiredError}
|
|
646
|
-
*/
|
|
647
|
-
patchImpactForOption: (impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1], void 0, function* (impactId, optionId, investmentId, impactUpdate, options = {}) {
|
|
648
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
649
|
-
assertParamExists('patchImpactForOption', 'impactId', impactId);
|
|
650
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
651
|
-
assertParamExists('patchImpactForOption', 'optionId', optionId);
|
|
652
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
653
|
-
assertParamExists('patchImpactForOption', 'investmentId', investmentId);
|
|
654
|
-
// verify required parameter 'impactUpdate' is not null or undefined
|
|
655
|
-
assertParamExists('patchImpactForOption', 'impactUpdate', impactUpdate);
|
|
656
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
657
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
658
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
659
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
660
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
661
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
662
|
-
let baseOptions;
|
|
663
|
-
if (configuration) {
|
|
664
|
-
baseOptions = configuration.baseOptions;
|
|
665
|
-
}
|
|
666
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
667
|
-
const localVarHeaderParameter = {};
|
|
668
|
-
const localVarQueryParameter = {};
|
|
669
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
670
|
-
// oauth required
|
|
671
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
672
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
673
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
674
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
675
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
676
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
677
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactUpdate, localVarRequestOptions, configuration);
|
|
678
|
-
return {
|
|
679
|
-
url: toPathString(localVarUrlObj),
|
|
680
|
-
options: localVarRequestOptions,
|
|
681
|
-
};
|
|
682
|
-
}),
|
|
683
|
-
/**
|
|
684
|
-
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
685
|
-
* @summary Partially update an investment
|
|
686
|
-
* @param {string} investmentId UUID of the investment
|
|
687
|
-
* @param {InvestmentUpdate} investmentUpdate
|
|
688
|
-
* @param {*} [options] Override http request option.
|
|
689
|
-
* @throws {RequiredError}
|
|
690
|
-
*/
|
|
691
|
-
patchInvestment: (investmentId_1, investmentUpdate_1, ...args_1) => __awaiter(this, [investmentId_1, investmentUpdate_1, ...args_1], void 0, function* (investmentId, investmentUpdate, options = {}) {
|
|
692
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
693
|
-
assertParamExists('patchInvestment', 'investmentId', investmentId);
|
|
694
|
-
// verify required parameter 'investmentUpdate' is not null or undefined
|
|
695
|
-
assertParamExists('patchInvestment', 'investmentUpdate', investmentUpdate);
|
|
696
|
-
const localVarPath = `/investment/{investment_id}`
|
|
697
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
698
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
699
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
700
|
-
let baseOptions;
|
|
701
|
-
if (configuration) {
|
|
702
|
-
baseOptions = configuration.baseOptions;
|
|
703
|
-
}
|
|
704
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
705
|
-
const localVarHeaderParameter = {};
|
|
706
|
-
const localVarQueryParameter = {};
|
|
707
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
708
|
-
// oauth required
|
|
709
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
710
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
711
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
712
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
713
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
714
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
715
|
-
localVarRequestOptions.data = serializeDataIfNeeded(investmentUpdate, localVarRequestOptions, configuration);
|
|
716
|
-
return {
|
|
717
|
-
url: toPathString(localVarUrlObj),
|
|
718
|
-
options: localVarRequestOptions,
|
|
719
|
-
};
|
|
720
|
-
}),
|
|
721
|
-
/**
|
|
722
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
723
|
-
* @summary Partially update an option for this investment
|
|
724
|
-
* @param {string} optionId UUID of the option
|
|
725
|
-
* @param {string} investmentId UUID of the investment
|
|
726
|
-
* @param {OptionUpdate} optionUpdate
|
|
727
|
-
* @param {*} [options] Override http request option.
|
|
728
|
-
* @throws {RequiredError}
|
|
729
|
-
*/
|
|
730
|
-
patchOptionForInvestment: (optionId_1, investmentId_1, optionUpdate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, optionUpdate_1, ...args_1], void 0, function* (optionId, investmentId, optionUpdate, options = {}) {
|
|
731
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
732
|
-
assertParamExists('patchOptionForInvestment', 'optionId', optionId);
|
|
733
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
734
|
-
assertParamExists('patchOptionForInvestment', 'investmentId', investmentId);
|
|
735
|
-
// verify required parameter 'optionUpdate' is not null or undefined
|
|
736
|
-
assertParamExists('patchOptionForInvestment', 'optionUpdate', optionUpdate);
|
|
737
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
738
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
739
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
740
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
741
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
742
|
-
let baseOptions;
|
|
743
|
-
if (configuration) {
|
|
744
|
-
baseOptions = configuration.baseOptions;
|
|
745
|
-
}
|
|
746
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
747
|
-
const localVarHeaderParameter = {};
|
|
748
|
-
const localVarQueryParameter = {};
|
|
749
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
750
|
-
// oauth required
|
|
751
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
752
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
753
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
754
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
755
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
756
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
757
|
-
localVarRequestOptions.data = serializeDataIfNeeded(optionUpdate, localVarRequestOptions, configuration);
|
|
758
|
-
return {
|
|
759
|
-
url: toPathString(localVarUrlObj),
|
|
760
|
-
options: localVarRequestOptions,
|
|
761
|
-
};
|
|
762
|
-
}),
|
|
763
|
-
/**
|
|
764
|
-
* Create a new investment.
|
|
765
|
-
* @summary Create an investment
|
|
766
|
-
* @param {InvestmentCreate} investmentCreate
|
|
767
|
-
* @param {*} [options] Override http request option.
|
|
768
|
-
* @throws {RequiredError}
|
|
769
|
-
*/
|
|
770
|
-
postInvestment: (investmentCreate_1, ...args_1) => __awaiter(this, [investmentCreate_1, ...args_1], void 0, function* (investmentCreate, options = {}) {
|
|
771
|
-
// verify required parameter 'investmentCreate' is not null or undefined
|
|
772
|
-
assertParamExists('postInvestment', 'investmentCreate', investmentCreate);
|
|
773
|
-
const localVarPath = `/investment/`;
|
|
774
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
775
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
776
|
-
let baseOptions;
|
|
777
|
-
if (configuration) {
|
|
778
|
-
baseOptions = configuration.baseOptions;
|
|
779
|
-
}
|
|
780
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
781
|
-
const localVarHeaderParameter = {};
|
|
782
|
-
const localVarQueryParameter = {};
|
|
783
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
784
|
-
// oauth required
|
|
785
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
786
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
787
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
788
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
789
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
790
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
791
|
-
localVarRequestOptions.data = serializeDataIfNeeded(investmentCreate, localVarRequestOptions, configuration);
|
|
792
|
-
return {
|
|
793
|
-
url: toPathString(localVarUrlObj),
|
|
794
|
-
options: localVarRequestOptions,
|
|
795
|
-
};
|
|
796
|
-
}),
|
|
797
|
-
/**
|
|
798
|
-
* Set the preferred option for an investment.
|
|
799
|
-
* @summary Set the preferred option for an investment
|
|
800
|
-
* @param {string} investmentId UUID of the investment
|
|
801
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
802
|
-
* @param {*} [options] Override http request option.
|
|
803
|
-
* @throws {RequiredError}
|
|
804
|
-
*/
|
|
805
|
-
setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
|
|
806
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
807
|
-
assertParamExists('setPreferredOption', 'investmentId', investmentId);
|
|
808
|
-
// verify required parameter 'preferredOptionRequest' is not null or undefined
|
|
809
|
-
assertParamExists('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
|
|
810
|
-
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
811
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
812
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
814
|
-
let baseOptions;
|
|
815
|
-
if (configuration) {
|
|
816
|
-
baseOptions = configuration.baseOptions;
|
|
817
|
-
}
|
|
818
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
819
|
-
const localVarHeaderParameter = {};
|
|
820
|
-
const localVarQueryParameter = {};
|
|
821
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
822
|
-
// oauth required
|
|
823
|
-
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
824
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
825
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
826
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
827
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
828
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
829
|
-
localVarRequestOptions.data = serializeDataIfNeeded(preferredOptionRequest, localVarRequestOptions, configuration);
|
|
830
|
-
return {
|
|
831
|
-
url: toPathString(localVarUrlObj),
|
|
832
|
-
options: localVarRequestOptions,
|
|
833
|
-
};
|
|
834
|
-
}),
|
|
835
|
-
};
|
|
836
|
-
};
|
|
837
|
-
/**
|
|
838
|
-
* InvestmentApi - functional programming interface
|
|
839
|
-
*/
|
|
840
|
-
export const InvestmentApiFp = function (configuration) {
|
|
841
|
-
const localVarAxiosParamCreator = InvestmentApiAxiosParamCreator(configuration);
|
|
842
|
-
return {
|
|
843
|
-
/**
|
|
844
|
-
* 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.
|
|
845
|
-
* @summary Bulk delete investments
|
|
846
|
-
* @param {BulkDeleteRequest} bulkDeleteRequest
|
|
847
|
-
* @param {*} [options] Override http request option.
|
|
848
|
-
* @throws {RequiredError}
|
|
849
|
-
*/
|
|
850
|
-
bulkDeleteInvestments(bulkDeleteRequest, options) {
|
|
851
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
852
|
-
var _a, _b, _c;
|
|
853
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
|
|
854
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
855
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.bulkDeleteInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
856
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
857
|
-
});
|
|
858
|
-
},
|
|
859
|
-
/**
|
|
860
|
-
* Create a new impact under this option.
|
|
861
|
-
* @summary Create an impact for this option
|
|
862
|
-
* @param {string} optionId UUID of the option
|
|
863
|
-
* @param {string} investmentId UUID of the investment
|
|
864
|
-
* @param {ImpactCreate} impactCreate
|
|
865
|
-
* @param {*} [options] Override http request option.
|
|
866
|
-
* @throws {RequiredError}
|
|
867
|
-
*/
|
|
868
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
869
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
870
|
-
var _a, _b, _c;
|
|
871
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
|
|
872
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
873
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.createImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
874
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
875
|
-
});
|
|
876
|
-
},
|
|
877
|
-
/**
|
|
878
|
-
* Create a new option under this investment.
|
|
879
|
-
* @summary Create an option for this investment
|
|
880
|
-
* @param {string} investmentId UUID of the investment
|
|
881
|
-
* @param {OptionCreate} optionCreate
|
|
882
|
-
* @param {*} [options] Override http request option.
|
|
883
|
-
* @throws {RequiredError}
|
|
884
|
-
*/
|
|
885
|
-
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
886
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
887
|
-
var _a, _b, _c;
|
|
888
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createOptionForInvestment(investmentId, optionCreate, options);
|
|
889
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
890
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.createOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
891
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
892
|
-
});
|
|
893
|
-
},
|
|
894
|
-
/**
|
|
895
|
-
* Delete an existing impact by its ID.
|
|
896
|
-
* @summary Delete an impact for this option
|
|
897
|
-
* @param {string} impactId UUID of the impact
|
|
898
|
-
* @param {string} optionId UUID of the option
|
|
899
|
-
* @param {string} investmentId UUID of the investment
|
|
900
|
-
* @param {*} [options] Override http request option.
|
|
901
|
-
* @throws {RequiredError}
|
|
902
|
-
*/
|
|
903
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
904
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
905
|
-
var _a, _b, _c;
|
|
906
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
|
|
907
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
908
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.deleteImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
909
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
910
|
-
});
|
|
911
|
-
},
|
|
912
|
-
/**
|
|
913
|
-
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
914
|
-
* @summary Delete an investment
|
|
915
|
-
* @param {string} investmentId UUID of the investment
|
|
916
|
-
* @param {*} [options] Override http request option.
|
|
917
|
-
* @throws {RequiredError}
|
|
918
|
-
*/
|
|
919
|
-
deleteInvestment(investmentId, options) {
|
|
920
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
921
|
-
var _a, _b, _c;
|
|
922
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
|
|
923
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
924
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.deleteInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
925
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
926
|
-
});
|
|
927
|
-
},
|
|
928
|
-
/**
|
|
929
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
930
|
-
* @summary Delete an option for this investment
|
|
931
|
-
* @param {string} optionId UUID of the option
|
|
932
|
-
* @param {string} investmentId UUID of the investment
|
|
933
|
-
* @param {*} [options] Override http request option.
|
|
934
|
-
* @throws {RequiredError}
|
|
935
|
-
*/
|
|
936
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
937
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
938
|
-
var _a, _b, _c;
|
|
939
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
|
|
940
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
941
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.deleteOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
942
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
943
|
-
});
|
|
944
|
-
},
|
|
945
|
-
/**
|
|
946
|
-
* Retrieve a specific impact for the option.
|
|
947
|
-
* @summary Get an impact for this option
|
|
948
|
-
* @param {string} impactId UUID of the impact
|
|
949
|
-
* @param {string} optionId UUID of the option
|
|
950
|
-
* @param {string} investmentId UUID of the investment
|
|
951
|
-
* @param {*} [options] Override http request option.
|
|
952
|
-
* @throws {RequiredError}
|
|
953
|
-
*/
|
|
954
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
955
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
956
|
-
var _a, _b, _c;
|
|
957
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
|
|
958
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
959
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
960
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
961
|
-
});
|
|
962
|
-
},
|
|
963
|
-
/**
|
|
964
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
965
|
-
* @summary List impacts for this option
|
|
966
|
-
* @param {string} optionId UUID of the option
|
|
967
|
-
* @param {string} investmentId UUID of the investment
|
|
968
|
-
* @param {number} [offset] Number of records to skip
|
|
969
|
-
* @param {number} [limit] Max number of records to return
|
|
970
|
-
* @param {*} [options] Override http request option.
|
|
971
|
-
* @throws {RequiredError}
|
|
972
|
-
*/
|
|
973
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
974
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
975
|
-
var _a, _b, _c;
|
|
976
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
|
|
977
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
978
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getImpactsForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
979
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
980
|
-
});
|
|
981
|
-
},
|
|
982
|
-
/**
|
|
983
|
-
* Retrieve a single investment by its ID.
|
|
984
|
-
* @summary Get an investment by ID
|
|
985
|
-
* @param {string} investmentId UUID of the investment
|
|
986
|
-
* @param {*} [options] Override http request option.
|
|
987
|
-
* @throws {RequiredError}
|
|
988
|
-
*/
|
|
989
|
-
getInvestmentById(investmentId, options) {
|
|
990
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
991
|
-
var _a, _b, _c;
|
|
992
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
|
|
993
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
994
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestmentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
995
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
996
|
-
});
|
|
997
|
-
},
|
|
998
|
-
/**
|
|
999
|
-
* Retrieve a paginated list of all investments.
|
|
1000
|
-
* @summary List investments
|
|
1001
|
-
* @param {number} [offset] Number of records to skip
|
|
1002
|
-
* @param {number} [limit] Max number of records to return
|
|
1003
|
-
* @param {*} [options] Override http request option.
|
|
1004
|
-
* @throws {RequiredError}
|
|
1005
|
-
*/
|
|
1006
|
-
getInvestments(offset, limit, options) {
|
|
1007
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
-
var _a, _b, _c;
|
|
1009
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
|
|
1010
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1011
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1012
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1013
|
-
});
|
|
1014
|
-
},
|
|
1015
|
-
/**
|
|
1016
|
-
* 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.
|
|
1017
|
-
* @summary Investment overview table
|
|
1018
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
285
|
+
* 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.
|
|
286
|
+
* @summary Bulk delete investments
|
|
287
|
+
* @param {BulkDeleteRequest} bulkDeleteRequest
|
|
1019
288
|
* @param {*} [options] Override http request option.
|
|
1020
289
|
* @throws {RequiredError}
|
|
1021
290
|
*/
|
|
1022
|
-
|
|
291
|
+
bulkDeleteInvestments(bulkDeleteRequest, options) {
|
|
1023
292
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1024
293
|
var _a, _b, _c;
|
|
1025
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
294
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteInvestments(bulkDeleteRequest, options);
|
|
1026
295
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1027
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
296
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.bulkDeleteInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1028
297
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1029
298
|
});
|
|
1030
299
|
},
|
|
1031
300
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
* @summary
|
|
1034
|
-
* @param {string} optionId UUID of the option
|
|
301
|
+
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
302
|
+
* @summary Delete an investment
|
|
1035
303
|
* @param {string} investmentId UUID of the investment
|
|
1036
304
|
* @param {*} [options] Override http request option.
|
|
1037
305
|
* @throws {RequiredError}
|
|
1038
306
|
*/
|
|
1039
|
-
|
|
307
|
+
deleteInvestment(investmentId, options) {
|
|
1040
308
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1041
309
|
var _a, _b, _c;
|
|
1042
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteInvestment(investmentId, options);
|
|
1043
311
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1044
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
312
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.deleteInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1045
313
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1046
314
|
});
|
|
1047
315
|
},
|
|
1048
316
|
/**
|
|
1049
|
-
*
|
|
1050
|
-
* @summary Get
|
|
317
|
+
* Retrieve a single investment by its ID.
|
|
318
|
+
* @summary Get an investment by ID
|
|
1051
319
|
* @param {string} investmentId UUID of the investment
|
|
1052
|
-
* @param {string} optionId UUID of the option
|
|
1053
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1054
320
|
* @param {*} [options] Override http request option.
|
|
1055
321
|
* @throws {RequiredError}
|
|
1056
322
|
*/
|
|
1057
|
-
|
|
323
|
+
getInvestmentById(investmentId, options) {
|
|
1058
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1059
325
|
var _a, _b, _c;
|
|
1060
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
326
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentById(investmentId, options);
|
|
1061
327
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1062
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
328
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestmentById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1063
329
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1064
330
|
});
|
|
1065
331
|
},
|
|
1066
332
|
/**
|
|
1067
|
-
* Retrieve a paginated list of all
|
|
1068
|
-
* @summary List
|
|
1069
|
-
* @param {string} investmentId UUID of the investment
|
|
333
|
+
* Retrieve a paginated list of all investments.
|
|
334
|
+
* @summary List investments
|
|
1070
335
|
* @param {number} [offset] Number of records to skip
|
|
1071
336
|
* @param {number} [limit] Max number of records to return
|
|
1072
337
|
* @param {*} [options] Override http request option.
|
|
1073
338
|
* @throws {RequiredError}
|
|
1074
339
|
*/
|
|
1075
|
-
|
|
340
|
+
getInvestments(offset, limit, options) {
|
|
1076
341
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1077
342
|
var _a, _b, _c;
|
|
1078
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
343
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestments(offset, limit, options);
|
|
1079
344
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1080
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
345
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1081
346
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1082
347
|
});
|
|
1083
348
|
},
|
|
1084
349
|
/**
|
|
1085
|
-
* Return a flat overview of all
|
|
1086
|
-
* @summary
|
|
1087
|
-
* @param {string} investmentId UUID of the investment
|
|
350
|
+
* 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.
|
|
351
|
+
* @summary Investment overview table
|
|
1088
352
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
1089
353
|
* @param {*} [options] Override http request option.
|
|
1090
354
|
* @throws {RequiredError}
|
|
1091
355
|
*/
|
|
1092
|
-
|
|
1093
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1094
|
-
var _a, _b, _c;
|
|
1095
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
|
|
1096
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1097
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1098
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1099
|
-
});
|
|
1100
|
-
},
|
|
1101
|
-
/**
|
|
1102
|
-
* Get the preferred option for an investment.
|
|
1103
|
-
* @summary Get the preferred option for an investment
|
|
1104
|
-
* @param {string} investmentId UUID of the investment
|
|
1105
|
-
* @param {*} [options] Override http request option.
|
|
1106
|
-
* @throws {RequiredError}
|
|
1107
|
-
*/
|
|
1108
|
-
getPreferredOption(investmentId, options) {
|
|
1109
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1110
|
-
var _a, _b, _c;
|
|
1111
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
|
|
1112
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1113
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1114
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1115
|
-
});
|
|
1116
|
-
},
|
|
1117
|
-
/**
|
|
1118
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1119
|
-
* @summary Partially update an impact for this option
|
|
1120
|
-
* @param {string} impactId UUID of the impact
|
|
1121
|
-
* @param {string} optionId UUID of the option
|
|
1122
|
-
* @param {string} investmentId UUID of the investment
|
|
1123
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1124
|
-
* @param {*} [options] Override http request option.
|
|
1125
|
-
* @throws {RequiredError}
|
|
1126
|
-
*/
|
|
1127
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
356
|
+
getInvestmentsOverview(valueFrameworkId, options) {
|
|
1128
357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1129
358
|
var _a, _b, _c;
|
|
1130
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
|
|
1131
360
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1132
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.
|
|
361
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getInvestmentsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1133
362
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1134
363
|
});
|
|
1135
364
|
},
|
|
@@ -1150,24 +379,6 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
1150
379
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1151
380
|
});
|
|
1152
381
|
},
|
|
1153
|
-
/**
|
|
1154
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1155
|
-
* @summary Partially update an option for this investment
|
|
1156
|
-
* @param {string} optionId UUID of the option
|
|
1157
|
-
* @param {string} investmentId UUID of the investment
|
|
1158
|
-
* @param {OptionUpdate} optionUpdate
|
|
1159
|
-
* @param {*} [options] Override http request option.
|
|
1160
|
-
* @throws {RequiredError}
|
|
1161
|
-
*/
|
|
1162
|
-
patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
|
|
1163
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1164
|
-
var _a, _b, _c;
|
|
1165
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchOptionForInvestment(optionId, investmentId, optionUpdate, options);
|
|
1166
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1167
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.patchOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1168
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1169
|
-
});
|
|
1170
|
-
},
|
|
1171
382
|
/**
|
|
1172
383
|
* Create a new investment.
|
|
1173
384
|
* @summary Create an investment
|
|
@@ -1184,23 +395,6 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
1184
395
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1185
396
|
});
|
|
1186
397
|
},
|
|
1187
|
-
/**
|
|
1188
|
-
* Set the preferred option for an investment.
|
|
1189
|
-
* @summary Set the preferred option for an investment
|
|
1190
|
-
* @param {string} investmentId UUID of the investment
|
|
1191
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1192
|
-
* @param {*} [options] Override http request option.
|
|
1193
|
-
* @throws {RequiredError}
|
|
1194
|
-
*/
|
|
1195
|
-
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1196
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1197
|
-
var _a, _b, _c;
|
|
1198
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
|
|
1199
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1200
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.setPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1201
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1202
|
-
});
|
|
1203
|
-
},
|
|
1204
398
|
};
|
|
1205
399
|
};
|
|
1206
400
|
/**
|
|
@@ -1219,41 +413,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1219
413
|
bulkDeleteInvestments(bulkDeleteRequest, options) {
|
|
1220
414
|
return localVarFp.bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(axios, basePath));
|
|
1221
415
|
},
|
|
1222
|
-
/**
|
|
1223
|
-
* Create a new impact under this option.
|
|
1224
|
-
* @summary Create an impact for this option
|
|
1225
|
-
* @param {string} optionId UUID of the option
|
|
1226
|
-
* @param {string} investmentId UUID of the investment
|
|
1227
|
-
* @param {ImpactCreate} impactCreate
|
|
1228
|
-
* @param {*} [options] Override http request option.
|
|
1229
|
-
* @throws {RequiredError}
|
|
1230
|
-
*/
|
|
1231
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
1232
|
-
return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
|
|
1233
|
-
},
|
|
1234
|
-
/**
|
|
1235
|
-
* Create a new option under this investment.
|
|
1236
|
-
* @summary Create an option for this investment
|
|
1237
|
-
* @param {string} investmentId UUID of the investment
|
|
1238
|
-
* @param {OptionCreate} optionCreate
|
|
1239
|
-
* @param {*} [options] Override http request option.
|
|
1240
|
-
* @throws {RequiredError}
|
|
1241
|
-
*/
|
|
1242
|
-
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
1243
|
-
return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
|
|
1244
|
-
},
|
|
1245
|
-
/**
|
|
1246
|
-
* Delete an existing impact by its ID.
|
|
1247
|
-
* @summary Delete an impact for this option
|
|
1248
|
-
* @param {string} impactId UUID of the impact
|
|
1249
|
-
* @param {string} optionId UUID of the option
|
|
1250
|
-
* @param {string} investmentId UUID of the investment
|
|
1251
|
-
* @param {*} [options] Override http request option.
|
|
1252
|
-
* @throws {RequiredError}
|
|
1253
|
-
*/
|
|
1254
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
1255
|
-
return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1256
|
-
},
|
|
1257
416
|
/**
|
|
1258
417
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
1259
418
|
* @summary Delete an investment
|
|
@@ -1264,42 +423,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1264
423
|
deleteInvestment(investmentId, options) {
|
|
1265
424
|
return localVarFp.deleteInvestment(investmentId, options).then((request) => request(axios, basePath));
|
|
1266
425
|
},
|
|
1267
|
-
/**
|
|
1268
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
1269
|
-
* @summary Delete an option for this investment
|
|
1270
|
-
* @param {string} optionId UUID of the option
|
|
1271
|
-
* @param {string} investmentId UUID of the investment
|
|
1272
|
-
* @param {*} [options] Override http request option.
|
|
1273
|
-
* @throws {RequiredError}
|
|
1274
|
-
*/
|
|
1275
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
1276
|
-
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1277
|
-
},
|
|
1278
|
-
/**
|
|
1279
|
-
* Retrieve a specific impact for the option.
|
|
1280
|
-
* @summary Get an impact for this option
|
|
1281
|
-
* @param {string} impactId UUID of the impact
|
|
1282
|
-
* @param {string} optionId UUID of the option
|
|
1283
|
-
* @param {string} investmentId UUID of the investment
|
|
1284
|
-
* @param {*} [options] Override http request option.
|
|
1285
|
-
* @throws {RequiredError}
|
|
1286
|
-
*/
|
|
1287
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
1288
|
-
return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1289
|
-
},
|
|
1290
|
-
/**
|
|
1291
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1292
|
-
* @summary List impacts for this option
|
|
1293
|
-
* @param {string} optionId UUID of the option
|
|
1294
|
-
* @param {string} investmentId UUID of the investment
|
|
1295
|
-
* @param {number} [offset] Number of records to skip
|
|
1296
|
-
* @param {number} [limit] Max number of records to return
|
|
1297
|
-
* @param {*} [options] Override http request option.
|
|
1298
|
-
* @throws {RequiredError}
|
|
1299
|
-
*/
|
|
1300
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
1301
|
-
return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1302
|
-
},
|
|
1303
426
|
/**
|
|
1304
427
|
* Retrieve a single investment by its ID.
|
|
1305
428
|
* @summary Get an investment by ID
|
|
@@ -1331,75 +454,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1331
454
|
getInvestmentsOverview(valueFrameworkId, options) {
|
|
1332
455
|
return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1333
456
|
},
|
|
1334
|
-
/**
|
|
1335
|
-
* Retrieve a specific option for the investment.
|
|
1336
|
-
* @summary Get an option for this investment
|
|
1337
|
-
* @param {string} optionId UUID of the option
|
|
1338
|
-
* @param {string} investmentId UUID of the investment
|
|
1339
|
-
* @param {*} [options] Override http request option.
|
|
1340
|
-
* @throws {RequiredError}
|
|
1341
|
-
*/
|
|
1342
|
-
getOptionForInvestment(optionId, investmentId, options) {
|
|
1343
|
-
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1344
|
-
},
|
|
1345
|
-
/**
|
|
1346
|
-
* 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.
|
|
1347
|
-
* @summary Get the kpis for a given option inside a value framework
|
|
1348
|
-
* @param {string} investmentId UUID of the investment
|
|
1349
|
-
* @param {string} optionId UUID of the option
|
|
1350
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1351
|
-
* @param {*} [options] Override http request option.
|
|
1352
|
-
* @throws {RequiredError}
|
|
1353
|
-
*/
|
|
1354
|
-
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
1355
|
-
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1356
|
-
},
|
|
1357
|
-
/**
|
|
1358
|
-
* Retrieve a paginated list of all options for a specific investment.
|
|
1359
|
-
* @summary List options for this investment
|
|
1360
|
-
* @param {string} investmentId UUID of the investment
|
|
1361
|
-
* @param {number} [offset] Number of records to skip
|
|
1362
|
-
* @param {number} [limit] Max number of records to return
|
|
1363
|
-
* @param {*} [options] Override http request option.
|
|
1364
|
-
* @throws {RequiredError}
|
|
1365
|
-
*/
|
|
1366
|
-
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
1367
|
-
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
1368
|
-
},
|
|
1369
|
-
/**
|
|
1370
|
-
* 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.
|
|
1371
|
-
* @summary Option overview table for this investment
|
|
1372
|
-
* @param {string} investmentId UUID of the investment
|
|
1373
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1374
|
-
* @param {*} [options] Override http request option.
|
|
1375
|
-
* @throws {RequiredError}
|
|
1376
|
-
*/
|
|
1377
|
-
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1378
|
-
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1379
|
-
},
|
|
1380
|
-
/**
|
|
1381
|
-
* Get the preferred option for an investment.
|
|
1382
|
-
* @summary Get the preferred option for an investment
|
|
1383
|
-
* @param {string} investmentId UUID of the investment
|
|
1384
|
-
* @param {*} [options] Override http request option.
|
|
1385
|
-
* @throws {RequiredError}
|
|
1386
|
-
*/
|
|
1387
|
-
getPreferredOption(investmentId, options) {
|
|
1388
|
-
return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
1389
|
-
},
|
|
1390
|
-
/**
|
|
1391
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1392
|
-
* @summary Partially update an impact for this option
|
|
1393
|
-
* @param {string} impactId UUID of the impact
|
|
1394
|
-
* @param {string} optionId UUID of the option
|
|
1395
|
-
* @param {string} investmentId UUID of the investment
|
|
1396
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1397
|
-
* @param {*} [options] Override http request option.
|
|
1398
|
-
* @throws {RequiredError}
|
|
1399
|
-
*/
|
|
1400
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
1401
|
-
return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
|
|
1402
|
-
},
|
|
1403
457
|
/**
|
|
1404
458
|
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1405
459
|
* @summary Partially update an investment
|
|
@@ -1411,18 +465,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1411
465
|
patchInvestment(investmentId, investmentUpdate, options) {
|
|
1412
466
|
return localVarFp.patchInvestment(investmentId, investmentUpdate, options).then((request) => request(axios, basePath));
|
|
1413
467
|
},
|
|
1414
|
-
/**
|
|
1415
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1416
|
-
* @summary Partially update an option for this investment
|
|
1417
|
-
* @param {string} optionId UUID of the option
|
|
1418
|
-
* @param {string} investmentId UUID of the investment
|
|
1419
|
-
* @param {OptionUpdate} optionUpdate
|
|
1420
|
-
* @param {*} [options] Override http request option.
|
|
1421
|
-
* @throws {RequiredError}
|
|
1422
|
-
*/
|
|
1423
|
-
patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
|
|
1424
|
-
return localVarFp.patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(axios, basePath));
|
|
1425
|
-
},
|
|
1426
468
|
/**
|
|
1427
469
|
* Create a new investment.
|
|
1428
470
|
* @summary Create an investment
|
|
@@ -1433,17 +475,6 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1433
475
|
postInvestment(investmentCreate, options) {
|
|
1434
476
|
return localVarFp.postInvestment(investmentCreate, options).then((request) => request(axios, basePath));
|
|
1435
477
|
},
|
|
1436
|
-
/**
|
|
1437
|
-
* Set the preferred option for an investment.
|
|
1438
|
-
* @summary Set the preferred option for an investment
|
|
1439
|
-
* @param {string} investmentId UUID of the investment
|
|
1440
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1441
|
-
* @param {*} [options] Override http request option.
|
|
1442
|
-
* @throws {RequiredError}
|
|
1443
|
-
*/
|
|
1444
|
-
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1445
|
-
return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
|
|
1446
|
-
},
|
|
1447
478
|
};
|
|
1448
479
|
};
|
|
1449
480
|
/**
|
|
@@ -1460,41 +491,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1460
491
|
bulkDeleteInvestments(bulkDeleteRequest, options) {
|
|
1461
492
|
return InvestmentApiFp(this.configuration).bulkDeleteInvestments(bulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1462
493
|
}
|
|
1463
|
-
/**
|
|
1464
|
-
* Create a new impact under this option.
|
|
1465
|
-
* @summary Create an impact for this option
|
|
1466
|
-
* @param {string} optionId UUID of the option
|
|
1467
|
-
* @param {string} investmentId UUID of the investment
|
|
1468
|
-
* @param {ImpactCreate} impactCreate
|
|
1469
|
-
* @param {*} [options] Override http request option.
|
|
1470
|
-
* @throws {RequiredError}
|
|
1471
|
-
*/
|
|
1472
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
1473
|
-
return InvestmentApiFp(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1474
|
-
}
|
|
1475
|
-
/**
|
|
1476
|
-
* Create a new option under this investment.
|
|
1477
|
-
* @summary Create an option for this investment
|
|
1478
|
-
* @param {string} investmentId UUID of the investment
|
|
1479
|
-
* @param {OptionCreate} optionCreate
|
|
1480
|
-
* @param {*} [options] Override http request option.
|
|
1481
|
-
* @throws {RequiredError}
|
|
1482
|
-
*/
|
|
1483
|
-
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
1484
|
-
return InvestmentApiFp(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1485
|
-
}
|
|
1486
|
-
/**
|
|
1487
|
-
* Delete an existing impact by its ID.
|
|
1488
|
-
* @summary Delete an impact for this option
|
|
1489
|
-
* @param {string} impactId UUID of the impact
|
|
1490
|
-
* @param {string} optionId UUID of the option
|
|
1491
|
-
* @param {string} investmentId UUID of the investment
|
|
1492
|
-
* @param {*} [options] Override http request option.
|
|
1493
|
-
* @throws {RequiredError}
|
|
1494
|
-
*/
|
|
1495
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
1496
|
-
return InvestmentApiFp(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1497
|
-
}
|
|
1498
494
|
/**
|
|
1499
495
|
* Delete an existing investment by its ID. Associated options are also deleted via cascade.
|
|
1500
496
|
* @summary Delete an investment
|
|
@@ -1505,42 +501,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1505
501
|
deleteInvestment(investmentId, options) {
|
|
1506
502
|
return InvestmentApiFp(this.configuration).deleteInvestment(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1507
503
|
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
1510
|
-
* @summary Delete an option for this investment
|
|
1511
|
-
* @param {string} optionId UUID of the option
|
|
1512
|
-
* @param {string} investmentId UUID of the investment
|
|
1513
|
-
* @param {*} [options] Override http request option.
|
|
1514
|
-
* @throws {RequiredError}
|
|
1515
|
-
*/
|
|
1516
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
1517
|
-
return InvestmentApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1518
|
-
}
|
|
1519
|
-
/**
|
|
1520
|
-
* Retrieve a specific impact for the option.
|
|
1521
|
-
* @summary Get an impact for this option
|
|
1522
|
-
* @param {string} impactId UUID of the impact
|
|
1523
|
-
* @param {string} optionId UUID of the option
|
|
1524
|
-
* @param {string} investmentId UUID of the investment
|
|
1525
|
-
* @param {*} [options] Override http request option.
|
|
1526
|
-
* @throws {RequiredError}
|
|
1527
|
-
*/
|
|
1528
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
1529
|
-
return InvestmentApiFp(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1530
|
-
}
|
|
1531
|
-
/**
|
|
1532
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1533
|
-
* @summary List impacts for this option
|
|
1534
|
-
* @param {string} optionId UUID of the option
|
|
1535
|
-
* @param {string} investmentId UUID of the investment
|
|
1536
|
-
* @param {number} [offset] Number of records to skip
|
|
1537
|
-
* @param {number} [limit] Max number of records to return
|
|
1538
|
-
* @param {*} [options] Override http request option.
|
|
1539
|
-
* @throws {RequiredError}
|
|
1540
|
-
*/
|
|
1541
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
1542
|
-
return InvestmentApiFp(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1543
|
-
}
|
|
1544
504
|
/**
|
|
1545
505
|
* Retrieve a single investment by its ID.
|
|
1546
506
|
* @summary Get an investment by ID
|
|
@@ -1572,75 +532,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1572
532
|
getInvestmentsOverview(valueFrameworkId, options) {
|
|
1573
533
|
return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1574
534
|
}
|
|
1575
|
-
/**
|
|
1576
|
-
* Retrieve a specific option for the investment.
|
|
1577
|
-
* @summary Get an option for this investment
|
|
1578
|
-
* @param {string} optionId UUID of the option
|
|
1579
|
-
* @param {string} investmentId UUID of the investment
|
|
1580
|
-
* @param {*} [options] Override http request option.
|
|
1581
|
-
* @throws {RequiredError}
|
|
1582
|
-
*/
|
|
1583
|
-
getOptionForInvestment(optionId, investmentId, options) {
|
|
1584
|
-
return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1585
|
-
}
|
|
1586
|
-
/**
|
|
1587
|
-
* 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.
|
|
1588
|
-
* @summary Get the kpis for a given option inside a value framework
|
|
1589
|
-
* @param {string} investmentId UUID of the investment
|
|
1590
|
-
* @param {string} optionId UUID of the option
|
|
1591
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1592
|
-
* @param {*} [options] Override http request option.
|
|
1593
|
-
* @throws {RequiredError}
|
|
1594
|
-
*/
|
|
1595
|
-
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
1596
|
-
return InvestmentApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1597
|
-
}
|
|
1598
|
-
/**
|
|
1599
|
-
* Retrieve a paginated list of all options for a specific investment.
|
|
1600
|
-
* @summary List options for this investment
|
|
1601
|
-
* @param {string} investmentId UUID of the investment
|
|
1602
|
-
* @param {number} [offset] Number of records to skip
|
|
1603
|
-
* @param {number} [limit] Max number of records to return
|
|
1604
|
-
* @param {*} [options] Override http request option.
|
|
1605
|
-
* @throws {RequiredError}
|
|
1606
|
-
*/
|
|
1607
|
-
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
1608
|
-
return InvestmentApiFp(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1609
|
-
}
|
|
1610
|
-
/**
|
|
1611
|
-
* 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.
|
|
1612
|
-
* @summary Option overview table for this investment
|
|
1613
|
-
* @param {string} investmentId UUID of the investment
|
|
1614
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
1615
|
-
* @param {*} [options] Override http request option.
|
|
1616
|
-
* @throws {RequiredError}
|
|
1617
|
-
*/
|
|
1618
|
-
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1619
|
-
return InvestmentApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1620
|
-
}
|
|
1621
|
-
/**
|
|
1622
|
-
* Get the preferred option for an investment.
|
|
1623
|
-
* @summary Get the preferred option for an investment
|
|
1624
|
-
* @param {string} investmentId UUID of the investment
|
|
1625
|
-
* @param {*} [options] Override http request option.
|
|
1626
|
-
* @throws {RequiredError}
|
|
1627
|
-
*/
|
|
1628
|
-
getPreferredOption(investmentId, options) {
|
|
1629
|
-
return InvestmentApiFp(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1630
|
-
}
|
|
1631
|
-
/**
|
|
1632
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1633
|
-
* @summary Partially update an impact for this option
|
|
1634
|
-
* @param {string} impactId UUID of the impact
|
|
1635
|
-
* @param {string} optionId UUID of the option
|
|
1636
|
-
* @param {string} investmentId UUID of the investment
|
|
1637
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1638
|
-
* @param {*} [options] Override http request option.
|
|
1639
|
-
* @throws {RequiredError}
|
|
1640
|
-
*/
|
|
1641
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
1642
|
-
return InvestmentApiFp(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1643
|
-
}
|
|
1644
535
|
/**
|
|
1645
536
|
* Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1646
537
|
* @summary Partially update an investment
|
|
@@ -1652,18 +543,6 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1652
543
|
patchInvestment(investmentId, investmentUpdate, options) {
|
|
1653
544
|
return InvestmentApiFp(this.configuration).patchInvestment(investmentId, investmentUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1654
545
|
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1657
|
-
* @summary Partially update an option for this investment
|
|
1658
|
-
* @param {string} optionId UUID of the option
|
|
1659
|
-
* @param {string} investmentId UUID of the investment
|
|
1660
|
-
* @param {OptionUpdate} optionUpdate
|
|
1661
|
-
* @param {*} [options] Override http request option.
|
|
1662
|
-
* @throws {RequiredError}
|
|
1663
|
-
*/
|
|
1664
|
-
patchOptionForInvestment(optionId, investmentId, optionUpdate, options) {
|
|
1665
|
-
return InvestmentApiFp(this.configuration).patchOptionForInvestment(optionId, investmentId, optionUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1666
|
-
}
|
|
1667
546
|
/**
|
|
1668
547
|
* Create a new investment.
|
|
1669
548
|
* @summary Create an investment
|
|
@@ -1674,15 +553,4 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1674
553
|
postInvestment(investmentCreate, options) {
|
|
1675
554
|
return InvestmentApiFp(this.configuration).postInvestment(investmentCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1676
555
|
}
|
|
1677
|
-
/**
|
|
1678
|
-
* Set the preferred option for an investment.
|
|
1679
|
-
* @summary Set the preferred option for an investment
|
|
1680
|
-
* @param {string} investmentId UUID of the investment
|
|
1681
|
-
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
1682
|
-
* @param {*} [options] Override http request option.
|
|
1683
|
-
* @throws {RequiredError}
|
|
1684
|
-
*/
|
|
1685
|
-
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
1686
|
-
return InvestmentApiFp(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1687
|
-
}
|
|
1688
556
|
}
|