@cosmotech/aip-client 0.2.0-dev4 → 0.2.0-dev5
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 +6 -2
- package/api/investment-api.ts +88 -0
- package/api/option-api.ts +88 -0
- package/dist/api/investment-api.d.ts +41 -0
- package/dist/api/investment-api.js +83 -0
- package/dist/api/option-api.d.ts +41 -0
- package/dist/api/option-api.js +83 -0
- package/dist/esm/api/investment-api.d.ts +41 -0
- package/dist/esm/api/investment-api.js +83 -0
- package/dist/esm/api/option-api.d.ts +41 -0
- package/dist/esm/api/option-api.js +83 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/option-chart-kpi.d.ts +29 -0
- package/dist/esm/models/option-chart-kpi.js +14 -0
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/option-chart-kpi.d.ts +29 -0
- package/dist/models/option-chart-kpi.js +15 -0
- package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/models/option-chart-kpis-yearly.js +15 -0
- package/dist/models/option-create.d.ts +1 -1
- package/docs/InvestmentApi.md +59 -0
- package/docs/OptionApi.md +59 -0
- package/docs/OptionChartKPI.md +27 -0
- package/docs/OptionChartKPIsYearly.md +25 -0
- package/docs/OptionCreate.md +1 -1
- package/models/index.ts +2 -0
- package/models/option-chart-kpi.ts +35 -0
- package/models/option-chart-kpis-yearly.ts +37 -0
- package/models/option-create.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Schema of a KPI value for a given time step, contain both the monetary and objective value
|
|
14
|
+
*/
|
|
15
|
+
export interface OptionChartKPI {
|
|
16
|
+
/**
|
|
17
|
+
* Metric value of the KPI
|
|
18
|
+
*/
|
|
19
|
+
'metric_value'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Monetary value of the KPI
|
|
22
|
+
*/
|
|
23
|
+
'monetary_value'?: number;
|
|
24
|
+
'name'?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Symbol of the KPI
|
|
27
|
+
*/
|
|
28
|
+
'symbol'?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Asset Investment Planning
|
|
6
|
+
* API for Asset Investment Planning
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OptionChartKPI } from './option-chart-kpi';
|
|
13
|
+
/**
|
|
14
|
+
* Schema of a combined list of KPI values for a given time step, contain both the monetary and objective value
|
|
15
|
+
*/
|
|
16
|
+
export interface OptionChartKPIsYearly {
|
|
17
|
+
/**
|
|
18
|
+
* List of KPI values for this time step
|
|
19
|
+
*/
|
|
20
|
+
'kpis'?: Array<OptionChartKPI>;
|
|
21
|
+
/**
|
|
22
|
+
* Net perceived value for the KPI
|
|
23
|
+
*/
|
|
24
|
+
'net_perceived_value'?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Year used for the KPIs
|
|
27
|
+
*/
|
|
28
|
+
'year'?: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Asset Investment Planning
|
|
6
|
+
* API for Asset Investment Planning
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/docs/InvestmentApi.md
CHANGED
|
@@ -15,6 +15,7 @@ All URIs are relative to *http://localhost*
|
|
|
15
15
|
|[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
|
|
16
16
|
|[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
|
|
17
17
|
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
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|
|
|
19
20
|
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
20
21
|
|[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
|
|
@@ -637,6 +638,64 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
637
638
|
|
|
638
639
|
[[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)
|
|
639
640
|
|
|
641
|
+
# **getOptionKpis**
|
|
642
|
+
> Array<OptionChartKPIsYearly> getOptionKpis()
|
|
643
|
+
|
|
644
|
+
Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
645
|
+
|
|
646
|
+
### Example
|
|
647
|
+
|
|
648
|
+
```typescript
|
|
649
|
+
import {
|
|
650
|
+
InvestmentApi,
|
|
651
|
+
Configuration
|
|
652
|
+
} from '@cosmotech/aip-client';
|
|
653
|
+
|
|
654
|
+
const configuration = new Configuration();
|
|
655
|
+
const apiInstance = new InvestmentApi(configuration);
|
|
656
|
+
|
|
657
|
+
let investmentId: string; //UUID of the investment (default to undefined)
|
|
658
|
+
let optionId: string; //UUID of the option (default to undefined)
|
|
659
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
660
|
+
|
|
661
|
+
const { status, data } = await apiInstance.getOptionKpis(
|
|
662
|
+
investmentId,
|
|
663
|
+
optionId,
|
|
664
|
+
valueFrameworkId
|
|
665
|
+
);
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
### Parameters
|
|
669
|
+
|
|
670
|
+
|Name | Type | Description | Notes|
|
|
671
|
+
|------------- | ------------- | ------------- | -------------|
|
|
672
|
+
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
673
|
+
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
674
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
### Return type
|
|
678
|
+
|
|
679
|
+
**Array<OptionChartKPIsYearly>**
|
|
680
|
+
|
|
681
|
+
### Authorization
|
|
682
|
+
|
|
683
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
684
|
+
|
|
685
|
+
### HTTP request headers
|
|
686
|
+
|
|
687
|
+
- **Content-Type**: Not defined
|
|
688
|
+
- **Accept**: application/json
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
### HTTP response details
|
|
692
|
+
| Status code | Description | Response headers |
|
|
693
|
+
|-------------|-------------|------------------|
|
|
694
|
+
|**200** | The requested KPIs | - |
|
|
695
|
+
|**404** | Investment, option or value framework not found | - |
|
|
696
|
+
|
|
697
|
+
[[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)
|
|
698
|
+
|
|
640
699
|
# **getOptionsForInvestment**
|
|
641
700
|
> Array<OptionResponse> getOptionsForInvestment()
|
|
642
701
|
|
package/docs/OptionApi.md
CHANGED
|
@@ -11,6 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
|
|
12
12
|
|[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
|
|
13
13
|
|[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
|
|
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|
|
|
14
15
|
|[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
|
|
15
16
|
|[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
|
|
16
17
|
|[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
|
|
@@ -419,6 +420,64 @@ const { status, data } = await apiInstance.getOptionForInvestment(
|
|
|
419
420
|
|
|
420
421
|
[[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)
|
|
421
422
|
|
|
423
|
+
# **getOptionKpis**
|
|
424
|
+
> Array<OptionChartKPIsYearly> getOptionKpis()
|
|
425
|
+
|
|
426
|
+
Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
427
|
+
|
|
428
|
+
### Example
|
|
429
|
+
|
|
430
|
+
```typescript
|
|
431
|
+
import {
|
|
432
|
+
OptionApi,
|
|
433
|
+
Configuration
|
|
434
|
+
} from '@cosmotech/aip-client';
|
|
435
|
+
|
|
436
|
+
const configuration = new Configuration();
|
|
437
|
+
const apiInstance = new OptionApi(configuration);
|
|
438
|
+
|
|
439
|
+
let investmentId: string; //UUID of the investment (default to undefined)
|
|
440
|
+
let optionId: string; //UUID of the option (default to undefined)
|
|
441
|
+
let valueFrameworkId: string; //UUID of the value framework (default to undefined)
|
|
442
|
+
|
|
443
|
+
const { status, data } = await apiInstance.getOptionKpis(
|
|
444
|
+
investmentId,
|
|
445
|
+
optionId,
|
|
446
|
+
valueFrameworkId
|
|
447
|
+
);
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
### Parameters
|
|
451
|
+
|
|
452
|
+
|Name | Type | Description | Notes|
|
|
453
|
+
|------------- | ------------- | ------------- | -------------|
|
|
454
|
+
| **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
|
|
455
|
+
| **optionId** | [**string**] | UUID of the option | defaults to undefined|
|
|
456
|
+
| **valueFrameworkId** | [**string**] | UUID of the value framework | defaults to undefined|
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
### Return type
|
|
460
|
+
|
|
461
|
+
**Array<OptionChartKPIsYearly>**
|
|
462
|
+
|
|
463
|
+
### Authorization
|
|
464
|
+
|
|
465
|
+
[OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
|
|
466
|
+
|
|
467
|
+
### HTTP request headers
|
|
468
|
+
|
|
469
|
+
- **Content-Type**: Not defined
|
|
470
|
+
- **Accept**: application/json
|
|
471
|
+
|
|
472
|
+
|
|
473
|
+
### HTTP response details
|
|
474
|
+
| Status code | Description | Response headers |
|
|
475
|
+
|-------------|-------------|------------------|
|
|
476
|
+
|**200** | The requested KPIs | - |
|
|
477
|
+
|**404** | Investment, option or value framework not found | - |
|
|
478
|
+
|
|
479
|
+
[[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
|
+
|
|
422
481
|
# **getOptionsForInvestment**
|
|
423
482
|
> Array<OptionResponse> getOptionsForInvestment()
|
|
424
483
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# OptionChartKPI
|
|
2
|
+
|
|
3
|
+
Schema of a KPI value for a given time step, contain both the monetary and objective value
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**metricValue** | **number** | Metric value of the KPI | [optional] [default to 0.0]
|
|
10
|
+
**monetaryValue** | **number** | Monetary value of the KPI | [optional] [default to 0.0]
|
|
11
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**symbol** | **string** | Symbol of the KPI | [optional] [default to '$']
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { OptionChartKPI } from '@cosmotech/aip-client';
|
|
18
|
+
|
|
19
|
+
const instance: OptionChartKPI = {
|
|
20
|
+
metricValue,
|
|
21
|
+
monetaryValue,
|
|
22
|
+
name,
|
|
23
|
+
symbol,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[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
|
+
# OptionChartKPIsYearly
|
|
2
|
+
|
|
3
|
+
Schema of a combined list of KPI values for a given time step, contain both the monetary and objective value
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**kpis** | [**Array<OptionChartKPI>**](OptionChartKPI.md) | List of KPI values for this time step | [optional] [default to undefined]
|
|
10
|
+
**netPerceivedValue** | **number** | Net perceived value for the KPI | [optional] [default to 0.0]
|
|
11
|
+
**year** | **number** | Year used for the KPIs | [optional] [default to 2025]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { OptionChartKPIsYearly } from '@cosmotech/aip-client';
|
|
17
|
+
|
|
18
|
+
const instance: OptionChartKPIsYearly = {
|
|
19
|
+
kpis,
|
|
20
|
+
netPerceivedValue,
|
|
21
|
+
year,
|
|
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/OptionCreate.md
CHANGED
|
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
9
|
**cost** | **number** | Cost of the option | [optional] [default to 0.0]
|
|
10
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
-
**duration** | **number** | Duration of the option in
|
|
11
|
+
**duration** | **number** | Duration of the option in weeks | [optional] [default to 1]
|
|
12
12
|
**expectedStartDate** | **string** | Expected start date of the option | [optional] [default to 2027-01-01]
|
|
13
13
|
**name** | **string** | Name of the option | [default to undefined]
|
|
14
14
|
|
package/models/index.ts
CHANGED
|
@@ -23,6 +23,8 @@ export * from './objective-update';
|
|
|
23
23
|
export * from './objective-weight-create';
|
|
24
24
|
export * from './objective-weight-response';
|
|
25
25
|
export * from './objective-weight-update';
|
|
26
|
+
export * from './option-chart-kpi';
|
|
27
|
+
export * from './option-chart-kpis-yearly';
|
|
26
28
|
export * from './option-create';
|
|
27
29
|
export * from './option-response';
|
|
28
30
|
export * from './option-update';
|
|
@@ -0,0 +1,35 @@
|
|
|
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.2.0-dev3
|
|
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 of a KPI value for a given time step, contain both the monetary and objective value
|
|
19
|
+
*/
|
|
20
|
+
export interface OptionChartKPI {
|
|
21
|
+
/**
|
|
22
|
+
* Metric value of the KPI
|
|
23
|
+
*/
|
|
24
|
+
'metric_value'?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Monetary value of the KPI
|
|
27
|
+
*/
|
|
28
|
+
'monetary_value'?: number;
|
|
29
|
+
'name'?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Symbol of the KPI
|
|
32
|
+
*/
|
|
33
|
+
'symbol'?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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.2.0-dev3
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { OptionChartKPI } from './option-chart-kpi';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Schema of a combined list of KPI values for a given time step, contain both the monetary and objective value
|
|
22
|
+
*/
|
|
23
|
+
export interface OptionChartKPIsYearly {
|
|
24
|
+
/**
|
|
25
|
+
* List of KPI values for this time step
|
|
26
|
+
*/
|
|
27
|
+
'kpis'?: Array<OptionChartKPI>;
|
|
28
|
+
/**
|
|
29
|
+
* Net perceived value for the KPI
|
|
30
|
+
*/
|
|
31
|
+
'net_perceived_value'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Year used for the KPIs
|
|
34
|
+
*/
|
|
35
|
+
'year'?: number;
|
|
36
|
+
}
|
|
37
|
+
|
package/models/option-create.ts
CHANGED