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