@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,559 @@
|
|
|
1
|
+
# BudgetApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**bulkDeleteBudgets**](#bulkdeletebudgets) | **DELETE** /budget/bulk | Bulk delete budgets|
|
|
8
|
+
|[**deleteBudget**](#deletebudget) | **DELETE** /budget/{budget_id} | Delete a budget|
|
|
9
|
+
|[**getBudgetById**](#getbudgetbyid) | **GET** /budget/{budget_id} | Get a budget by ID|
|
|
10
|
+
|[**getBudgetInvestments**](#getbudgetinvestments) | **GET** /budget/{budget_id}/investments | List investments linked to this budget via options|
|
|
11
|
+
|[**getBudgetOptions**](#getbudgetoptions) | **GET** /budget/{budget_id}/options | List options linked to this budget|
|
|
12
|
+
|[**getBudgetOverview**](#getbudgetoverview) | **GET** /budget/{budget_id}/overview | Get budget overview|
|
|
13
|
+
|[**getBudgets**](#getbudgets) | **GET** /budget/ | List all budgets|
|
|
14
|
+
|[**linkOptionsToBudget**](#linkoptionstobudget) | **POST** /budget/{budget_id}/link-options | Bulk-link options to this budget|
|
|
15
|
+
|[**patchBudget**](#patchbudget) | **PATCH** /budget/{budget_id} | Partially update a budget|
|
|
16
|
+
|[**postBudget**](#postbudget) | **POST** /budget/ | Create a budget|
|
|
17
|
+
|
|
18
|
+
# **bulkDeleteBudgets**
|
|
19
|
+
> bulkDeleteBudgets(budgetBulkDeleteRequest)
|
|
20
|
+
|
|
21
|
+
Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
|
|
22
|
+
|
|
23
|
+
### Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import {
|
|
27
|
+
BudgetApi,
|
|
28
|
+
Configuration,
|
|
29
|
+
BudgetBulkDeleteRequest
|
|
30
|
+
} from '@cosmotech/aip-client';
|
|
31
|
+
|
|
32
|
+
const configuration = new Configuration();
|
|
33
|
+
const apiInstance = new BudgetApi(configuration);
|
|
34
|
+
|
|
35
|
+
let budgetBulkDeleteRequest: BudgetBulkDeleteRequest; //
|
|
36
|
+
|
|
37
|
+
const { status, data } = await apiInstance.bulkDeleteBudgets(
|
|
38
|
+
budgetBulkDeleteRequest
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|Name | Type | Description | Notes|
|
|
45
|
+
|------------- | ------------- | ------------- | -------------|
|
|
46
|
+
| **budgetBulkDeleteRequest** | **BudgetBulkDeleteRequest**| | |
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Return type
|
|
50
|
+
|
|
51
|
+
void (empty response body)
|
|
52
|
+
|
|
53
|
+
### Authorization
|
|
54
|
+
|
|
55
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
56
|
+
|
|
57
|
+
### HTTP request headers
|
|
58
|
+
|
|
59
|
+
- **Content-Type**: application/json
|
|
60
|
+
- **Accept**: Not defined
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### HTTP response details
|
|
64
|
+
| Status code | Description | Response headers |
|
|
65
|
+
|-------------|-------------|------------------|
|
|
66
|
+
|**204** | Budgets successfully deleted | - |
|
|
67
|
+
|**400** | Invalid request body | - |
|
|
68
|
+
|
|
69
|
+
[[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)
|
|
70
|
+
|
|
71
|
+
# **deleteBudget**
|
|
72
|
+
> deleteBudget()
|
|
73
|
+
|
|
74
|
+
Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
|
|
75
|
+
|
|
76
|
+
### Example
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
import {
|
|
80
|
+
BudgetApi,
|
|
81
|
+
Configuration
|
|
82
|
+
} from '@cosmotech/aip-client';
|
|
83
|
+
|
|
84
|
+
const configuration = new Configuration();
|
|
85
|
+
const apiInstance = new BudgetApi(configuration);
|
|
86
|
+
|
|
87
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
88
|
+
|
|
89
|
+
const { status, data } = await apiInstance.deleteBudget(
|
|
90
|
+
budgetId
|
|
91
|
+
);
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Parameters
|
|
95
|
+
|
|
96
|
+
|Name | Type | Description | Notes|
|
|
97
|
+
|------------- | ------------- | ------------- | -------------|
|
|
98
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Return type
|
|
102
|
+
|
|
103
|
+
void (empty response body)
|
|
104
|
+
|
|
105
|
+
### Authorization
|
|
106
|
+
|
|
107
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
108
|
+
|
|
109
|
+
### HTTP request headers
|
|
110
|
+
|
|
111
|
+
- **Content-Type**: Not defined
|
|
112
|
+
- **Accept**: Not defined
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### HTTP response details
|
|
116
|
+
| Status code | Description | Response headers |
|
|
117
|
+
|-------------|-------------|------------------|
|
|
118
|
+
|**204** | Budget successfully deleted | - |
|
|
119
|
+
|**404** | Budget not found | - |
|
|
120
|
+
|
|
121
|
+
[[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)
|
|
122
|
+
|
|
123
|
+
# **getBudgetById**
|
|
124
|
+
> BudgetResponse getBudgetById()
|
|
125
|
+
|
|
126
|
+
Retrieve a single budget by its ID.
|
|
127
|
+
|
|
128
|
+
### Example
|
|
129
|
+
|
|
130
|
+
```typescript
|
|
131
|
+
import {
|
|
132
|
+
BudgetApi,
|
|
133
|
+
Configuration
|
|
134
|
+
} from '@cosmotech/aip-client';
|
|
135
|
+
|
|
136
|
+
const configuration = new Configuration();
|
|
137
|
+
const apiInstance = new BudgetApi(configuration);
|
|
138
|
+
|
|
139
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
140
|
+
|
|
141
|
+
const { status, data } = await apiInstance.getBudgetById(
|
|
142
|
+
budgetId
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### Parameters
|
|
147
|
+
|
|
148
|
+
|Name | Type | Description | Notes|
|
|
149
|
+
|------------- | ------------- | ------------- | -------------|
|
|
150
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
**BudgetResponse**
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: Not defined
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### HTTP response details
|
|
168
|
+
| Status code | Description | Response headers |
|
|
169
|
+
|-------------|-------------|------------------|
|
|
170
|
+
|**200** | The requested budget | - |
|
|
171
|
+
|**404** | Budget not found | - |
|
|
172
|
+
|
|
173
|
+
[[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)
|
|
174
|
+
|
|
175
|
+
# **getBudgetInvestments**
|
|
176
|
+
> Array<BudgetInvestmentResponse> getBudgetInvestments()
|
|
177
|
+
|
|
178
|
+
Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
179
|
+
|
|
180
|
+
### Example
|
|
181
|
+
|
|
182
|
+
```typescript
|
|
183
|
+
import {
|
|
184
|
+
BudgetApi,
|
|
185
|
+
Configuration
|
|
186
|
+
} from '@cosmotech/aip-client';
|
|
187
|
+
|
|
188
|
+
const configuration = new Configuration();
|
|
189
|
+
const apiInstance = new BudgetApi(configuration);
|
|
190
|
+
|
|
191
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
192
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
193
|
+
|
|
194
|
+
const { status, data } = await apiInstance.getBudgetInvestments(
|
|
195
|
+
budgetId,
|
|
196
|
+
valueFrameworkId
|
|
197
|
+
);
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
### Parameters
|
|
201
|
+
|
|
202
|
+
|Name | Type | Description | Notes|
|
|
203
|
+
|------------- | ------------- | ------------- | -------------|
|
|
204
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
205
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
### Return type
|
|
209
|
+
|
|
210
|
+
**Array<BudgetInvestmentResponse>**
|
|
211
|
+
|
|
212
|
+
### Authorization
|
|
213
|
+
|
|
214
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
215
|
+
|
|
216
|
+
### HTTP request headers
|
|
217
|
+
|
|
218
|
+
- **Content-Type**: Not defined
|
|
219
|
+
- **Accept**: application/json
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
### HTTP response details
|
|
223
|
+
| Status code | Description | Response headers |
|
|
224
|
+
|-------------|-------------|------------------|
|
|
225
|
+
|**200** | Investments linked to this budget | - |
|
|
226
|
+
|**404** | Budget or value framework not found | - |
|
|
227
|
+
|
|
228
|
+
[[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)
|
|
229
|
+
|
|
230
|
+
# **getBudgetOptions**
|
|
231
|
+
> Array<BudgetOptionResponse> getBudgetOptions()
|
|
232
|
+
|
|
233
|
+
Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
234
|
+
|
|
235
|
+
### Example
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
import {
|
|
239
|
+
BudgetApi,
|
|
240
|
+
Configuration
|
|
241
|
+
} from '@cosmotech/aip-client';
|
|
242
|
+
|
|
243
|
+
const configuration = new Configuration();
|
|
244
|
+
const apiInstance = new BudgetApi(configuration);
|
|
245
|
+
|
|
246
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
247
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
248
|
+
|
|
249
|
+
const { status, data } = await apiInstance.getBudgetOptions(
|
|
250
|
+
budgetId,
|
|
251
|
+
valueFrameworkId
|
|
252
|
+
);
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
### Parameters
|
|
256
|
+
|
|
257
|
+
|Name | Type | Description | Notes|
|
|
258
|
+
|------------- | ------------- | ------------- | -------------|
|
|
259
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
260
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
### Return type
|
|
264
|
+
|
|
265
|
+
**Array<BudgetOptionResponse>**
|
|
266
|
+
|
|
267
|
+
### Authorization
|
|
268
|
+
|
|
269
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
270
|
+
|
|
271
|
+
### HTTP request headers
|
|
272
|
+
|
|
273
|
+
- **Content-Type**: Not defined
|
|
274
|
+
- **Accept**: application/json
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
### HTTP response details
|
|
278
|
+
| Status code | Description | Response headers |
|
|
279
|
+
|-------------|-------------|------------------|
|
|
280
|
+
|**200** | Options linked to this budget | - |
|
|
281
|
+
|**404** | Budget or value framework not found | - |
|
|
282
|
+
|
|
283
|
+
[[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)
|
|
284
|
+
|
|
285
|
+
# **getBudgetOverview**
|
|
286
|
+
> BudgetOverviewResponse getBudgetOverview()
|
|
287
|
+
|
|
288
|
+
Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
|
|
289
|
+
|
|
290
|
+
### Example
|
|
291
|
+
|
|
292
|
+
```typescript
|
|
293
|
+
import {
|
|
294
|
+
BudgetApi,
|
|
295
|
+
Configuration
|
|
296
|
+
} from '@cosmotech/aip-client';
|
|
297
|
+
|
|
298
|
+
const configuration = new Configuration();
|
|
299
|
+
const apiInstance = new BudgetApi(configuration);
|
|
300
|
+
|
|
301
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
302
|
+
|
|
303
|
+
const { status, data } = await apiInstance.getBudgetOverview(
|
|
304
|
+
budgetId
|
|
305
|
+
);
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Parameters
|
|
309
|
+
|
|
310
|
+
|Name | Type | Description | Notes|
|
|
311
|
+
|------------- | ------------- | ------------- | -------------|
|
|
312
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
### Return type
|
|
316
|
+
|
|
317
|
+
**BudgetOverviewResponse**
|
|
318
|
+
|
|
319
|
+
### Authorization
|
|
320
|
+
|
|
321
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
322
|
+
|
|
323
|
+
### HTTP request headers
|
|
324
|
+
|
|
325
|
+
- **Content-Type**: Not defined
|
|
326
|
+
- **Accept**: application/json
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
### HTTP response details
|
|
330
|
+
| Status code | Description | Response headers |
|
|
331
|
+
|-------------|-------------|------------------|
|
|
332
|
+
|**200** | Budget overview | - |
|
|
333
|
+
|**404** | Budget not found | - |
|
|
334
|
+
|
|
335
|
+
[[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)
|
|
336
|
+
|
|
337
|
+
# **getBudgets**
|
|
338
|
+
> Array<BudgetResponse> getBudgets()
|
|
339
|
+
|
|
340
|
+
Retrieve a paginated list of all budgets, ordered by name.
|
|
341
|
+
|
|
342
|
+
### Example
|
|
343
|
+
|
|
344
|
+
```typescript
|
|
345
|
+
import {
|
|
346
|
+
BudgetApi,
|
|
347
|
+
Configuration
|
|
348
|
+
} from '@cosmotech/aip-client';
|
|
349
|
+
|
|
350
|
+
const configuration = new Configuration();
|
|
351
|
+
const apiInstance = new BudgetApi(configuration);
|
|
352
|
+
|
|
353
|
+
let offset: number; //Number of records to skip (optional) (default to 0)
|
|
354
|
+
let limit: number; //Max number of records to return (optional) (default to 100)
|
|
355
|
+
|
|
356
|
+
const { status, data } = await apiInstance.getBudgets(
|
|
357
|
+
offset,
|
|
358
|
+
limit
|
|
359
|
+
);
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
### Parameters
|
|
363
|
+
|
|
364
|
+
|Name | Type | Description | Notes|
|
|
365
|
+
|------------- | ------------- | ------------- | -------------|
|
|
366
|
+
| **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
|
|
367
|
+
| **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
### Return type
|
|
371
|
+
|
|
372
|
+
**Array<BudgetResponse>**
|
|
373
|
+
|
|
374
|
+
### Authorization
|
|
375
|
+
|
|
376
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
377
|
+
|
|
378
|
+
### HTTP request headers
|
|
379
|
+
|
|
380
|
+
- **Content-Type**: Not defined
|
|
381
|
+
- **Accept**: application/json
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
### HTTP response details
|
|
385
|
+
| Status code | Description | Response headers |
|
|
386
|
+
|-------------|-------------|------------------|
|
|
387
|
+
|**200** | List of budgets | - |
|
|
388
|
+
|
|
389
|
+
[[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)
|
|
390
|
+
|
|
391
|
+
# **linkOptionsToBudget**
|
|
392
|
+
> Array<string> linkOptionsToBudget(budgetLinkOptionsRequest)
|
|
393
|
+
|
|
394
|
+
Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
395
|
+
|
|
396
|
+
### Example
|
|
397
|
+
|
|
398
|
+
```typescript
|
|
399
|
+
import {
|
|
400
|
+
BudgetApi,
|
|
401
|
+
Configuration,
|
|
402
|
+
BudgetLinkOptionsRequest
|
|
403
|
+
} from '@cosmotech/aip-client';
|
|
404
|
+
|
|
405
|
+
const configuration = new Configuration();
|
|
406
|
+
const apiInstance = new BudgetApi(configuration);
|
|
407
|
+
|
|
408
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
409
|
+
let budgetLinkOptionsRequest: BudgetLinkOptionsRequest; //
|
|
410
|
+
|
|
411
|
+
const { status, data } = await apiInstance.linkOptionsToBudget(
|
|
412
|
+
budgetId,
|
|
413
|
+
budgetLinkOptionsRequest
|
|
414
|
+
);
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
### Parameters
|
|
418
|
+
|
|
419
|
+
|Name | Type | Description | Notes|
|
|
420
|
+
|------------- | ------------- | ------------- | -------------|
|
|
421
|
+
| **budgetLinkOptionsRequest** | **BudgetLinkOptionsRequest**| | |
|
|
422
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
### Return type
|
|
426
|
+
|
|
427
|
+
**Array<string>**
|
|
428
|
+
|
|
429
|
+
### Authorization
|
|
430
|
+
|
|
431
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
432
|
+
|
|
433
|
+
### HTTP request headers
|
|
434
|
+
|
|
435
|
+
- **Content-Type**: application/json
|
|
436
|
+
- **Accept**: application/json
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
### HTTP response details
|
|
440
|
+
| Status code | Description | Response headers |
|
|
441
|
+
|-------------|-------------|------------------|
|
|
442
|
+
|**200** | Options linked successfully — returns list of linked option IDs | - |
|
|
443
|
+
|**400** | One or more option IDs not found | - |
|
|
444
|
+
|**404** | Budget not found | - |
|
|
445
|
+
|
|
446
|
+
[[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)
|
|
447
|
+
|
|
448
|
+
# **patchBudget**
|
|
449
|
+
> BudgetResponse patchBudget(budgetUpdate)
|
|
450
|
+
|
|
451
|
+
Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
452
|
+
|
|
453
|
+
### Example
|
|
454
|
+
|
|
455
|
+
```typescript
|
|
456
|
+
import {
|
|
457
|
+
BudgetApi,
|
|
458
|
+
Configuration,
|
|
459
|
+
BudgetUpdate
|
|
460
|
+
} from '@cosmotech/aip-client';
|
|
461
|
+
|
|
462
|
+
const configuration = new Configuration();
|
|
463
|
+
const apiInstance = new BudgetApi(configuration);
|
|
464
|
+
|
|
465
|
+
let budgetId: string; //UUID of the budget (default to undefined)
|
|
466
|
+
let budgetUpdate: BudgetUpdate; //
|
|
467
|
+
|
|
468
|
+
const { status, data } = await apiInstance.patchBudget(
|
|
469
|
+
budgetId,
|
|
470
|
+
budgetUpdate
|
|
471
|
+
);
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
### Parameters
|
|
475
|
+
|
|
476
|
+
|Name | Type | Description | Notes|
|
|
477
|
+
|------------- | ------------- | ------------- | -------------|
|
|
478
|
+
| **budgetUpdate** | **BudgetUpdate**| | |
|
|
479
|
+
| **budgetId** | [**string**] | UUID of the budget | defaults to undefined|
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
### Return type
|
|
483
|
+
|
|
484
|
+
**BudgetResponse**
|
|
485
|
+
|
|
486
|
+
### Authorization
|
|
487
|
+
|
|
488
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
489
|
+
|
|
490
|
+
### HTTP request headers
|
|
491
|
+
|
|
492
|
+
- **Content-Type**: application/json
|
|
493
|
+
- **Accept**: application/json
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
### HTTP response details
|
|
497
|
+
| Status code | Description | Response headers |
|
|
498
|
+
|-------------|-------------|------------------|
|
|
499
|
+
|**200** | Budget updated successfully | - |
|
|
500
|
+
|**400** | Validation or constraint error | - |
|
|
501
|
+
|**404** | Budget not found | - |
|
|
502
|
+
|**409** | A budget with this name already exists | - |
|
|
503
|
+
|
|
504
|
+
[[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)
|
|
505
|
+
|
|
506
|
+
# **postBudget**
|
|
507
|
+
> BudgetResponse postBudget(budgetCreate)
|
|
508
|
+
|
|
509
|
+
Create a new budget.
|
|
510
|
+
|
|
511
|
+
### Example
|
|
512
|
+
|
|
513
|
+
```typescript
|
|
514
|
+
import {
|
|
515
|
+
BudgetApi,
|
|
516
|
+
Configuration,
|
|
517
|
+
BudgetCreate
|
|
518
|
+
} from '@cosmotech/aip-client';
|
|
519
|
+
|
|
520
|
+
const configuration = new Configuration();
|
|
521
|
+
const apiInstance = new BudgetApi(configuration);
|
|
522
|
+
|
|
523
|
+
let budgetCreate: BudgetCreate; //
|
|
524
|
+
|
|
525
|
+
const { status, data } = await apiInstance.postBudget(
|
|
526
|
+
budgetCreate
|
|
527
|
+
);
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### Parameters
|
|
531
|
+
|
|
532
|
+
|Name | Type | Description | Notes|
|
|
533
|
+
|------------- | ------------- | ------------- | -------------|
|
|
534
|
+
| **budgetCreate** | **BudgetCreate**| | |
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
### Return type
|
|
538
|
+
|
|
539
|
+
**BudgetResponse**
|
|
540
|
+
|
|
541
|
+
### Authorization
|
|
542
|
+
|
|
543
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
544
|
+
|
|
545
|
+
### HTTP request headers
|
|
546
|
+
|
|
547
|
+
- **Content-Type**: application/json
|
|
548
|
+
- **Accept**: application/json
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
### HTTP response details
|
|
552
|
+
| Status code | Description | Response headers |
|
|
553
|
+
|-------------|-------------|------------------|
|
|
554
|
+
|**201** | Budget created successfully | - |
|
|
555
|
+
|**400** | Invalid input or constraint violation | - |
|
|
556
|
+
|**409** | A budget with this name already exists | - |
|
|
557
|
+
|
|
558
|
+
[[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)
|
|
559
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# BudgetBulkDeleteRequest
|
|
2
|
+
|
|
3
|
+
Request body for bulk-deleting budgets.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**budgetIds** | **Array<string>** | List of budget IDs to delete | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BudgetBulkDeleteRequest } from '@cosmotech/aip-client';
|
|
15
|
+
|
|
16
|
+
const instance: BudgetBulkDeleteRequest = {
|
|
17
|
+
budgetIds,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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
|
+
# BudgetCreate
|
|
2
|
+
|
|
3
|
+
Schema for creating a new Budget (excludes auto-generated fields)
|
|
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** | Name of the budget | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { BudgetCreate } from '@cosmotech/aip-client';
|
|
17
|
+
|
|
18
|
+
const instance: BudgetCreate = {
|
|
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)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# BudgetInvestmentResponse
|
|
2
|
+
|
|
3
|
+
Schema for one row in the \'Investments with options using budget\' tab.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**cost** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**duration** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**investmentDescription** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**investmentId** | **string** | ID of the investment | [default to undefined]
|
|
13
|
+
**investmentName** | **string** | Name of the investment | [default to undefined]
|
|
14
|
+
**npv** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**preferredOptionLinkedToBudget** | **boolean** | True if the preferred option is the one linked to this budget. False triggers a warning: preferred option is NOT the budget-linked one. | [default to undefined]
|
|
16
|
+
**preferredOptionName** | **string** | | [optional] [default to undefined]
|
|
17
|
+
**startDate** | **string** | | [optional] [default to undefined]
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { BudgetInvestmentResponse } from '@cosmotech/aip-client';
|
|
23
|
+
|
|
24
|
+
const instance: BudgetInvestmentResponse = {
|
|
25
|
+
cost,
|
|
26
|
+
duration,
|
|
27
|
+
investmentDescription,
|
|
28
|
+
investmentId,
|
|
29
|
+
investmentName,
|
|
30
|
+
npv,
|
|
31
|
+
preferredOptionLinkedToBudget,
|
|
32
|
+
preferredOptionName,
|
|
33
|
+
startDate,
|
|
34
|
+
};
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[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,21 @@
|
|
|
1
|
+
# BudgetLinkOptionsRequest
|
|
2
|
+
|
|
3
|
+
Request body for bulk-linking options to a budget.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**optionIds** | **Array<string>** | List of option IDs to link to this budget | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { BudgetLinkOptionsRequest } from '@cosmotech/aip-client';
|
|
15
|
+
|
|
16
|
+
const instance: BudgetLinkOptionsRequest = {
|
|
17
|
+
optionIds,
|
|
18
|
+
};
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
[[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,39 @@
|
|
|
1
|
+
# BudgetOptionResponse
|
|
2
|
+
|
|
3
|
+
Schema for one row in the \'Options using budget\' tab on the budget detail page.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**cost** | **number** | Total investment cost of the option | [default to undefined]
|
|
10
|
+
**duration** | **number** | Total duration of the option in weeks | [default to undefined]
|
|
11
|
+
**investmentId** | **string** | ID of the parent investment | [default to undefined]
|
|
12
|
+
**investmentName** | **string** | Name of the parent investment | [default to undefined]
|
|
13
|
+
**isPreferred** | **boolean** | True if this option is the preferred option of its investment | [default to undefined]
|
|
14
|
+
**npv** | **number** | | [optional] [default to undefined]
|
|
15
|
+
**optionDescription** | **string** | | [optional] [default to undefined]
|
|
16
|
+
**optionId** | **string** | ID of the option | [default to undefined]
|
|
17
|
+
**optionName** | **string** | Name of the option | [default to undefined]
|
|
18
|
+
**startDate** | **string** | Expected start date of the option (ISO 8601) | [default to undefined]
|
|
19
|
+
|
|
20
|
+
## Example
|
|
21
|
+
|
|
22
|
+
```typescript
|
|
23
|
+
import { BudgetOptionResponse } from '@cosmotech/aip-client';
|
|
24
|
+
|
|
25
|
+
const instance: BudgetOptionResponse = {
|
|
26
|
+
cost,
|
|
27
|
+
duration,
|
|
28
|
+
investmentId,
|
|
29
|
+
investmentName,
|
|
30
|
+
isPreferred,
|
|
31
|
+
npv,
|
|
32
|
+
optionDescription,
|
|
33
|
+
optionId,
|
|
34
|
+
optionName,
|
|
35
|
+
startDate,
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|