@cosmotech/aip-client 0.3.0-dev2 → 0.4.0-dev1
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 +49 -41
- package/api/budget-api.ts +7 -7
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +90 -1
- package/api/investment-api.ts +55 -1254
- 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 -509
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +28 -481
- 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 +61 -1189
- 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 +5 -5
- package/dist/api/budget-api.js +7 -7
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +42 -1
- package/dist/api/impact-api.js +85 -1
- package/dist/api/investment-api.d.ts +1 -551
- package/dist/api/investment-api.js +57 -1189
- 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 -233
- package/dist/api/objective-api.js +1 -479
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +13 -224
- package/dist/api/option-api.js +28 -458
- 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 -519
- package/dist/api/value-framework-api.js +61 -1128
- 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 +5 -5
- package/dist/esm/api/budget-api.js +7 -7
- 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 +42 -1
- package/dist/esm/api/impact-api.js +85 -1
- package/dist/esm/api/investment-api.d.ts +1 -551
- package/dist/esm/api/investment-api.js +56 -1188
- 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 -233
- package/dist/esm/api/objective-api.js +1 -479
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +13 -224
- package/dist/esm/api/option-api.js +28 -458
- 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 -519
- package/dist/esm/api/value-framework-api.js +61 -1128
- 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 +33 -0
- package/dist/esm/models/impact-bulk-item.js +14 -0
- 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 +23 -0
- package/dist/esm/models/index.js +23 -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 +33 -0
- package/dist/models/impact-bulk-item.js +15 -0
- 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 +23 -0
- package/dist/models/index.js +23 -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 +4 -4
- package/docs/BudgetBulkDeleteRequest.md +2 -2
- package/docs/ImpactAPIResponse.md +0 -2
- package/docs/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +27 -0
- package/docs/ImpactCreate.md +0 -2
- package/docs/ImpactUpdate.md +0 -2
- package/docs/InvestmentApi.md +29 -851
- 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/ObjectiveApi.md +0 -351
- package/docs/OptionApi.md +7 -312
- 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/docs/ValueFrameworkApi.md +7 -778
- 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 +43 -0
- package/models/impact-create.ts +1 -5
- package/models/impact-update.ts +1 -2
- package/models/index.ts +23 -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
package/api/option-api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.4.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,12 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
// @ts-ignore
|
|
23
23
|
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import type { ImpactAPIResponse } from '../models';
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
import type { ImpactCreate } from '../models';
|
|
28
|
-
// @ts-ignore
|
|
29
|
-
import type { ImpactUpdate } from '../models';
|
|
30
|
-
// @ts-ignore
|
|
31
25
|
import type { OptionChartKPIsYearly } from '../models';
|
|
32
26
|
// @ts-ignore
|
|
33
27
|
import type { OptionCreate } from '../models';
|
|
@@ -42,53 +36,6 @@ import type { OptionUpdate } from '../models';
|
|
|
42
36
|
*/
|
|
43
37
|
export const OptionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
38
|
return {
|
|
45
|
-
/**
|
|
46
|
-
* Create a new impact under this option.
|
|
47
|
-
* @summary Create an impact for this option
|
|
48
|
-
* @param {string} optionId UUID of the option
|
|
49
|
-
* @param {string} investmentId UUID of the investment
|
|
50
|
-
* @param {ImpactCreate} impactCreate
|
|
51
|
-
* @param {*} [options] Override http request option.
|
|
52
|
-
* @throws {RequiredError}
|
|
53
|
-
*/
|
|
54
|
-
createImpactForOption: async (optionId: string, investmentId: string, impactCreate: ImpactCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
56
|
-
assertParamExists('createImpactForOption', 'optionId', optionId)
|
|
57
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
58
|
-
assertParamExists('createImpactForOption', 'investmentId', investmentId)
|
|
59
|
-
// verify required parameter 'impactCreate' is not null or undefined
|
|
60
|
-
assertParamExists('createImpactForOption', 'impactCreate', impactCreate)
|
|
61
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
62
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
63
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
64
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
65
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
66
|
-
let baseOptions;
|
|
67
|
-
if (configuration) {
|
|
68
|
-
baseOptions = configuration.baseOptions;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
72
|
-
const localVarHeaderParameter = {} as any;
|
|
73
|
-
const localVarQueryParameter = {} as any;
|
|
74
|
-
|
|
75
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
76
|
-
// oauth required
|
|
77
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
78
|
-
|
|
79
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
80
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
81
|
-
|
|
82
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
84
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
85
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactCreate, localVarRequestOptions, configuration)
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
url: toPathString(localVarUrlObj),
|
|
89
|
-
options: localVarRequestOptions,
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
39
|
/**
|
|
93
40
|
* Create a new option under this investment.
|
|
94
41
|
* @summary Create an option for this investment
|
|
@@ -132,67 +79,22 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
132
79
|
options: localVarRequestOptions,
|
|
133
80
|
};
|
|
134
81
|
},
|
|
135
|
-
/**
|
|
136
|
-
* Delete an existing impact by its ID.
|
|
137
|
-
* @summary Delete an impact for this option
|
|
138
|
-
* @param {string} impactId UUID of the impact
|
|
139
|
-
* @param {string} optionId UUID of the option
|
|
140
|
-
* @param {string} investmentId UUID of the investment
|
|
141
|
-
* @param {*} [options] Override http request option.
|
|
142
|
-
* @throws {RequiredError}
|
|
143
|
-
*/
|
|
144
|
-
deleteImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
146
|
-
assertParamExists('deleteImpactForOption', 'impactId', impactId)
|
|
147
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
148
|
-
assertParamExists('deleteImpactForOption', 'optionId', optionId)
|
|
149
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
150
|
-
assertParamExists('deleteImpactForOption', 'investmentId', investmentId)
|
|
151
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
152
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
153
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
154
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
155
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
|
-
let baseOptions;
|
|
158
|
-
if (configuration) {
|
|
159
|
-
baseOptions = configuration.baseOptions;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
163
|
-
const localVarHeaderParameter = {} as any;
|
|
164
|
-
const localVarQueryParameter = {} as any;
|
|
165
|
-
|
|
166
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
167
|
-
// oauth required
|
|
168
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
174
|
-
|
|
175
|
-
return {
|
|
176
|
-
url: toPathString(localVarUrlObj),
|
|
177
|
-
options: localVarRequestOptions,
|
|
178
|
-
};
|
|
179
|
-
},
|
|
180
82
|
/**
|
|
181
83
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
182
84
|
* @summary Delete an option for this investment
|
|
183
|
-
* @param {string} optionId UUID of the option
|
|
184
85
|
* @param {string} investmentId UUID of the investment
|
|
86
|
+
* @param {string} optionId UUID of the option
|
|
185
87
|
* @param {*} [options] Override http request option.
|
|
186
88
|
* @throws {RequiredError}
|
|
187
89
|
*/
|
|
188
|
-
deleteOptionForInvestment: async (
|
|
189
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
190
|
-
assertParamExists('deleteOptionForInvestment', 'optionId', optionId)
|
|
90
|
+
deleteOptionForInvestment: async (investmentId: string, optionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
191
91
|
// verify required parameter 'investmentId' is not null or undefined
|
|
192
92
|
assertParamExists('deleteOptionForInvestment', 'investmentId', investmentId)
|
|
93
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
94
|
+
assertParamExists('deleteOptionForInvestment', 'optionId', optionId)
|
|
193
95
|
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
194
|
-
.replace(`{${"
|
|
195
|
-
.replace(`{${"
|
|
96
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
97
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)));
|
|
196
98
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
197
99
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
198
100
|
let baseOptions;
|
|
@@ -209,104 +111,6 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
209
111
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
210
112
|
|
|
211
113
|
|
|
212
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
213
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
214
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
215
|
-
|
|
216
|
-
return {
|
|
217
|
-
url: toPathString(localVarUrlObj),
|
|
218
|
-
options: localVarRequestOptions,
|
|
219
|
-
};
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
* Retrieve a specific impact for the option.
|
|
223
|
-
* @summary Get an impact for this option
|
|
224
|
-
* @param {string} impactId UUID of the impact
|
|
225
|
-
* @param {string} optionId UUID of the option
|
|
226
|
-
* @param {string} investmentId UUID of the investment
|
|
227
|
-
* @param {*} [options] Override http request option.
|
|
228
|
-
* @throws {RequiredError}
|
|
229
|
-
*/
|
|
230
|
-
getImpactForOption: async (impactId: string, optionId: string, investmentId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
231
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
232
|
-
assertParamExists('getImpactForOption', 'impactId', impactId)
|
|
233
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
234
|
-
assertParamExists('getImpactForOption', 'optionId', optionId)
|
|
235
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
236
|
-
assertParamExists('getImpactForOption', 'investmentId', investmentId)
|
|
237
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
238
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
239
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
240
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
241
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
|
-
let baseOptions;
|
|
244
|
-
if (configuration) {
|
|
245
|
-
baseOptions = configuration.baseOptions;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
249
|
-
const localVarHeaderParameter = {} as any;
|
|
250
|
-
const localVarQueryParameter = {} as any;
|
|
251
|
-
|
|
252
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
253
|
-
// oauth required
|
|
254
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
255
|
-
|
|
256
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
257
|
-
|
|
258
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
-
|
|
262
|
-
return {
|
|
263
|
-
url: toPathString(localVarUrlObj),
|
|
264
|
-
options: localVarRequestOptions,
|
|
265
|
-
};
|
|
266
|
-
},
|
|
267
|
-
/**
|
|
268
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
269
|
-
* @summary List impacts for this option
|
|
270
|
-
* @param {string} optionId UUID of the option
|
|
271
|
-
* @param {string} investmentId UUID of the investment
|
|
272
|
-
* @param {number} [offset] Number of records to skip
|
|
273
|
-
* @param {number} [limit] Max number of records to return
|
|
274
|
-
* @param {*} [options] Override http request option.
|
|
275
|
-
* @throws {RequiredError}
|
|
276
|
-
*/
|
|
277
|
-
getImpactsForOption: async (optionId: string, investmentId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
279
|
-
assertParamExists('getImpactsForOption', 'optionId', optionId)
|
|
280
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
281
|
-
assertParamExists('getImpactsForOption', 'investmentId', investmentId)
|
|
282
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
283
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
284
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
-
let baseOptions;
|
|
288
|
-
if (configuration) {
|
|
289
|
-
baseOptions = configuration.baseOptions;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
293
|
-
const localVarHeaderParameter = {} as any;
|
|
294
|
-
const localVarQueryParameter = {} as any;
|
|
295
|
-
|
|
296
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
297
|
-
// oauth required
|
|
298
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
299
|
-
|
|
300
|
-
if (offset !== undefined) {
|
|
301
|
-
localVarQueryParameter['offset'] = offset;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (limit !== undefined) {
|
|
305
|
-
localVarQueryParameter['limit'] = limit;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
309
|
-
|
|
310
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
311
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
116
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -361,22 +165,22 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
361
165
|
/**
|
|
362
166
|
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
363
167
|
* @summary Get the kpis for a given option inside a value framework
|
|
364
|
-
* @param {string} investmentId UUID of the investment
|
|
365
168
|
* @param {string} optionId UUID of the option
|
|
169
|
+
* @param {string} investmentId UUID of the investment
|
|
366
170
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
367
171
|
* @param {*} [options] Override http request option.
|
|
368
172
|
* @throws {RequiredError}
|
|
369
173
|
*/
|
|
370
|
-
getOptionKpis: async (
|
|
371
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
372
|
-
assertParamExists('getOptionKpis', 'investmentId', investmentId)
|
|
174
|
+
getOptionKpis: async (optionId: string, investmentId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
373
175
|
// verify required parameter 'optionId' is not null or undefined
|
|
374
176
|
assertParamExists('getOptionKpis', 'optionId', optionId)
|
|
177
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
178
|
+
assertParamExists('getOptionKpis', 'investmentId', investmentId)
|
|
375
179
|
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
376
180
|
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId)
|
|
377
181
|
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
378
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
379
182
|
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
183
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
380
184
|
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
381
185
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
382
186
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -497,57 +301,6 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
497
301
|
options: localVarRequestOptions,
|
|
498
302
|
};
|
|
499
303
|
},
|
|
500
|
-
/**
|
|
501
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
502
|
-
* @summary Partially update an impact for this option
|
|
503
|
-
* @param {string} impactId UUID of the impact
|
|
504
|
-
* @param {string} optionId UUID of the option
|
|
505
|
-
* @param {string} investmentId UUID of the investment
|
|
506
|
-
* @param {ImpactUpdate} impactUpdate
|
|
507
|
-
* @param {*} [options] Override http request option.
|
|
508
|
-
* @throws {RequiredError}
|
|
509
|
-
*/
|
|
510
|
-
patchImpactForOption: async (impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
511
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
512
|
-
assertParamExists('patchImpactForOption', 'impactId', impactId)
|
|
513
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
514
|
-
assertParamExists('patchImpactForOption', 'optionId', optionId)
|
|
515
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
516
|
-
assertParamExists('patchImpactForOption', 'investmentId', investmentId)
|
|
517
|
-
// verify required parameter 'impactUpdate' is not null or undefined
|
|
518
|
-
assertParamExists('patchImpactForOption', 'impactUpdate', impactUpdate)
|
|
519
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
520
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
521
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
522
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
523
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
524
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
525
|
-
let baseOptions;
|
|
526
|
-
if (configuration) {
|
|
527
|
-
baseOptions = configuration.baseOptions;
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
531
|
-
const localVarHeaderParameter = {} as any;
|
|
532
|
-
const localVarQueryParameter = {} as any;
|
|
533
|
-
|
|
534
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
535
|
-
// oauth required
|
|
536
|
-
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
537
|
-
|
|
538
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
539
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
540
|
-
|
|
541
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
542
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
543
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
544
|
-
localVarRequestOptions.data = serializeDataIfNeeded(impactUpdate, localVarRequestOptions, configuration)
|
|
545
|
-
|
|
546
|
-
return {
|
|
547
|
-
url: toPathString(localVarUrlObj),
|
|
548
|
-
options: localVarRequestOptions,
|
|
549
|
-
};
|
|
550
|
-
},
|
|
551
304
|
/**
|
|
552
305
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
553
306
|
* @summary Partially update an option for this investment
|
|
@@ -604,21 +357,6 @@ export const OptionApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
604
357
|
export const OptionApiFp = function(configuration?: Configuration) {
|
|
605
358
|
const localVarAxiosParamCreator = OptionApiAxiosParamCreator(configuration)
|
|
606
359
|
return {
|
|
607
|
-
/**
|
|
608
|
-
* Create a new impact under this option.
|
|
609
|
-
* @summary Create an impact for this option
|
|
610
|
-
* @param {string} optionId UUID of the option
|
|
611
|
-
* @param {string} investmentId UUID of the investment
|
|
612
|
-
* @param {ImpactCreate} impactCreate
|
|
613
|
-
* @param {*} [options] Override http request option.
|
|
614
|
-
* @throws {RequiredError}
|
|
615
|
-
*/
|
|
616
|
-
async createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
|
|
617
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
|
|
618
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
619
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.createImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
620
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
621
|
-
},
|
|
622
360
|
/**
|
|
623
361
|
* Create a new option under this investment.
|
|
624
362
|
* @summary Create an option for this investment
|
|
@@ -633,64 +371,18 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
633
371
|
const localVarOperationServerBasePath = operationServerMap['OptionApi.createOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
634
372
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
635
373
|
},
|
|
636
|
-
/**
|
|
637
|
-
* Delete an existing impact by its ID.
|
|
638
|
-
* @summary Delete an impact for this option
|
|
639
|
-
* @param {string} impactId UUID of the impact
|
|
640
|
-
* @param {string} optionId UUID of the option
|
|
641
|
-
* @param {string} investmentId UUID of the investment
|
|
642
|
-
* @param {*} [options] Override http request option.
|
|
643
|
-
* @throws {RequiredError}
|
|
644
|
-
*/
|
|
645
|
-
async deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
646
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
|
|
647
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
648
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.deleteImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
649
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
650
|
-
},
|
|
651
374
|
/**
|
|
652
375
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
653
376
|
* @summary Delete an option for this investment
|
|
654
|
-
* @param {string} optionId UUID of the option
|
|
655
377
|
* @param {string} investmentId UUID of the investment
|
|
656
|
-
* @param {*} [options] Override http request option.
|
|
657
|
-
* @throws {RequiredError}
|
|
658
|
-
*/
|
|
659
|
-
async deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
660
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
|
|
661
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
662
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.deleteOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
663
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
664
|
-
},
|
|
665
|
-
/**
|
|
666
|
-
* Retrieve a specific impact for the option.
|
|
667
|
-
* @summary Get an impact for this option
|
|
668
|
-
* @param {string} impactId UUID of the impact
|
|
669
378
|
* @param {string} optionId UUID of the option
|
|
670
|
-
* @param {string} investmentId UUID of the investment
|
|
671
379
|
* @param {*} [options] Override http request option.
|
|
672
380
|
* @throws {RequiredError}
|
|
673
381
|
*/
|
|
674
|
-
async
|
|
675
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
382
|
+
async deleteOptionForInvestment(investmentId: string, optionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
383
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOptionForInvestment(investmentId, optionId, options);
|
|
676
384
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
677
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.
|
|
678
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
682
|
-
* @summary List impacts for this option
|
|
683
|
-
* @param {string} optionId UUID of the option
|
|
684
|
-
* @param {string} investmentId UUID of the investment
|
|
685
|
-
* @param {number} [offset] Number of records to skip
|
|
686
|
-
* @param {number} [limit] Max number of records to return
|
|
687
|
-
* @param {*} [options] Override http request option.
|
|
688
|
-
* @throws {RequiredError}
|
|
689
|
-
*/
|
|
690
|
-
async getImpactsForOption(optionId: string, investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ImpactAPIResponse>>> {
|
|
691
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
|
|
692
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
693
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.getImpactsForOption']?.[localVarOperationServerIndex]?.url;
|
|
385
|
+
const localVarOperationServerBasePath = operationServerMap['OptionApi.deleteOptionForInvestment']?.[localVarOperationServerIndex]?.url;
|
|
694
386
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
695
387
|
},
|
|
696
388
|
/**
|
|
@@ -710,14 +402,14 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
710
402
|
/**
|
|
711
403
|
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
712
404
|
* @summary Get the kpis for a given option inside a value framework
|
|
713
|
-
* @param {string} investmentId UUID of the investment
|
|
714
405
|
* @param {string} optionId UUID of the option
|
|
406
|
+
* @param {string} investmentId UUID of the investment
|
|
715
407
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
716
408
|
* @param {*} [options] Override http request option.
|
|
717
409
|
* @throws {RequiredError}
|
|
718
410
|
*/
|
|
719
|
-
async getOptionKpis(
|
|
720
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(
|
|
411
|
+
async getOptionKpis(optionId: string, investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>> {
|
|
412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getOptionKpis(optionId, investmentId, valueFrameworkId, options);
|
|
721
413
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
722
414
|
const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionKpis']?.[localVarOperationServerIndex]?.url;
|
|
723
415
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -751,22 +443,6 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
751
443
|
const localVarOperationServerBasePath = operationServerMap['OptionApi.getOptionsOverview']?.[localVarOperationServerIndex]?.url;
|
|
752
444
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
753
445
|
},
|
|
754
|
-
/**
|
|
755
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
756
|
-
* @summary Partially update an impact for this option
|
|
757
|
-
* @param {string} impactId UUID of the impact
|
|
758
|
-
* @param {string} optionId UUID of the option
|
|
759
|
-
* @param {string} investmentId UUID of the investment
|
|
760
|
-
* @param {ImpactUpdate} impactUpdate
|
|
761
|
-
* @param {*} [options] Override http request option.
|
|
762
|
-
* @throws {RequiredError}
|
|
763
|
-
*/
|
|
764
|
-
async patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImpactAPIResponse>> {
|
|
765
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
|
|
766
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
767
|
-
const localVarOperationServerBasePath = operationServerMap['OptionApi.patchImpactForOption']?.[localVarOperationServerIndex]?.url;
|
|
768
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
769
|
-
},
|
|
770
446
|
/**
|
|
771
447
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
772
448
|
* @summary Partially update an option for this investment
|
|
@@ -791,18 +467,6 @@ export const OptionApiFp = function(configuration?: Configuration) {
|
|
|
791
467
|
export const OptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
792
468
|
const localVarFp = OptionApiFp(configuration)
|
|
793
469
|
return {
|
|
794
|
-
/**
|
|
795
|
-
* Create a new impact under this option.
|
|
796
|
-
* @summary Create an impact for this option
|
|
797
|
-
* @param {string} optionId UUID of the option
|
|
798
|
-
* @param {string} investmentId UUID of the investment
|
|
799
|
-
* @param {ImpactCreate} impactCreate
|
|
800
|
-
* @param {*} [options] Override http request option.
|
|
801
|
-
* @throws {RequiredError}
|
|
802
|
-
*/
|
|
803
|
-
createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
804
|
-
return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
|
|
805
|
-
},
|
|
806
470
|
/**
|
|
807
471
|
* Create a new option under this investment.
|
|
808
472
|
* @summary Create an option for this investment
|
|
@@ -814,53 +478,16 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
814
478
|
createOptionForInvestment(investmentId: string, optionCreate: OptionCreate, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse> {
|
|
815
479
|
return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
|
|
816
480
|
},
|
|
817
|
-
/**
|
|
818
|
-
* Delete an existing impact by its ID.
|
|
819
|
-
* @summary Delete an impact for this option
|
|
820
|
-
* @param {string} impactId UUID of the impact
|
|
821
|
-
* @param {string} optionId UUID of the option
|
|
822
|
-
* @param {string} investmentId UUID of the investment
|
|
823
|
-
* @param {*} [options] Override http request option.
|
|
824
|
-
* @throws {RequiredError}
|
|
825
|
-
*/
|
|
826
|
-
deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
827
|
-
return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
828
|
-
},
|
|
829
481
|
/**
|
|
830
482
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
831
483
|
* @summary Delete an option for this investment
|
|
832
|
-
* @param {string} optionId UUID of the option
|
|
833
484
|
* @param {string} investmentId UUID of the investment
|
|
834
|
-
* @param {*} [options] Override http request option.
|
|
835
|
-
* @throws {RequiredError}
|
|
836
|
-
*/
|
|
837
|
-
deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
838
|
-
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
839
|
-
},
|
|
840
|
-
/**
|
|
841
|
-
* Retrieve a specific impact for the option.
|
|
842
|
-
* @summary Get an impact for this option
|
|
843
|
-
* @param {string} impactId UUID of the impact
|
|
844
485
|
* @param {string} optionId UUID of the option
|
|
845
|
-
* @param {string} investmentId UUID of the investment
|
|
846
|
-
* @param {*} [options] Override http request option.
|
|
847
|
-
* @throws {RequiredError}
|
|
848
|
-
*/
|
|
849
|
-
getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
850
|
-
return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
851
|
-
},
|
|
852
|
-
/**
|
|
853
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
854
|
-
* @summary List impacts for this option
|
|
855
|
-
* @param {string} optionId UUID of the option
|
|
856
|
-
* @param {string} investmentId UUID of the investment
|
|
857
|
-
* @param {number} [offset] Number of records to skip
|
|
858
|
-
* @param {number} [limit] Max number of records to return
|
|
859
486
|
* @param {*} [options] Override http request option.
|
|
860
487
|
* @throws {RequiredError}
|
|
861
488
|
*/
|
|
862
|
-
|
|
863
|
-
return localVarFp.
|
|
489
|
+
deleteOptionForInvestment(investmentId: string, optionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
490
|
+
return localVarFp.deleteOptionForInvestment(investmentId, optionId, options).then((request) => request(axios, basePath));
|
|
864
491
|
},
|
|
865
492
|
/**
|
|
866
493
|
* Retrieve a specific option for the investment.
|
|
@@ -876,14 +503,14 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
876
503
|
/**
|
|
877
504
|
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
878
505
|
* @summary Get the kpis for a given option inside a value framework
|
|
879
|
-
* @param {string} investmentId UUID of the investment
|
|
880
506
|
* @param {string} optionId UUID of the option
|
|
507
|
+
* @param {string} investmentId UUID of the investment
|
|
881
508
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
882
509
|
* @param {*} [options] Override http request option.
|
|
883
510
|
* @throws {RequiredError}
|
|
884
511
|
*/
|
|
885
|
-
getOptionKpis(
|
|
886
|
-
return localVarFp.getOptionKpis(
|
|
512
|
+
getOptionKpis(optionId: string, investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>> {
|
|
513
|
+
return localVarFp.getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
887
514
|
},
|
|
888
515
|
/**
|
|
889
516
|
* Retrieve a paginated list of all options for a specific investment.
|
|
@@ -908,19 +535,6 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
908
535
|
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>> {
|
|
909
536
|
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
910
537
|
},
|
|
911
|
-
/**
|
|
912
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
913
|
-
* @summary Partially update an impact for this option
|
|
914
|
-
* @param {string} impactId UUID of the impact
|
|
915
|
-
* @param {string} optionId UUID of the option
|
|
916
|
-
* @param {string} investmentId UUID of the investment
|
|
917
|
-
* @param {ImpactUpdate} impactUpdate
|
|
918
|
-
* @param {*} [options] Override http request option.
|
|
919
|
-
* @throws {RequiredError}
|
|
920
|
-
*/
|
|
921
|
-
patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig): AxiosPromise<ImpactAPIResponse> {
|
|
922
|
-
return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
|
|
923
|
-
},
|
|
924
538
|
/**
|
|
925
539
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
926
540
|
* @summary Partially update an option for this investment
|
|
@@ -940,19 +554,6 @@ export const OptionApiFactory = function (configuration?: Configuration, basePat
|
|
|
940
554
|
* OptionApi - object-oriented interface
|
|
941
555
|
*/
|
|
942
556
|
export class OptionApi extends BaseAPI {
|
|
943
|
-
/**
|
|
944
|
-
* Create a new impact under this option.
|
|
945
|
-
* @summary Create an impact for this option
|
|
946
|
-
* @param {string} optionId UUID of the option
|
|
947
|
-
* @param {string} investmentId UUID of the investment
|
|
948
|
-
* @param {ImpactCreate} impactCreate
|
|
949
|
-
* @param {*} [options] Override http request option.
|
|
950
|
-
* @throws {RequiredError}
|
|
951
|
-
*/
|
|
952
|
-
public createImpactForOption(optionId: string, investmentId: string, impactCreate: ImpactCreate, options?: RawAxiosRequestConfig) {
|
|
953
|
-
return OptionApiFp(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
954
|
-
}
|
|
955
|
-
|
|
956
557
|
/**
|
|
957
558
|
* Create a new option under this investment.
|
|
958
559
|
* @summary Create an option for this investment
|
|
@@ -965,56 +566,16 @@ export class OptionApi extends BaseAPI {
|
|
|
965
566
|
return OptionApiFp(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
966
567
|
}
|
|
967
568
|
|
|
968
|
-
/**
|
|
969
|
-
* Delete an existing impact by its ID.
|
|
970
|
-
* @summary Delete an impact for this option
|
|
971
|
-
* @param {string} impactId UUID of the impact
|
|
972
|
-
* @param {string} optionId UUID of the option
|
|
973
|
-
* @param {string} investmentId UUID of the investment
|
|
974
|
-
* @param {*} [options] Override http request option.
|
|
975
|
-
* @throws {RequiredError}
|
|
976
|
-
*/
|
|
977
|
-
public deleteImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
978
|
-
return OptionApiFp(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
979
|
-
}
|
|
980
|
-
|
|
981
569
|
/**
|
|
982
570
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
983
571
|
* @summary Delete an option for this investment
|
|
984
|
-
* @param {string} optionId UUID of the option
|
|
985
572
|
* @param {string} investmentId UUID of the investment
|
|
986
|
-
* @param {*} [options] Override http request option.
|
|
987
|
-
* @throws {RequiredError}
|
|
988
|
-
*/
|
|
989
|
-
public deleteOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
990
|
-
return OptionApiFp(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* Retrieve a specific impact for the option.
|
|
995
|
-
* @summary Get an impact for this option
|
|
996
|
-
* @param {string} impactId UUID of the impact
|
|
997
573
|
* @param {string} optionId UUID of the option
|
|
998
|
-
* @param {string} investmentId UUID of the investment
|
|
999
|
-
* @param {*} [options] Override http request option.
|
|
1000
|
-
* @throws {RequiredError}
|
|
1001
|
-
*/
|
|
1002
|
-
public getImpactForOption(impactId: string, optionId: string, investmentId: string, options?: RawAxiosRequestConfig) {
|
|
1003
|
-
return OptionApiFp(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
1008
|
-
* @summary List impacts for this option
|
|
1009
|
-
* @param {string} optionId UUID of the option
|
|
1010
|
-
* @param {string} investmentId UUID of the investment
|
|
1011
|
-
* @param {number} [offset] Number of records to skip
|
|
1012
|
-
* @param {number} [limit] Max number of records to return
|
|
1013
574
|
* @param {*} [options] Override http request option.
|
|
1014
575
|
* @throws {RequiredError}
|
|
1015
576
|
*/
|
|
1016
|
-
public
|
|
1017
|
-
return OptionApiFp(this.configuration).
|
|
577
|
+
public deleteOptionForInvestment(investmentId: string, optionId: string, options?: RawAxiosRequestConfig) {
|
|
578
|
+
return OptionApiFp(this.configuration).deleteOptionForInvestment(investmentId, optionId, options).then((request) => request(this.axios, this.basePath));
|
|
1018
579
|
}
|
|
1019
580
|
|
|
1020
581
|
/**
|
|
@@ -1032,14 +593,14 @@ export class OptionApi extends BaseAPI {
|
|
|
1032
593
|
/**
|
|
1033
594
|
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
1034
595
|
* @summary Get the kpis for a given option inside a value framework
|
|
1035
|
-
* @param {string} investmentId UUID of the investment
|
|
1036
596
|
* @param {string} optionId UUID of the option
|
|
597
|
+
* @param {string} investmentId UUID of the investment
|
|
1037
598
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
1038
599
|
* @param {*} [options] Override http request option.
|
|
1039
600
|
* @throws {RequiredError}
|
|
1040
601
|
*/
|
|
1041
|
-
public getOptionKpis(
|
|
1042
|
-
return OptionApiFp(this.configuration).getOptionKpis(
|
|
602
|
+
public getOptionKpis(optionId: string, investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
603
|
+
return OptionApiFp(this.configuration).getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1043
604
|
}
|
|
1044
605
|
|
|
1045
606
|
/**
|
|
@@ -1067,20 +628,6 @@ export class OptionApi extends BaseAPI {
|
|
|
1067
628
|
return OptionApiFp(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1068
629
|
}
|
|
1069
630
|
|
|
1070
|
-
/**
|
|
1071
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1072
|
-
* @summary Partially update an impact for this option
|
|
1073
|
-
* @param {string} impactId UUID of the impact
|
|
1074
|
-
* @param {string} optionId UUID of the option
|
|
1075
|
-
* @param {string} investmentId UUID of the investment
|
|
1076
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1077
|
-
* @param {*} [options] Override http request option.
|
|
1078
|
-
* @throws {RequiredError}
|
|
1079
|
-
*/
|
|
1080
|
-
public patchImpactForOption(impactId: string, optionId: string, investmentId: string, impactUpdate: ImpactUpdate, options?: RawAxiosRequestConfig) {
|
|
1081
|
-
return OptionApiFp(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
631
|
/**
|
|
1085
632
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1086
633
|
* @summary Partially update an option for this investment
|