@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/api/option-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).
|
|
@@ -163,25 +163,22 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
163
163
|
};
|
|
164
164
|
},
|
|
165
165
|
/**
|
|
166
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
166
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view. If no value_framework_id is provided, returns an empty list.
|
|
167
167
|
* @summary Get the kpis for a given option inside a value framework
|
|
168
168
|
* @param {string} optionId UUID of the option
|
|
169
169
|
* @param {string} investmentId UUID of the investment
|
|
170
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
170
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
171
171
|
* @param {*} [options] Override http request option.
|
|
172
172
|
* @throws {RequiredError}
|
|
173
173
|
*/
|
|
174
|
-
getOptionKpis: async (optionId: string, investmentId: string, valueFrameworkId
|
|
174
|
+
getOptionKpis: async (optionId: string, investmentId: string, valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
175
175
|
// verify required parameter 'optionId' is not null or undefined
|
|
176
176
|
assertParamExists('getOptionKpis', 'optionId', optionId)
|
|
177
177
|
// verify required parameter 'investmentId' is not null or undefined
|
|
178
178
|
assertParamExists('getOptionKpis', 'investmentId', investmentId)
|
|
179
|
-
|
|
180
|
-
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
|
|
181
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
179
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis`
|
|
182
180
|
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
183
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
184
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
181
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
185
182
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
183
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
187
184
|
let baseOptions;
|
|
@@ -197,6 +194,10 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
197
194
|
// oauth required
|
|
198
195
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
199
196
|
|
|
197
|
+
if (valueFrameworkId !== undefined) {
|
|
198
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
199
|
+
}
|
|
200
|
+
|
|
200
201
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
201
202
|
|
|
202
203
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -400,15 +401,15 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
400
401
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
401
402
|
},
|
|
402
403
|
/**
|
|
403
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
404
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view. If no value_framework_id is provided, returns an empty list.
|
|
404
405
|
* @summary Get the kpis for a given option inside a value framework
|
|
405
406
|
* @param {string} optionId UUID of the option
|
|
406
407
|
* @param {string} investmentId UUID of the investment
|
|
407
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
408
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
408
409
|
* @param {*} [options] Override http request option.
|
|
409
410
|
* @throws {RequiredError}
|
|
410
411
|
*/
|
|
411
|
-
async getOptionKpis(optionId: string, investmentId: string, valueFrameworkId
|
|
412
|
+
async getOptionKpis(optionId: string, investmentId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>> {
|
|
412
413
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(optionId, investmentId, valueFrameworkId, options);
|
|
413
414
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
414
415
|
const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionKpis']?.[localVarOperationServerIndex]?.url;
|
|
@@ -501,15 +502,15 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
501
502
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
502
503
|
},
|
|
503
504
|
/**
|
|
504
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
505
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view. If no value_framework_id is provided, returns an empty list.
|
|
505
506
|
* @summary Get the kpis for a given option inside a value framework
|
|
506
507
|
* @param {string} optionId UUID of the option
|
|
507
508
|
* @param {string} investmentId UUID of the investment
|
|
508
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
509
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
509
510
|
* @param {*} [options] Override http request option.
|
|
510
511
|
* @throws {RequiredError}
|
|
511
512
|
*/
|
|
512
|
-
getOptionKpis(optionId: string, investmentId: string, valueFrameworkId
|
|
513
|
+
getOptionKpis(optionId: string, investmentId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
|
|
513
514
|
return localVarFp.getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
514
515
|
},
|
|
515
516
|
/**
|
|
@@ -591,15 +592,15 @@ export class OptionApi extends BaseAPI {
|
|
|
591
592
|
}
|
|
592
593
|
|
|
593
594
|
/**
|
|
594
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
595
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view. If no value_framework_id is provided, returns an empty list.
|
|
595
596
|
* @summary Get the kpis for a given option inside a value framework
|
|
596
597
|
* @param {string} optionId UUID of the option
|
|
597
598
|
* @param {string} investmentId UUID of the investment
|
|
598
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
599
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
599
600
|
* @param {*} [options] Override http request option.
|
|
600
601
|
* @throws {RequiredError}
|
|
601
602
|
*/
|
|
602
|
-
public getOptionKpis(optionId: string, investmentId: string, valueFrameworkId
|
|
603
|
+
public getOptionKpis(optionId: string, investmentId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
603
604
|
return OptionApiFp(this.configuration).getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
604
605
|
}
|
|
605
606
|
|
package/api/portfolio-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).
|
|
@@ -150,19 +150,16 @@ export const PortfolioApiAxiosParamCreator = function (configuration?: Configura
|
|
|
150
150
|
};
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The
|
|
153
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The optional value_framework_id query parameter is used to compute NPV; when omitted, NPV fields are null.
|
|
154
154
|
* @summary Portfolio overview with KPIs
|
|
155
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
156
155
|
* @param {number} [offset] Number of records to skip
|
|
157
156
|
* @param {number} [limit] Max number of records to return
|
|
157
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
*/
|
|
161
|
-
getPortfolioOverview: async (
|
|
162
|
-
|
|
163
|
-
assertParamExists('getPortfolioOverview', 'valueFrameworkId', valueFrameworkId)
|
|
164
|
-
const localVarPath = `/portfolio/overview/{value_framework_id}`
|
|
165
|
-
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
161
|
+
getPortfolioOverview: async (offset?: number, limit?: number, valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
162
|
+
const localVarPath = `/portfolio/overview`;
|
|
166
163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
164
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
168
165
|
let baseOptions;
|
|
@@ -186,6 +183,10 @@ export const PortfolioApiAxiosParamCreator = function (configuration?: Configura
|
|
|
186
183
|
localVarQueryParameter['limit'] = limit;
|
|
187
184
|
}
|
|
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);
|
|
@@ -372,16 +373,16 @@ export const PortfolioApiFp = function(configuration?: Configuration) {
|
|
|
372
373
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
373
374
|
},
|
|
374
375
|
/**
|
|
375
|
-
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The
|
|
376
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The optional value_framework_id query parameter is used to compute NPV; when omitted, NPV fields are null.
|
|
376
377
|
* @summary Portfolio overview with KPIs
|
|
377
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
378
378
|
* @param {number} [offset] Number of records to skip
|
|
379
379
|
* @param {number} [limit] Max number of records to return
|
|
380
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
380
381
|
* @param {*} [options] Override http request option.
|
|
381
382
|
* @throws {RequiredError}
|
|
382
383
|
*/
|
|
383
|
-
async getPortfolioOverview(
|
|
384
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortfolioOverview(
|
|
384
|
+
async getPortfolioOverview(offset?: number, limit?: number, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PortfolioOverviewItemResponse>>> {
|
|
385
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortfolioOverview(offset, limit, valueFrameworkId, options);
|
|
385
386
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
386
387
|
const localVarOperationServerBasePath = operationServerMap['PortfolioApi.getPortfolioOverview']?.[localVarOperationServerIndex]?.url;
|
|
387
388
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -467,16 +468,16 @@ export const PortfolioApiFactory = function (configuration?: Configuration, base
|
|
|
467
468
|
return localVarFp.getPortfolioById(portfolioId, options).then((request) => request(axios, basePath));
|
|
468
469
|
},
|
|
469
470
|
/**
|
|
470
|
-
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The
|
|
471
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The optional value_framework_id query parameter is used to compute NPV; when omitted, NPV fields are null.
|
|
471
472
|
* @summary Portfolio overview with KPIs
|
|
472
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
473
473
|
* @param {number} [offset] Number of records to skip
|
|
474
474
|
* @param {number} [limit] Max number of records to return
|
|
475
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
475
476
|
* @param {*} [options] Override http request option.
|
|
476
477
|
* @throws {RequiredError}
|
|
477
478
|
*/
|
|
478
|
-
getPortfolioOverview(
|
|
479
|
-
return localVarFp.getPortfolioOverview(
|
|
479
|
+
getPortfolioOverview(offset?: number, limit?: number, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PortfolioOverviewItemResponse>> {
|
|
480
|
+
return localVarFp.getPortfolioOverview(offset, limit, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
480
481
|
},
|
|
481
482
|
/**
|
|
482
483
|
* Retrieve a paginated list of all portfolios.
|
|
@@ -551,16 +552,16 @@ export class PortfolioApi extends BaseAPI {
|
|
|
551
552
|
}
|
|
552
553
|
|
|
553
554
|
/**
|
|
554
|
-
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The
|
|
555
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The optional value_framework_id query parameter is used to compute NPV; when omitted, NPV fields are null.
|
|
555
556
|
* @summary Portfolio overview with KPIs
|
|
556
|
-
* @param {string} valueFrameworkId UUID of the value framework
|
|
557
557
|
* @param {number} [offset] Number of records to skip
|
|
558
558
|
* @param {number} [limit] Max number of records to return
|
|
559
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
559
560
|
* @param {*} [options] Override http request option.
|
|
560
561
|
* @throws {RequiredError}
|
|
561
562
|
*/
|
|
562
|
-
public getPortfolioOverview(
|
|
563
|
-
return PortfolioApiFp(this.configuration).getPortfolioOverview(
|
|
563
|
+
public getPortfolioOverview(offset?: number, limit?: number, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
564
|
+
return PortfolioApiFp(this.configuration).getPortfolioOverview(offset, limit, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
/**
|
|
@@ -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).
|
|
@@ -28,6 +28,8 @@ import type { PortfolioInvestmentBulkAddResponse } from '../models';
|
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { PortfolioInvestmentBulkDeleteRequest } from '../models';
|
|
30
30
|
// @ts-ignore
|
|
31
|
+
import type { PortfolioInvestmentOverviewResponse } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
31
33
|
import type { PortfolioInvestmentResponse } from '../models';
|
|
32
34
|
/**
|
|
33
35
|
* PortfolioInvestmentApi - axios parameter creator
|
|
@@ -251,6 +253,49 @@ export const PortfolioInvestmentApiAxiosParamCreator = function (configuration?:
|
|
|
251
253
|
options: localVarRequestOptions,
|
|
252
254
|
};
|
|
253
255
|
},
|
|
256
|
+
/**
|
|
257
|
+
* Return a flat overview of all investments in this portfolio. For each investment the preferred option\'s name, start date, cost, duration, NPV and budget name are included. Investments without a preferred option have null values for those fields.
|
|
258
|
+
* @summary Investment overview table for this portfolio
|
|
259
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
260
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
getPortfolioInvestmentsOverview: async (portfolioId: string, valueFrameworkId?: string | null, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
265
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
266
|
+
assertParamExists('getPortfolioInvestmentsOverview', 'portfolioId', portfolioId)
|
|
267
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/overview`
|
|
268
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
269
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
270
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
271
|
+
let baseOptions;
|
|
272
|
+
if (configuration) {
|
|
273
|
+
baseOptions = configuration.baseOptions;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
277
|
+
const localVarHeaderParameter = {} as any;
|
|
278
|
+
const localVarQueryParameter = {} as any;
|
|
279
|
+
|
|
280
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
281
|
+
// oauth required
|
|
282
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
283
|
+
|
|
284
|
+
if (valueFrameworkId !== undefined) {
|
|
285
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
289
|
+
|
|
290
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
293
|
+
|
|
294
|
+
return {
|
|
295
|
+
url: toPathString(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
};
|
|
298
|
+
},
|
|
254
299
|
/**
|
|
255
300
|
* Remove an investment from this portfolio by deleting the link.
|
|
256
301
|
* @summary Remove an investment from this portfolio
|
|
@@ -372,6 +417,20 @@ export const PortfolioInvestmentApiFp = function(configuration?: Configuration)
|
|
|
372
417
|
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.getInvestmentsForPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
373
418
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
419
|
},
|
|
420
|
+
/**
|
|
421
|
+
* Return a flat overview of all investments in this portfolio. For each investment the preferred option\'s name, start date, cost, duration, NPV and budget name are included. Investments without a preferred option have null values for those fields.
|
|
422
|
+
* @summary Investment overview table for this portfolio
|
|
423
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
424
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
async getPortfolioInvestmentsOverview(portfolioId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PortfolioInvestmentOverviewResponse>>> {
|
|
429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPortfolioInvestmentsOverview(portfolioId, valueFrameworkId, options);
|
|
430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
431
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.getPortfolioInvestmentsOverview']?.[localVarOperationServerIndex]?.url;
|
|
432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
433
|
+
},
|
|
375
434
|
/**
|
|
376
435
|
* Remove an investment from this portfolio by deleting the link.
|
|
377
436
|
* @summary Remove an investment from this portfolio
|
|
@@ -451,6 +510,17 @@ export const PortfolioInvestmentApiFactory = function (configuration?: Configura
|
|
|
451
510
|
getInvestmentsForPortfolio(portfolioId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<PortfolioInvestmentResponse>> {
|
|
452
511
|
return localVarFp.getInvestmentsForPortfolio(portfolioId, offset, limit, options).then((request) => request(axios, basePath));
|
|
453
512
|
},
|
|
513
|
+
/**
|
|
514
|
+
* Return a flat overview of all investments in this portfolio. For each investment the preferred option\'s name, start date, cost, duration, NPV and budget name are included. Investments without a preferred option have null values for those fields.
|
|
515
|
+
* @summary Investment overview table for this portfolio
|
|
516
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
517
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
getPortfolioInvestmentsOverview(portfolioId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Array<PortfolioInvestmentOverviewResponse>> {
|
|
522
|
+
return localVarFp.getPortfolioInvestmentsOverview(portfolioId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
523
|
+
},
|
|
454
524
|
/**
|
|
455
525
|
* Remove an investment from this portfolio by deleting the link.
|
|
456
526
|
* @summary Remove an investment from this portfolio
|
|
@@ -530,6 +600,18 @@ export class PortfolioInvestmentApi extends BaseAPI {
|
|
|
530
600
|
return PortfolioInvestmentApiFp(this.configuration).getInvestmentsForPortfolio(portfolioId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
531
601
|
}
|
|
532
602
|
|
|
603
|
+
/**
|
|
604
|
+
* Return a flat overview of all investments in this portfolio. For each investment the preferred option\'s name, start date, cost, duration, NPV and budget name are included. Investments without a preferred option have null values for those fields.
|
|
605
|
+
* @summary Investment overview table for this portfolio
|
|
606
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
607
|
+
* @param {string | null} [valueFrameworkId] UUID of the value framework
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
public getPortfolioInvestmentsOverview(portfolioId: string, valueFrameworkId?: string | null, options?: RawAxiosRequestConfig) {
|
|
612
|
+
return PortfolioInvestmentApiFp(this.configuration).getPortfolioInvestmentsOverview(portfolioId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
613
|
+
}
|
|
614
|
+
|
|
533
615
|
/**
|
|
534
616
|
* Remove an investment from this portfolio by deleting the link.
|
|
535
617
|
* @summary Remove an investment from this portfolio
|