@cosmotech/aip-client 0.2.0-dev3 → 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.
Files changed (70) hide show
  1. package/README.md +12 -2
  2. package/api/favored-option-api.ts +210 -0
  3. package/api/investment-api.ts +244 -0
  4. package/api/option-api.ts +88 -0
  5. package/api.ts +1 -0
  6. package/dist/api/favored-option-api.d.ts +104 -0
  7. package/dist/api/favored-option-api.js +209 -0
  8. package/dist/api/investment-api.d.ts +111 -0
  9. package/dist/api/investment-api.js +229 -0
  10. package/dist/api/option-api.d.ts +41 -0
  11. package/dist/api/option-api.js +83 -0
  12. package/dist/api.d.ts +1 -0
  13. package/dist/api.js +1 -0
  14. package/dist/esm/api/favored-option-api.d.ts +104 -0
  15. package/dist/esm/api/favored-option-api.js +202 -0
  16. package/dist/esm/api/investment-api.d.ts +111 -0
  17. package/dist/esm/api/investment-api.js +229 -0
  18. package/dist/esm/api/option-api.d.ts +41 -0
  19. package/dist/esm/api/option-api.js +83 -0
  20. package/dist/esm/api.d.ts +1 -0
  21. package/dist/esm/api.js +1 -0
  22. package/dist/esm/models/favored-option-request.d.ts +20 -0
  23. package/dist/esm/models/favored-option-request.js +14 -0
  24. package/dist/esm/models/favored-option-response.d.ts +20 -0
  25. package/dist/esm/models/favored-option-response.js +14 -0
  26. package/dist/esm/models/index.d.ts +4 -0
  27. package/dist/esm/models/index.js +4 -0
  28. package/dist/esm/models/investment-response.d.ts +1 -0
  29. package/dist/esm/models/option-chart-kpi.d.ts +29 -0
  30. package/dist/esm/models/option-chart-kpi.js +14 -0
  31. package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
  32. package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
  33. package/dist/esm/models/option-create.d.ts +1 -1
  34. package/dist/esm/models/option-response.d.ts +2 -1
  35. package/dist/esm/models/option-update.d.ts +2 -0
  36. package/dist/models/favored-option-request.d.ts +20 -0
  37. package/dist/models/favored-option-request.js +15 -0
  38. package/dist/models/favored-option-response.d.ts +20 -0
  39. package/dist/models/favored-option-response.js +15 -0
  40. package/dist/models/index.d.ts +4 -0
  41. package/dist/models/index.js +4 -0
  42. package/dist/models/investment-response.d.ts +1 -0
  43. package/dist/models/option-chart-kpi.d.ts +29 -0
  44. package/dist/models/option-chart-kpi.js +15 -0
  45. package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
  46. package/dist/models/option-chart-kpis-yearly.js +15 -0
  47. package/dist/models/option-create.d.ts +1 -1
  48. package/dist/models/option-response.d.ts +2 -1
  49. package/dist/models/option-update.d.ts +2 -0
  50. package/docs/FavoredOptionApi.md +119 -0
  51. package/docs/FavoredOptionRequest.md +21 -0
  52. package/docs/FavoredOptionResponse.md +21 -0
  53. package/docs/InvestmentApi.md +171 -0
  54. package/docs/InvestmentResponse.md +2 -0
  55. package/docs/OptionApi.md +59 -0
  56. package/docs/OptionChartKPI.md +27 -0
  57. package/docs/OptionChartKPIsYearly.md +25 -0
  58. package/docs/OptionCreate.md +1 -1
  59. package/docs/OptionResponse.md +4 -2
  60. package/docs/OptionUpdate.md +4 -0
  61. package/models/favored-option-request.ts +26 -0
  62. package/models/favored-option-response.ts +26 -0
  63. package/models/index.ts +4 -0
  64. package/models/investment-response.ts +1 -0
  65. package/models/option-chart-kpi.ts +35 -0
  66. package/models/option-chart-kpis-yearly.ts +37 -0
  67. package/models/option-create.ts +1 -1
  68. package/models/option-response.ts +2 -1
  69. package/models/option-update.ts +2 -0
  70. package/package.json +1 -1
