@cosmotech/aip-client 0.2.0-dev6 → 0.3.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 +25 -2
- package/api/budget-api.ts +835 -0
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +166 -5
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +89 -5
- package/api/preferred-option-api.ts +1 -1
- package/api/value-framework-api.ts +1 -1
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +2 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +382 -0
- package/dist/api/budget-api.js +794 -0
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +1 -1
- package/dist/api/impact-api.js +1 -1
- package/dist/api/investment-api.d.ts +75 -5
- package/dist/api/investment-api.js +154 -5
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -1
- package/dist/api/objective-api.js +1 -1
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +42 -5
- package/dist/api/option-api.js +83 -5
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -1
- package/dist/api/value-framework-api.js +1 -1
- package/dist/api/value-framework-costs-api.d.ts +1 -1
- package/dist/api/value-framework-costs-api.js +1 -1
- package/dist/api/value-framework-weights-api.d.ts +1 -1
- package/dist/api/value-framework-weights-api.js +1 -1
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -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 +382 -0
- package/dist/esm/api/budget-api.js +787 -0
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +1 -1
- package/dist/esm/api/impact-api.js +1 -1
- package/dist/esm/api/investment-api.d.ts +75 -5
- package/dist/esm/api/investment-api.js +154 -5
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -1
- package/dist/esm/api/objective-api.js +1 -1
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +42 -5
- package/dist/esm/api/option-api.js +83 -5
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -1
- package/dist/esm/api/value-framework-api.js +1 -1
- package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
- package/dist/esm/api/value-framework-costs-api.js +1 -1
- package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
- package/dist/esm/api/value-framework-weights-api.js +1 -1
- package/dist/esm/api.d.ts +2 -1
- package/dist/esm/api.js +2 -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 +20 -0
- package/dist/esm/models/budget-bulk-delete-request.js +14 -0
- package/dist/esm/models/budget-create.d.ts +22 -0
- package/dist/esm/models/budget-create.js +14 -0
- package/dist/esm/models/budget-investment-response.d.ts +34 -0
- package/dist/esm/models/budget-investment-response.js +14 -0
- package/dist/esm/models/budget-link-options-request.d.ts +20 -0
- package/dist/esm/models/budget-link-options-request.js +14 -0
- package/dist/esm/models/budget-option-response.d.ts +50 -0
- package/dist/esm/models/budget-option-response.js +14 -0
- package/dist/esm/models/budget-overview-response.d.ts +25 -0
- package/dist/esm/models/budget-overview-response.js +14 -0
- package/dist/esm/models/budget-response.d.ts +26 -0
- package/dist/esm/models/budget-response.js +14 -0
- package/dist/esm/models/budget-update.d.ts +19 -0
- package/dist/esm/models/budget-update.js +14 -0
- 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 -1
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-create.d.ts +1 -1
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -1
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -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 +29 -0
- package/dist/esm/models/investment-overview-response.js +14 -0
- 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-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/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 +2 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +38 -0
- package/dist/esm/models/option-overview-response.js +14 -0
- package/dist/esm/models/option-response.d.ts +2 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +2 -1
- package/dist/esm/models/option-update.js +1 -1
- 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 +20 -0
- package/dist/models/budget-bulk-delete-request.js +15 -0
- package/dist/models/budget-create.d.ts +22 -0
- package/dist/models/budget-create.js +15 -0
- package/dist/models/budget-investment-response.d.ts +34 -0
- package/dist/models/budget-investment-response.js +15 -0
- package/dist/models/budget-link-options-request.d.ts +20 -0
- package/dist/models/budget-link-options-request.js +15 -0
- package/dist/models/budget-option-response.d.ts +50 -0
- package/dist/models/budget-option-response.js +15 -0
- package/dist/models/budget-overview-response.d.ts +25 -0
- package/dist/models/budget-overview-response.js +15 -0
- package/dist/models/budget-response.d.ts +26 -0
- package/dist/models/budget-response.js +15 -0
- package/dist/models/budget-update.d.ts +19 -0
- package/dist/models/budget-update.js +15 -0
- 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 -1
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-create.d.ts +1 -1
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -1
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -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 +29 -0
- package/dist/models/investment-overview-response.js +15 -0
- 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-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/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 +2 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +38 -0
- package/dist/models/option-overview-response.js +15 -0
- package/dist/models/option-response.d.ts +2 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +2 -1
- package/dist/models/option-update.js +1 -1
- 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 +559 -0
- package/docs/BudgetBulkDeleteRequest.md +21 -0
- package/docs/BudgetCreate.md +25 -0
- package/docs/BudgetInvestmentResponse.md +37 -0
- package/docs/BudgetLinkOptionsRequest.md +21 -0
- package/docs/BudgetOptionResponse.md +39 -0
- package/docs/BudgetOverviewResponse.md +25 -0
- package/docs/BudgetResponse.md +33 -0
- package/docs/BudgetUpdate.md +25 -0
- package/docs/InvestmentApi.md +111 -2
- package/docs/InvestmentOverviewResponse.md +33 -0
- package/docs/OptionApi.md +58 -2
- package/docs/OptionCreate.md +2 -0
- package/docs/OptionOverviewResponse.md +33 -0
- package/docs/OptionResponse.md +2 -0
- package/docs/OptionUpdate.md +2 -0
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +26 -0
- package/models/budget-create.ts +28 -0
- package/models/budget-investment-response.ts +40 -0
- package/models/budget-link-options-request.ts +26 -0
- package/models/budget-option-response.ts +56 -0
- package/models/budget-overview-response.ts +31 -0
- package/models/budget-response.ts +32 -0
- package/models/budget-update.ts +25 -0
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -1
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +10 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +35 -0
- 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-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- 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 +2 -1
- package/models/option-overview-response.ts +44 -0
- package/models/option-response.ts +2 -1
- package/models/option-update.ts +2 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# BudgetOverviewResponse
|
|
2
|
+
|
|
3
|
+
Schema for the budget overview — aggregated counts and capacity.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**annualBudgetCapacity** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**numInvestments** | **number** | Number of investments that have at least one option linked to this budget. | [default to undefined]
|
|
11
|
+
**numOptions** | **number** | Number of options linked to this budget. | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BudgetOverviewResponse } from '@cosmotech/aip-client';
|
|
17
|
+
|
|
18
|
+
const instance: BudgetOverviewResponse = {
|
|
19
|
+
annualBudgetCapacity,
|
|
20
|
+
numInvestments,
|
|
21
|
+
numOptions,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# BudgetResponse
|
|
2
|
+
|
|
3
|
+
Schema for Budget responses (includes all fields)
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**annualBudgetCapacity** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**createdAt** | **string** | | [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**id** | **string** | | [default to undefined]
|
|
13
|
+
**name** | **string** | Name of the budget | [default to undefined]
|
|
14
|
+
**ownerName** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**updatedAt** | **string** | | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { BudgetResponse } from '@cosmotech/aip-client';
|
|
21
|
+
|
|
22
|
+
const instance: BudgetResponse = {
|
|
23
|
+
annualBudgetCapacity,
|
|
24
|
+
createdAt,
|
|
25
|
+
description,
|
|
26
|
+
id,
|
|
27
|
+
name,
|
|
28
|
+
ownerName,
|
|
29
|
+
updatedAt,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# BudgetUpdate
|
|
2
|
+
|
|
3
|
+
Schema for partially updating a Budget. Only provided fields will be updated.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**annualBudgetCapacity** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BudgetUpdate } from '@cosmotech/aip-client';
|
|
17
|
+
|
|
18
|
+
const instance: BudgetUpdate = {
|
|
19
|
+
annualBudgetCapacity,
|
|
20
|
+
description,
|
|
21
|
+
name,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/InvestmentApi.md
CHANGED
|
@@ -13,9 +13,11 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
|
|
14
14
|
|[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
|
|
15
15
|
|[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
|
|
16
|
+
|[**getInvestmentsOverview**](#getinvestmentsoverview) | **GET** /investment/overview | Investment overview table|
|
|
16
17
|
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
17
18
|
|[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
|
|
18
19
|
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
20
|
+
|[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
|
|
19
21
|
|[**getPreferredOption**](#getpreferredoption) | **GET** /investment/{investment_id}/preferred_option | Get the preferred option for an investment|
|
|
20
22
|
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
21
23
|
|[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
|
|
@@ -530,6 +532,58 @@ const { status, data } = await apiInstance.getInvestments(
|
|
|
530
532
|
|
|
531
533
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
532
534
|
|
|
535
|
+
# **getInvestmentsOverview**
|
|
536
|
+
> Array<InvestmentOverviewResponse> getInvestmentsOverview()
|
|
537
|
+
|
|
538
|
+
Return a flat overview of all investments. For each investment the preferred option\'s name, start date, cost, duration and NPV (computed by the v_option_npv database view for the given value framework) are included. Investments without a preferred option have null values for those fields.
|
|
539
|
+
|
|
540
|
+
### Example
|
|
541
|
+
|
|
542
|
+
```typescript
|
|
543
|
+
import {
|
|
544
|
+
InvestmentApi,
|
|
545
|
+
Configuration
|
|
546
|
+
} from '@cosmotech/aip-client';
|
|
547
|
+
|
|
548
|
+
const configuration = new Configuration();
|
|
549
|
+
const apiInstance = new InvestmentApi(configuration);
|
|
550
|
+
|
|
551
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
552
|
+
|
|
553
|
+
const { status, data } = await apiInstance.getInvestmentsOverview(
|
|
554
|
+
valueFrameworkId
|
|
555
|
+
);
|
|
556
|
+
```
|
|
557
|
+
|
|
558
|
+
### Parameters
|
|
559
|
+
|
|
560
|
+
|Name | Type | Description | Notes|
|
|
561
|
+
|------------- | ------------- | ------------- | -------------|
|
|
562
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
### Return type
|
|
566
|
+
|
|
567
|
+
**Array<InvestmentOverviewResponse>**
|
|
568
|
+
|
|
569
|
+
### Authorization
|
|
570
|
+
|
|
571
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
572
|
+
|
|
573
|
+
### HTTP request headers
|
|
574
|
+
|
|
575
|
+
- **Content-Type**: Not defined
|
|
576
|
+
- **Accept**: application/json
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
### HTTP response details
|
|
580
|
+
| Status code | Description | Response headers |
|
|
581
|
+
|-------------|-------------|------------------|
|
|
582
|
+
|**200** | Overview list of all investments | - |
|
|
583
|
+
|**404** | Value framework not found | - |
|
|
584
|
+
|
|
585
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
586
|
+
|
|
533
587
|
# **getOptionForInvestment**
|
|
534
588
|
> OptionResponse getOptionForInvestment()
|
|
535
589
|
|
|
@@ -588,7 +642,7 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
588
642
|
# **getOptionKpis**
|
|
589
643
|
> Array<OptionChartKPIsYearly> getOptionKpis()
|
|
590
644
|
|
|
591
|
-
Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
645
|
+
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.
|
|
592
646
|
|
|
593
647
|
### Example
|
|
594
648
|
|
|
@@ -639,7 +693,7 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
639
693
|
| Status code | Description | Response headers |
|
|
640
694
|
|-------------|-------------|------------------|
|
|
641
695
|
|**200** | The requested KPIs | - |
|
|
642
|
-
|**404** | Investment, option
|
|
696
|
+
|**404** | Investment, option, value framework, or phase not found | - |
|
|
643
697
|
|
|
644
698
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
645
699
|
|
|
@@ -701,6 +755,61 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
701
755
|
|
|
702
756
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
703
757
|
|
|
758
|
+
# **getOptionsOverview**
|
|
759
|
+
> Array<OptionOverviewResponse> getOptionsOverview()
|
|
760
|
+
|
|
761
|
+
Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
762
|
+
|
|
763
|
+
### Example
|
|
764
|
+
|
|
765
|
+
```typescript
|
|
766
|
+
import {
|
|
767
|
+
InvestmentApi,
|
|
768
|
+
Configuration
|
|
769
|
+
} from '@cosmotech/aip-client';
|
|
770
|
+
|
|
771
|
+
const configuration = new Configuration();
|
|
772
|
+
const apiInstance = new InvestmentApi(configuration);
|
|
773
|
+
|
|
774
|
+
let investmentId: string; //UUID of the investment (default to undefined)
|
|
775
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
776
|
+
|
|
777
|
+
const { status, data } = await apiInstance.getOptionsOverview(
|
|
778
|
+
investmentId,
|
|
779
|
+
valueFrameworkId
|
|
780
|
+
);
|
|
781
|
+
```
|
|
782
|
+
|
|
783
|
+
### Parameters
|
|
784
|
+
|
|
785
|
+
|Name | Type | Description | Notes|
|
|
786
|
+
|------------- | ------------- | ------------- | -------------|
|
|
787
|
+
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
788
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
### Return type
|
|
792
|
+
|
|
793
|
+
**Array<OptionOverviewResponse>**
|
|
794
|
+
|
|
795
|
+
### Authorization
|
|
796
|
+
|
|
797
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
798
|
+
|
|
799
|
+
### HTTP request headers
|
|
800
|
+
|
|
801
|
+
- **Content-Type**: Not defined
|
|
802
|
+
- **Accept**: application/json
|
|
803
|
+
|
|
804
|
+
|
|
805
|
+
### HTTP response details
|
|
806
|
+
| Status code | Description | Response headers |
|
|
807
|
+
|-------------|-------------|------------------|
|
|
808
|
+
|**200** | Overview list of all options for the investment | - |
|
|
809
|
+
|**404** | Investment or value framework not found | - |
|
|
810
|
+
|
|
811
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
812
|
+
|
|
704
813
|
# **getPreferredOption**
|
|
705
814
|
> PreferredOptionResponse getPreferredOption()
|
|
706
815
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# InvestmentOverviewResponse
|
|
2
|
+
|
|
3
|
+
Schema for the investment overview table — one row per investment.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**investmentId** | **string** | ID of the investment | [default to undefined]
|
|
10
|
+
**investmentName** | **string** | Name of the investment | [default to undefined]
|
|
11
|
+
**preferredOptionCost** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**preferredOptionDuration** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**preferredOptionName** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**preferredOptionNpv** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**preferredOptionStartDate** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { InvestmentOverviewResponse } from '@cosmotech/aip-client';
|
|
21
|
+
|
|
22
|
+
const instance: InvestmentOverviewResponse = {
|
|
23
|
+
investmentId,
|
|
24
|
+
investmentName,
|
|
25
|
+
preferredOptionCost,
|
|
26
|
+
preferredOptionDuration,
|
|
27
|
+
preferredOptionName,
|
|
28
|
+
preferredOptionNpv,
|
|
29
|
+
preferredOptionStartDate,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/OptionApi.md
CHANGED
|
@@ -13,6 +13,7 @@ All URIs are relative to *http://localhost*
|
|
|
13
13
|
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
14
14
|
|[**getOptionKpis**](#getoptionkpis) | **GET** /investment/{investment_id}/option/{option_id}/kpis/{value_framework_id} | Get the kpis for a given option inside a value framework|
|
|
15
15
|
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
16
|
+
|[**getOptionsOverview**](#getoptionsoverview) | **GET** /investment/{investment_id}/option/overview | Option overview table for this investment|
|
|
16
17
|
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
17
18
|
|[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
|
|
18
19
|
|
|
@@ -423,7 +424,7 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
423
424
|
# **getOptionKpis**
|
|
424
425
|
> Array<OptionChartKPIsYearly> getOptionKpis()
|
|
425
426
|
|
|
426
|
-
Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
427
|
+
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.
|
|
427
428
|
|
|
428
429
|
### Example
|
|
429
430
|
|
|
@@ -474,7 +475,7 @@ const { status, data } = await apiInstance.getOptionKpis(
|
|
|
474
475
|
| Status code | Description | Response headers |
|
|
475
476
|
|-------------|-------------|------------------|
|
|
476
477
|
|**200** | The requested KPIs | - |
|
|
477
|
-
|**404** | Investment, option
|
|
478
|
+
|**404** | Investment, option, value framework, or phase not found | - |
|
|
478
479
|
|
|
479
480
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
480
481
|
|
|
@@ -536,6 +537,61 @@ const { status, data } = await apiInstance.getOptionsForInvestment(
|
|
|
536
537
|
|
|
537
538
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
538
539
|
|
|
540
|
+
# **getOptionsOverview**
|
|
541
|
+
> Array<OptionOverviewResponse> getOptionsOverview()
|
|
542
|
+
|
|
543
|
+
Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
544
|
+
|
|
545
|
+
### Example
|
|
546
|
+
|
|
547
|
+
```typescript
|
|
548
|
+
import {
|
|
549
|
+
OptionApi,
|
|
550
|
+
Configuration
|
|
551
|
+
} from '@cosmotech/aip-client';
|
|
552
|
+
|
|
553
|
+
const configuration = new Configuration();
|
|
554
|
+
const apiInstance = new OptionApi(configuration);
|
|
555
|
+
|
|
556
|
+
let investmentId: string; //UUID of the investment (default to undefined)
|
|
557
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
558
|
+
|
|
559
|
+
const { status, data } = await apiInstance.getOptionsOverview(
|
|
560
|
+
investmentId,
|
|
561
|
+
valueFrameworkId
|
|
562
|
+
);
|
|
563
|
+
```
|
|
564
|
+
|
|
565
|
+
### Parameters
|
|
566
|
+
|
|
567
|
+
|Name | Type | Description | Notes|
|
|
568
|
+
|------------- | ------------- | ------------- | -------------|
|
|
569
|
+
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
570
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
### Return type
|
|
574
|
+
|
|
575
|
+
**Array<OptionOverviewResponse>**
|
|
576
|
+
|
|
577
|
+
### Authorization
|
|
578
|
+
|
|
579
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
580
|
+
|
|
581
|
+
### HTTP request headers
|
|
582
|
+
|
|
583
|
+
- **Content-Type**: Not defined
|
|
584
|
+
- **Accept**: application/json
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
### HTTP response details
|
|
588
|
+
| Status code | Description | Response headers |
|
|
589
|
+
|-------------|-------------|------------------|
|
|
590
|
+
|**200** | Overview list of all options for the investment | - |
|
|
591
|
+
|**404** | Investment or value framework not found | - |
|
|
592
|
+
|
|
593
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
594
|
+
|
|
539
595
|
# **patchImpactForOption**
|
|
540
596
|
> ImpactAPIResponse patchImpactForOption(impactUpdate)
|
|
541
597
|
|
package/docs/OptionCreate.md
CHANGED
|
@@ -6,6 +6,7 @@ Schema for creating a new Option (excludes auto-generated fields)
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**budgetId** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**cost** | **number** | Cost of the option | [optional] [default to 0.0]
|
|
10
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**duration** | **number** | Duration of the option in weeks | [optional] [default to 1]
|
|
@@ -18,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
18
19
|
import { OptionCreate } from '@cosmotech/aip-client';
|
|
19
20
|
|
|
20
21
|
const instance: OptionCreate = {
|
|
22
|
+
budgetId,
|
|
21
23
|
cost,
|
|
22
24
|
description,
|
|
23
25
|
duration,
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# OptionOverviewResponse
|
|
2
|
+
|
|
3
|
+
Schema for the option overview table — one row per option within an investment.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**budgetName** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**cost** | **number** | Cost of the option | [default to undefined]
|
|
11
|
+
**duration** | **number** | Duration of the option in weeks | [default to undefined]
|
|
12
|
+
**npv** | **number** | | [optional] [default to undefined]
|
|
13
|
+
**optionId** | **string** | ID of the option | [default to undefined]
|
|
14
|
+
**optionName** | **string** | Name of the option | [default to undefined]
|
|
15
|
+
**startDate** | **string** | Expected start date of the option (ISO 8601) | [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { OptionOverviewResponse } from '@cosmotech/aip-client';
|
|
21
|
+
|
|
22
|
+
const instance: OptionOverviewResponse = {
|
|
23
|
+
budgetName,
|
|
24
|
+
cost,
|
|
25
|
+
duration,
|
|
26
|
+
npv,
|
|
27
|
+
optionId,
|
|
28
|
+
optionName,
|
|
29
|
+
startDate,
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/OptionResponse.md
CHANGED
|
@@ -6,6 +6,7 @@ Schema for Option responses (includes all fields)
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**budgetId** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**cost** | **number** | | [default to undefined]
|
|
10
11
|
**createdAt** | **string** | | [default to undefined]
|
|
11
12
|
**description** | **string** | | [optional] [default to undefined]
|
|
@@ -23,6 +24,7 @@ Name | Type | Description | Notes
|
|
|
23
24
|
import { OptionResponse } from '@cosmotech/aip-client';
|
|
24
25
|
|
|
25
26
|
const instance: OptionResponse = {
|
|
27
|
+
budgetId,
|
|
26
28
|
cost,
|
|
27
29
|
createdAt,
|
|
28
30
|
description,
|
package/docs/OptionUpdate.md
CHANGED
|
@@ -6,6 +6,7 @@ Schema for partially updating an Option. Only provided fields will be updated.
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**budgetId** | **string** | | [optional] [default to undefined]
|
|
9
10
|
**cost** | **number** | | [optional] [default to undefined]
|
|
10
11
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
12
|
**duration** | **number** | | [optional] [default to undefined]
|
|
@@ -18,6 +19,7 @@ Name | Type | Description | Notes
|
|
|
18
19
|
import { OptionUpdate } from '@cosmotech/aip-client';
|
|
19
20
|
|
|
20
21
|
const instance: OptionUpdate = {
|
|
22
|
+
budgetId,
|
|
21
23
|
cost,
|
|
22
24
|
description,
|
|
23
25
|
duration,
|
package/index.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.3.0-dev1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Request body for bulk-deleting budgets.
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetBulkDeleteRequest {
|
|
21
|
+
/**
|
|
22
|
+
* List of budget IDs to delete
|
|
23
|
+
*/
|
|
24
|
+
'budget_ids': Array<string>;
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Schema for creating a new Budget (excludes auto-generated fields)
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetCreate {
|
|
21
|
+
'annual_budget_capacity'?: number | null;
|
|
22
|
+
'description'?: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* Name of the budget
|
|
25
|
+
*/
|
|
26
|
+
'name': string;
|
|
27
|
+
}
|
|
28
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Schema for one row in the \'Investments with options using budget\' tab.
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetInvestmentResponse {
|
|
21
|
+
'cost'?: number | null;
|
|
22
|
+
'duration'?: number | null;
|
|
23
|
+
'investment_description'?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the investment
|
|
26
|
+
*/
|
|
27
|
+
'investment_id': string;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the investment
|
|
30
|
+
*/
|
|
31
|
+
'investment_name': string;
|
|
32
|
+
'npv'?: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* True if the preferred option is the one linked to this budget. False triggers a warning: preferred option is NOT the budget-linked one.
|
|
35
|
+
*/
|
|
36
|
+
'preferred_option_linked_to_budget': boolean;
|
|
37
|
+
'preferred_option_name'?: string | null;
|
|
38
|
+
'start_date'?: string | null;
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Request body for bulk-linking options to a budget.
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetLinkOptionsRequest {
|
|
21
|
+
/**
|
|
22
|
+
* List of option IDs to link to this budget
|
|
23
|
+
*/
|
|
24
|
+
'option_ids': Array<string>;
|
|
25
|
+
}
|
|
26
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Schema for one row in the \'Options using budget\' tab on the budget detail page.
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetOptionResponse {
|
|
21
|
+
/**
|
|
22
|
+
* Total investment cost of the option
|
|
23
|
+
*/
|
|
24
|
+
'cost': number;
|
|
25
|
+
/**
|
|
26
|
+
* Total duration of the option in weeks
|
|
27
|
+
*/
|
|
28
|
+
'duration': number;
|
|
29
|
+
/**
|
|
30
|
+
* ID of the parent investment
|
|
31
|
+
*/
|
|
32
|
+
'investment_id': string;
|
|
33
|
+
/**
|
|
34
|
+
* Name of the parent investment
|
|
35
|
+
*/
|
|
36
|
+
'investment_name': string;
|
|
37
|
+
/**
|
|
38
|
+
* True if this option is the preferred option of its investment
|
|
39
|
+
*/
|
|
40
|
+
'is_preferred': boolean;
|
|
41
|
+
'npv'?: number | null;
|
|
42
|
+
'option_description'?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the option
|
|
45
|
+
*/
|
|
46
|
+
'option_id': string;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the option
|
|
49
|
+
*/
|
|
50
|
+
'option_name': string;
|
|
51
|
+
/**
|
|
52
|
+
* Expected start date of the option (ISO 8601)
|
|
53
|
+
*/
|
|
54
|
+
'start_date': string;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Schema for the budget overview — aggregated counts and capacity.
|
|
19
|
+
*/
|
|
20
|
+
export interface BudgetOverviewResponse {
|
|
21
|
+
'annual_budget_capacity'?: number | null;
|
|
22
|
+
/**
|
|
23
|
+
* Number of investments that have at least one option linked to this budget.
|
|
24
|
+
*/
|
|
25
|
+
'num_investments': number;
|
|
26
|
+
/**
|
|
27
|
+
* Number of options linked to this budget.
|
|
28
|
+
*/
|
|
29
|
+
'num_options': number;
|
|
30
|
+
}
|
|
31
|
+
|