@cosmotech/aip-client 0.2.0-dev3 → 0.2.0-dev4

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 (48) hide show
  1. package/README.md +8 -2
  2. package/api/favored-option-api.ts +210 -0
  3. package/api/investment-api.ts +156 -0
  4. package/api.ts +1 -0
  5. package/dist/api/favored-option-api.d.ts +104 -0
  6. package/dist/api/favored-option-api.js +209 -0
  7. package/dist/api/investment-api.d.ts +70 -0
  8. package/dist/api/investment-api.js +146 -0
  9. package/dist/api.d.ts +1 -0
  10. package/dist/api.js +1 -0
  11. package/dist/esm/api/favored-option-api.d.ts +104 -0
  12. package/dist/esm/api/favored-option-api.js +202 -0
  13. package/dist/esm/api/investment-api.d.ts +70 -0
  14. package/dist/esm/api/investment-api.js +146 -0
  15. package/dist/esm/api.d.ts +1 -0
  16. package/dist/esm/api.js +1 -0
  17. package/dist/esm/models/favored-option-request.d.ts +20 -0
  18. package/dist/esm/models/favored-option-request.js +14 -0
  19. package/dist/esm/models/favored-option-response.d.ts +20 -0
  20. package/dist/esm/models/favored-option-response.js +14 -0
  21. package/dist/esm/models/index.d.ts +2 -0
  22. package/dist/esm/models/index.js +2 -0
  23. package/dist/esm/models/investment-response.d.ts +1 -0
  24. package/dist/esm/models/option-response.d.ts +2 -1
  25. package/dist/esm/models/option-update.d.ts +2 -0
  26. package/dist/models/favored-option-request.d.ts +20 -0
  27. package/dist/models/favored-option-request.js +15 -0
  28. package/dist/models/favored-option-response.d.ts +20 -0
  29. package/dist/models/favored-option-response.js +15 -0
  30. package/dist/models/index.d.ts +2 -0
  31. package/dist/models/index.js +2 -0
  32. package/dist/models/investment-response.d.ts +1 -0
  33. package/dist/models/option-response.d.ts +2 -1
  34. package/dist/models/option-update.d.ts +2 -0
  35. package/docs/FavoredOptionApi.md +119 -0
  36. package/docs/FavoredOptionRequest.md +21 -0
  37. package/docs/FavoredOptionResponse.md +21 -0
  38. package/docs/InvestmentApi.md +112 -0
  39. package/docs/InvestmentResponse.md +2 -0
  40. package/docs/OptionResponse.md +4 -2
  41. package/docs/OptionUpdate.md +4 -0
  42. package/models/favored-option-request.ts +26 -0
  43. package/models/favored-option-response.ts +26 -0
  44. package/models/index.ts +2 -0
  45. package/models/investment-response.ts +1 -0
  46. package/models/option-response.ts +2 -1
  47. package/models/option-update.ts +2 -0
  48. package/package.json +1 -1
@@ -13,7 +13,9 @@
13
13
  * Schema for partially updating an Option. Only provided fields will be updated.
14
14
  */
15
15
  export interface OptionUpdate {
16
+ 'cost'?: number | null;
16
17
  'description'?: string | null;
18
+ 'duration'?: number | null;
17
19
  'expected_start_date'?: string | null;
18
20
  'name'?: string | null;
19
21
  }
@@ -0,0 +1,20 @@
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
+ * Request body for setting the preferred option.
14
+ */
15
+ export interface FavoredOptionRequest {
16
+ /**
17
+ * ID of the option to set as preferred
18
+ */
19
+ 'option_id': string;
20
+ }
@@ -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,20 @@
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
+ * Response for favored option endpoints.
14
+ */
15
+ export interface FavoredOptionResponse {
16
+ /**
17
+ * ID of the preferred option
18
+ */
19
+ 'option_id': string;
20
+ }
@@ -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 });
@@ -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';
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./evolution-type"), exports);
18
+ __exportStar(require("./favored-option-request"), exports);
19
+ __exportStar(require("./favored-option-response"), exports);
18
20
  __exportStar(require("./httpvalidation-error"), exports);
19
21
  __exportStar(require("./impact-apiresponse"), exports);
20
22
  __exportStar(require("./impact-create"), exports);
@@ -21,5 +21,6 @@ export interface InvestmentResponse {
21
21
  */
22
22
  'name': string;
23
23
  'owner_name'?: string | null;
24
+ 'preferred_option_id'?: string | null;
24
25
  'updated_at': string;
25
26
  }