@@ -9,16 +9,19 @@ All URIs are relative to *http://localhost*
9
9
  |[**deleteImpactForOption**](#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option|
10
10
  |[**deleteInvestment**](#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment|
11
11
  |[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
12
+ |[**getFavoredOption**](#getfavoredoption) | **GET** /investment/{investment_id}/favored_option | Get the preferred option for an investment|
12
13
  |[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
13
14
  |[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
14
15
  |[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
15
16
  |[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
16
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|
17
19
  |[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
18
20
  |[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
19
21
  |[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
20
22
  |[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
21
23
  |[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
24
+ |[**setFavoredOption**](#setfavoredoption) | **POST** /investment/{investment_id}/favored_option | Set the preferred option for an investment|
22
25
 
23
26
  # **createImpactForOption**
24
27
  > ImpactAPIResponse createImpactForOption(impactCreate)
@@ -302,6 +305,59 @@ void (empty response body)
302
305
 
303
306
  [[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)
304
307
 
308
+ # **getFavoredOption**
309
+ > FavoredOptionResponse getFavoredOption()
310
+
311
+ Get the preferred option for an investment.
312
+
313
+ ### Example
314
+
315
+ ```typescript
316
+ import {
317
+ InvestmentApi,
318
+ Configuration
319
+ } from '@cosmotech/aip-client';
320
+
321
+ const configuration = new Configuration();
322
+ const apiInstance = new InvestmentApi(configuration);
323
+
324
+ let investmentId: string; //UUID of the investment (default to undefined)
325
+
326
+ const { status, data } = await apiInstance.getFavoredOption(
327
+ investmentId
328
+ );
329
+ ```
330
+
331
+ ### Parameters
332
+
333
+ |Name | Type | Description | Notes|
334
+ |------------- | ------------- | ------------- | -------------|
335
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
336
+
337
+
338
+ ### Return type
339
+
340
+ **FavoredOptionResponse**
341
+
342
+ ### Authorization
343
+
344
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: application/json
350
+
351
+
352
+ ### HTTP response details
353
+ | Status code | Description | Response headers |
354
+ |-------------|-------------|------------------|
355
+ |**200** | Preferred option exists | - |
356
+ |**204** | Investment exists but no options are associated | - |
357
+ |**404** | Investment not found | - |
358
+
359
+ [[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)
360
+
305
361
  # **getImpactForOption**
306
362
  > ImpactAPIResponse getImpactForOption()
307
363
 
@@ -582,6 +638,64 @@ const { status, data } = await apiInstance.getOptionForInvestment(
582
638
 
583
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)
584
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
+
585
699
  # **getOptionsForInvestment**
586
700
  > Array<OptionResponse> getOptionsForInvestment()
587
701
 
@@ -873,3 +987,60 @@ const { status, data } = await apiInstance.postInvestment(
873
987
 
874
988
  [[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)
875
989
 
990
+ # **setFavoredOption**
991
+ > FavoredOptionResponse setFavoredOption(favoredOptionRequest)
992
+
993
+ Set the preferred option for an investment.
994
+
995
+ ### Example
996
+
997
+ ```typescript
998
+ import {
999
+ InvestmentApi,
1000
+ Configuration,
1001
+ FavoredOptionRequest
1002
+ } from '@cosmotech/aip-client';
1003
+
1004
+ const configuration = new Configuration();
1005
+ const apiInstance = new InvestmentApi(configuration);
1006
+
1007
+ let investmentId: string; //UUID of the investment (default to undefined)
1008
+ let favoredOptionRequest: FavoredOptionRequest; //
1009
+
1010
+ const { status, data } = await apiInstance.setFavoredOption(
1011
+ investmentId,
1012
+ favoredOptionRequest
1013
+ );
1014
+ ```
1015
+
1016
+ ### Parameters
1017
+
1018
+ |Name | Type | Description | Notes|
1019
+ |------------- | ------------- | ------------- | -------------|
1020
+ | **favoredOptionRequest** | **FavoredOptionRequest**| | |
1021
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
1022
+
1023
+
1024
+ ### Return type
1025
+
1026
+ **FavoredOptionResponse**
1027
+
1028
+ ### Authorization
1029
+
1030
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
1031
+
1032
+ ### HTTP request headers
1033
+
1034
+ - **Content-Type**: application/json
1035
+ - **Accept**: application/json
1036
+
1037
+
1038
+ ### HTTP response details
1039
+ | Status code | Description | Response headers |
1040
+ |-------------|-------------|------------------|
1041
+ |**200** | Preferred option updated successfully | - |
1042
+ |**400** | Option does not belong to this investment | - |
1043
+ |**404** | Investment or option not found | - |
1044
+
1045
+ [[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)
1046
+
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **id** | **string** | | [default to undefined]
12
12
  **name** | **string** | Name of the investment | [default to undefined]
13
13
  **ownerName** | **string** | | [optional] [default to undefined]
14
+ **preferredOptionId** | **string** | | [optional] [default to undefined]
14
15
  **updatedAt** | **string** | | [default to undefined]
15
16
 
16
17
  ## Example
@@ -24,6 +25,7 @@ const instance: InvestmentResponse = {
24
25
  id,
25
26
  name,
26
27
  ownerName,
28
+ preferredOptionId,
27
29
  updatedAt,
28
30
  };
29
31
  ```
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&lt;OptionChartKPI&gt;**](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)
@@ -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 years | [optional] [default to 1]
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
 
@@ -6,14 +6,15 @@ Schema for Option responses (includes all fields)
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
+ **cost** | **number** | | [default to undefined]
9
10
  **createdAt** | **string** | | [default to undefined]
10
11
  **description** | **string** | | [optional] [default to undefined]
12
+ **duration** | **number** | | [default to undefined]
11
13
  **expectedStartDate** | **string** | | [default to undefined]
12
14
  **id** | **string** | | [default to undefined]
13
15
  **investmentId** | **string** | ID of the associated investment | [default to undefined]
14
16
  **name** | **string** | Name of the option | [default to undefined]
15
17
  **ownerName** | **string** | | [optional] [default to undefined]
16
- **preferred** | **boolean** | | [default to undefined]
17
18
  **updatedAt** | **string** | | [default to undefined]
18
19
 
19
20
  ## Example
@@ -22,14 +23,15 @@ Name | Type | Description | Notes
22
23
  import { OptionResponse } from '@cosmotech/aip-client';
23
24
 
24
25
  const instance: OptionResponse = {
26
+ cost,
25
27
  createdAt,
26
28
  description,
29
+ duration,
27
30
  expectedStartDate,
28
31
  id,
29
32
  investmentId,
30
33
  name,
31
34
  ownerName,
32
- preferred,
33
35
  updatedAt,
34
36
  };
35
37
  ```
@@ -6,7 +6,9 @@ Schema for partially updating an Option. Only provided fields will be updated.
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
+ **cost** | **number** | | [optional] [default to undefined]
9
10
  **description** | **string** | | [optional] [default to undefined]
11
+ **duration** | **number** | | [optional] [default to undefined]
10
12
  **expectedStartDate** | **string** | | [optional] [default to undefined]
11
13
  **name** | **string** | | [optional] [default to undefined]
12
14
 
@@ -16,7 +18,9 @@ Name | Type | Description | Notes
16
18
  import { OptionUpdate } from '@cosmotech/aip-client';
17
19
 
18
20
  const instance: OptionUpdate = {
21
+ cost,
19
22
  description,
23
+ duration,
20
24
  expectedStartDate,
21
25
  name,
22
26
  };
@@ -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.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
+ * Request body for setting the preferred option.
19
+ */
20
+ export interface FavoredOptionRequest {
21
+ /**
22
+ * ID of the option to set as preferred
23
+ */
24
+ 'option_id': string;
25
+ }
26
+
@@ -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.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
+ * Response for favored option endpoints.
19
+ */
20
+ export interface FavoredOptionResponse {
21
+ /**
22
+ * ID of the preferred option
23
+ */
24
+ 'option_id': string;
25
+ }
26
+
package/models/index.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './evolution-type';
2
+ export * from './favored-option-request';
3
+ export * from './favored-option-response';
2
4
  export * from './httpvalidation-error';
3
5
  export * from './impact-apiresponse';
4
6
  export * from './impact-create';
@@ -21,6 +23,8 @@ export * from './objective-update';
21
23
  export * from './objective-weight-create';
22
24
  export * from './objective-weight-response';
23
25
  export * from './objective-weight-update';
26
+ export * from './option-chart-kpi';
27
+ export * from './option-chart-kpis-yearly';
24
28
  export * from './option-create';
25
29
  export * from './option-response';
26
30
  export * from './option-update';
@@ -26,6 +26,7 @@ export interface InvestmentResponse {
26
26
  */
27
27
  'name': string;
28
28
  'owner_name'?: string | null;
29
+ 'preferred_option_id'?: string | null;
29
30
  'updated_at': string;
30
31
  }
31
32
 
@@ -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
+
@@ -24,7 +24,7 @@ export interface OptionCreate {
24
24
  'cost'?: number;
25
25
  'description'?: string | null;
26
26
  /**
27
- * Duration of the option in years
27
+ * Duration of the option in weeks
28
28
  */
29
29
  'duration'?: number;
30
30
  /**
@@ -18,8 +18,10 @@
18
18
  * Schema for Option responses (includes all fields)
19
19
  */
20
20
  export interface OptionResponse {
21
+ 'cost': number;
21
22
  'created_at': string;
22
23
  'description'?: string | null;
24
+ 'duration': number;
23
25
  'expected_start_date': string;
24
26
  'id': string;
25
27
  /**
@@ -31,7 +33,6 @@ export interface OptionResponse {
31
33
  */
32
34
  'name': string;
33
35
  'owner_name'?: string | null;
34
- 'preferred': boolean;
35
36
  'updated_at': string;
36
37
  }
37
38
 
@@ -18,7 +18,9 @@
18
18
  * Schema for partially updating an Option. Only provided fields will be updated.
19
19
  */
20
20
  export interface OptionUpdate {
21
+ 'cost'?: number | null;
21
22
  'description'?: string | null;
23
+ 'duration'?: number | null;
22
24
  'expected_start_date'?: string | null;
23
25
  'name'?: string | null;
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmotech/aip-client",
3
- "version": "0.2.0-dev3",
3
+ "version": "0.2.0-dev5",
4
4
  "description": "OpenAPI client for @cosmotech/aip-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {