@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,545 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { PortfolioInvestmentBulkAddRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { PortfolioInvestmentBulkAddResponse } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { PortfolioInvestmentBulkDeleteRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { PortfolioInvestmentResponse } from '../models';
|
|
32
|
+
/**
|
|
33
|
+
* PortfolioInvestmentApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
export const PortfolioInvestmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Link an investment to this portfolio.
|
|
39
|
+
* @summary Add an investment to this portfolio
|
|
40
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
41
|
+
* @param {string} investmentId UUID of the investment
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
addInvestmentToPortfolio: async (portfolioId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
47
|
+
assertParamExists('addInvestmentToPortfolio', 'portfolioId', portfolioId)
|
|
48
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
49
|
+
assertParamExists('addInvestmentToPortfolio', 'investmentId', investmentId)
|
|
50
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/{investment_id}`
|
|
51
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)))
|
|
52
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
if (configuration) {
|
|
57
|
+
baseOptions = configuration.baseOptions;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
65
|
+
// oauth required
|
|
66
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
url: toPathString(localVarUrlObj),
|
|
76
|
+
options: localVarRequestOptions,
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* Add multiple investments to the portfolio in one request. Already-linked investments are skipped.
|
|
81
|
+
* @summary Bulk add investments to this portfolio
|
|
82
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
83
|
+
* @param {PortfolioInvestmentBulkAddRequest} portfolioInvestmentBulkAddRequest
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
bulkAddInvestmentsToPortfolio: async (portfolioId: string, portfolioInvestmentBulkAddRequest: PortfolioInvestmentBulkAddRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
88
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
89
|
+
assertParamExists('bulkAddInvestmentsToPortfolio', 'portfolioId', portfolioId)
|
|
90
|
+
// verify required parameter 'portfolioInvestmentBulkAddRequest' is not null or undefined
|
|
91
|
+
assertParamExists('bulkAddInvestmentsToPortfolio', 'portfolioInvestmentBulkAddRequest', portfolioInvestmentBulkAddRequest)
|
|
92
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/bulk`
|
|
93
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
94
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
95
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
96
|
+
let baseOptions;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
102
|
+
const localVarHeaderParameter = {} as any;
|
|
103
|
+
const localVarQueryParameter = {} as any;
|
|
104
|
+
|
|
105
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
106
|
+
// oauth required
|
|
107
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
108
|
+
|
|
109
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
110
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
111
|
+
|
|
112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
115
|
+
localVarRequestOptions.data = serializeDataIfNeeded(portfolioInvestmentBulkAddRequest, localVarRequestOptions, configuration)
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
url: toPathString(localVarUrlObj),
|
|
119
|
+
options: localVarRequestOptions,
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
/**
|
|
123
|
+
* Remove multiple investments from the portfolio in one request. All provided IDs must be linked to this portfolio — if any ID is not found, the request fails with 404 and no links are removed.
|
|
124
|
+
* @summary Bulk remove investments from this portfolio
|
|
125
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
126
|
+
* @param {PortfolioInvestmentBulkDeleteRequest} portfolioInvestmentBulkDeleteRequest
|
|
127
|
+
* @param {*} [options] Override http request option.
|
|
128
|
+
* @throws {RequiredError}
|
|
129
|
+
*/
|
|
130
|
+
bulkRemoveInvestmentsFromPortfolio: async (portfolioId: string, portfolioInvestmentBulkDeleteRequest: PortfolioInvestmentBulkDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
131
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
132
|
+
assertParamExists('bulkRemoveInvestmentsFromPortfolio', 'portfolioId', portfolioId)
|
|
133
|
+
// verify required parameter 'portfolioInvestmentBulkDeleteRequest' is not null or undefined
|
|
134
|
+
assertParamExists('bulkRemoveInvestmentsFromPortfolio', 'portfolioInvestmentBulkDeleteRequest', portfolioInvestmentBulkDeleteRequest)
|
|
135
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/bulk-delete`
|
|
136
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
137
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
139
|
+
let baseOptions;
|
|
140
|
+
if (configuration) {
|
|
141
|
+
baseOptions = configuration.baseOptions;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
145
|
+
const localVarHeaderParameter = {} as any;
|
|
146
|
+
const localVarQueryParameter = {} as any;
|
|
147
|
+
|
|
148
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
149
|
+
// oauth required
|
|
150
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
151
|
+
|
|
152
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
154
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
155
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
156
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
+
localVarRequestOptions.data = serializeDataIfNeeded(portfolioInvestmentBulkDeleteRequest, localVarRequestOptions, configuration)
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* Retrieve a specific investment link within this portfolio.
|
|
166
|
+
* @summary Get an investment link in this portfolio
|
|
167
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
168
|
+
* @param {string} investmentId UUID of the investment
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
getInvestmentForPortfolio: async (portfolioId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
173
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
174
|
+
assertParamExists('getInvestmentForPortfolio', 'portfolioId', portfolioId)
|
|
175
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
176
|
+
assertParamExists('getInvestmentForPortfolio', 'investmentId', investmentId)
|
|
177
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/{investment_id}`
|
|
178
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)))
|
|
179
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
+
let baseOptions;
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
188
|
+
const localVarHeaderParameter = {} as any;
|
|
189
|
+
const localVarQueryParameter = {} as any;
|
|
190
|
+
|
|
191
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
192
|
+
// oauth required
|
|
193
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
194
|
+
|
|
195
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* Retrieve a paginated list of all investment links for a specific portfolio.
|
|
208
|
+
* @summary List investments in this portfolio
|
|
209
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
210
|
+
* @param {number} [offset] Number of records to skip
|
|
211
|
+
* @param {number} [limit] Max number of records to return
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
getInvestmentsForPortfolio: async (portfolioId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
216
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
217
|
+
assertParamExists('getInvestmentsForPortfolio', 'portfolioId', portfolioId)
|
|
218
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/`
|
|
219
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)));
|
|
220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
222
|
+
let baseOptions;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
228
|
+
const localVarHeaderParameter = {} as any;
|
|
229
|
+
const localVarQueryParameter = {} as any;
|
|
230
|
+
|
|
231
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
232
|
+
// oauth required
|
|
233
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
234
|
+
|
|
235
|
+
if (offset !== undefined) {
|
|
236
|
+
localVarQueryParameter['offset'] = offset;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (limit !== undefined) {
|
|
240
|
+
localVarQueryParameter['limit'] = limit;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
244
|
+
|
|
245
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
248
|
+
|
|
249
|
+
return {
|
|
250
|
+
url: toPathString(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
};
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* Remove an investment from this portfolio by deleting the link.
|
|
256
|
+
* @summary Remove an investment from this portfolio
|
|
257
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
258
|
+
* @param {string} investmentId UUID of the investment
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
removeInvestmentFromPortfolio: async (portfolioId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
263
|
+
// verify required parameter 'portfolioId' is not null or undefined
|
|
264
|
+
assertParamExists('removeInvestmentFromPortfolio', 'portfolioId', portfolioId)
|
|
265
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
266
|
+
assertParamExists('removeInvestmentFromPortfolio', 'investmentId', investmentId)
|
|
267
|
+
const localVarPath = `/portfolio/{portfolio_id}/investment/{investment_id}`
|
|
268
|
+
.replace(`{${"portfolio_id"}}`, encodeURIComponent(String(portfolioId)))
|
|
269
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
272
|
+
let baseOptions;
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
278
|
+
const localVarHeaderParameter = {} as any;
|
|
279
|
+
const localVarQueryParameter = {} as any;
|
|
280
|
+
|
|
281
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
282
|
+
// oauth required
|
|
283
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
287
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
288
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
289
|
+
|
|
290
|
+
return {
|
|
291
|
+
url: toPathString(localVarUrlObj),
|
|
292
|
+
options: localVarRequestOptions,
|
|
293
|
+
};
|
|
294
|
+
},
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* PortfolioInvestmentApi - functional programming interface
|
|
300
|
+
*/
|
|
301
|
+
export const PortfolioInvestmentApiFp = function(configuration?: Configuration) {
|
|
302
|
+
const localVarAxiosParamCreator = PortfolioInvestmentApiAxiosParamCreator(configuration)
|
|
303
|
+
return {
|
|
304
|
+
/**
|
|
305
|
+
* Link an investment to this portfolio.
|
|
306
|
+
* @summary Add an investment to this portfolio
|
|
307
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
308
|
+
* @param {string} investmentId UUID of the investment
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
async addInvestmentToPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortfolioInvestmentResponse>> {
|
|
313
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addInvestmentToPortfolio(portfolioId, investmentId, options);
|
|
314
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
315
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.addInvestmentToPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
316
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
317
|
+
},
|
|
318
|
+
/**
|
|
319
|
+
* Add multiple investments to the portfolio in one request. Already-linked investments are skipped.
|
|
320
|
+
* @summary Bulk add investments to this portfolio
|
|
321
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
322
|
+
* @param {PortfolioInvestmentBulkAddRequest} portfolioInvestmentBulkAddRequest
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
async bulkAddInvestmentsToPortfolio(portfolioId: string, portfolioInvestmentBulkAddRequest: PortfolioInvestmentBulkAddRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortfolioInvestmentBulkAddResponse>> {
|
|
327
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkAddInvestmentsToPortfolio(portfolioId, portfolioInvestmentBulkAddRequest, options);
|
|
328
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
329
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.bulkAddInvestmentsToPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
330
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
331
|
+
},
|
|
332
|
+
/**
|
|
333
|
+
* Remove multiple investments from the portfolio in one request. All provided IDs must be linked to this portfolio — if any ID is not found, the request fails with 404 and no links are removed.
|
|
334
|
+
* @summary Bulk remove investments from this portfolio
|
|
335
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
336
|
+
* @param {PortfolioInvestmentBulkDeleteRequest} portfolioInvestmentBulkDeleteRequest
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
async bulkRemoveInvestmentsFromPortfolio(portfolioId: string, portfolioInvestmentBulkDeleteRequest: PortfolioInvestmentBulkDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkRemoveInvestmentsFromPortfolio(portfolioId, portfolioInvestmentBulkDeleteRequest, options);
|
|
342
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
343
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.bulkRemoveInvestmentsFromPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
344
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* Retrieve a specific investment link within this portfolio.
|
|
348
|
+
* @summary Get an investment link in this portfolio
|
|
349
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
350
|
+
* @param {string} investmentId UUID of the investment
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
async getInvestmentForPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PortfolioInvestmentResponse>> {
|
|
355
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentForPortfolio(portfolioId, investmentId, options);
|
|
356
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
357
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.getInvestmentForPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
358
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
359
|
+
},
|
|
360
|
+
/**
|
|
361
|
+
* Retrieve a paginated list of all investment links for a specific portfolio.
|
|
362
|
+
* @summary List investments in this portfolio
|
|
363
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
364
|
+
* @param {number} [offset] Number of records to skip
|
|
365
|
+
* @param {number} [limit] Max number of records to return
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
async getInvestmentsForPortfolio(portfolioId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PortfolioInvestmentResponse>>> {
|
|
370
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getInvestmentsForPortfolio(portfolioId, offset, limit, options);
|
|
371
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
372
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.getInvestmentsForPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
373
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
374
|
+
},
|
|
375
|
+
/**
|
|
376
|
+
* Remove an investment from this portfolio by deleting the link.
|
|
377
|
+
* @summary Remove an investment from this portfolio
|
|
378
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
379
|
+
* @param {string} investmentId UUID of the investment
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
async removeInvestmentFromPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
384
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeInvestmentFromPortfolio(portfolioId, investmentId, options);
|
|
385
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
386
|
+
const localVarOperationServerBasePath = operationServerMap['PortfolioInvestmentApi.removeInvestmentFromPortfolio']?.[localVarOperationServerIndex]?.url;
|
|
387
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
388
|
+
},
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* PortfolioInvestmentApi - factory interface
|
|
394
|
+
*/
|
|
395
|
+
export const PortfolioInvestmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
396
|
+
const localVarFp = PortfolioInvestmentApiFp(configuration)
|
|
397
|
+
return {
|
|
398
|
+
/**
|
|
399
|
+
* Link an investment to this portfolio.
|
|
400
|
+
* @summary Add an investment to this portfolio
|
|
401
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
402
|
+
* @param {string} investmentId UUID of the investment
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
addInvestmentToPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PortfolioInvestmentResponse> {
|
|
407
|
+
return localVarFp.addInvestmentToPortfolio(portfolioId, investmentId, options).then((request) => request(axios, basePath));
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
* Add multiple investments to the portfolio in one request. Already-linked investments are skipped.
|
|
411
|
+
* @summary Bulk add investments to this portfolio
|
|
412
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
413
|
+
* @param {PortfolioInvestmentBulkAddRequest} portfolioInvestmentBulkAddRequest
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
bulkAddInvestmentsToPortfolio(portfolioId: string, portfolioInvestmentBulkAddRequest: PortfolioInvestmentBulkAddRequest, options?: RawAxiosRequestConfig): AxiosPromise<PortfolioInvestmentBulkAddResponse> {
|
|
418
|
+
return localVarFp.bulkAddInvestmentsToPortfolio(portfolioId, portfolioInvestmentBulkAddRequest, options).then((request) => request(axios, basePath));
|
|
419
|
+
},
|
|
420
|
+
/**
|
|
421
|
+
* Remove multiple investments from the portfolio in one request. All provided IDs must be linked to this portfolio — if any ID is not found, the request fails with 404 and no links are removed.
|
|
422
|
+
* @summary Bulk remove investments from this portfolio
|
|
423
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
424
|
+
* @param {PortfolioInvestmentBulkDeleteRequest} portfolioInvestmentBulkDeleteRequest
|
|
425
|
+
* @param {*} [options] Override http request option.
|
|
426
|
+
* @throws {RequiredError}
|
|
427
|
+
*/
|
|
428
|
+
bulkRemoveInvestmentsFromPortfolio(portfolioId: string, portfolioInvestmentBulkDeleteRequest: PortfolioInvestmentBulkDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
429
|
+
return localVarFp.bulkRemoveInvestmentsFromPortfolio(portfolioId, portfolioInvestmentBulkDeleteRequest, options).then((request) => request(axios, basePath));
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
* Retrieve a specific investment link within this portfolio.
|
|
433
|
+
* @summary Get an investment link in this portfolio
|
|
434
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
435
|
+
* @param {string} investmentId UUID of the investment
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
getInvestmentForPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PortfolioInvestmentResponse> {
|
|
440
|
+
return localVarFp.getInvestmentForPortfolio(portfolioId, investmentId, options).then((request) => request(axios, basePath));
|
|
441
|
+
},
|
|
442
|
+
/**
|
|
443
|
+
* Retrieve a paginated list of all investment links for a specific portfolio.
|
|
444
|
+
* @summary List investments in this portfolio
|
|
445
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
446
|
+
* @param {number} [offset] Number of records to skip
|
|
447
|
+
* @param {number} [limit] Max number of records to return
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
getInvestmentsForPortfolio(portfolioId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<PortfolioInvestmentResponse>> {
|
|
452
|
+
return localVarFp.getInvestmentsForPortfolio(portfolioId, offset, limit, options).then((request) => request(axios, basePath));
|
|
453
|
+
},
|
|
454
|
+
/**
|
|
455
|
+
* Remove an investment from this portfolio by deleting the link.
|
|
456
|
+
* @summary Remove an investment from this portfolio
|
|
457
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
458
|
+
* @param {string} investmentId UUID of the investment
|
|
459
|
+
* @param {*} [options] Override http request option.
|
|
460
|
+
* @throws {RequiredError}
|
|
461
|
+
*/
|
|
462
|
+
removeInvestmentFromPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
463
|
+
return localVarFp.removeInvestmentFromPortfolio(portfolioId, investmentId, options).then((request) => request(axios, basePath));
|
|
464
|
+
},
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* PortfolioInvestmentApi - object-oriented interface
|
|
470
|
+
*/
|
|
471
|
+
export class PortfolioInvestmentApi extends BaseAPI {
|
|
472
|
+
/**
|
|
473
|
+
* Link an investment to this portfolio.
|
|
474
|
+
* @summary Add an investment to this portfolio
|
|
475
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
476
|
+
* @param {string} investmentId UUID of the investment
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
public addInvestmentToPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
481
|
+
return PortfolioInvestmentApiFp(this.configuration).addInvestmentToPortfolio(portfolioId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Add multiple investments to the portfolio in one request. Already-linked investments are skipped.
|
|
486
|
+
* @summary Bulk add investments to this portfolio
|
|
487
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
488
|
+
* @param {PortfolioInvestmentBulkAddRequest} portfolioInvestmentBulkAddRequest
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
public bulkAddInvestmentsToPortfolio(portfolioId: string, portfolioInvestmentBulkAddRequest: PortfolioInvestmentBulkAddRequest, options?: RawAxiosRequestConfig) {
|
|
493
|
+
return PortfolioInvestmentApiFp(this.configuration).bulkAddInvestmentsToPortfolio(portfolioId, portfolioInvestmentBulkAddRequest, options).then((request) => request(this.axios, this.basePath));
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* Remove multiple investments from the portfolio in one request. All provided IDs must be linked to this portfolio — if any ID is not found, the request fails with 404 and no links are removed.
|
|
498
|
+
* @summary Bulk remove investments from this portfolio
|
|
499
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
500
|
+
* @param {PortfolioInvestmentBulkDeleteRequest} portfolioInvestmentBulkDeleteRequest
|
|
501
|
+
* @param {*} [options] Override http request option.
|
|
502
|
+
* @throws {RequiredError}
|
|
503
|
+
*/
|
|
504
|
+
public bulkRemoveInvestmentsFromPortfolio(portfolioId: string, portfolioInvestmentBulkDeleteRequest: PortfolioInvestmentBulkDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
505
|
+
return PortfolioInvestmentApiFp(this.configuration).bulkRemoveInvestmentsFromPortfolio(portfolioId, portfolioInvestmentBulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Retrieve a specific investment link within this portfolio.
|
|
510
|
+
* @summary Get an investment link in this portfolio
|
|
511
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
512
|
+
* @param {string} investmentId UUID of the investment
|
|
513
|
+
* @param {*} [options] Override http request option.
|
|
514
|
+
* @throws {RequiredError}
|
|
515
|
+
*/
|
|
516
|
+
public getInvestmentForPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
517
|
+
return PortfolioInvestmentApiFp(this.configuration).getInvestmentForPortfolio(portfolioId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Retrieve a paginated list of all investment links for a specific portfolio.
|
|
522
|
+
* @summary List investments in this portfolio
|
|
523
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
524
|
+
* @param {number} [offset] Number of records to skip
|
|
525
|
+
* @param {number} [limit] Max number of records to return
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
public getInvestmentsForPortfolio(portfolioId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
530
|
+
return PortfolioInvestmentApiFp(this.configuration).getInvestmentsForPortfolio(portfolioId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Remove an investment from this portfolio by deleting the link.
|
|
535
|
+
* @summary Remove an investment from this portfolio
|
|
536
|
+
* @param {string} portfolioId UUID of the portfolio
|
|
537
|
+
* @param {string} investmentId UUID of the investment
|
|
538
|
+
* @param {*} [options] Override http request option.
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
*/
|
|
541
|
+
public removeInvestmentFromPortfolio(portfolioId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
542
|
+
return PortfolioInvestmentApiFp(this.configuration).removeInvestmentFromPortfolio(portfolioId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
|