@@ -13,8 +13,10 @@
13
13
  * Schema for Option responses (includes all fields)
14
14
  */
15
15
  export interface OptionResponse {
16
+ 'cost': number;
16
17
  'created_at': string;
17
18
  'description'?: string | null;
19
+ 'duration': number;
18
20
  'expected_start_date': string;
19
21
  'id': string;
20
22
  /**
@@ -26,6 +28,5 @@ export interface OptionResponse {
26
28
  */
27
29
  'name': string;
28
30
  'owner_name'?: string | null;
29
- 'preferred': boolean;
30
31
  'updated_at': string;
31
32
  }
@@ -13,7 +13,9 @@
13
13
  * Schema for partially updating an Option. Only provided fields will be updated.
14
14
  */
15
15
  export interface OptionUpdate {
16
+ 'cost'?: number | null;
16
17
  'description'?: string | null;
18
+ 'duration'?: number | null;
17
19
  'expected_start_date'?: string | null;
18
20
  'name'?: string | null;
19
21
  }
@@ -0,0 +1,119 @@
1
+ # FavoredOptionApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**getFavoredOption**](#getfavoredoption) | **GET** /investment/{investment_id}/favored_option | Get the preferred option for an investment|
8
+ |[**setFavoredOption**](#setfavoredoption) | **POST** /investment/{investment_id}/favored_option | Set the preferred option for an investment|
9
+
10
+ # **getFavoredOption**
11
+ > FavoredOptionResponse getFavoredOption()
12
+
13
+ Get the preferred option for an investment.
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ FavoredOptionApi,
20
+ Configuration
21
+ } from '@cosmotech/aip-client';
22
+
23
+ const configuration = new Configuration();
24
+ const apiInstance = new FavoredOptionApi(configuration);
25
+
26
+ let investmentId: string; //UUID of the investment (default to undefined)
27
+
28
+ const { status, data } = await apiInstance.getFavoredOption(
29
+ investmentId
30
+ );
31
+ ```
32
+
33
+ ### Parameters
34
+
35
+ |Name | Type | Description | Notes|
36
+ |------------- | ------------- | ------------- | -------------|
37
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
38
+
39
+
40
+ ### Return type
41
+
42
+ **FavoredOptionResponse**
43
+
44
+ ### Authorization
45
+
46
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
47
+
48
+ ### HTTP request headers
49
+
50
+ - **Content-Type**: Not defined
51
+ - **Accept**: application/json
52
+
53
+
54
+ ### HTTP response details
55
+ | Status code | Description | Response headers |
56
+ |-------------|-------------|------------------|
57
+ |**200** | Preferred option exists | - |
58
+ |**204** | Investment exists but no options are associated | - |
59
+ |**404** | Investment not found | - |
60
+
61
+ [[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)
62
+
63
+ # **setFavoredOption**
64
+ > FavoredOptionResponse setFavoredOption(favoredOptionRequest)
65
+
66
+ Set the preferred option for an investment.
67
+
68
+ ### Example
69
+
70
+ ```typescript
71
+ import {
72
+ FavoredOptionApi,
73
+ Configuration,
74
+ FavoredOptionRequest
75
+ } from '@cosmotech/aip-client';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new FavoredOptionApi(configuration);
79
+
80
+ let investmentId: string; //UUID of the investment (default to undefined)
81
+ let favoredOptionRequest: FavoredOptionRequest; //
82
+
83
+ const { status, data } = await apiInstance.setFavoredOption(
84
+ investmentId,
85
+ favoredOptionRequest
86
+ );
87
+ ```
88
+
89
+ ### Parameters
90
+
91
+ |Name | Type | Description | Notes|
92
+ |------------- | ------------- | ------------- | -------------|
93
+ | **favoredOptionRequest** | **FavoredOptionRequest**| | |
94
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
95
+
96
+
97
+ ### Return type
98
+
99
+ **FavoredOptionResponse**
100
+
101
+ ### Authorization
102
+
103
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | Preferred option updated successfully | - |
115
+ |**400** | Option does not belong to this investment | - |
116
+ |**404** | Investment or option not found | - |
117
+
118
+ [[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)
119
+
@@ -0,0 +1,21 @@
1
+ # FavoredOptionRequest
2
+
3
+ Request body for setting the preferred option.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **optionId** | **string** | ID of the option to set as preferred | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { FavoredOptionRequest } from '@cosmotech/aip-client';
15
+
16
+ const instance: FavoredOptionRequest = {
17
+ optionId,
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,21 @@
1
+ # FavoredOptionResponse
2
+
3
+ Response for favored option endpoints.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **optionId** | **string** | ID of the preferred option | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { FavoredOptionResponse } from '@cosmotech/aip-client';
15
+
16
+ const instance: FavoredOptionResponse = {
17
+ optionId,
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)
@@ -9,6 +9,7 @@ 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|
@@ -19,6 +20,7 @@ All URIs are relative to *http://localhost*
19
20
  |[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
20
21
  |[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
21
22
  |[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
23
+ |[**setFavoredOption**](#setfavoredoption) | **POST** /investment/{investment_id}/favored_option | Set the preferred option for an investment|
22
24
 
23
25
  # **createImpactForOption**
24
26
  > ImpactAPIResponse createImpactForOption(impactCreate)
@@ -302,6 +304,59 @@ void (empty response body)
302
304
 
303
305
  [[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
306
 
307
+ # **getFavoredOption**
308
+ > FavoredOptionResponse getFavoredOption()
309
+
310
+ Get the preferred option for an investment.
311
+
312
+ ### Example
313
+
314
+ ```typescript
315
+ import {
316
+ InvestmentApi,
317
+ Configuration
318
+ } from '@cosmotech/aip-client';
319
+
320
+ const configuration = new Configuration();
321
+ const apiInstance = new InvestmentApi(configuration);
322
+
323
+ let investmentId: string; //UUID of the investment (default to undefined)
324
+
325
+ const { status, data } = await apiInstance.getFavoredOption(
326
+ investmentId
327
+ );
328
+ ```
329
+
330
+ ### Parameters
331
+
332
+ |Name | Type | Description | Notes|
333
+ |------------- | ------------- | ------------- | -------------|
334
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
335
+
336
+
337
+ ### Return type
338
+
339
+ **FavoredOptionResponse**
340
+
341
+ ### Authorization
342
+
343
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
344
+
345
+ ### HTTP request headers
346
+
347
+ - **Content-Type**: Not defined
348
+ - **Accept**: application/json
349
+
350
+
351
+ ### HTTP response details
352
+ | Status code | Description | Response headers |
353
+ |-------------|-------------|------------------|
354
+ |**200** | Preferred option exists | - |
355
+ |**204** | Investment exists but no options are associated | - |
356
+ |**404** | Investment not found | - |
357
+
358
+ [[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)
359
+
305
360
  # **getImpactForOption**
306
361
  > ImpactAPIResponse getImpactForOption()
307
362
 
@@ -873,3 +928,60 @@ const { status, data } = await apiInstance.postInvestment(
873
928
 
874
929
  [[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
930
 
931
+ # **setFavoredOption**
932
+ > FavoredOptionResponse setFavoredOption(favoredOptionRequest)
933
+
934
+ Set the preferred option for an investment.
935
+
936
+ ### Example
937
+
938
+ ```typescript
939
+ import {
940
+ InvestmentApi,
941
+ Configuration,
942
+ FavoredOptionRequest
943
+ } from '@cosmotech/aip-client';
944
+
945
+ const configuration = new Configuration();
946
+ const apiInstance = new InvestmentApi(configuration);
947
+
948
+ let investmentId: string; //UUID of the investment (default to undefined)
949
+ let favoredOptionRequest: FavoredOptionRequest; //
950
+
951
+ const { status, data } = await apiInstance.setFavoredOption(
952
+ investmentId,
953
+ favoredOptionRequest
954
+ );
955
+ ```
956
+
957
+ ### Parameters
958
+
959
+ |Name | Type | Description | Notes|
960
+ |------------- | ------------- | ------------- | -------------|
961
+ | **favoredOptionRequest** | **FavoredOptionRequest**| | |
962
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
963
+
964
+
965
+ ### Return type
966
+
967
+ **FavoredOptionResponse**
968
+
969
+ ### Authorization
970
+
971
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
972
+
973
+ ### HTTP request headers
974
+
975
+ - **Content-Type**: application/json
976
+ - **Accept**: application/json
977
+
978
+
979
+ ### HTTP response details
980
+ | Status code | Description | Response headers |
981
+ |-------------|-------------|------------------|
982
+ |**200** | Preferred option updated successfully | - |
983
+ |**400** | Option does not belong to this investment | - |
984
+ |**404** | Investment or option not found | - |
985
+
986
+ [[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)
987
+
@@ -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
  ```
@@ -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';
@@ -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
 
@@ -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-dev4",
4
4
  "description": "OpenAPI client for @cosmotech/aip-client",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {