@cosmotech/aip-client 0.4.0-dev4 → 1.0.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 +26 -6
- package/api/budget-api.ts +46 -43
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +1 -1
- 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 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +19 -18
- package/api/portfolio-api.ts +1 -1
- package/api/portfolio-investment-api.ts +1 -1
- package/api/portfolio-kpiapi.ts +1 -1
- package/api/preferred-option-api.ts +1 -1
- package/api/prioritization-api.ts +1022 -0
- package/api/value-framework-api.ts +1 -1
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +2 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +29 -29
- package/dist/api/budget-api.js +31 -31
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +1 -1
- package/dist/api/impact-api.js +1 -1
- package/dist/api/investment-api.d.ts +1 -1
- package/dist/api/investment-api.js +1 -1
- 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 -1
- package/dist/api/objective-api.js +1 -1
- 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 -13
- package/dist/api/option-api.js +14 -14
- package/dist/api/portfolio-api.d.ts +1 -1
- package/dist/api/portfolio-api.js +1 -1
- package/dist/api/portfolio-investment-api.d.ts +1 -1
- package/dist/api/portfolio-investment-api.js +1 -1
- package/dist/api/portfolio-kpiapi.d.ts +1 -1
- package/dist/api/portfolio-kpiapi.js +1 -1
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/prioritization-api.d.ts +467 -0
- package/dist/api/prioritization-api.js +974 -0
- package/dist/api/value-framework-api.d.ts +1 -1
- package/dist/api/value-framework-api.js +1 -1
- 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 +2 -1
- package/dist/api.js +2 -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 +29 -29
- package/dist/esm/api/budget-api.js +31 -31
- 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 +1 -1
- package/dist/esm/api/impact-api.js +1 -1
- package/dist/esm/api/investment-api.d.ts +1 -1
- package/dist/esm/api/investment-api.js +1 -1
- 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 -1
- package/dist/esm/api/objective-api.js +1 -1
- 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 -13
- package/dist/esm/api/option-api.js +14 -14
- package/dist/esm/api/portfolio-api.d.ts +1 -1
- package/dist/esm/api/portfolio-api.js +1 -1
- package/dist/esm/api/portfolio-investment-api.d.ts +1 -1
- package/dist/esm/api/portfolio-investment-api.js +1 -1
- package/dist/esm/api/portfolio-kpiapi.d.ts +1 -1
- package/dist/esm/api/portfolio-kpiapi.js +1 -1
- 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/prioritization-api.d.ts +467 -0
- package/dist/esm/api/prioritization-api.js +967 -0
- package/dist/esm/api/value-framework-api.d.ts +1 -1
- package/dist/esm/api/value-framework-api.js +1 -1
- 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 +2 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +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 -1
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-bulk-item.d.ts +1 -1
- package/dist/esm/models/impact-bulk-item.js +1 -1
- package/dist/esm/models/impact-create.d.ts +1 -1
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -1
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -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 +1 -1
- package/dist/esm/models/metric-performance-response.js +1 -1
- package/dist/esm/models/metric-performance-year.d.ts +1 -1
- package/dist/esm/models/metric-performance-year.js +1 -1
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/monetized-impact-detailed-response.d.ts +1 -1
- package/dist/esm/models/monetized-impact-detailed-response.js +1 -1
- package/dist/esm/models/monetized-impact-detailed-year.d.ts +1 -1
- package/dist/esm/models/monetized-impact-detailed-year.js +1 -1
- package/dist/esm/models/monetized-impact-metric-value.d.ts +2 -1
- package/dist/esm/models/monetized-impact-metric-value.js +1 -1
- package/dist/esm/models/monetized-impact-response.d.ts +1 -1
- package/dist/esm/models/monetized-impact-response.js +1 -1
- package/dist/esm/models/monetized-impact-year.d.ts +1 -1
- package/dist/esm/models/monetized-impact-year.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +1 -1
- package/dist/esm/models/option-overview-response.js +1 -1
- package/dist/esm/models/option-response.d.ts +1 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +1 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/portfolio-budget-expenditure-response.d.ts +1 -1
- package/dist/esm/models/portfolio-budget-expenditure-response.js +1 -1
- package/dist/esm/models/portfolio-budget-expenditure-year.d.ts +1 -1
- package/dist/esm/models/portfolio-budget-expenditure-year.js +1 -1
- package/dist/esm/models/portfolio-budget-usage-item.d.ts +1 -1
- package/dist/esm/models/portfolio-budget-usage-item.js +1 -1
- package/dist/esm/models/portfolio-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/portfolio-bulk-delete-request.js +1 -1
- package/dist/esm/models/portfolio-create.d.ts +1 -1
- package/dist/esm/models/portfolio-create.js +1 -1
- package/dist/esm/models/portfolio-investment-bulk-add-request.d.ts +1 -1
- package/dist/esm/models/portfolio-investment-bulk-add-request.js +1 -1
- package/dist/esm/models/portfolio-investment-bulk-add-response.d.ts +1 -1
- package/dist/esm/models/portfolio-investment-bulk-add-response.js +1 -1
- package/dist/esm/models/portfolio-investment-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/portfolio-investment-bulk-delete-request.js +1 -1
- package/dist/esm/models/portfolio-investment-overview-response.d.ts +1 -1
- package/dist/esm/models/portfolio-investment-overview-response.js +1 -1
- package/dist/esm/models/portfolio-investment-response.d.ts +1 -1
- package/dist/esm/models/portfolio-investment-response.js +1 -1
- package/dist/esm/models/portfolio-kpidistribution-budget-item.d.ts +1 -1
- package/dist/esm/models/portfolio-kpidistribution-budget-item.js +1 -1
- package/dist/esm/models/portfolio-kpidistribution-response.d.ts +1 -1
- package/dist/esm/models/portfolio-kpidistribution-response.js +1 -1
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.d.ts +1 -1
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.js +1 -1
- package/dist/esm/models/portfolio-kpidistribution-year-value.d.ts +1 -1
- package/dist/esm/models/portfolio-kpidistribution-year-value.js +1 -1
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.d.ts +1 -1
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.js +1 -1
- package/dist/esm/models/portfolio-kpiresponse.d.ts +1 -1
- package/dist/esm/models/portfolio-kpiresponse.js +1 -1
- package/dist/esm/models/portfolio-overview-item-response.d.ts +1 -1
- package/dist/esm/models/portfolio-overview-item-response.js +1 -1
- package/dist/esm/models/portfolio-response.d.ts +1 -1
- package/dist/esm/models/portfolio-response.js +1 -1
- package/dist/esm/models/portfolio-update.d.ts +1 -1
- package/dist/esm/models/portfolio-update.js +1 -1
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- package/dist/esm/models/prioritization-overview-response.d.ts +71 -0
- package/dist/esm/models/prioritization-overview-response.js +14 -0
- package/dist/esm/models/prioritization-result-response.d.ts +47 -0
- package/dist/esm/models/prioritization-result-response.js +14 -0
- package/dist/esm/models/prioritization-results-response.d.ts +19 -0
- package/dist/esm/models/prioritization-results-response.js +14 -0
- package/dist/esm/models/prioritization-scenario-response.d.ts +38 -0
- package/dist/esm/models/prioritization-scenario-response.js +14 -0
- package/dist/esm/models/prioritization-scenario-run-request.d.ts +24 -0
- package/dist/esm/models/prioritization-scenario-run-request.js +14 -0
- package/dist/esm/models/prioritization-scenario-status-response.d.ts +20 -0
- package/dist/esm/models/prioritization-scenario-status-response.js +14 -0
- package/dist/esm/models/scenario-status.d.ts +19 -0
- package/dist/esm/models/scenario-status.js +20 -0
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +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 -1
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-bulk-item.d.ts +1 -1
- package/dist/models/impact-bulk-item.js +1 -1
- package/dist/models/impact-create.d.ts +1 -1
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -1
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -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 +1 -1
- package/dist/models/metric-performance-response.js +1 -1
- package/dist/models/metric-performance-year.d.ts +1 -1
- package/dist/models/metric-performance-year.js +1 -1
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/monetized-impact-detailed-response.d.ts +1 -1
- package/dist/models/monetized-impact-detailed-response.js +1 -1
- package/dist/models/monetized-impact-detailed-year.d.ts +1 -1
- package/dist/models/monetized-impact-detailed-year.js +1 -1
- package/dist/models/monetized-impact-metric-value.d.ts +2 -1
- package/dist/models/monetized-impact-metric-value.js +1 -1
- package/dist/models/monetized-impact-response.d.ts +1 -1
- package/dist/models/monetized-impact-response.js +1 -1
- package/dist/models/monetized-impact-year.d.ts +1 -1
- package/dist/models/monetized-impact-year.js +1 -1
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +1 -1
- package/dist/models/option-overview-response.js +1 -1
- package/dist/models/option-response.d.ts +1 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +1 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/portfolio-budget-expenditure-response.d.ts +1 -1
- package/dist/models/portfolio-budget-expenditure-response.js +1 -1
- package/dist/models/portfolio-budget-expenditure-year.d.ts +1 -1
- package/dist/models/portfolio-budget-expenditure-year.js +1 -1
- package/dist/models/portfolio-budget-usage-item.d.ts +1 -1
- package/dist/models/portfolio-budget-usage-item.js +1 -1
- package/dist/models/portfolio-bulk-delete-request.d.ts +1 -1
- package/dist/models/portfolio-bulk-delete-request.js +1 -1
- package/dist/models/portfolio-create.d.ts +1 -1
- package/dist/models/portfolio-create.js +1 -1
- package/dist/models/portfolio-investment-bulk-add-request.d.ts +1 -1
- package/dist/models/portfolio-investment-bulk-add-request.js +1 -1
- package/dist/models/portfolio-investment-bulk-add-response.d.ts +1 -1
- package/dist/models/portfolio-investment-bulk-add-response.js +1 -1
- package/dist/models/portfolio-investment-bulk-delete-request.d.ts +1 -1
- package/dist/models/portfolio-investment-bulk-delete-request.js +1 -1
- package/dist/models/portfolio-investment-overview-response.d.ts +1 -1
- package/dist/models/portfolio-investment-overview-response.js +1 -1
- package/dist/models/portfolio-investment-response.d.ts +1 -1
- package/dist/models/portfolio-investment-response.js +1 -1
- package/dist/models/portfolio-kpidistribution-budget-item.d.ts +1 -1
- package/dist/models/portfolio-kpidistribution-budget-item.js +1 -1
- package/dist/models/portfolio-kpidistribution-response.d.ts +1 -1
- package/dist/models/portfolio-kpidistribution-response.js +1 -1
- package/dist/models/portfolio-kpidistribution-year-overrun.d.ts +1 -1
- package/dist/models/portfolio-kpidistribution-year-overrun.js +1 -1
- package/dist/models/portfolio-kpidistribution-year-value.d.ts +1 -1
- package/dist/models/portfolio-kpidistribution-year-value.js +1 -1
- package/dist/models/portfolio-kpioverrun-distribution-response.d.ts +1 -1
- package/dist/models/portfolio-kpioverrun-distribution-response.js +1 -1
- package/dist/models/portfolio-kpiresponse.d.ts +1 -1
- package/dist/models/portfolio-kpiresponse.js +1 -1
- package/dist/models/portfolio-overview-item-response.d.ts +1 -1
- package/dist/models/portfolio-overview-item-response.js +1 -1
- package/dist/models/portfolio-response.d.ts +1 -1
- package/dist/models/portfolio-response.js +1 -1
- package/dist/models/portfolio-update.d.ts +1 -1
- package/dist/models/portfolio-update.js +1 -1
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/prioritization-overview-response.d.ts +71 -0
- package/dist/models/prioritization-overview-response.js +15 -0
- package/dist/models/prioritization-result-response.d.ts +47 -0
- package/dist/models/prioritization-result-response.js +15 -0
- package/dist/models/prioritization-results-response.d.ts +19 -0
- package/dist/models/prioritization-results-response.js +15 -0
- package/dist/models/prioritization-scenario-response.d.ts +38 -0
- package/dist/models/prioritization-scenario-response.js +15 -0
- package/dist/models/prioritization-scenario-run-request.d.ts +24 -0
- package/dist/models/prioritization-scenario-run-request.js +15 -0
- package/dist/models/prioritization-scenario-status-response.d.ts +20 -0
- package/dist/models/prioritization-scenario-status-response.js +15 -0
- package/dist/models/scenario-status.d.ts +19 -0
- package/dist/models/scenario-status.js +23 -0
- 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 +13 -12
- package/docs/MonetizedImpactMetricValue.md +2 -0
- package/docs/OptionApi.md +4 -4
- package/docs/PrioritizationApi.md +705 -0
- package/docs/PrioritizationOverviewResponse.md +57 -0
- package/docs/PrioritizationResultResponse.md +39 -0
- package/docs/PrioritizationResultsResponse.md +23 -0
- package/docs/PrioritizationScenarioResponse.md +43 -0
- package/docs/PrioritizationScenarioRunRequest.md +23 -0
- package/docs/PrioritizationScenarioStatusResponse.md +25 -0
- package/docs/ScenarioStatus.md +16 -0
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +1 -1
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.ts +1 -1
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -1
- package/models/impact-bulk-item.ts +1 -1
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +7 -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 +1 -1
- package/models/metric-performance-year.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/monetized-impact-detailed-response.ts +1 -1
- package/models/monetized-impact-detailed-year.ts +1 -1
- package/models/monetized-impact-metric-value.ts +2 -1
- package/models/monetized-impact-response.ts +1 -1
- package/models/monetized-impact-year.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +1 -1
- package/models/option-overview-response.ts +1 -1
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/portfolio-budget-expenditure-response.ts +1 -1
- package/models/portfolio-budget-expenditure-year.ts +1 -1
- package/models/portfolio-budget-usage-item.ts +1 -1
- package/models/portfolio-bulk-delete-request.ts +1 -1
- package/models/portfolio-create.ts +1 -1
- package/models/portfolio-investment-bulk-add-request.ts +1 -1
- package/models/portfolio-investment-bulk-add-response.ts +1 -1
- package/models/portfolio-investment-bulk-delete-request.ts +1 -1
- package/models/portfolio-investment-overview-response.ts +1 -1
- package/models/portfolio-investment-response.ts +1 -1
- package/models/portfolio-kpidistribution-budget-item.ts +1 -1
- package/models/portfolio-kpidistribution-response.ts +1 -1
- package/models/portfolio-kpidistribution-year-overrun.ts +1 -1
- package/models/portfolio-kpidistribution-year-value.ts +1 -1
- package/models/portfolio-kpioverrun-distribution-response.ts +1 -1
- package/models/portfolio-kpiresponse.ts +1 -1
- package/models/portfolio-overview-item-response.ts +1 -1
- package/models/portfolio-response.ts +1 -1
- package/models/portfolio-update.ts +1 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/prioritization-overview-response.ts +77 -0
- package/models/prioritization-result-response.ts +53 -0
- package/models/prioritization-results-response.ts +27 -0
- package/models/prioritization-scenario-response.ts +48 -0
- package/models/prioritization-scenario-run-request.ts +30 -0
- package/models/prioritization-scenario-status-response.ts +30 -0
- package/models/scenario-status.ts +29 -0
- 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
|
@@ -0,0 +1,967 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* PrioritizationApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const PrioritizationApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Abort the currently running prioritization for this portfolio.
|
|
36
|
+
* @summary Abort a running prioritization
|
|
37
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
abortScenario: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
42
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
43
|
+
assertParamExists('abortScenario', 'portfolioId', portfolioId);
|
|
44
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/abort`
|
|
45
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
}
|
|
52
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
53
|
+
const localVarHeaderParameter = {};
|
|
54
|
+
const localVarQueryParameter = {};
|
|
55
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
56
|
+
// oauth required
|
|
57
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
58
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
return {
|
|
63
|
+
url: toPathString(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
67
|
+
/**
|
|
68
|
+
* Delete the scenario and all its results for this portfolio.
|
|
69
|
+
* @summary Delete the prioritization scenario
|
|
70
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
deleteScenario: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
75
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
76
|
+
assertParamExists('deleteScenario', 'portfolioId', portfolioId);
|
|
77
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/`
|
|
78
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
89
|
+
// oauth required
|
|
90
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
91
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
return {
|
|
95
|
+
url: toPathString(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
/**
|
|
100
|
+
* Get the current prioritization scenario for this portfolio, including config and status.
|
|
101
|
+
* @summary Get the prioritization scenario
|
|
102
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
getScenario: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
107
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
108
|
+
assertParamExists('getScenario', 'portfolioId', portfolioId);
|
|
109
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/`
|
|
110
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
113
|
+
let baseOptions;
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
}
|
|
117
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
118
|
+
const localVarHeaderParameter = {};
|
|
119
|
+
const localVarQueryParameter = {};
|
|
120
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
121
|
+
// oauth required
|
|
122
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
123
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
127
|
+
return {
|
|
128
|
+
url: toPathString(localVarUrlObj),
|
|
129
|
+
options: localVarRequestOptions,
|
|
130
|
+
};
|
|
131
|
+
}),
|
|
132
|
+
/**
|
|
133
|
+
* Year-by-year expenditure of performed investments linked to a specific budget within this scenario.
|
|
134
|
+
* @summary Per-year expenditure for one budget (performed investments)
|
|
135
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
136
|
+
* @param {string} budgetId UUID of the budget
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
getScenarioBudgetExpenditure: (portfolioId_1, budgetId_1, ...args_1) => __awaiter(this, [portfolioId_1, budgetId_1, ...args_1], void 0, function* (portfolioId, budgetId, options = {}) {
|
|
141
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
142
|
+
assertParamExists('getScenarioBudgetExpenditure', 'portfolioId', portfolioId);
|
|
143
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
144
|
+
assertParamExists('getScenarioBudgetExpenditure', 'budgetId', budgetId);
|
|
145
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/budget-expenditure/{budget_id}`
|
|
146
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)))
|
|
147
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
if (configuration) {
|
|
152
|
+
baseOptions = configuration.baseOptions;
|
|
153
|
+
}
|
|
154
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
155
|
+
const localVarHeaderParameter = {};
|
|
156
|
+
const localVarQueryParameter = {};
|
|
157
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
158
|
+
// oauth required
|
|
159
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
160
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
161
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
+
return {
|
|
165
|
+
url: toPathString(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
};
|
|
168
|
+
}),
|
|
169
|
+
/**
|
|
170
|
+
* Year-by-year expenditure for every budget referenced by a performed investment in the run.
|
|
171
|
+
* @summary Per-budget expenditure for performed investments
|
|
172
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
getScenarioBudgetExpenditureAll: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
177
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
178
|
+
assertParamExists('getScenarioBudgetExpenditureAll', 'portfolioId', portfolioId);
|
|
179
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/budget-expenditure-all`
|
|
180
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
181
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
182
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
183
|
+
let baseOptions;
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
188
|
+
const localVarHeaderParameter = {};
|
|
189
|
+
const localVarQueryParameter = {};
|
|
190
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
191
|
+
// oauth required
|
|
192
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
193
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
197
|
+
return {
|
|
198
|
+
url: toPathString(localVarUrlObj),
|
|
199
|
+
options: localVarRequestOptions,
|
|
200
|
+
};
|
|
201
|
+
}),
|
|
202
|
+
/**
|
|
203
|
+
* Year-by-year expenditure of performed investments that have no budget assigned within this scenario.
|
|
204
|
+
* @summary Per-year expenditure for performed investments with no budget
|
|
205
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
*/
|
|
209
|
+
getScenarioBudgetExpenditureNoBudget: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
210
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
211
|
+
assertParamExists('getScenarioBudgetExpenditureNoBudget', 'portfolioId', portfolioId);
|
|
212
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/budget-expenditure-no-budget`
|
|
213
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
214
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
215
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
216
|
+
let baseOptions;
|
|
217
|
+
if (configuration) {
|
|
218
|
+
baseOptions = configuration.baseOptions;
|
|
219
|
+
}
|
|
220
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
221
|
+
const localVarHeaderParameter = {};
|
|
222
|
+
const localVarQueryParameter = {};
|
|
223
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
224
|
+
// oauth required
|
|
225
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
226
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
230
|
+
return {
|
|
231
|
+
url: toPathString(localVarUrlObj),
|
|
232
|
+
options: localVarRequestOptions,
|
|
233
|
+
};
|
|
234
|
+
}),
|
|
235
|
+
/**
|
|
236
|
+
* Budget usage statistics restricted to the investments performed in the scenario run. For each budget referenced by a performed investment, returns usage and overrun statistics.
|
|
237
|
+
* @summary Budget usage for performed investments
|
|
238
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
239
|
+
* @param {*} [options] Override http request option.
|
|
240
|
+
* @throws {RequiredError}
|
|
241
|
+
*/
|
|
242
|
+
getScenarioBudgetUsage: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
243
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
244
|
+
assertParamExists('getScenarioBudgetUsage', 'portfolioId', portfolioId);
|
|
245
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/budget-usage`
|
|
246
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
247
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
249
|
+
let baseOptions;
|
|
250
|
+
if (configuration) {
|
|
251
|
+
baseOptions = configuration.baseOptions;
|
|
252
|
+
}
|
|
253
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
254
|
+
const localVarHeaderParameter = {};
|
|
255
|
+
const localVarQueryParameter = {};
|
|
256
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
257
|
+
// oauth required
|
|
258
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
259
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
263
|
+
return {
|
|
264
|
+
url: toPathString(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions,
|
|
266
|
+
};
|
|
267
|
+
}),
|
|
268
|
+
/**
|
|
269
|
+
* Aggregate KPIs comparing the prioritization run against the full portfolio (Overview tab of the scenario results).
|
|
270
|
+
* @summary Run vs portfolio comparison KPIs
|
|
271
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
getScenarioOverview: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
276
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
277
|
+
assertParamExists('getScenarioOverview', 'portfolioId', portfolioId);
|
|
278
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/overview`
|
|
279
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
280
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
281
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
282
|
+
let baseOptions;
|
|
283
|
+
if (configuration) {
|
|
284
|
+
baseOptions = configuration.baseOptions;
|
|
285
|
+
}
|
|
286
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
287
|
+
const localVarHeaderParameter = {};
|
|
288
|
+
const localVarQueryParameter = {};
|
|
289
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
290
|
+
// oauth required
|
|
291
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
292
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
293
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
294
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
295
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
296
|
+
return {
|
|
297
|
+
url: toPathString(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
};
|
|
300
|
+
}),
|
|
301
|
+
/**
|
|
302
|
+
* Get the results of the last successful prioritization run. Returns the list of investments with their rank and performed/unperformed status.
|
|
303
|
+
* @summary Get prioritization results
|
|
304
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
getScenarioResults: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
309
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
310
|
+
assertParamExists('getScenarioResults', 'portfolioId', portfolioId);
|
|
311
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/results`
|
|
312
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
320
|
+
const localVarHeaderParameter = {};
|
|
321
|
+
const localVarQueryParameter = {};
|
|
322
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
323
|
+
// oauth required
|
|
324
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
325
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
328
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
329
|
+
return {
|
|
330
|
+
url: toPathString(localVarUrlObj),
|
|
331
|
+
options: localVarRequestOptions,
|
|
332
|
+
};
|
|
333
|
+
}),
|
|
334
|
+
/**
|
|
335
|
+
* Lightweight polling endpoint to check the status of a prioritization run.
|
|
336
|
+
* @summary Get prioritization run status
|
|
337
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
getScenarioStatus: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
342
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
343
|
+
assertParamExists('getScenarioStatus', 'portfolioId', portfolioId);
|
|
344
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/status`
|
|
345
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
348
|
+
let baseOptions;
|
|
349
|
+
if (configuration) {
|
|
350
|
+
baseOptions = configuration.baseOptions;
|
|
351
|
+
}
|
|
352
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
353
|
+
const localVarHeaderParameter = {};
|
|
354
|
+
const localVarQueryParameter = {};
|
|
355
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
356
|
+
// oauth required
|
|
357
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
358
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
359
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
360
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
361
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
362
|
+
return {
|
|
363
|
+
url: toPathString(localVarUrlObj),
|
|
364
|
+
options: localVarRequestOptions,
|
|
365
|
+
};
|
|
366
|
+
}),
|
|
367
|
+
/**
|
|
368
|
+
* Year-by-year monetized impact (sum of all metric monetary values) and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
369
|
+
* @summary Monetized impact filtered to performed investments
|
|
370
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
371
|
+
* @param {*} [options] Override http request option.
|
|
372
|
+
* @throws {RequiredError}
|
|
373
|
+
*/
|
|
374
|
+
getScenarioValueFrameworkImpact: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
375
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
376
|
+
assertParamExists('getScenarioValueFrameworkImpact', 'portfolioId', portfolioId);
|
|
377
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/value-framework-impact`
|
|
378
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
379
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
|
+
let baseOptions;
|
|
382
|
+
if (configuration) {
|
|
383
|
+
baseOptions = configuration.baseOptions;
|
|
384
|
+
}
|
|
385
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
386
|
+
const localVarHeaderParameter = {};
|
|
387
|
+
const localVarQueryParameter = {};
|
|
388
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
389
|
+
// oauth required
|
|
390
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
391
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
394
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
395
|
+
return {
|
|
396
|
+
url: toPathString(localVarUrlObj),
|
|
397
|
+
options: localVarRequestOptions,
|
|
398
|
+
};
|
|
399
|
+
}),
|
|
400
|
+
/**
|
|
401
|
+
* Year-by-year monetized impact split by individual metric and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
402
|
+
* @summary Monetized impact (split by metric) filtered to performed investments
|
|
403
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
getScenarioValueFrameworkImpactDetailed: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
408
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
409
|
+
assertParamExists('getScenarioValueFrameworkImpactDetailed', 'portfolioId', portfolioId);
|
|
410
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/value-framework-impact/detailed`
|
|
411
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
412
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
414
|
+
let baseOptions;
|
|
415
|
+
if (configuration) {
|
|
416
|
+
baseOptions = configuration.baseOptions;
|
|
417
|
+
}
|
|
418
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
419
|
+
const localVarHeaderParameter = {};
|
|
420
|
+
const localVarQueryParameter = {};
|
|
421
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
422
|
+
// oauth required
|
|
423
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
424
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
427
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
428
|
+
return {
|
|
429
|
+
url: toPathString(localVarUrlObj),
|
|
430
|
+
options: localVarRequestOptions,
|
|
431
|
+
};
|
|
432
|
+
}),
|
|
433
|
+
/**
|
|
434
|
+
* Create a new prioritization scenario for this portfolio (or update the existing one) with the given value framework and metric, then immediately trigger the prioritization algorithm. Returns 202 Accepted — poll GET /status for progress.
|
|
435
|
+
* @summary Create/update and run a prioritization scenario
|
|
436
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
437
|
+
* @param {PrioritizationScenarioRunRequest} prioritizationScenarioRunRequest
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @throws {RequiredError}
|
|
440
|
+
*/
|
|
441
|
+
runScenario: (portfolioId_1, prioritizationScenarioRunRequest_1, ...args_1) => __awaiter(this, [portfolioId_1, prioritizationScenarioRunRequest_1, ...args_1], void 0, function* (portfolioId, prioritizationScenarioRunRequest, options = {}) {
|
|
442
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
443
|
+
assertParamExists('runScenario', 'portfolioId', portfolioId);
|
|
444
|
+
// verify required parameter 'prioritizationScenarioRunRequest' is not null or undefined
|
|
445
|
+
assertParamExists('runScenario', 'prioritizationScenarioRunRequest', prioritizationScenarioRunRequest);
|
|
446
|
+
const localVarPath = `/portfolio/{portfolio_id}/scenario/run`
|
|
447
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
455
|
+
const localVarHeaderParameter = {};
|
|
456
|
+
const localVarQueryParameter = {};
|
|
457
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
458
|
+
// oauth required
|
|
459
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
461
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
462
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
463
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
465
|
+
localVarRequestOptions.data = serializeDataIfNeeded(prioritizationScenarioRunRequest, localVarRequestOptions, configuration);
|
|
466
|
+
return {
|
|
467
|
+
url: toPathString(localVarUrlObj),
|
|
468
|
+
options: localVarRequestOptions,
|
|
469
|
+
};
|
|
470
|
+
}),
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* PrioritizationApi - functional programming interface
|
|
475
|
+
*/
|
|
476
|
+
export const PrioritizationApiFp = function (configuration) {
|
|
477
|
+
const localVarAxiosParamCreator = PrioritizationApiAxiosParamCreator(configuration);
|
|
478
|
+
return {
|
|
479
|
+
/**
|
|
480
|
+
* Abort the currently running prioritization for this portfolio.
|
|
481
|
+
* @summary Abort a running prioritization
|
|
482
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
abortScenario(portfolioId, options) {
|
|
487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
488
|
+
var _a, _b, _c;
|
|
489
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.abortScenario(portfolioId, options);
|
|
490
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
491
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.abortScenario']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
492
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
493
|
+
});
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
* Delete the scenario and all its results for this portfolio.
|
|
497
|
+
* @summary Delete the prioritization scenario
|
|
498
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
deleteScenario(portfolioId, options) {
|
|
503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
504
|
+
var _a, _b, _c;
|
|
505
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScenario(portfolioId, options);
|
|
506
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
507
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.deleteScenario']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
508
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
509
|
+
});
|
|
510
|
+
},
|
|
511
|
+
/**
|
|
512
|
+
* Get the current prioritization scenario for this portfolio, including config and status.
|
|
513
|
+
* @summary Get the prioritization scenario
|
|
514
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getScenario(portfolioId, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenario(portfolioId, options);
|
|
522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
523
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenario']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
524
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
/**
|
|
528
|
+
* Year-by-year expenditure of performed investments linked to a specific budget within this scenario.
|
|
529
|
+
* @summary Per-year expenditure for one budget (performed investments)
|
|
530
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
531
|
+
* @param {string} budgetId UUID of the budget
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
getScenarioBudgetExpenditure(portfolioId, budgetId, options) {
|
|
536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
537
|
+
var _a, _b, _c;
|
|
538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioBudgetExpenditure(portfolioId, budgetId, options);
|
|
539
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
540
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioBudgetExpenditure']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
541
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
542
|
+
});
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
* Year-by-year expenditure for every budget referenced by a performed investment in the run.
|
|
546
|
+
* @summary Per-budget expenditure for performed investments
|
|
547
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
*/
|
|
551
|
+
getScenarioBudgetExpenditureAll(portfolioId, options) {
|
|
552
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
553
|
+
var _a, _b, _c;
|
|
554
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioBudgetExpenditureAll(portfolioId, options);
|
|
555
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
556
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioBudgetExpenditureAll']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
557
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
558
|
+
});
|
|
559
|
+
},
|
|
560
|
+
/**
|
|
561
|
+
* Year-by-year expenditure of performed investments that have no budget assigned within this scenario.
|
|
562
|
+
* @summary Per-year expenditure for performed investments with no budget
|
|
563
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
564
|
+
* @param {*} [options] Override http request option.
|
|
565
|
+
* @throws {RequiredError}
|
|
566
|
+
*/
|
|
567
|
+
getScenarioBudgetExpenditureNoBudget(portfolioId, options) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
+
var _a, _b, _c;
|
|
570
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioBudgetExpenditureNoBudget(portfolioId, options);
|
|
571
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
572
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioBudgetExpenditureNoBudget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
573
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
574
|
+
});
|
|
575
|
+
},
|
|
576
|
+
/**
|
|
577
|
+
* Budget usage statistics restricted to the investments performed in the scenario run. For each budget referenced by a performed investment, returns usage and overrun statistics.
|
|
578
|
+
* @summary Budget usage for performed investments
|
|
579
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
580
|
+
* @param {*} [options] Override http request option.
|
|
581
|
+
* @throws {RequiredError}
|
|
582
|
+
*/
|
|
583
|
+
getScenarioBudgetUsage(portfolioId, options) {
|
|
584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
585
|
+
var _a, _b, _c;
|
|
586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioBudgetUsage(portfolioId, options);
|
|
587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
588
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioBudgetUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
589
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
590
|
+
});
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* Aggregate KPIs comparing the prioritization run against the full portfolio (Overview tab of the scenario results).
|
|
594
|
+
* @summary Run vs portfolio comparison KPIs
|
|
595
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
596
|
+
* @param {*} [options] Override http request option.
|
|
597
|
+
* @throws {RequiredError}
|
|
598
|
+
*/
|
|
599
|
+
getScenarioOverview(portfolioId, options) {
|
|
600
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
601
|
+
var _a, _b, _c;
|
|
602
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioOverview(portfolioId, options);
|
|
603
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
604
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
605
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
/**
|
|
609
|
+
* Get the results of the last successful prioritization run. Returns the list of investments with their rank and performed/unperformed status.
|
|
610
|
+
* @summary Get prioritization results
|
|
611
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
getScenarioResults(portfolioId, options) {
|
|
616
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
617
|
+
var _a, _b, _c;
|
|
618
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioResults(portfolioId, options);
|
|
619
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
620
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioResults']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
622
|
+
});
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
* Lightweight polling endpoint to check the status of a prioritization run.
|
|
626
|
+
* @summary Get prioritization run status
|
|
627
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
getScenarioStatus(portfolioId, options) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
var _a, _b, _c;
|
|
634
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioStatus(portfolioId, options);
|
|
635
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
636
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
637
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
638
|
+
});
|
|
639
|
+
},
|
|
640
|
+
/**
|
|
641
|
+
* Year-by-year monetized impact (sum of all metric monetary values) and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
642
|
+
* @summary Monetized impact filtered to performed investments
|
|
643
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
getScenarioValueFrameworkImpact(portfolioId, options) {
|
|
648
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
649
|
+
var _a, _b, _c;
|
|
650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioValueFrameworkImpact(portfolioId, options);
|
|
651
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
652
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioValueFrameworkImpact']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
654
|
+
});
|
|
655
|
+
},
|
|
656
|
+
/**
|
|
657
|
+
* Year-by-year monetized impact split by individual metric and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
658
|
+
* @summary Monetized impact (split by metric) filtered to performed investments
|
|
659
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
660
|
+
* @param {*} [options] Override http request option.
|
|
661
|
+
* @throws {RequiredError}
|
|
662
|
+
*/
|
|
663
|
+
getScenarioValueFrameworkImpactDetailed(portfolioId, options) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
665
|
+
var _a, _b, _c;
|
|
666
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getScenarioValueFrameworkImpactDetailed(portfolioId, options);
|
|
667
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
668
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.getScenarioValueFrameworkImpactDetailed']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
670
|
+
});
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
* Create a new prioritization scenario for this portfolio (or update the existing one) with the given value framework and metric, then immediately trigger the prioritization algorithm. Returns 202 Accepted — poll GET /status for progress.
|
|
674
|
+
* @summary Create/update and run a prioritization scenario
|
|
675
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
676
|
+
* @param {PrioritizationScenarioRunRequest} prioritizationScenarioRunRequest
|
|
677
|
+
* @param {*} [options] Override http request option.
|
|
678
|
+
* @throws {RequiredError}
|
|
679
|
+
*/
|
|
680
|
+
runScenario(portfolioId, prioritizationScenarioRunRequest, options) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
var _a, _b, _c;
|
|
683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.runScenario(portfolioId, prioritizationScenarioRunRequest, options);
|
|
684
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
685
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PrioritizationApi.runScenario']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
686
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
|
+
});
|
|
688
|
+
},
|
|
689
|
+
};
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* PrioritizationApi - factory interface
|
|
693
|
+
*/
|
|
694
|
+
export const PrioritizationApiFactory = function (configuration, basePath, axios) {
|
|
695
|
+
const localVarFp = PrioritizationApiFp(configuration);
|
|
696
|
+
return {
|
|
697
|
+
/**
|
|
698
|
+
* Abort the currently running prioritization for this portfolio.
|
|
699
|
+
* @summary Abort a running prioritization
|
|
700
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
abortScenario(portfolioId, options) {
|
|
705
|
+
return localVarFp.abortScenario(portfolioId, options).then((request) => request(axios, basePath));
|
|
706
|
+
},
|
|
707
|
+
/**
|
|
708
|
+
* Delete the scenario and all its results for this portfolio.
|
|
709
|
+
* @summary Delete the prioritization scenario
|
|
710
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
*/
|
|
714
|
+
deleteScenario(portfolioId, options) {
|
|
715
|
+
return localVarFp.deleteScenario(portfolioId, options).then((request) => request(axios, basePath));
|
|
716
|
+
},
|
|
717
|
+
/**
|
|
718
|
+
* Get the current prioritization scenario for this portfolio, including config and status.
|
|
719
|
+
* @summary Get the prioritization scenario
|
|
720
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
getScenario(portfolioId, options) {
|
|
725
|
+
return localVarFp.getScenario(portfolioId, options).then((request) => request(axios, basePath));
|
|
726
|
+
},
|
|
727
|
+
/**
|
|
728
|
+
* Year-by-year expenditure of performed investments linked to a specific budget within this scenario.
|
|
729
|
+
* @summary Per-year expenditure for one budget (performed investments)
|
|
730
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
731
|
+
* @param {string} budgetId UUID of the budget
|
|
732
|
+
* @param {*} [options] Override http request option.
|
|
733
|
+
* @throws {RequiredError}
|
|
734
|
+
*/
|
|
735
|
+
getScenarioBudgetExpenditure(portfolioId, budgetId, options) {
|
|
736
|
+
return localVarFp.getScenarioBudgetExpenditure(portfolioId, budgetId, options).then((request) => request(axios, basePath));
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* Year-by-year expenditure for every budget referenced by a performed investment in the run.
|
|
740
|
+
* @summary Per-budget expenditure for performed investments
|
|
741
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
getScenarioBudgetExpenditureAll(portfolioId, options) {
|
|
746
|
+
return localVarFp.getScenarioBudgetExpenditureAll(portfolioId, options).then((request) => request(axios, basePath));
|
|
747
|
+
},
|
|
748
|
+
/**
|
|
749
|
+
* Year-by-year expenditure of performed investments that have no budget assigned within this scenario.
|
|
750
|
+
* @summary Per-year expenditure for performed investments with no budget
|
|
751
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
752
|
+
* @param {*} [options] Override http request option.
|
|
753
|
+
* @throws {RequiredError}
|
|
754
|
+
*/
|
|
755
|
+
getScenarioBudgetExpenditureNoBudget(portfolioId, options) {
|
|
756
|
+
return localVarFp.getScenarioBudgetExpenditureNoBudget(portfolioId, options).then((request) => request(axios, basePath));
|
|
757
|
+
},
|
|
758
|
+
/**
|
|
759
|
+
* Budget usage statistics restricted to the investments performed in the scenario run. For each budget referenced by a performed investment, returns usage and overrun statistics.
|
|
760
|
+
* @summary Budget usage for performed investments
|
|
761
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
getScenarioBudgetUsage(portfolioId, options) {
|
|
766
|
+
return localVarFp.getScenarioBudgetUsage(portfolioId, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
* Aggregate KPIs comparing the prioritization run against the full portfolio (Overview tab of the scenario results).
|
|
770
|
+
* @summary Run vs portfolio comparison KPIs
|
|
771
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
772
|
+
* @param {*} [options] Override http request option.
|
|
773
|
+
* @throws {RequiredError}
|
|
774
|
+
*/
|
|
775
|
+
getScenarioOverview(portfolioId, options) {
|
|
776
|
+
return localVarFp.getScenarioOverview(portfolioId, options).then((request) => request(axios, basePath));
|
|
777
|
+
},
|
|
778
|
+
/**
|
|
779
|
+
* Get the results of the last successful prioritization run. Returns the list of investments with their rank and performed/unperformed status.
|
|
780
|
+
* @summary Get prioritization results
|
|
781
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
782
|
+
* @param {*} [options] Override http request option.
|
|
783
|
+
* @throws {RequiredError}
|
|
784
|
+
*/
|
|
785
|
+
getScenarioResults(portfolioId, options) {
|
|
786
|
+
return localVarFp.getScenarioResults(portfolioId, options).then((request) => request(axios, basePath));
|
|
787
|
+
},
|
|
788
|
+
/**
|
|
789
|
+
* Lightweight polling endpoint to check the status of a prioritization run.
|
|
790
|
+
* @summary Get prioritization run status
|
|
791
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
792
|
+
* @param {*} [options] Override http request option.
|
|
793
|
+
* @throws {RequiredError}
|
|
794
|
+
*/
|
|
795
|
+
getScenarioStatus(portfolioId, options) {
|
|
796
|
+
return localVarFp.getScenarioStatus(portfolioId, options).then((request) => request(axios, basePath));
|
|
797
|
+
},
|
|
798
|
+
/**
|
|
799
|
+
* Year-by-year monetized impact (sum of all metric monetary values) and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
800
|
+
* @summary Monetized impact filtered to performed investments
|
|
801
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
getScenarioValueFrameworkImpact(portfolioId, options) {
|
|
806
|
+
return localVarFp.getScenarioValueFrameworkImpact(portfolioId, options).then((request) => request(axios, basePath));
|
|
807
|
+
},
|
|
808
|
+
/**
|
|
809
|
+
* Year-by-year monetized impact split by individual metric and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
810
|
+
* @summary Monetized impact (split by metric) filtered to performed investments
|
|
811
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
812
|
+
* @param {*} [options] Override http request option.
|
|
813
|
+
* @throws {RequiredError}
|
|
814
|
+
*/
|
|
815
|
+
getScenarioValueFrameworkImpactDetailed(portfolioId, options) {
|
|
816
|
+
return localVarFp.getScenarioValueFrameworkImpactDetailed(portfolioId, options).then((request) => request(axios, basePath));
|
|
817
|
+
},
|
|
818
|
+
/**
|
|
819
|
+
* Create a new prioritization scenario for this portfolio (or update the existing one) with the given value framework and metric, then immediately trigger the prioritization algorithm. Returns 202 Accepted — poll GET /status for progress.
|
|
820
|
+
* @summary Create/update and run a prioritization scenario
|
|
821
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
822
|
+
* @param {PrioritizationScenarioRunRequest} prioritizationScenarioRunRequest
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
runScenario(portfolioId, prioritizationScenarioRunRequest, options) {
|
|
827
|
+
return localVarFp.runScenario(portfolioId, prioritizationScenarioRunRequest, options).then((request) => request(axios, basePath));
|
|
828
|
+
},
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* PrioritizationApi - object-oriented interface
|
|
833
|
+
*/
|
|
834
|
+
export class PrioritizationApi extends BaseAPI {
|
|
835
|
+
/**
|
|
836
|
+
* Abort the currently running prioritization for this portfolio.
|
|
837
|
+
* @summary Abort a running prioritization
|
|
838
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
abortScenario(portfolioId, options) {
|
|
843
|
+
return PrioritizationApiFp(this.configuration).abortScenario(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* Delete the scenario and all its results for this portfolio.
|
|
847
|
+
* @summary Delete the prioritization scenario
|
|
848
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
849
|
+
* @param {*} [options] Override http request option.
|
|
850
|
+
* @throws {RequiredError}
|
|
851
|
+
*/
|
|
852
|
+
deleteScenario(portfolioId, options) {
|
|
853
|
+
return PrioritizationApiFp(this.configuration).deleteScenario(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Get the current prioritization scenario for this portfolio, including config and status.
|
|
857
|
+
* @summary Get the prioritization scenario
|
|
858
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
859
|
+
* @param {*} [options] Override http request option.
|
|
860
|
+
* @throws {RequiredError}
|
|
861
|
+
*/
|
|
862
|
+
getScenario(portfolioId, options) {
|
|
863
|
+
return PrioritizationApiFp(this.configuration).getScenario(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Year-by-year expenditure of performed investments linked to a specific budget within this scenario.
|
|
867
|
+
* @summary Per-year expenditure for one budget (performed investments)
|
|
868
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
869
|
+
* @param {string} budgetId UUID of the budget
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
getScenarioBudgetExpenditure(portfolioId, budgetId, options) {
|
|
874
|
+
return PrioritizationApiFp(this.configuration).getScenarioBudgetExpenditure(portfolioId, budgetId, options).then((request) => request(this.axios, this.basePath));
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Year-by-year expenditure for every budget referenced by a performed investment in the run.
|
|
878
|
+
* @summary Per-budget expenditure for performed investments
|
|
879
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
880
|
+
* @param {*} [options] Override http request option.
|
|
881
|
+
* @throws {RequiredError}
|
|
882
|
+
*/
|
|
883
|
+
getScenarioBudgetExpenditureAll(portfolioId, options) {
|
|
884
|
+
return PrioritizationApiFp(this.configuration).getScenarioBudgetExpenditureAll(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Year-by-year expenditure of performed investments that have no budget assigned within this scenario.
|
|
888
|
+
* @summary Per-year expenditure for performed investments with no budget
|
|
889
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
890
|
+
* @param {*} [options] Override http request option.
|
|
891
|
+
* @throws {RequiredError}
|
|
892
|
+
*/
|
|
893
|
+
getScenarioBudgetExpenditureNoBudget(portfolioId, options) {
|
|
894
|
+
return PrioritizationApiFp(this.configuration).getScenarioBudgetExpenditureNoBudget(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Budget usage statistics restricted to the investments performed in the scenario run. For each budget referenced by a performed investment, returns usage and overrun statistics.
|
|
898
|
+
* @summary Budget usage for performed investments
|
|
899
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
900
|
+
* @param {*} [options] Override http request option.
|
|
901
|
+
* @throws {RequiredError}
|
|
902
|
+
*/
|
|
903
|
+
getScenarioBudgetUsage(portfolioId, options) {
|
|
904
|
+
return PrioritizationApiFp(this.configuration).getScenarioBudgetUsage(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Aggregate KPIs comparing the prioritization run against the full portfolio (Overview tab of the scenario results).
|
|
908
|
+
* @summary Run vs portfolio comparison KPIs
|
|
909
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
getScenarioOverview(portfolioId, options) {
|
|
914
|
+
return PrioritizationApiFp(this.configuration).getScenarioOverview(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* Get the results of the last successful prioritization run. Returns the list of investments with their rank and performed/unperformed status.
|
|
918
|
+
* @summary Get prioritization results
|
|
919
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
getScenarioResults(portfolioId, options) {
|
|
924
|
+
return PrioritizationApiFp(this.configuration).getScenarioResults(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Lightweight polling endpoint to check the status of a prioritization run.
|
|
928
|
+
* @summary Get prioritization run status
|
|
929
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
930
|
+
* @param {*} [options] Override http request option.
|
|
931
|
+
* @throws {RequiredError}
|
|
932
|
+
*/
|
|
933
|
+
getScenarioStatus(portfolioId, options) {
|
|
934
|
+
return PrioritizationApiFp(this.configuration).getScenarioStatus(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Year-by-year monetized impact (sum of all metric monetary values) and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
938
|
+
* @summary Monetized impact filtered to performed investments
|
|
939
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
getScenarioValueFrameworkImpact(portfolioId, options) {
|
|
944
|
+
return PrioritizationApiFp(this.configuration).getScenarioValueFrameworkImpact(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* Year-by-year monetized impact split by individual metric and CAPEX, restricted to the investments performed in the scenario run. Uses the scenario\'s value framework.
|
|
948
|
+
* @summary Monetized impact (split by metric) filtered to performed investments
|
|
949
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
getScenarioValueFrameworkImpactDetailed(portfolioId, options) {
|
|
954
|
+
return PrioritizationApiFp(this.configuration).getScenarioValueFrameworkImpactDetailed(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
955
|
+
}
|
|
956
|
+
/**
|
|
957
|
+
* Create a new prioritization scenario for this portfolio (or update the existing one) with the given value framework and metric, then immediately trigger the prioritization algorithm. Returns 202 Accepted — poll GET /status for progress.
|
|
958
|
+
* @summary Create/update and run a prioritization scenario
|
|
959
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
960
|
+
* @param {PrioritizationScenarioRunRequest} prioritizationScenarioRunRequest
|
|
961
|
+
* @param {*} [options] Override http request option.
|
|
962
|
+
* @throws {RequiredError}
|
|
963
|
+
*/
|
|
964
|
+
runScenario(portfolioId, prioritizationScenarioRunRequest, options) {
|
|
965
|
+
return PrioritizationApiFp(this.configuration).runScenario(portfolioId, prioritizationScenarioRunRequest, options).then((request) => request(this.axios, this.basePath));
|
|
966
|
+
}
|
|
967
|
+
}
|