@cosmotech/aip-client 0.3.0-dev3 → 0.4.0-dev2
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 +50 -5
- package/api/budget-api.ts +85 -19
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +1 -1
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +30 -30
- package/api/portfolio-api.ts +601 -0
- package/api/portfolio-investment-api.ts +545 -0
- package/api/portfolio-kpiapi.ts +772 -0
- package/api/preferred-option-api.ts +1 -1
- package/api/value-framework-api.ts +1 -1
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +4 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +37 -5
- package/dist/api/budget-api.js +82 -17
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +1 -1
- package/dist/api/impact-api.js +1 -1
- package/dist/api/investment-api.d.ts +1 -1
- package/dist/api/investment-api.js +1 -1
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -1
- package/dist/api/objective-api.js +1 -1
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +17 -17
- package/dist/api/option-api.js +30 -30
- package/dist/api/portfolio-api.d.ts +279 -0
- package/dist/api/portfolio-api.js +575 -0
- package/dist/api/portfolio-investment-api.d.ts +258 -0
- package/dist/api/portfolio-investment-api.js +526 -0
- package/dist/api/portfolio-kpiapi.d.ts +361 -0
- package/dist/api/portfolio-kpiapi.js +740 -0
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -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 +4 -1
- package/dist/api.js +4 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/budget-api.d.ts +37 -5
- package/dist/esm/api/budget-api.js +82 -17
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +1 -1
- package/dist/esm/api/impact-api.js +1 -1
- package/dist/esm/api/investment-api.d.ts +1 -1
- package/dist/esm/api/investment-api.js +1 -1
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -1
- package/dist/esm/api/objective-api.js +1 -1
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +17 -17
- package/dist/esm/api/option-api.js +30 -30
- package/dist/esm/api/portfolio-api.d.ts +279 -0
- package/dist/esm/api/portfolio-api.js +568 -0
- package/dist/esm/api/portfolio-investment-api.d.ts +258 -0
- package/dist/esm/api/portfolio-investment-api.js +519 -0
- package/dist/esm/api/portfolio-kpiapi.d.ts +361 -0
- package/dist/esm/api/portfolio-kpiapi.js +733 -0
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -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 +4 -1
- package/dist/esm/api.js +4 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +3 -3
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/bulk-delete-request.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +1 -1
- package/dist/esm/models/evolution-type.js +1 -1
- package/dist/esm/models/httpvalidation-error.d.ts +1 -1
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +1 -2
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-bulk-item.d.ts +1 -5
- package/dist/esm/models/impact-bulk-item.js +1 -1
- package/dist/esm/models/impact-create.d.ts +1 -5
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -2
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +22 -0
- package/dist/esm/models/index.js +22 -0
- package/dist/esm/models/investment-create.d.ts +1 -1
- package/dist/esm/models/investment-create.js +1 -1
- package/dist/esm/models/investment-overview-response.d.ts +1 -1
- package/dist/esm/models/investment-overview-response.js +1 -1
- package/dist/esm/models/investment-response.d.ts +1 -1
- package/dist/esm/models/investment-response.js +1 -1
- package/dist/esm/models/investment-update.d.ts +1 -1
- package/dist/esm/models/investment-update.js +1 -1
- package/dist/esm/models/location-inner.d.ts +1 -1
- package/dist/esm/models/location-inner.js +1 -1
- package/dist/esm/models/measurement-type.d.ts +1 -1
- package/dist/esm/models/measurement-type.js +1 -1
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +1 -1
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-performance-response.d.ts +21 -0
- package/dist/esm/models/metric-performance-response.js +14 -0
- package/dist/esm/models/metric-performance-year.d.ts +18 -0
- package/dist/esm/models/metric-performance-year.js +14 -0
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/monetized-impact-response.d.ts +18 -0
- package/dist/esm/models/monetized-impact-response.js +14 -0
- package/dist/esm/models/monetized-impact-year.d.ts +19 -0
- package/dist/esm/models/monetized-impact-year.js +14 -0
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +1 -1
- package/dist/esm/models/option-overview-response.js +1 -1
- package/dist/esm/models/option-response.d.ts +1 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +1 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/portfolio-budget-expenditure-response.d.ts +21 -0
- package/dist/esm/models/portfolio-budget-expenditure-response.js +14 -0
- package/dist/esm/models/portfolio-budget-expenditure-year.d.ts +18 -0
- package/dist/esm/models/portfolio-budget-expenditure-year.js +14 -0
- package/dist/esm/models/portfolio-budget-usage-item.d.ts +28 -0
- package/dist/esm/models/portfolio-budget-usage-item.js +14 -0
- package/dist/esm/models/portfolio-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/portfolio-bulk-delete-request.js +14 -0
- package/dist/esm/models/portfolio-create.d.ts +21 -0
- package/dist/esm/models/portfolio-create.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-add-request.d.ts +20 -0
- package/dist/esm/models/portfolio-investment-bulk-add-request.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-add-response.d.ts +24 -0
- package/dist/esm/models/portfolio-investment-bulk-add-response.js +14 -0
- package/dist/esm/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/portfolio-investment-bulk-delete-request.js +14 -0
- package/dist/esm/models/portfolio-investment-response.d.ts +25 -0
- package/dist/esm/models/portfolio-investment-response.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
- package/dist/esm/models/portfolio-kpidistribution-budget-item.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-response.d.ts +20 -0
- package/dist/esm/models/portfolio-kpidistribution-response.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
- package/dist/esm/models/portfolio-kpidistribution-year-overrun.js +14 -0
- package/dist/esm/models/portfolio-kpidistribution-year-value.d.ts +18 -0
- package/dist/esm/models/portfolio-kpidistribution-year-value.js +14 -0
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
- package/dist/esm/models/portfolio-kpioverrun-distribution-response.js +14 -0
- package/dist/esm/models/portfolio-kpiresponse.d.ts +31 -0
- package/dist/esm/models/portfolio-kpiresponse.js +14 -0
- package/dist/esm/models/portfolio-overview-item-response.d.ts +40 -0
- package/dist/esm/models/portfolio-overview-item-response.js +14 -0
- package/dist/esm/models/portfolio-response.d.ts +25 -0
- package/dist/esm/models/portfolio-response.js +14 -0
- package/dist/esm/models/portfolio-update.d.ts +18 -0
- package/dist/esm/models/portfolio-update.js +14 -0
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/budget-bulk-delete-request.d.ts +3 -3
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +1 -1
- package/dist/models/bulk-delete-request.js +1 -1
- package/dist/models/evolution-type.d.ts +1 -1
- package/dist/models/evolution-type.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +1 -2
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-bulk-item.d.ts +1 -5
- package/dist/models/impact-bulk-item.js +1 -1
- package/dist/models/impact-create.d.ts +1 -5
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -2
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +22 -0
- package/dist/models/index.js +22 -0
- package/dist/models/investment-create.d.ts +1 -1
- package/dist/models/investment-create.js +1 -1
- package/dist/models/investment-overview-response.d.ts +1 -1
- package/dist/models/investment-overview-response.js +1 -1
- package/dist/models/investment-response.d.ts +1 -1
- package/dist/models/investment-response.js +1 -1
- package/dist/models/investment-update.d.ts +1 -1
- package/dist/models/investment-update.js +1 -1
- package/dist/models/location-inner.d.ts +1 -1
- package/dist/models/location-inner.js +1 -1
- package/dist/models/measurement-type.d.ts +1 -1
- package/dist/models/measurement-type.js +1 -1
- package/dist/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +1 -1
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-performance-response.d.ts +21 -0
- package/dist/models/metric-performance-response.js +15 -0
- package/dist/models/metric-performance-year.d.ts +18 -0
- package/dist/models/metric-performance-year.js +15 -0
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/monetized-impact-response.d.ts +18 -0
- package/dist/models/monetized-impact-response.js +15 -0
- package/dist/models/monetized-impact-year.d.ts +19 -0
- package/dist/models/monetized-impact-year.js +15 -0
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +1 -1
- package/dist/models/option-overview-response.js +1 -1
- package/dist/models/option-response.d.ts +1 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +1 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/portfolio-budget-expenditure-response.d.ts +21 -0
- package/dist/models/portfolio-budget-expenditure-response.js +15 -0
- package/dist/models/portfolio-budget-expenditure-year.d.ts +18 -0
- package/dist/models/portfolio-budget-expenditure-year.js +15 -0
- package/dist/models/portfolio-budget-usage-item.d.ts +28 -0
- package/dist/models/portfolio-budget-usage-item.js +15 -0
- package/dist/models/portfolio-bulk-delete-request.d.ts +20 -0
- package/dist/models/portfolio-bulk-delete-request.js +15 -0
- package/dist/models/portfolio-create.d.ts +21 -0
- package/dist/models/portfolio-create.js +15 -0
- package/dist/models/portfolio-investment-bulk-add-request.d.ts +20 -0
- package/dist/models/portfolio-investment-bulk-add-request.js +15 -0
- package/dist/models/portfolio-investment-bulk-add-response.d.ts +24 -0
- package/dist/models/portfolio-investment-bulk-add-response.js +15 -0
- package/dist/models/portfolio-investment-bulk-delete-request.d.ts +20 -0
- package/dist/models/portfolio-investment-bulk-delete-request.js +15 -0
- package/dist/models/portfolio-investment-response.d.ts +25 -0
- package/dist/models/portfolio-investment-response.js +15 -0
- package/dist/models/portfolio-kpidistribution-budget-item.d.ts +19 -0
- package/dist/models/portfolio-kpidistribution-budget-item.js +15 -0
- package/dist/models/portfolio-kpidistribution-response.d.ts +20 -0
- package/dist/models/portfolio-kpidistribution-response.js +15 -0
- package/dist/models/portfolio-kpidistribution-year-overrun.d.ts +19 -0
- package/dist/models/portfolio-kpidistribution-year-overrun.js +15 -0
- package/dist/models/portfolio-kpidistribution-year-value.d.ts +18 -0
- package/dist/models/portfolio-kpidistribution-year-value.js +15 -0
- package/dist/models/portfolio-kpioverrun-distribution-response.d.ts +19 -0
- package/dist/models/portfolio-kpioverrun-distribution-response.js +15 -0
- package/dist/models/portfolio-kpiresponse.d.ts +31 -0
- package/dist/models/portfolio-kpiresponse.js +15 -0
- package/dist/models/portfolio-overview-item-response.d.ts +40 -0
- package/dist/models/portfolio-overview-item-response.js +15 -0
- package/dist/models/portfolio-response.d.ts +25 -0
- package/dist/models/portfolio-response.js +15 -0
- package/dist/models/portfolio-update.d.ts +18 -0
- package/dist/models/portfolio-update.js +15 -0
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/BudgetApi.md +58 -6
- package/docs/BudgetBulkDeleteRequest.md +2 -2
- package/docs/ImpactAPIResponse.md +0 -2
- package/docs/ImpactBulkItem.md +0 -2
- package/docs/ImpactCreate.md +0 -2
- package/docs/ImpactUpdate.md +0 -2
- package/docs/MetricPerformanceResponse.md +27 -0
- package/docs/MetricPerformanceYear.md +23 -0
- package/docs/MonetizedImpactResponse.md +21 -0
- package/docs/MonetizedImpactYear.md +25 -0
- package/docs/OptionApi.md +7 -7
- package/docs/PortfolioApi.md +395 -0
- package/docs/PortfolioBudgetExpenditureResponse.md +27 -0
- package/docs/PortfolioBudgetExpenditureYear.md +23 -0
- package/docs/PortfolioBudgetUsageItem.md +31 -0
- package/docs/PortfolioBulkDeleteRequest.md +21 -0
- package/docs/PortfolioCreate.md +23 -0
- package/docs/PortfolioInvestmentApi.md +350 -0
- package/docs/PortfolioInvestmentBulkAddRequest.md +21 -0
- package/docs/PortfolioInvestmentBulkAddResponse.md +23 -0
- package/docs/PortfolioInvestmentBulkDeleteRequest.md +21 -0
- package/docs/PortfolioInvestmentResponse.md +25 -0
- package/docs/PortfolioKPIApi.md +508 -0
- package/docs/PortfolioKPIDistributionBudgetItem.md +25 -0
- package/docs/PortfolioKPIDistributionResponse.md +25 -0
- package/docs/PortfolioKPIDistributionYearOverrun.md +23 -0
- package/docs/PortfolioKPIDistributionYearValue.md +23 -0
- package/docs/PortfolioKPIOverrunDistributionResponse.md +23 -0
- package/docs/PortfolioKPIResponse.md +31 -0
- package/docs/PortfolioOverviewItemResponse.md +43 -0
- package/docs/PortfolioResponse.md +31 -0
- package/docs/PortfolioUpdate.md +23 -0
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +3 -3
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.ts +1 -1
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -2
- package/models/impact-bulk-item.ts +1 -5
- package/models/impact-create.ts +1 -5
- package/models/impact-update.ts +1 -2
- package/models/index.ts +22 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +1 -1
- package/models/investment-response.ts +1 -1
- package/models/investment-update.ts +1 -1
- package/models/location-inner.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-performance-response.ts +29 -0
- package/models/metric-performance-year.ts +24 -0
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/monetized-impact-response.ts +26 -0
- package/models/monetized-impact-year.ts +25 -0
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +1 -1
- package/models/option-overview-response.ts +1 -1
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/portfolio-budget-expenditure-response.ts +29 -0
- package/models/portfolio-budget-expenditure-year.ts +24 -0
- package/models/portfolio-budget-usage-item.ts +34 -0
- package/models/portfolio-bulk-delete-request.ts +26 -0
- package/models/portfolio-create.ts +27 -0
- package/models/portfolio-investment-bulk-add-request.ts +26 -0
- package/models/portfolio-investment-bulk-add-response.ts +30 -0
- package/models/portfolio-investment-bulk-delete-request.ts +26 -0
- package/models/portfolio-investment-response.ts +31 -0
- package/models/portfolio-kpidistribution-budget-item.ts +25 -0
- package/models/portfolio-kpidistribution-response.ts +28 -0
- package/models/portfolio-kpidistribution-year-overrun.ts +27 -0
- package/models/portfolio-kpidistribution-year-value.ts +24 -0
- package/models/portfolio-kpioverrun-distribution-response.ts +27 -0
- package/models/portfolio-kpiresponse.ts +37 -0
- package/models/portfolio-overview-item-response.ts +46 -0
- package/models/portfolio-response.ts +31 -0
- package/models/portfolio-update.ts +24 -0
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,575 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Asset Investment Planning
|
|
6
|
+
* API for Asset Investment Planning
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.4.0-dev2
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.PortfolioApi = exports.PortfolioApiFactory = exports.PortfolioApiFp = exports.PortfolioApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* PortfolioApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const PortfolioApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Delete multiple portfolios by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no portfolios are deleted. Associated portfolio-investment links are also deleted via cascade.
|
|
39
|
+
* @summary Bulk delete portfolios
|
|
40
|
+
* @param {PortfolioBulkDeleteRequest} portfolioBulkDeleteRequest
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
bulkDeletePortfolios: (portfolioBulkDeleteRequest_1, ...args_1) => __awaiter(this, [portfolioBulkDeleteRequest_1, ...args_1], void 0, function* (portfolioBulkDeleteRequest, options = {}) {
|
|
45
|
+
// verify required parameter 'portfolioBulkDeleteRequest' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('bulkDeletePortfolios', 'portfolioBulkDeleteRequest', portfolioBulkDeleteRequest);
|
|
47
|
+
const localVarPath = `/portfolio/bulk-delete`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
58
|
+
// oauth required
|
|
59
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
64
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(portfolioBulkDeleteRequest, localVarRequestOptions, configuration);
|
|
65
|
+
return {
|
|
66
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
67
|
+
options: localVarRequestOptions,
|
|
68
|
+
};
|
|
69
|
+
}),
|
|
70
|
+
/**
|
|
71
|
+
* Delete an existing portfolio by its ID. Associated portfolio-investment links are also deleted via cascade.
|
|
72
|
+
* @summary Delete a portfolio
|
|
73
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
74
|
+
* @param {*} [options] Override http request option.
|
|
75
|
+
* @throws {RequiredError}
|
|
76
|
+
*/
|
|
77
|
+
deletePortfolio: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
78
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
79
|
+
(0, common_1.assertParamExists)('deletePortfolio', 'portfolioId', portfolioId);
|
|
80
|
+
const localVarPath = `/portfolio/{portfolio_id}`
|
|
81
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
82
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
|
+
let baseOptions;
|
|
85
|
+
if (configuration) {
|
|
86
|
+
baseOptions = configuration.baseOptions;
|
|
87
|
+
}
|
|
88
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
89
|
+
const localVarHeaderParameter = {};
|
|
90
|
+
const localVarQueryParameter = {};
|
|
91
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
92
|
+
// oauth required
|
|
93
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
94
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
95
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
96
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
97
|
+
return {
|
|
98
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
99
|
+
options: localVarRequestOptions,
|
|
100
|
+
};
|
|
101
|
+
}),
|
|
102
|
+
/**
|
|
103
|
+
* Retrieve a single portfolio by its ID.
|
|
104
|
+
* @summary Get a portfolio by ID
|
|
105
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
getPortfolioById: (portfolioId_1, ...args_1) => __awaiter(this, [portfolioId_1, ...args_1], void 0, function* (portfolioId, options = {}) {
|
|
110
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('getPortfolioById', 'portfolioId', portfolioId);
|
|
112
|
+
const localVarPath = `/portfolio/{portfolio_id}`
|
|
113
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
115
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
|
+
let baseOptions;
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
121
|
+
const localVarHeaderParameter = {};
|
|
122
|
+
const localVarQueryParameter = {};
|
|
123
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
124
|
+
// oauth required
|
|
125
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
126
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
127
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
return {
|
|
131
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
}),
|
|
135
|
+
/**
|
|
136
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The value framework is used to compute NPV.
|
|
137
|
+
* @summary Portfolio overview with KPIs
|
|
138
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
139
|
+
* @param {number} [offset] Number of records to skip
|
|
140
|
+
* @param {number} [limit] Max number of records to return
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getPortfolioOverview: (valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (valueFrameworkId, offset, limit, options = {}) {
|
|
145
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
146
|
+
(0, common_1.assertParamExists)('getPortfolioOverview', 'valueFrameworkId', valueFrameworkId);
|
|
147
|
+
const localVarPath = `/portfolio/overview/{value_framework_id}`
|
|
148
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
}
|
|
155
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
156
|
+
const localVarHeaderParameter = {};
|
|
157
|
+
const localVarQueryParameter = {};
|
|
158
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
159
|
+
// oauth required
|
|
160
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
161
|
+
if (offset !== undefined) {
|
|
162
|
+
localVarQueryParameter['offset'] = offset;
|
|
163
|
+
}
|
|
164
|
+
if (limit !== undefined) {
|
|
165
|
+
localVarQueryParameter['limit'] = limit;
|
|
166
|
+
}
|
|
167
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
168
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
171
|
+
return {
|
|
172
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
173
|
+
options: localVarRequestOptions,
|
|
174
|
+
};
|
|
175
|
+
}),
|
|
176
|
+
/**
|
|
177
|
+
* Retrieve a paginated list of all portfolios.
|
|
178
|
+
* @summary List portfolios
|
|
179
|
+
* @param {number} [offset] Number of records to skip
|
|
180
|
+
* @param {number} [limit] Max number of records to return
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
getPortfolios: (offset_1, limit_1, ...args_1) => __awaiter(this, [offset_1, limit_1, ...args_1], void 0, function* (offset, limit, options = {}) {
|
|
185
|
+
const localVarPath = `/portfolio/`;
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
193
|
+
const localVarHeaderParameter = {};
|
|
194
|
+
const localVarQueryParameter = {};
|
|
195
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
196
|
+
// oauth required
|
|
197
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
198
|
+
if (offset !== undefined) {
|
|
199
|
+
localVarQueryParameter['offset'] = offset;
|
|
200
|
+
}
|
|
201
|
+
if (limit !== undefined) {
|
|
202
|
+
localVarQueryParameter['limit'] = limit;
|
|
203
|
+
}
|
|
204
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
205
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
208
|
+
return {
|
|
209
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
210
|
+
options: localVarRequestOptions,
|
|
211
|
+
};
|
|
212
|
+
}),
|
|
213
|
+
/**
|
|
214
|
+
* Update one or more fields of an existing portfolio. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
215
|
+
* @summary Partially update a portfolio
|
|
216
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
217
|
+
* @param {PortfolioUpdate} portfolioUpdate
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
patchPortfolio: (portfolioId_1, portfolioUpdate_1, ...args_1) => __awaiter(this, [portfolioId_1, portfolioUpdate_1, ...args_1], void 0, function* (portfolioId, portfolioUpdate, options = {}) {
|
|
222
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
223
|
+
(0, common_1.assertParamExists)('patchPortfolio', 'portfolioId', portfolioId);
|
|
224
|
+
// verify required parameter 'portfolioUpdate' is not null or undefined
|
|
225
|
+
(0, common_1.assertParamExists)('patchPortfolio', 'portfolioUpdate', portfolioUpdate);
|
|
226
|
+
const localVarPath = `/portfolio/{portfolio_id}`
|
|
227
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
229
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
230
|
+
let baseOptions;
|
|
231
|
+
if (configuration) {
|
|
232
|
+
baseOptions = configuration.baseOptions;
|
|
233
|
+
}
|
|
234
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
235
|
+
const localVarHeaderParameter = {};
|
|
236
|
+
const localVarQueryParameter = {};
|
|
237
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
238
|
+
// oauth required
|
|
239
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
240
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
241
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
242
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(portfolioUpdate, localVarRequestOptions, configuration);
|
|
246
|
+
return {
|
|
247
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
|
+
options: localVarRequestOptions,
|
|
249
|
+
};
|
|
250
|
+
}),
|
|
251
|
+
/**
|
|
252
|
+
* Create a new portfolio.
|
|
253
|
+
* @summary Create a portfolio
|
|
254
|
+
* @param {PortfolioCreate} portfolioCreate
|
|
255
|
+
* @param {*} [options] Override http request option.
|
|
256
|
+
* @throws {RequiredError}
|
|
257
|
+
*/
|
|
258
|
+
postPortfolio: (portfolioCreate_1, ...args_1) => __awaiter(this, [portfolioCreate_1, ...args_1], void 0, function* (portfolioCreate, options = {}) {
|
|
259
|
+
// verify required parameter 'portfolioCreate' is not null or undefined
|
|
260
|
+
(0, common_1.assertParamExists)('postPortfolio', 'portfolioCreate', portfolioCreate);
|
|
261
|
+
const localVarPath = `/portfolio/`;
|
|
262
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
264
|
+
let baseOptions;
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
}
|
|
268
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
269
|
+
const localVarHeaderParameter = {};
|
|
270
|
+
const localVarQueryParameter = {};
|
|
271
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
272
|
+
// oauth required
|
|
273
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
274
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
275
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
276
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
277
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
279
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(portfolioCreate, localVarRequestOptions, configuration);
|
|
280
|
+
return {
|
|
281
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
282
|
+
options: localVarRequestOptions,
|
|
283
|
+
};
|
|
284
|
+
}),
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
exports.PortfolioApiAxiosParamCreator = PortfolioApiAxiosParamCreator;
|
|
288
|
+
/**
|
|
289
|
+
* PortfolioApi - functional programming interface
|
|
290
|
+
*/
|
|
291
|
+
const PortfolioApiFp = function (configuration) {
|
|
292
|
+
const localVarAxiosParamCreator = (0, exports.PortfolioApiAxiosParamCreator)(configuration);
|
|
293
|
+
return {
|
|
294
|
+
/**
|
|
295
|
+
* Delete multiple portfolios by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no portfolios are deleted. Associated portfolio-investment links are also deleted via cascade.
|
|
296
|
+
* @summary Bulk delete portfolios
|
|
297
|
+
* @param {PortfolioBulkDeleteRequest} portfolioBulkDeleteRequest
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
bulkDeletePortfolios(portfolioBulkDeleteRequest, options) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
var _a, _b, _c;
|
|
304
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeletePortfolios(portfolioBulkDeleteRequest, options);
|
|
305
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
306
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.bulkDeletePortfolios']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
307
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
308
|
+
});
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* Delete an existing portfolio by its ID. Associated portfolio-investment links are also deleted via cascade.
|
|
312
|
+
* @summary Delete a portfolio
|
|
313
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
*/
|
|
317
|
+
deletePortfolio(portfolioId, options) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
var _a, _b, _c;
|
|
320
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePortfolio(portfolioId, options);
|
|
321
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
322
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.deletePortfolio']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
323
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
324
|
+
});
|
|
325
|
+
},
|
|
326
|
+
/**
|
|
327
|
+
* Retrieve a single portfolio by its ID.
|
|
328
|
+
* @summary Get a portfolio by ID
|
|
329
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getPortfolioById(portfolioId, options) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
var _a, _b, _c;
|
|
336
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortfolioById(portfolioId, options);
|
|
337
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
338
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getPortfolioById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
339
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
340
|
+
});
|
|
341
|
+
},
|
|
342
|
+
/**
|
|
343
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The value framework is used to compute NPV.
|
|
344
|
+
* @summary Portfolio overview with KPIs
|
|
345
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
346
|
+
* @param {number} [offset] Number of records to skip
|
|
347
|
+
* @param {number} [limit] Max number of records to return
|
|
348
|
+
* @param {*} [options] Override http request option.
|
|
349
|
+
* @throws {RequiredError}
|
|
350
|
+
*/
|
|
351
|
+
getPortfolioOverview(valueFrameworkId, offset, limit, options) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
var _a, _b, _c;
|
|
354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortfolioOverview(valueFrameworkId, offset, limit, options);
|
|
355
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
356
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getPortfolioOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
357
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
358
|
+
});
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* Retrieve a paginated list of all portfolios.
|
|
362
|
+
* @summary List portfolios
|
|
363
|
+
* @param {number} [offset] Number of records to skip
|
|
364
|
+
* @param {number} [limit] Max number of records to return
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
getPortfolios(offset, limit, options) {
|
|
369
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
370
|
+
var _a, _b, _c;
|
|
371
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPortfolios(offset, limit, options);
|
|
372
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
373
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.getPortfolios']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
374
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
375
|
+
});
|
|
376
|
+
},
|
|
377
|
+
/**
|
|
378
|
+
* Update one or more fields of an existing portfolio. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
379
|
+
* @summary Partially update a portfolio
|
|
380
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
381
|
+
* @param {PortfolioUpdate} portfolioUpdate
|
|
382
|
+
* @param {*} [options] Override http request option.
|
|
383
|
+
* @throws {RequiredError}
|
|
384
|
+
*/
|
|
385
|
+
patchPortfolio(portfolioId, portfolioUpdate, options) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
var _a, _b, _c;
|
|
388
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchPortfolio(portfolioId, portfolioUpdate, options);
|
|
389
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
390
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.patchPortfolio']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
391
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
392
|
+
});
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
* Create a new portfolio.
|
|
396
|
+
* @summary Create a portfolio
|
|
397
|
+
* @param {PortfolioCreate} portfolioCreate
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
postPortfolio(portfolioCreate, options) {
|
|
402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
403
|
+
var _a, _b, _c;
|
|
404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postPortfolio(portfolioCreate, options);
|
|
405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
406
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PortfolioApi.postPortfolio']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
408
|
+
});
|
|
409
|
+
},
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
exports.PortfolioApiFp = PortfolioApiFp;
|
|
413
|
+
/**
|
|
414
|
+
* PortfolioApi - factory interface
|
|
415
|
+
*/
|
|
416
|
+
const PortfolioApiFactory = function (configuration, basePath, axios) {
|
|
417
|
+
const localVarFp = (0, exports.PortfolioApiFp)(configuration);
|
|
418
|
+
return {
|
|
419
|
+
/**
|
|
420
|
+
* Delete multiple portfolios by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no portfolios are deleted. Associated portfolio-investment links are also deleted via cascade.
|
|
421
|
+
* @summary Bulk delete portfolios
|
|
422
|
+
* @param {PortfolioBulkDeleteRequest} portfolioBulkDeleteRequest
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
bulkDeletePortfolios(portfolioBulkDeleteRequest, options) {
|
|
427
|
+
return localVarFp.bulkDeletePortfolios(portfolioBulkDeleteRequest, options).then((request) => request(axios, basePath));
|
|
428
|
+
},
|
|
429
|
+
/**
|
|
430
|
+
* Delete an existing portfolio by its ID. Associated portfolio-investment links are also deleted via cascade.
|
|
431
|
+
* @summary Delete a portfolio
|
|
432
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
deletePortfolio(portfolioId, options) {
|
|
437
|
+
return localVarFp.deletePortfolio(portfolioId, options).then((request) => request(axios, basePath));
|
|
438
|
+
},
|
|
439
|
+
/**
|
|
440
|
+
* Retrieve a single portfolio by its ID.
|
|
441
|
+
* @summary Get a portfolio by ID
|
|
442
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
getPortfolioById(portfolioId, options) {
|
|
447
|
+
return localVarFp.getPortfolioById(portfolioId, options).then((request) => request(axios, basePath));
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The value framework is used to compute NPV.
|
|
451
|
+
* @summary Portfolio overview with KPIs
|
|
452
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
453
|
+
* @param {number} [offset] Number of records to skip
|
|
454
|
+
* @param {number} [limit] Max number of records to return
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
*/
|
|
458
|
+
getPortfolioOverview(valueFrameworkId, offset, limit, options) {
|
|
459
|
+
return localVarFp.getPortfolioOverview(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
* Retrieve a paginated list of all portfolios.
|
|
463
|
+
* @summary List portfolios
|
|
464
|
+
* @param {number} [offset] Number of records to skip
|
|
465
|
+
* @param {number} [limit] Max number of records to return
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
469
|
+
getPortfolios(offset, limit, options) {
|
|
470
|
+
return localVarFp.getPortfolios(offset, limit, options).then((request) => request(axios, basePath));
|
|
471
|
+
},
|
|
472
|
+
/**
|
|
473
|
+
* Update one or more fields of an existing portfolio. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
474
|
+
* @summary Partially update a portfolio
|
|
475
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
476
|
+
* @param {PortfolioUpdate} portfolioUpdate
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
patchPortfolio(portfolioId, portfolioUpdate, options) {
|
|
481
|
+
return localVarFp.patchPortfolio(portfolioId, portfolioUpdate, options).then((request) => request(axios, basePath));
|
|
482
|
+
},
|
|
483
|
+
/**
|
|
484
|
+
* Create a new portfolio.
|
|
485
|
+
* @summary Create a portfolio
|
|
486
|
+
* @param {PortfolioCreate} portfolioCreate
|
|
487
|
+
* @param {*} [options] Override http request option.
|
|
488
|
+
* @throws {RequiredError}
|
|
489
|
+
*/
|
|
490
|
+
postPortfolio(portfolioCreate, options) {
|
|
491
|
+
return localVarFp.postPortfolio(portfolioCreate, options).then((request) => request(axios, basePath));
|
|
492
|
+
},
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
exports.PortfolioApiFactory = PortfolioApiFactory;
|
|
496
|
+
/**
|
|
497
|
+
* PortfolioApi - object-oriented interface
|
|
498
|
+
*/
|
|
499
|
+
class PortfolioApi extends base_1.BaseAPI {
|
|
500
|
+
/**
|
|
501
|
+
* Delete multiple portfolios by their IDs in a single request. All provided IDs must exist — if any ID is not found, the request fails with 404 and no portfolios are deleted. Associated portfolio-investment links are also deleted via cascade.
|
|
502
|
+
* @summary Bulk delete portfolios
|
|
503
|
+
* @param {PortfolioBulkDeleteRequest} portfolioBulkDeleteRequest
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
bulkDeletePortfolios(portfolioBulkDeleteRequest, options) {
|
|
508
|
+
return (0, exports.PortfolioApiFp)(this.configuration).bulkDeletePortfolios(portfolioBulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Delete an existing portfolio by its ID. Associated portfolio-investment links are also deleted via cascade.
|
|
512
|
+
* @summary Delete a portfolio
|
|
513
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
*/
|
|
517
|
+
deletePortfolio(portfolioId, options) {
|
|
518
|
+
return (0, exports.PortfolioApiFp)(this.configuration).deletePortfolio(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Retrieve a single portfolio by its ID.
|
|
522
|
+
* @summary Get a portfolio by ID
|
|
523
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
*/
|
|
527
|
+
getPortfolioById(portfolioId, options) {
|
|
528
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getPortfolioById(portfolioId, options).then((request) => request(this.axios, this.basePath));
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Return the full list of portfolios enriched with their KPIs (nb_investments, total_cost, date range, budget_overrun, NPV). The value framework is used to compute NPV.
|
|
532
|
+
* @summary Portfolio overview with KPIs
|
|
533
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
534
|
+
* @param {number} [offset] Number of records to skip
|
|
535
|
+
* @param {number} [limit] Max number of records to return
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
getPortfolioOverview(valueFrameworkId, offset, limit, options) {
|
|
540
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getPortfolioOverview(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Retrieve a paginated list of all portfolios.
|
|
544
|
+
* @summary List portfolios
|
|
545
|
+
* @param {number} [offset] Number of records to skip
|
|
546
|
+
* @param {number} [limit] Max number of records to return
|
|
547
|
+
* @param {*} [options] Override http request option.
|
|
548
|
+
* @throws {RequiredError}
|
|
549
|
+
*/
|
|
550
|
+
getPortfolios(offset, limit, options) {
|
|
551
|
+
return (0, exports.PortfolioApiFp)(this.configuration).getPortfolios(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Update one or more fields of an existing portfolio. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
555
|
+
* @summary Partially update a portfolio
|
|
556
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
557
|
+
* @param {PortfolioUpdate} portfolioUpdate
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
patchPortfolio(portfolioId, portfolioUpdate, options) {
|
|
562
|
+
return (0, exports.PortfolioApiFp)(this.configuration).patchPortfolio(portfolioId, portfolioUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Create a new portfolio.
|
|
566
|
+
* @summary Create a portfolio
|
|
567
|
+
* @param {PortfolioCreate} portfolioCreate
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
postPortfolio(portfolioCreate, options) {
|
|
572
|
+
return (0, exports.PortfolioApiFp)(this.configuration).postPortfolio(portfolioCreate, options).then((request) => request(this.axios, this.basePath));
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
exports.PortfolioApi = PortfolioApi;
|