@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/dist/api/option-api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Asset Investment Planning
|
|
6
6
|
* API for Asset Investment Planning
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.4.0-dev1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,48 +34,6 @@ const base_1 = require("../base");
|
|
|
34
34
|
*/
|
|
35
35
|
const OptionApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
|
-
/**
|
|
38
|
-
* Create a new impact under this option.
|
|
39
|
-
* @summary Create an impact for this option
|
|
40
|
-
* @param {string} optionId UUID of the option
|
|
41
|
-
* @param {string} investmentId UUID of the investment
|
|
42
|
-
* @param {ImpactCreate} impactCreate
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
*/
|
|
46
|
-
createImpactForOption: (optionId_1, investmentId_1, impactCreate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, impactCreate_1, ...args_1], void 0, function* (optionId, investmentId, impactCreate, options = {}) {
|
|
47
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
48
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'optionId', optionId);
|
|
49
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
50
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'investmentId', investmentId);
|
|
51
|
-
// verify required parameter 'impactCreate' is not null or undefined
|
|
52
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'impactCreate', impactCreate);
|
|
53
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
54
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
55
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
56
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
58
|
-
let baseOptions;
|
|
59
|
-
if (configuration) {
|
|
60
|
-
baseOptions = configuration.baseOptions;
|
|
61
|
-
}
|
|
62
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
63
|
-
const localVarHeaderParameter = {};
|
|
64
|
-
const localVarQueryParameter = {};
|
|
65
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
66
|
-
// oauth required
|
|
67
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
68
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
70
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
71
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactCreate, localVarRequestOptions, configuration);
|
|
74
|
-
return {
|
|
75
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
-
options: localVarRequestOptions,
|
|
77
|
-
};
|
|
78
|
-
}),
|
|
79
37
|
/**
|
|
80
38
|
* Create a new option under this investment.
|
|
81
39
|
* @summary Create an option for this investment
|
|
@@ -114,62 +72,22 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
114
72
|
options: localVarRequestOptions,
|
|
115
73
|
};
|
|
116
74
|
}),
|
|
117
|
-
/**
|
|
118
|
-
* Delete an existing impact by its ID.
|
|
119
|
-
* @summary Delete an impact for this option
|
|
120
|
-
* @param {string} impactId UUID of the impact
|
|
121
|
-
* @param {string} optionId UUID of the option
|
|
122
|
-
* @param {string} investmentId UUID of the investment
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @throws {RequiredError}
|
|
125
|
-
*/
|
|
126
|
-
deleteImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
127
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
128
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'impactId', impactId);
|
|
129
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
130
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'optionId', optionId);
|
|
131
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
132
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'investmentId', investmentId);
|
|
133
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
134
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
135
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
136
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
137
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
139
|
-
let baseOptions;
|
|
140
|
-
if (configuration) {
|
|
141
|
-
baseOptions = configuration.baseOptions;
|
|
142
|
-
}
|
|
143
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
144
|
-
const localVarHeaderParameter = {};
|
|
145
|
-
const localVarQueryParameter = {};
|
|
146
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
147
|
-
// oauth required
|
|
148
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
149
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
150
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
151
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
152
|
-
return {
|
|
153
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
154
|
-
options: localVarRequestOptions,
|
|
155
|
-
};
|
|
156
|
-
}),
|
|
157
75
|
/**
|
|
158
76
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
159
77
|
* @summary Delete an option for this investment
|
|
160
|
-
* @param {string} optionId UUID of the option
|
|
161
78
|
* @param {string} investmentId UUID of the investment
|
|
79
|
+
* @param {string} optionId UUID of the option
|
|
162
80
|
* @param {*} [options] Override http request option.
|
|
163
81
|
* @throws {RequiredError}
|
|
164
82
|
*/
|
|
165
|
-
deleteOptionForInvestment: (
|
|
166
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
167
|
-
(0, common_1.assertParamExists)('deleteOptionForInvestment', 'optionId', optionId);
|
|
83
|
+
deleteOptionForInvestment: (investmentId_1, optionId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, ...args_1], void 0, function* (investmentId, optionId, options = {}) {
|
|
168
84
|
// verify required parameter 'investmentId' is not null or undefined
|
|
169
85
|
(0, common_1.assertParamExists)('deleteOptionForInvestment', 'investmentId', investmentId);
|
|
86
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
87
|
+
(0, common_1.assertParamExists)('deleteOptionForInvestment', 'optionId', optionId);
|
|
170
88
|
const localVarPath = `/investment/{investment_id}/option/{option_id}`
|
|
171
|
-
.replace(`{${"
|
|
172
|
-
.replace(`{${"
|
|
89
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
90
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)));
|
|
173
91
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
92
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
93
|
let baseOptions;
|
|
@@ -190,92 +108,6 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
190
108
|
options: localVarRequestOptions,
|
|
191
109
|
};
|
|
192
110
|
}),
|
|
193
|
-
/**
|
|
194
|
-
* Retrieve a specific impact for the option.
|
|
195
|
-
* @summary Get an impact for this option
|
|
196
|
-
* @param {string} impactId UUID of the impact
|
|
197
|
-
* @param {string} optionId UUID of the option
|
|
198
|
-
* @param {string} investmentId UUID of the investment
|
|
199
|
-
* @param {*} [options] Override http request option.
|
|
200
|
-
* @throws {RequiredError}
|
|
201
|
-
*/
|
|
202
|
-
getImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
203
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
204
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'impactId', impactId);
|
|
205
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
206
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'optionId', optionId);
|
|
207
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
208
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'investmentId', investmentId);
|
|
209
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
210
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
211
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
212
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
213
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
-
let baseOptions;
|
|
216
|
-
if (configuration) {
|
|
217
|
-
baseOptions = configuration.baseOptions;
|
|
218
|
-
}
|
|
219
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
220
|
-
const localVarHeaderParameter = {};
|
|
221
|
-
const localVarQueryParameter = {};
|
|
222
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
223
|
-
// oauth required
|
|
224
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
225
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
226
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
229
|
-
return {
|
|
230
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
231
|
-
options: localVarRequestOptions,
|
|
232
|
-
};
|
|
233
|
-
}),
|
|
234
|
-
/**
|
|
235
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
236
|
-
* @summary List impacts for this option
|
|
237
|
-
* @param {string} optionId UUID of the option
|
|
238
|
-
* @param {string} investmentId UUID of the investment
|
|
239
|
-
* @param {number} [offset] Number of records to skip
|
|
240
|
-
* @param {number} [limit] Max number of records to return
|
|
241
|
-
* @param {*} [options] Override http request option.
|
|
242
|
-
* @throws {RequiredError}
|
|
243
|
-
*/
|
|
244
|
-
getImpactsForOption: (optionId_1, investmentId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, offset_1, limit_1, ...args_1], void 0, function* (optionId, investmentId, offset, limit, options = {}) {
|
|
245
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
246
|
-
(0, common_1.assertParamExists)('getImpactsForOption', 'optionId', optionId);
|
|
247
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
248
|
-
(0, common_1.assertParamExists)('getImpactsForOption', 'investmentId', investmentId);
|
|
249
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
250
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
251
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
252
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
254
|
-
let baseOptions;
|
|
255
|
-
if (configuration) {
|
|
256
|
-
baseOptions = configuration.baseOptions;
|
|
257
|
-
}
|
|
258
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
259
|
-
const localVarHeaderParameter = {};
|
|
260
|
-
const localVarQueryParameter = {};
|
|
261
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
262
|
-
// oauth required
|
|
263
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
264
|
-
if (offset !== undefined) {
|
|
265
|
-
localVarQueryParameter['offset'] = offset;
|
|
266
|
-
}
|
|
267
|
-
if (limit !== undefined) {
|
|
268
|
-
localVarQueryParameter['limit'] = limit;
|
|
269
|
-
}
|
|
270
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
271
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
272
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
274
|
-
return {
|
|
275
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
276
|
-
options: localVarRequestOptions,
|
|
277
|
-
};
|
|
278
|
-
}),
|
|
279
111
|
/**
|
|
280
112
|
* Retrieve a specific option for the investment.
|
|
281
113
|
* @summary Get an option for this investment
|
|
@@ -316,22 +148,22 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
316
148
|
/**
|
|
317
149
|
* 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.
|
|
318
150
|
* @summary Get the kpis for a given option inside a value framework
|
|
319
|
-
* @param {string} investmentId UUID of the investment
|
|
320
151
|
* @param {string} optionId UUID of the option
|
|
152
|
+
* @param {string} investmentId UUID of the investment
|
|
321
153
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
322
154
|
* @param {*} [options] Override http request option.
|
|
323
155
|
* @throws {RequiredError}
|
|
324
156
|
*/
|
|
325
|
-
getOptionKpis: (
|
|
326
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
327
|
-
(0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
|
|
157
|
+
getOptionKpis: (optionId_1, investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (optionId, investmentId, valueFrameworkId, options = {}) {
|
|
328
158
|
// verify required parameter 'optionId' is not null or undefined
|
|
329
159
|
(0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
|
|
160
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
|
|
330
162
|
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
331
163
|
(0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
332
164
|
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
333
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
334
165
|
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
166
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
335
167
|
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
336
168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
169
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -434,52 +266,6 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
434
266
|
options: localVarRequestOptions,
|
|
435
267
|
};
|
|
436
268
|
}),
|
|
437
|
-
/**
|
|
438
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
439
|
-
* @summary Partially update an impact for this option
|
|
440
|
-
* @param {string} impactId UUID of the impact
|
|
441
|
-
* @param {string} optionId UUID of the option
|
|
442
|
-
* @param {string} investmentId UUID of the investment
|
|
443
|
-
* @param {ImpactUpdate} impactUpdate
|
|
444
|
-
* @param {*} [options] Override http request option.
|
|
445
|
-
* @throws {RequiredError}
|
|
446
|
-
*/
|
|
447
|
-
patchImpactForOption: (impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1], void 0, function* (impactId, optionId, investmentId, impactUpdate, options = {}) {
|
|
448
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
449
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'impactId', impactId);
|
|
450
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
451
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'optionId', optionId);
|
|
452
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
453
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'investmentId', investmentId);
|
|
454
|
-
// verify required parameter 'impactUpdate' is not null or undefined
|
|
455
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'impactUpdate', impactUpdate);
|
|
456
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
457
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
458
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
459
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
460
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
461
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
462
|
-
let baseOptions;
|
|
463
|
-
if (configuration) {
|
|
464
|
-
baseOptions = configuration.baseOptions;
|
|
465
|
-
}
|
|
466
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
467
|
-
const localVarHeaderParameter = {};
|
|
468
|
-
const localVarQueryParameter = {};
|
|
469
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
470
|
-
// oauth required
|
|
471
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
472
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
473
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
474
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
475
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
477
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactUpdate, localVarRequestOptions, configuration);
|
|
478
|
-
return {
|
|
479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
-
options: localVarRequestOptions,
|
|
481
|
-
};
|
|
482
|
-
}),
|
|
483
269
|
/**
|
|
484
270
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
485
271
|
* @summary Partially update an option for this investment
|
|
@@ -531,24 +317,6 @@ exports.OptionApiAxiosParamCreator = OptionApiAxiosParamCreator;
|
|
|
531
317
|
const OptionApiFp = function (configuration) {
|
|
532
318
|
const localVarAxiosParamCreator = (0, exports.OptionApiAxiosParamCreator)(configuration);
|
|
533
319
|
return {
|
|
534
|
-
/**
|
|
535
|
-
* Create a new impact under this option.
|
|
536
|
-
* @summary Create an impact for this option
|
|
537
|
-
* @param {string} optionId UUID of the option
|
|
538
|
-
* @param {string} investmentId UUID of the investment
|
|
539
|
-
* @param {ImpactCreate} impactCreate
|
|
540
|
-
* @param {*} [options] Override http request option.
|
|
541
|
-
* @throws {RequiredError}
|
|
542
|
-
*/
|
|
543
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
544
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
-
var _a, _b, _c;
|
|
546
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
|
|
547
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
548
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.createImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
549
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
550
|
-
});
|
|
551
|
-
},
|
|
552
320
|
/**
|
|
553
321
|
* Create a new option under this investment.
|
|
554
322
|
* @summary Create an option for this investment
|
|
@@ -566,75 +334,20 @@ const OptionApiFp = function (configuration) {
|
|
|
566
334
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
335
|
});
|
|
568
336
|
},
|
|
569
|
-
/**
|
|
570
|
-
* Delete an existing impact by its ID.
|
|
571
|
-
* @summary Delete an impact for this option
|
|
572
|
-
* @param {string} impactId UUID of the impact
|
|
573
|
-
* @param {string} optionId UUID of the option
|
|
574
|
-
* @param {string} investmentId UUID of the investment
|
|
575
|
-
* @param {*} [options] Override http request option.
|
|
576
|
-
* @throws {RequiredError}
|
|
577
|
-
*/
|
|
578
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
579
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
580
|
-
var _a, _b, _c;
|
|
581
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
|
|
582
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
583
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.deleteImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
584
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
|
-
});
|
|
586
|
-
},
|
|
587
337
|
/**
|
|
588
338
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
589
339
|
* @summary Delete an option for this investment
|
|
590
|
-
* @param {string} optionId UUID of the option
|
|
591
|
-
* @param {string} investmentId UUID of the investment
|
|
592
|
-
* @param {*} [options] Override http request option.
|
|
593
|
-
* @throws {RequiredError}
|
|
594
|
-
*/
|
|
595
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
596
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
597
|
-
var _a, _b, _c;
|
|
598
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOptionForInvestment(optionId, investmentId, options);
|
|
599
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
600
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.deleteOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
601
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
602
|
-
});
|
|
603
|
-
},
|
|
604
|
-
/**
|
|
605
|
-
* Retrieve a specific impact for the option.
|
|
606
|
-
* @summary Get an impact for this option
|
|
607
|
-
* @param {string} impactId UUID of the impact
|
|
608
|
-
* @param {string} optionId UUID of the option
|
|
609
340
|
* @param {string} investmentId UUID of the investment
|
|
610
|
-
* @param {*} [options] Override http request option.
|
|
611
|
-
* @throws {RequiredError}
|
|
612
|
-
*/
|
|
613
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
614
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
-
var _a, _b, _c;
|
|
616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
|
|
617
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
618
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
619
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
620
|
-
});
|
|
621
|
-
},
|
|
622
|
-
/**
|
|
623
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
624
|
-
* @summary List impacts for this option
|
|
625
341
|
* @param {string} optionId UUID of the option
|
|
626
|
-
* @param {string} investmentId UUID of the investment
|
|
627
|
-
* @param {number} [offset] Number of records to skip
|
|
628
|
-
* @param {number} [limit] Max number of records to return
|
|
629
342
|
* @param {*} [options] Override http request option.
|
|
630
343
|
* @throws {RequiredError}
|
|
631
344
|
*/
|
|
632
|
-
|
|
345
|
+
deleteOptionForInvestment(investmentId, optionId, options) {
|
|
633
346
|
return __awaiter(this, void 0, void 0, function* () {
|
|
634
347
|
var _a, _b, _c;
|
|
635
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
348
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteOptionForInvestment(investmentId, optionId, options);
|
|
636
349
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
637
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.
|
|
350
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.deleteOptionForInvestment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
638
351
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
639
352
|
});
|
|
640
353
|
},
|
|
@@ -658,16 +371,16 @@ const OptionApiFp = function (configuration) {
|
|
|
658
371
|
/**
|
|
659
372
|
* 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.
|
|
660
373
|
* @summary Get the kpis for a given option inside a value framework
|
|
661
|
-
* @param {string} investmentId UUID of the investment
|
|
662
374
|
* @param {string} optionId UUID of the option
|
|
375
|
+
* @param {string} investmentId UUID of the investment
|
|
663
376
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
664
377
|
* @param {*} [options] Override http request option.
|
|
665
378
|
* @throws {RequiredError}
|
|
666
379
|
*/
|
|
667
|
-
getOptionKpis(
|
|
380
|
+
getOptionKpis(optionId, investmentId, valueFrameworkId, options) {
|
|
668
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
669
382
|
var _a, _b, _c;
|
|
670
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(
|
|
383
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(optionId, investmentId, valueFrameworkId, options);
|
|
671
384
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
672
385
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
673
386
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -708,25 +421,6 @@ const OptionApiFp = function (configuration) {
|
|
|
708
421
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
709
422
|
});
|
|
710
423
|
},
|
|
711
|
-
/**
|
|
712
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
713
|
-
* @summary Partially update an impact for this option
|
|
714
|
-
* @param {string} impactId UUID of the impact
|
|
715
|
-
* @param {string} optionId UUID of the option
|
|
716
|
-
* @param {string} investmentId UUID of the investment
|
|
717
|
-
* @param {ImpactUpdate} impactUpdate
|
|
718
|
-
* @param {*} [options] Override http request option.
|
|
719
|
-
* @throws {RequiredError}
|
|
720
|
-
*/
|
|
721
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
722
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
-
var _a, _b, _c;
|
|
724
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
|
|
725
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
726
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.patchImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
727
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
424
|
/**
|
|
731
425
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
732
426
|
* @summary Partially update an option for this investment
|
|
@@ -754,18 +448,6 @@ exports.OptionApiFp = OptionApiFp;
|
|
|
754
448
|
const OptionApiFactory = function (configuration, basePath, axios) {
|
|
755
449
|
const localVarFp = (0, exports.OptionApiFp)(configuration);
|
|
756
450
|
return {
|
|
757
|
-
/**
|
|
758
|
-
* Create a new impact under this option.
|
|
759
|
-
* @summary Create an impact for this option
|
|
760
|
-
* @param {string} optionId UUID of the option
|
|
761
|
-
* @param {string} investmentId UUID of the investment
|
|
762
|
-
* @param {ImpactCreate} impactCreate
|
|
763
|
-
* @param {*} [options] Override http request option.
|
|
764
|
-
* @throws {RequiredError}
|
|
765
|
-
*/
|
|
766
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
767
|
-
return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
|
|
768
|
-
},
|
|
769
451
|
/**
|
|
770
452
|
* Create a new option under this investment.
|
|
771
453
|
* @summary Create an option for this investment
|
|
@@ -777,53 +459,16 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
777
459
|
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
778
460
|
return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
|
|
779
461
|
},
|
|
780
|
-
/**
|
|
781
|
-
* Delete an existing impact by its ID.
|
|
782
|
-
* @summary Delete an impact for this option
|
|
783
|
-
* @param {string} impactId UUID of the impact
|
|
784
|
-
* @param {string} optionId UUID of the option
|
|
785
|
-
* @param {string} investmentId UUID of the investment
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
*/
|
|
789
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
790
|
-
return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
791
|
-
},
|
|
792
462
|
/**
|
|
793
463
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
794
464
|
* @summary Delete an option for this investment
|
|
795
|
-
* @param {string} optionId UUID of the option
|
|
796
465
|
* @param {string} investmentId UUID of the investment
|
|
797
|
-
* @param {*} [options] Override http request option.
|
|
798
|
-
* @throws {RequiredError}
|
|
799
|
-
*/
|
|
800
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
801
|
-
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
802
|
-
},
|
|
803
|
-
/**
|
|
804
|
-
* Retrieve a specific impact for the option.
|
|
805
|
-
* @summary Get an impact for this option
|
|
806
|
-
* @param {string} impactId UUID of the impact
|
|
807
|
-
* @param {string} optionId UUID of the option
|
|
808
|
-
* @param {string} investmentId UUID of the investment
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
813
|
-
return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
814
|
-
},
|
|
815
|
-
/**
|
|
816
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
817
|
-
* @summary List impacts for this option
|
|
818
466
|
* @param {string} optionId UUID of the option
|
|
819
|
-
* @param {string} investmentId UUID of the investment
|
|
820
|
-
* @param {number} [offset] Number of records to skip
|
|
821
|
-
* @param {number} [limit] Max number of records to return
|
|
822
467
|
* @param {*} [options] Override http request option.
|
|
823
468
|
* @throws {RequiredError}
|
|
824
469
|
*/
|
|
825
|
-
|
|
826
|
-
return localVarFp.
|
|
470
|
+
deleteOptionForInvestment(investmentId, optionId, options) {
|
|
471
|
+
return localVarFp.deleteOptionForInvestment(investmentId, optionId, options).then((request) => request(axios, basePath));
|
|
827
472
|
},
|
|
828
473
|
/**
|
|
829
474
|
* Retrieve a specific option for the investment.
|
|
@@ -839,14 +484,14 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
839
484
|
/**
|
|
840
485
|
* 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.
|
|
841
486
|
* @summary Get the kpis for a given option inside a value framework
|
|
842
|
-
* @param {string} investmentId UUID of the investment
|
|
843
487
|
* @param {string} optionId UUID of the option
|
|
488
|
+
* @param {string} investmentId UUID of the investment
|
|
844
489
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
845
490
|
* @param {*} [options] Override http request option.
|
|
846
491
|
* @throws {RequiredError}
|
|
847
492
|
*/
|
|
848
|
-
getOptionKpis(
|
|
849
|
-
return localVarFp.getOptionKpis(
|
|
493
|
+
getOptionKpis(optionId, investmentId, valueFrameworkId, options) {
|
|
494
|
+
return localVarFp.getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
850
495
|
},
|
|
851
496
|
/**
|
|
852
497
|
* Retrieve a paginated list of all options for a specific investment.
|
|
@@ -871,19 +516,6 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
871
516
|
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
872
517
|
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
873
518
|
},
|
|
874
|
-
/**
|
|
875
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
876
|
-
* @summary Partially update an impact for this option
|
|
877
|
-
* @param {string} impactId UUID of the impact
|
|
878
|
-
* @param {string} optionId UUID of the option
|
|
879
|
-
* @param {string} investmentId UUID of the investment
|
|
880
|
-
* @param {ImpactUpdate} impactUpdate
|
|
881
|
-
* @param {*} [options] Override http request option.
|
|
882
|
-
* @throws {RequiredError}
|
|
883
|
-
*/
|
|
884
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
885
|
-
return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
|
|
886
|
-
},
|
|
887
519
|
/**
|
|
888
520
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
889
521
|
* @summary Partially update an option for this investment
|
|
@@ -903,18 +535,6 @@ exports.OptionApiFactory = OptionApiFactory;
|
|
|
903
535
|
* OptionApi - object-oriented interface
|
|
904
536
|
*/
|
|
905
537
|
class OptionApi extends base_1.BaseAPI {
|
|
906
|
-
/**
|
|
907
|
-
* Create a new impact under this option.
|
|
908
|
-
* @summary Create an impact for this option
|
|
909
|
-
* @param {string} optionId UUID of the option
|
|
910
|
-
* @param {string} investmentId UUID of the investment
|
|
911
|
-
* @param {ImpactCreate} impactCreate
|
|
912
|
-
* @param {*} [options] Override http request option.
|
|
913
|
-
* @throws {RequiredError}
|
|
914
|
-
*/
|
|
915
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
916
|
-
return (0, exports.OptionApiFp)(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
917
|
-
}
|
|
918
538
|
/**
|
|
919
539
|
* Create a new option under this investment.
|
|
920
540
|
* @summary Create an option for this investment
|
|
@@ -926,53 +546,16 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
926
546
|
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
927
547
|
return (0, exports.OptionApiFp)(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
928
548
|
}
|
|
929
|
-
/**
|
|
930
|
-
* Delete an existing impact by its ID.
|
|
931
|
-
* @summary Delete an impact for this option
|
|
932
|
-
* @param {string} impactId UUID of the impact
|
|
933
|
-
* @param {string} optionId UUID of the option
|
|
934
|
-
* @param {string} investmentId UUID of the investment
|
|
935
|
-
* @param {*} [options] Override http request option.
|
|
936
|
-
* @throws {RequiredError}
|
|
937
|
-
*/
|
|
938
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
939
|
-
return (0, exports.OptionApiFp)(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
940
|
-
}
|
|
941
549
|
/**
|
|
942
550
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
943
551
|
* @summary Delete an option for this investment
|
|
944
|
-
* @param {string} optionId UUID of the option
|
|
945
|
-
* @param {string} investmentId UUID of the investment
|
|
946
|
-
* @param {*} [options] Override http request option.
|
|
947
|
-
* @throws {RequiredError}
|
|
948
|
-
*/
|
|
949
|
-
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
950
|
-
return (0, exports.OptionApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
951
|
-
}
|
|
952
|
-
/**
|
|
953
|
-
* Retrieve a specific impact for the option.
|
|
954
|
-
* @summary Get an impact for this option
|
|
955
|
-
* @param {string} impactId UUID of the impact
|
|
956
|
-
* @param {string} optionId UUID of the option
|
|
957
552
|
* @param {string} investmentId UUID of the investment
|
|
958
|
-
* @param {*} [options] Override http request option.
|
|
959
|
-
* @throws {RequiredError}
|
|
960
|
-
*/
|
|
961
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
962
|
-
return (0, exports.OptionApiFp)(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
966
|
-
* @summary List impacts for this option
|
|
967
553
|
* @param {string} optionId UUID of the option
|
|
968
|
-
* @param {string} investmentId UUID of the investment
|
|
969
|
-
* @param {number} [offset] Number of records to skip
|
|
970
|
-
* @param {number} [limit] Max number of records to return
|
|
971
554
|
* @param {*} [options] Override http request option.
|
|
972
555
|
* @throws {RequiredError}
|
|
973
556
|
*/
|
|
974
|
-
|
|
975
|
-
return (0, exports.OptionApiFp)(this.configuration).
|
|
557
|
+
deleteOptionForInvestment(investmentId, optionId, options) {
|
|
558
|
+
return (0, exports.OptionApiFp)(this.configuration).deleteOptionForInvestment(investmentId, optionId, options).then((request) => request(this.axios, this.basePath));
|
|
976
559
|
}
|
|
977
560
|
/**
|
|
978
561
|
* Retrieve a specific option for the investment.
|
|
@@ -988,14 +571,14 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
988
571
|
/**
|
|
989
572
|
* 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.
|
|
990
573
|
* @summary Get the kpis for a given option inside a value framework
|
|
991
|
-
* @param {string} investmentId UUID of the investment
|
|
992
574
|
* @param {string} optionId UUID of the option
|
|
575
|
+
* @param {string} investmentId UUID of the investment
|
|
993
576
|
* @param {string} valueFrameworkId UUID of the value framework
|
|
994
577
|
* @param {*} [options] Override http request option.
|
|
995
578
|
* @throws {RequiredError}
|
|
996
579
|
*/
|
|
997
|
-
getOptionKpis(
|
|
998
|
-
return (0, exports.OptionApiFp)(this.configuration).getOptionKpis(
|
|
580
|
+
getOptionKpis(optionId, investmentId, valueFrameworkId, options) {
|
|
581
|
+
return (0, exports.OptionApiFp)(this.configuration).getOptionKpis(optionId, investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
999
582
|
}
|
|
1000
583
|
/**
|
|
1001
584
|
* Retrieve a paginated list of all options for a specific investment.
|
|
@@ -1020,19 +603,6 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
1020
603
|
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1021
604
|
return (0, exports.OptionApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1022
605
|
}
|
|
1023
|
-
/**
|
|
1024
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1025
|
-
* @summary Partially update an impact for this option
|
|
1026
|
-
* @param {string} impactId UUID of the impact
|
|
1027
|
-
* @param {string} optionId UUID of the option
|
|
1028
|
-
* @param {string} investmentId UUID of the investment
|
|
1029
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1030
|
-
* @param {*} [options] Override http request option.
|
|
1031
|
-
* @throws {RequiredError}
|
|
1032
|
-
*/
|
|
1033
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
1034
|
-
return (0, exports.OptionApiFp)(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1035
|
-
}
|
|
1036
606
|
/**
|
|
1037
607
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1038
608
|
* @summary Partially update an option for this investment
|