@cosmotech/aip-client 0.4.0-dev2 → 0.4.0-dev5
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 +21 -13
- package/api/budget-api.ts +52 -49
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +13 -15
- 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 +21 -20
- package/api/portfolio-investment-api.ts +83 -1
- package/api/portfolio-kpiapi.ts +308 -100
- package/api/preferred-option-api.ts +1 -1
- 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 +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +35 -35
- package/dist/api/budget-api.js +35 -35
- 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 +13 -13
- package/dist/api/investment-api.js +9 -11
- 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 +13 -13
- package/dist/api/portfolio-api.js +20 -20
- package/dist/api/portfolio-investment-api.d.ts +38 -1
- package/dist/api/portfolio-investment-api.js +77 -1
- package/dist/api/portfolio-kpiapi.d.ts +150 -61
- package/dist/api/portfolio-kpiapi.js +281 -88
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -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 +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/budget-api.d.ts +35 -35
- package/dist/esm/api/budget-api.js +35 -35
- 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 +13 -13
- package/dist/esm/api/investment-api.js +9 -11
- 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 +13 -13
- package/dist/esm/api/portfolio-api.js +20 -20
- package/dist/esm/api/portfolio-investment-api.d.ts +38 -1
- package/dist/esm/api/portfolio-investment-api.js +77 -1
- package/dist/esm/api/portfolio-kpiapi.d.ts +150 -61
- package/dist/esm/api/portfolio-kpiapi.js +281 -88
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -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 +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +2 -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 +4 -0
- package/dist/esm/models/index.js +4 -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 +18 -0
- package/dist/esm/models/monetized-impact-detailed-response.js +14 -0
- package/dist/esm/models/monetized-impact-detailed-year.d.ts +20 -0
- package/dist/esm/models/monetized-impact-detailed-year.js +14 -0
- package/dist/esm/models/monetized-impact-metric-value.d.ts +19 -0
- package/dist/esm/models/monetized-impact-metric-value.js +14 -0
- 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 +30 -0
- package/dist/esm/models/portfolio-investment-overview-response.js +14 -0
- 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 +2 -2
- 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/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 +2 -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 +4 -0
- package/dist/models/index.js +4 -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 +18 -0
- package/dist/models/monetized-impact-detailed-response.js +15 -0
- package/dist/models/monetized-impact-detailed-year.d.ts +20 -0
- package/dist/models/monetized-impact-detailed-year.js +15 -0
- package/dist/models/monetized-impact-metric-value.d.ts +19 -0
- package/dist/models/monetized-impact-metric-value.js +15 -0
- 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 +30 -0
- package/dist/models/portfolio-investment-overview-response.js +15 -0
- 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 +2 -2
- 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/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 +16 -15
- package/docs/BudgetOptionResponse.md +2 -0
- package/docs/InvestmentApi.md +3 -3
- package/docs/MonetizedImpactDetailedResponse.md +21 -0
- package/docs/MonetizedImpactDetailedYear.md +25 -0
- package/docs/MonetizedImpactMetricValue.md +25 -0
- package/docs/OptionApi.md +4 -4
- package/docs/PortfolioApi.md +7 -7
- package/docs/PortfolioInvestmentApi.md +56 -0
- package/docs/PortfolioInvestmentOverviewResponse.md +35 -0
- package/docs/PortfolioKPIApi.md +183 -30
- package/docs/PortfolioKPIDistributionResponse.md +1 -1
- 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 +2 -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 +4 -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 +26 -0
- package/models/monetized-impact-detailed-year.ts +28 -0
- package/models/monetized-impact-metric-value.ts +25 -0
- 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 +36 -0
- package/models/portfolio-investment-response.ts +1 -1
- package/models/portfolio-kpidistribution-budget-item.ts +1 -1
- package/models/portfolio-kpidistribution-response.ts +2 -2
- 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/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @cosmotech/aip-client@0.4.0-
|
|
1
|
+
## @cosmotech/aip-client@0.4.0-dev5
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @cosmotech/aip-client@0.4.0-
|
|
39
|
+
npm install @cosmotech/aip-client@0.4.0-dev5 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,12 +54,12 @@ Class | Method | HTTP request | Description
|
|
|
54
54
|
*BudgetApi* | [**bulkDeleteBudgets**](docs/BudgetApi.md#bulkdeletebudgets) | **POST** /budget/bulk-delete | Bulk delete budgets
|
|
55
55
|
*BudgetApi* | [**deleteBudget**](docs/BudgetApi.md#deletebudget) | **DELETE** /budget/{budget_id} | Delete a budget
|
|
56
56
|
*BudgetApi* | [**getBudgetById**](docs/BudgetApi.md#getbudgetbyid) | **GET** /budget/{budget_id} | Get a budget by ID
|
|
57
|
-
*BudgetApi* | [**getBudgetInvestments**](docs/BudgetApi.md#getbudgetinvestments) | **GET** /budget/{budget_id}/investments
|
|
58
|
-
*BudgetApi* | [**getBudgetOptions**](docs/BudgetApi.md#getbudgetoptions) | **GET** /budget/{budget_id}/options
|
|
57
|
+
*BudgetApi* | [**getBudgetInvestments**](docs/BudgetApi.md#getbudgetinvestments) | **GET** /budget/{budget_id}/investments | List investments linked to this budget via options
|
|
58
|
+
*BudgetApi* | [**getBudgetOptions**](docs/BudgetApi.md#getbudgetoptions) | **GET** /budget/{budget_id}/options | List options linked to this budget
|
|
59
59
|
*BudgetApi* | [**getBudgetOverview**](docs/BudgetApi.md#getbudgetoverview) | **GET** /budget/{budget_id}/overview | Get budget overview
|
|
60
60
|
*BudgetApi* | [**getBudgets**](docs/BudgetApi.md#getbudgets) | **GET** /budget/ | List all budgets
|
|
61
61
|
*BudgetApi* | [**linkOptionsToBudget**](docs/BudgetApi.md#linkoptionstobudget) | **POST** /budget/{budget_id}/link-options | Bulk-link options to this budget
|
|
62
|
-
*BudgetApi* | [**listAvailableOptions**](docs/BudgetApi.md#listavailableoptions) | **GET** /budget/list-available-options
|
|
62
|
+
*BudgetApi* | [**listAvailableOptions**](docs/BudgetApi.md#listavailableoptions) | **GET** /budget/list-available-options | List all options available to be added to a budget
|
|
63
63
|
*BudgetApi* | [**patchBudget**](docs/BudgetApi.md#patchbudget) | **PATCH** /budget/{budget_id} | Partially update a budget
|
|
64
64
|
*BudgetApi* | [**postBudget**](docs/BudgetApi.md#postbudget) | **POST** /budget/ | Create a budget
|
|
65
65
|
*DefaultApi* | [**root**](docs/DefaultApi.md#root) | **GET** /about | Root
|
|
@@ -101,14 +101,14 @@ Class | Method | HTTP request | Description
|
|
|
101
101
|
*OptionApi* | [**createOptionForInvestment**](docs/OptionApi.md#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment
|
|
102
102
|
*OptionApi* | [**deleteOptionForInvestment**](docs/OptionApi.md#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment
|
|
103
103
|
*OptionApi* | [**getOptionForInvestment**](docs/OptionApi.md#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment
|
|
104
|
-
*OptionApi* | [**getOptionKpis**](docs/OptionApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis
|
|
104
|
+
*OptionApi* | [**getOptionKpis**](docs/OptionApi.md#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis | Get the kpis for a given option inside a value framework
|
|
105
105
|
*OptionApi* | [**getOptionsForInvestment**](docs/OptionApi.md#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment
|
|
106
106
|
*OptionApi* | [**getOptionsOverview**](docs/OptionApi.md#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment
|
|
107
107
|
*OptionApi* | [**patchOptionForInvestment**](docs/OptionApi.md#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment
|
|
108
108
|
*PortfolioApi* | [**bulkDeletePortfolios**](docs/PortfolioApi.md#bulkdeleteportfolios) | **POST** /portfolio/bulk-delete | Bulk delete portfolios
|
|
109
109
|
*PortfolioApi* | [**deletePortfolio**](docs/PortfolioApi.md#deleteportfolio) | **DELETE** /portfolio/{portfolio_id} | Delete a portfolio
|
|
110
110
|
*PortfolioApi* | [**getPortfolioById**](docs/PortfolioApi.md#getportfoliobyid) | **GET** /portfolio/{portfolio_id} | Get a portfolio by ID
|
|
111
|
-
*PortfolioApi* | [**getPortfolioOverview**](docs/PortfolioApi.md#getportfoliooverview) | **GET** /portfolio/overview
|
|
111
|
+
*PortfolioApi* | [**getPortfolioOverview**](docs/PortfolioApi.md#getportfoliooverview) | **GET** /portfolio/overview | Portfolio overview with KPIs
|
|
112
112
|
*PortfolioApi* | [**getPortfolios**](docs/PortfolioApi.md#getportfolios) | **GET** /portfolio/ | List portfolios
|
|
113
113
|
*PortfolioApi* | [**patchPortfolio**](docs/PortfolioApi.md#patchportfolio) | **PATCH** /portfolio/{portfolio_id} | Partially update a portfolio
|
|
114
114
|
*PortfolioApi* | [**postPortfolio**](docs/PortfolioApi.md#postportfolio) | **POST** /portfolio/ | Create a portfolio
|
|
@@ -117,16 +117,20 @@ Class | Method | HTTP request | Description
|
|
|
117
117
|
*PortfolioInvestmentApi* | [**bulkRemoveInvestmentsFromPortfolio**](docs/PortfolioInvestmentApi.md#bulkremoveinvestmentsfromportfolio) | **POST** /portfolio/{portfolio_id}/investment/bulk-delete | Bulk remove investments from this portfolio
|
|
118
118
|
*PortfolioInvestmentApi* | [**getInvestmentForPortfolio**](docs/PortfolioInvestmentApi.md#getinvestmentforportfolio) | **GET** /portfolio/{portfolio_id}/investment/{investment_id} | Get an investment link in this portfolio
|
|
119
119
|
*PortfolioInvestmentApi* | [**getInvestmentsForPortfolio**](docs/PortfolioInvestmentApi.md#getinvestmentsforportfolio) | **GET** /portfolio/{portfolio_id}/investment/ | List investments in this portfolio
|
|
120
|
+
*PortfolioInvestmentApi* | [**getPortfolioInvestmentsOverview**](docs/PortfolioInvestmentApi.md#getportfolioinvestmentsoverview) | **GET** /portfolio/{portfolio_id}/investment/overview | Investment overview table for this portfolio
|
|
120
121
|
*PortfolioInvestmentApi* | [**removeInvestmentFromPortfolio**](docs/PortfolioInvestmentApi.md#removeinvestmentfromportfolio) | **DELETE** /portfolio/{portfolio_id}/investment/{investment_id} | Remove an investment from this portfolio
|
|
121
|
-
*PortfolioKPIApi* | [**getCapexDistribution**](docs/PortfolioKPIApi.md#getcapexdistribution) | **GET** /portfolio/{portfolio_id}/kpis/
|
|
122
|
-
*PortfolioKPIApi* | [**getInvestmentsDistribution**](docs/PortfolioKPIApi.md#getinvestmentsdistribution) | **GET** /portfolio/{portfolio_id}/kpis/
|
|
123
|
-
*PortfolioKPIApi* | [**getKpiOverrunDistribution**](docs/PortfolioKPIApi.md#getkpioverrundistribution) | **GET** /portfolio/{portfolio_id}/kpis/
|
|
124
|
-
*PortfolioKPIApi* | [**getNpvDistribution**](docs/PortfolioKPIApi.md#getnpvdistribution) | **GET** /portfolio/{portfolio_id}/kpis/
|
|
122
|
+
*PortfolioKPIApi* | [**getCapexDistribution**](docs/PortfolioKPIApi.md#getcapexdistribution) | **GET** /portfolio/{portfolio_id}/kpis/capex-distribution | CAPEX year-by-year distribution
|
|
123
|
+
*PortfolioKPIApi* | [**getInvestmentsDistribution**](docs/PortfolioKPIApi.md#getinvestmentsdistribution) | **GET** /portfolio/{portfolio_id}/kpis/investments-distribution | Investment count year-by-year distribution
|
|
124
|
+
*PortfolioKPIApi* | [**getKpiOverrunDistribution**](docs/PortfolioKPIApi.md#getkpioverrundistribution) | **GET** /portfolio/{portfolio_id}/kpis/overrun-distribution | Budget overrun year-by-year distribution
|
|
125
|
+
*PortfolioKPIApi* | [**getNpvDistribution**](docs/PortfolioKPIApi.md#getnpvdistribution) | **GET** /portfolio/{portfolio_id}/kpis/npv-distribution | NPV year-by-year distribution
|
|
125
126
|
*PortfolioKPIApi* | [**getPortfolioBudgetExpenditure**](docs/PortfolioKPIApi.md#getportfoliobudgetexpenditure) | **GET** /portfolio/{portfolio_id}/budget-expenditure/{budget_id} | Budget year-by-year expenditure
|
|
127
|
+
*PortfolioKPIApi* | [**getPortfolioBudgetExpenditureAll**](docs/PortfolioKPIApi.md#getportfoliobudgetexpenditureall) | **GET** /portfolio/{portfolio_id}/budget-expenditure-all | Budget year-by-year expenditure for all budgets
|
|
128
|
+
*PortfolioKPIApi* | [**getPortfolioBudgetExpenditureNoBudget**](docs/PortfolioKPIApi.md#getportfoliobudgetexpenditurenobudget) | **GET** /portfolio/{portfolio_id}/budget-expenditure-no-budget | Year-by-year expenditure for options with no budget
|
|
126
129
|
*PortfolioKPIApi* | [**getPortfolioBudgetUsage**](docs/PortfolioKPIApi.md#getportfoliobudgetusage) | **GET** /portfolio/{portfolio_id}/budget-usage | Budget usage summary
|
|
127
|
-
*PortfolioKPIApi* | [**getPortfolioKpis**](docs/PortfolioKPIApi.md#getportfoliokpis) | **GET** /portfolio/{portfolio_id}/kpis
|
|
130
|
+
*PortfolioKPIApi* | [**getPortfolioKpis**](docs/PortfolioKPIApi.md#getportfoliokpis) | **GET** /portfolio/{portfolio_id}/kpis | Get portfolio KPIs
|
|
128
131
|
*PortfolioKPIApi* | [**getPortfolioMetricPerformance**](docs/PortfolioKPIApi.md#getportfoliometricperformance) | **GET** /portfolio/{portfolio_id}/metric-performance/{metric_id} | Metric performance over time
|
|
129
|
-
*PortfolioKPIApi* | [**getPortfolioMonetizedImpact**](docs/PortfolioKPIApi.md#getportfoliomonetizedimpact) | **GET** /portfolio/{portfolio_id}/monetized-impact
|
|
132
|
+
*PortfolioKPIApi* | [**getPortfolioMonetizedImpact**](docs/PortfolioKPIApi.md#getportfoliomonetizedimpact) | **GET** /portfolio/{portfolio_id}/monetized-impact | Portfolio monetized impact over time
|
|
133
|
+
*PortfolioKPIApi* | [**getPortfolioMonetizedImpactDetailed**](docs/PortfolioKPIApi.md#getportfoliomonetizedimpactdetailed) | **GET** /portfolio/{portfolio_id}/monetized-impact/detailed | Portfolio monetized impact over time (split by metric)
|
|
130
134
|
*PreferredOptionApi* | [**getPreferredOption**](docs/PreferredOptionApi.md#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment
|
|
131
135
|
*PreferredOptionApi* | [**setPreferredOption**](docs/PreferredOptionApi.md#setpreferredoption) | **POST** /investment/{investment_id}/preferred_option | Set the preferred option for an investment
|
|
132
136
|
*ValueFrameworkApi* | [**deleteValueFramework**](docs/ValueFrameworkApi.md#deletevalueframework) | **DELETE** /value_framework/{value_framework_id} | Delete a value framework
|
|
@@ -171,6 +175,9 @@ Class | Method | HTTP request | Description
|
|
|
171
175
|
- [MetricResponse](docs/MetricResponse.md)
|
|
172
176
|
- [MetricType](docs/MetricType.md)
|
|
173
177
|
- [MetricUpdate](docs/MetricUpdate.md)
|
|
178
|
+
- [MonetizedImpactDetailedResponse](docs/MonetizedImpactDetailedResponse.md)
|
|
179
|
+
- [MonetizedImpactDetailedYear](docs/MonetizedImpactDetailedYear.md)
|
|
180
|
+
- [MonetizedImpactMetricValue](docs/MonetizedImpactMetricValue.md)
|
|
174
181
|
- [MonetizedImpactResponse](docs/MonetizedImpactResponse.md)
|
|
175
182
|
- [MonetizedImpactYear](docs/MonetizedImpactYear.md)
|
|
176
183
|
- [ObjectiveCreate](docs/ObjectiveCreate.md)
|
|
@@ -193,6 +200,7 @@ Class | Method | HTTP request | Description
|
|
|
193
200
|
- [PortfolioInvestmentBulkAddRequest](docs/PortfolioInvestmentBulkAddRequest.md)
|
|
194
201
|
- [PortfolioInvestmentBulkAddResponse](docs/PortfolioInvestmentBulkAddResponse.md)
|
|
195
202
|
- [PortfolioInvestmentBulkDeleteRequest](docs/PortfolioInvestmentBulkDeleteRequest.md)
|
|
203
|
+
- [PortfolioInvestmentOverviewResponse](docs/PortfolioInvestmentOverviewResponse.md)
|
|
196
204
|
- [PortfolioInvestmentResponse](docs/PortfolioInvestmentResponse.md)
|
|
197
205
|
- [PortfolioKPIDistributionBudgetItem](docs/PortfolioKPIDistributionBudgetItem.md)
|
|
198
206
|
- [PortfolioKPIDistributionResponse](docs/PortfolioKPIDistributionResponse.md)
|
package/api/budget-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -159,18 +159,15 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
159
159
|
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
160
160
|
* @summary List investments linked to this budget via options
|
|
161
161
|
* @param {string} budgetId UUID of the budget
|
|
162
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
162
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
getBudgetInvestments: async (budgetId: string, valueFrameworkId
|
|
166
|
+
getBudgetInvestments: async (budgetId: string, valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
167
|
// verify required parameter 'budgetId' is not null or undefined
|
|
168
168
|
assertParamExists('getBudgetInvestments', 'budgetId', budgetId)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
const localVarPath = `/budget/{budget_id}/investments/{value_framework_id}`
|
|
172
|
-
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)))
|
|
173
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
169
|
+
const localVarPath = `/budget/{budget_id}/investments`
|
|
170
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
174
171
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
175
172
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
173
|
let baseOptions;
|
|
@@ -186,6 +183,10 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
186
183
|
// oauth required
|
|
187
184
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
188
185
|
|
|
186
|
+
if (valueFrameworkId !== undefined) {
|
|
187
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
188
|
+
}
|
|
189
|
+
|
|
189
190
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
190
191
|
|
|
191
192
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -201,18 +202,15 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
201
202
|
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
202
203
|
* @summary List options linked to this budget
|
|
203
204
|
* @param {string} budgetId UUID of the budget
|
|
204
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
205
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
205
206
|
* @param {*} [options] Override http request option.
|
|
206
207
|
* @throws {RequiredError}
|
|
207
208
|
*/
|
|
208
|
-
getBudgetOptions: async (budgetId: string, valueFrameworkId
|
|
209
|
+
getBudgetOptions: async (budgetId: string, valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
209
210
|
// verify required parameter 'budgetId' is not null or undefined
|
|
210
211
|
assertParamExists('getBudgetOptions', 'budgetId', budgetId)
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
const localVarPath = `/budget/{budget_id}/options/{value_framework_id}`
|
|
214
|
-
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)))
|
|
215
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
212
|
+
const localVarPath = `/budget/{budget_id}/options`
|
|
213
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
216
214
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
217
215
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
218
216
|
let baseOptions;
|
|
@@ -228,6 +226,10 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
228
226
|
// oauth required
|
|
229
227
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
230
228
|
|
|
229
|
+
if (valueFrameworkId !== undefined) {
|
|
230
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
231
|
+
}
|
|
232
|
+
|
|
231
233
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
232
234
|
|
|
233
235
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -322,7 +324,7 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
322
324
|
};
|
|
323
325
|
},
|
|
324
326
|
/**
|
|
325
|
-
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
327
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Also any previous option linked to this budget will be overwritten. Returns the list of option IDs that were successfully linked.
|
|
326
328
|
* @summary Bulk-link options to this budget
|
|
327
329
|
* @param {string} budgetId UUID of the budget
|
|
328
330
|
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
@@ -365,17 +367,14 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
365
367
|
};
|
|
366
368
|
},
|
|
367
369
|
/**
|
|
368
|
-
* Returns a list of all options, with their investment context and NPV.
|
|
370
|
+
* Returns a list of all options, with their investment context and NPV. If value_framework_id is omitted, NPV will be null for all options.
|
|
369
371
|
* @summary List all options available to be added to a budget
|
|
370
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
372
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
371
373
|
* @param {*} [options] Override http request option.
|
|
372
374
|
* @throws {RequiredError}
|
|
373
375
|
*/
|
|
374
|
-
listAvailableOptions: async (valueFrameworkId
|
|
375
|
-
|
|
376
|
-
assertParamExists('listAvailableOptions', 'valueFrameworkId', valueFrameworkId)
|
|
377
|
-
const localVarPath = `/budget/list-available-options/{value_framework_id}`
|
|
378
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
376
|
+
listAvailableOptions: async (valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
377
|
+
const localVarPath = `/budget/list-available-options`;
|
|
379
378
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
380
379
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
381
380
|
let baseOptions;
|
|
@@ -391,6 +390,10 @@ export const BudgetApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
391
390
|
// oauth required
|
|
392
391
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
393
392
|
|
|
393
|
+
if (valueFrameworkId !== undefined) {
|
|
394
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
395
|
+
}
|
|
396
|
+
|
|
394
397
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
395
398
|
|
|
396
399
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -536,11 +539,11 @@ export const BudgetApiFp = function(configuration?: Configuration) {
|
|
|
536
539
|
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
537
540
|
* @summary List investments linked to this budget via options
|
|
538
541
|
* @param {string} budgetId UUID of the budget
|
|
539
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
542
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
540
543
|
* @param {*} [options] Override http request option.
|
|
541
544
|
* @throws {RequiredError}
|
|
542
545
|
*/
|
|
543
|
-
async getBudgetInvestments(budgetId: string, valueFrameworkId
|
|
546
|
+
async getBudgetInvestments(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetInvestmentResponse>>> {
|
|
544
547
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetInvestments(budgetId, valueFrameworkId, options);
|
|
545
548
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
546
549
|
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetInvestments']?.[localVarOperationServerIndex]?.url;
|
|
@@ -550,11 +553,11 @@ export const BudgetApiFp = function(configuration?: Configuration) {
|
|
|
550
553
|
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
551
554
|
* @summary List options linked to this budget
|
|
552
555
|
* @param {string} budgetId UUID of the budget
|
|
553
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
556
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
554
557
|
* @param {*} [options] Override http request option.
|
|
555
558
|
* @throws {RequiredError}
|
|
556
559
|
*/
|
|
557
|
-
async getBudgetOptions(budgetId: string, valueFrameworkId
|
|
560
|
+
async getBudgetOptions(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetOptionResponse>>> {
|
|
558
561
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetOptions(budgetId, valueFrameworkId, options);
|
|
559
562
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
560
563
|
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetOptions']?.[localVarOperationServerIndex]?.url;
|
|
@@ -588,27 +591,27 @@ export const BudgetApiFp = function(configuration?: Configuration) {
|
|
|
588
591
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
589
592
|
},
|
|
590
593
|
/**
|
|
591
|
-
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
594
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Also any previous option linked to this budget will be overwritten. Returns the list of option IDs that were successfully linked.
|
|
592
595
|
* @summary Bulk-link options to this budget
|
|
593
596
|
* @param {string} budgetId UUID of the budget
|
|
594
597
|
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
595
598
|
* @param {*} [options] Override http request option.
|
|
596
599
|
* @throws {RequiredError}
|
|
597
600
|
*/
|
|
598
|
-
async linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
601
|
+
async linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string | null>>> {
|
|
599
602
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options);
|
|
600
603
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
601
604
|
const localVarOperationServerBasePath = operationServerMap['BudgetApi.linkOptionsToBudget']?.[localVarOperationServerIndex]?.url;
|
|
602
605
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
603
606
|
},
|
|
604
607
|
/**
|
|
605
|
-
* Returns a list of all options, with their investment context and NPV.
|
|
608
|
+
* Returns a list of all options, with their investment context and NPV. If value_framework_id is omitted, NPV will be null for all options.
|
|
606
609
|
* @summary List all options available to be added to a budget
|
|
607
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
610
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
608
611
|
* @param {*} [options] Override http request option.
|
|
609
612
|
* @throws {RequiredError}
|
|
610
613
|
*/
|
|
611
|
-
async listAvailableOptions(valueFrameworkId
|
|
614
|
+
async listAvailableOptions(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetOptionResponse>>> {
|
|
612
615
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listAvailableOptions(valueFrameworkId, options);
|
|
613
616
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
614
617
|
const localVarOperationServerBasePath = operationServerMap['BudgetApi.listAvailableOptions']?.[localVarOperationServerIndex]?.url;
|
|
@@ -684,22 +687,22 @@ export const BudgetApiFactory = function (configuration?: Configuration, basePat
|
|
|
684
687
|
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
685
688
|
* @summary List investments linked to this budget via options
|
|
686
689
|
* @param {string} budgetId UUID of the budget
|
|
687
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
690
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
688
691
|
* @param {*} [options] Override http request option.
|
|
689
692
|
* @throws {RequiredError}
|
|
690
693
|
*/
|
|
691
|
-
getBudgetInvestments(budgetId: string, valueFrameworkId
|
|
694
|
+
getBudgetInvestments(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetInvestmentResponse>> {
|
|
692
695
|
return localVarFp.getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
693
696
|
},
|
|
694
697
|
/**
|
|
695
698
|
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
696
699
|
* @summary List options linked to this budget
|
|
697
700
|
* @param {string} budgetId UUID of the budget
|
|
698
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
701
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
699
702
|
* @param {*} [options] Override http request option.
|
|
700
703
|
* @throws {RequiredError}
|
|
701
704
|
*/
|
|
702
|
-
getBudgetOptions(budgetId: string, valueFrameworkId
|
|
705
|
+
getBudgetOptions(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetOptionResponse>> {
|
|
703
706
|
return localVarFp.getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
704
707
|
},
|
|
705
708
|
/**
|
|
@@ -724,24 +727,24 @@ export const BudgetApiFactory = function (configuration?: Configuration, basePat
|
|
|
724
727
|
return localVarFp.getBudgets(offset, limit, options).then((request) => request(axios, basePath));
|
|
725
728
|
},
|
|
726
729
|
/**
|
|
727
|
-
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
730
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Also any previous option linked to this budget will be overwritten. Returns the list of option IDs that were successfully linked.
|
|
728
731
|
* @summary Bulk-link options to this budget
|
|
729
732
|
* @param {string} budgetId UUID of the budget
|
|
730
733
|
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
731
734
|
* @param {*} [options] Override http request option.
|
|
732
735
|
* @throws {RequiredError}
|
|
733
736
|
*/
|
|
734
|
-
linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
737
|
+
linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string | null>> {
|
|
735
738
|
return localVarFp.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options).then((request) => request(axios, basePath));
|
|
736
739
|
},
|
|
737
740
|
/**
|
|
738
|
-
* Returns a list of all options, with their investment context and NPV.
|
|
741
|
+
* Returns a list of all options, with their investment context and NPV. If value_framework_id is omitted, NPV will be null for all options.
|
|
739
742
|
* @summary List all options available to be added to a budget
|
|
740
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
743
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
741
744
|
* @param {*} [options] Override http request option.
|
|
742
745
|
* @throws {RequiredError}
|
|
743
746
|
*/
|
|
744
|
-
listAvailableOptions(valueFrameworkId
|
|
747
|
+
listAvailableOptions(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetOptionResponse>> {
|
|
745
748
|
return localVarFp.listAvailableOptions(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
746
749
|
},
|
|
747
750
|
/**
|
|
@@ -809,11 +812,11 @@ export class BudgetApi extends BaseAPI {
|
|
|
809
812
|
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
810
813
|
* @summary List investments linked to this budget via options
|
|
811
814
|
* @param {string} budgetId UUID of the budget
|
|
812
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
815
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
813
816
|
* @param {*} [options] Override http request option.
|
|
814
817
|
* @throws {RequiredError}
|
|
815
818
|
*/
|
|
816
|
-
public getBudgetInvestments(budgetId: string, valueFrameworkId
|
|
819
|
+
public getBudgetInvestments(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
817
820
|
return BudgetApiFp(this.configuration).getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
818
821
|
}
|
|
819
822
|
|
|
@@ -821,11 +824,11 @@ export class BudgetApi extends BaseAPI {
|
|
|
821
824
|
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
822
825
|
* @summary List options linked to this budget
|
|
823
826
|
* @param {string} budgetId UUID of the budget
|
|
824
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
827
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
825
828
|
* @param {*} [options] Override http request option.
|
|
826
829
|
* @throws {RequiredError}
|
|
827
830
|
*/
|
|
828
|
-
public getBudgetOptions(budgetId: string, valueFrameworkId
|
|
831
|
+
public getBudgetOptions(budgetId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
829
832
|
return BudgetApiFp(this.configuration).getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
830
833
|
}
|
|
831
834
|
|
|
@@ -853,7 +856,7 @@ export class BudgetApi extends BaseAPI {
|
|
|
853
856
|
}
|
|
854
857
|
|
|
855
858
|
/**
|
|
856
|
-
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
859
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Also any previous option linked to this budget will be overwritten. Returns the list of option IDs that were successfully linked.
|
|
857
860
|
* @summary Bulk-link options to this budget
|
|
858
861
|
* @param {string} budgetId UUID of the budget
|
|
859
862
|
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
@@ -865,13 +868,13 @@ export class BudgetApi extends BaseAPI {
|
|
|
865
868
|
}
|
|
866
869
|
|
|
867
870
|
/**
|
|
868
|
-
* Returns a list of all options, with their investment context and NPV.
|
|
871
|
+
* Returns a list of all options, with their investment context and NPV. If value_framework_id is omitted, NPV will be null for all options.
|
|
869
872
|
* @summary List all options available to be added to a budget
|
|
870
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
873
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
871
874
|
* @param {*} [options] Override http request option.
|
|
872
875
|
* @throws {RequiredError}
|
|
873
876
|
*/
|
|
874
|
-
public listAvailableOptions(valueFrameworkId
|
|
877
|
+
public listAvailableOptions(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
875
878
|
return BudgetApiFp(this.configuration).listAvailableOptions(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
876
879
|
}
|
|
877
880
|
|
package/api/default-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/impact-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/investment-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -194,15 +194,13 @@ export const InvestmentApiAxiosParamCreator = function (configuration?: Configur
|
|
|
194
194
|
};
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
|
-
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
197
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields. When no value_framework_id is provided, NPV is returned as null.
|
|
198
198
|
* @summary Investment overview table
|
|
199
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
199
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
200
200
|
* @param {*} [options] Override http request option.
|
|
201
201
|
* @throws {RequiredError}
|
|
202
202
|
*/
|
|
203
|
-
getInvestmentsOverview: async (valueFrameworkId
|
|
204
|
-
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
205
|
-
assertParamExists('getInvestmentsOverview', 'valueFrameworkId', valueFrameworkId)
|
|
203
|
+
getInvestmentsOverview: async (valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
206
204
|
const localVarPath = `/investment/overview`;
|
|
207
205
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
208
206
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -379,13 +377,13 @@ export const InvestmentApiFp = function(configuration?: Configuration) {
|
|
|
379
377
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
380
378
|
},
|
|
381
379
|
/**
|
|
382
|
-
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
380
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields. When no value_framework_id is provided, NPV is returned as null.
|
|
383
381
|
* @summary Investment overview table
|
|
384
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
382
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
385
383
|
* @param {*} [options] Override http request option.
|
|
386
384
|
* @throws {RequiredError}
|
|
387
385
|
*/
|
|
388
|
-
async getInvestmentsOverview(valueFrameworkId
|
|
386
|
+
async getInvestmentsOverview(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InvestmentOverviewResponse>>> {
|
|
389
387
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentsOverview(valueFrameworkId, options);
|
|
390
388
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
391
389
|
const localVarOperationServerBasePath = operationServerMap['InvestmentApi.getInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
|
|
@@ -469,13 +467,13 @@ export const InvestmentApiFactory = function (configuration?: Configuration, bas
|
|
|
469
467
|
return localVarFp.getInvestments(offset, limit, options).then((request) => request(axios, basePath));
|
|
470
468
|
},
|
|
471
469
|
/**
|
|
472
|
-
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
470
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields. When no value_framework_id is provided, NPV is returned as null.
|
|
473
471
|
* @summary Investment overview table
|
|
474
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
472
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
475
473
|
* @param {*} [options] Override http request option.
|
|
476
474
|
* @throws {RequiredError}
|
|
477
475
|
*/
|
|
478
|
-
getInvestmentsOverview(valueFrameworkId
|
|
476
|
+
getInvestmentsOverview(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<InvestmentOverviewResponse>> {
|
|
479
477
|
return localVarFp.getInvestmentsOverview(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
480
478
|
},
|
|
481
479
|
/**
|
|
@@ -552,13 +550,13 @@ export class InvestmentApi extends BaseAPI {
|
|
|
552
550
|
}
|
|
553
551
|
|
|
554
552
|
/**
|
|
555
|
-
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
553
|
+
* Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields. When no value_framework_id is provided, NPV is returned as null.
|
|
556
554
|
* @summary Investment overview table
|
|
557
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
555
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
558
556
|
* @param {*} [options] Override http request option.
|
|
559
557
|
* @throws {RequiredError}
|
|
560
558
|
*/
|
|
561
|
-
public getInvestmentsOverview(valueFrameworkId
|
|
559
|
+
public getInvestmentsOverview(valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
562
560
|
return InvestmentApiFp(this.configuration).getInvestmentsOverview(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
563
561
|
}
|
|
564
562
|
|
package/api/metric-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/metric-costs-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/api/objective-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.4.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev5
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|