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

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 (290) hide show
  1. package/README.md +141 -4
  2. package/api/default-api.ts +8 -15
  3. package/api/impact-api.ts +507 -0
  4. package/api/investment-api.ts +1308 -0
  5. package/api/metric-api.ts +185 -164
  6. package/api/metric-costs-api.ts +144 -0
  7. package/api/metric-costs-per-year-api.ts +200 -200
  8. package/api/objective-api.ts +538 -44
  9. package/api/objective-weight-api.ts +190 -190
  10. package/api/objective-weights-api.ts +144 -0
  11. package/api/option-api.ts +925 -0
  12. package/api/value-framework-api.ts +1223 -109
  13. package/api/value-framework-costs-api.ts +239 -0
  14. package/api/value-framework-weights-api.ts +144 -0
  15. package/api.ts +8 -1
  16. package/base.ts +1 -25
  17. package/common.ts +20 -43
  18. package/configuration.ts +31 -20
  19. package/dist/api/default-api.d.ts +3 -10
  20. package/dist/api/default-api.js +7 -13
  21. package/dist/api/impact-api.d.ts +245 -0
  22. package/dist/api/impact-api.js +493 -0
  23. package/dist/api/investment-api.d.ts +607 -0
  24. package/dist/api/investment-api.js +1248 -0
  25. package/dist/api/metric-api.d.ts +97 -88
  26. package/dist/api/metric-api.js +185 -157
  27. package/dist/api/metric-costs-api.d.ts +75 -0
  28. package/dist/api/metric-costs-api.js +146 -0
  29. package/dist/api/metric-costs-per-year-api.d.ts +105 -108
  30. package/dist/api/metric-costs-per-year-api.js +199 -192
  31. package/dist/api/objective-api.d.ts +242 -21
  32. package/dist/api/objective-api.js +508 -37
  33. package/dist/api/objective-weight-api.d.ts +105 -108
  34. package/dist/api/objective-weight-api.js +189 -182
  35. package/dist/api/objective-weights-api.d.ts +75 -0
  36. package/dist/api/objective-weights-api.js +146 -0
  37. package/dist/api/option-api.d.ts +436 -0
  38. package/dist/api/option-api.js +888 -0
  39. package/dist/api/value-framework-api.d.ts +528 -21
  40. package/dist/api/value-framework-api.js +1138 -78
  41. package/dist/api/value-framework-costs-api.d.ts +119 -0
  42. package/dist/api/value-framework-costs-api.js +236 -0
  43. package/dist/api/value-framework-weights-api.d.ts +75 -0
  44. package/dist/api/value-framework-weights-api.js +146 -0
  45. package/dist/api.d.ts +8 -1
  46. package/dist/api.js +8 -1
  47. package/dist/base.d.ts +1 -25
  48. package/dist/base.js +1 -20
  49. package/dist/common.d.ts +6 -37
  50. package/dist/common.js +17 -39
  51. package/dist/configuration.d.ts +25 -18
  52. package/dist/configuration.js +4 -3
  53. package/dist/esm/api/default-api.d.ts +3 -10
  54. package/dist/esm/api/default-api.js +7 -13
  55. package/dist/esm/api/impact-api.d.ts +245 -0
  56. package/dist/esm/api/impact-api.js +486 -0
  57. package/dist/esm/api/investment-api.d.ts +607 -0
  58. package/dist/esm/api/investment-api.js +1241 -0
  59. package/dist/esm/api/metric-api.d.ts +97 -88
  60. package/dist/esm/api/metric-api.js +185 -157
  61. package/dist/esm/api/metric-costs-api.d.ts +75 -0
  62. package/dist/esm/api/metric-costs-api.js +139 -0
  63. package/dist/esm/api/metric-costs-per-year-api.d.ts +105 -108
  64. package/dist/esm/api/metric-costs-per-year-api.js +199 -192
  65. package/dist/esm/api/objective-api.d.ts +242 -21
  66. package/dist/esm/api/objective-api.js +508 -37
  67. package/dist/esm/api/objective-weight-api.d.ts +105 -108
  68. package/dist/esm/api/objective-weight-api.js +189 -182
  69. package/dist/esm/api/objective-weights-api.d.ts +75 -0
  70. package/dist/esm/api/objective-weights-api.js +139 -0
  71. package/dist/esm/api/option-api.d.ts +436 -0
  72. package/dist/esm/api/option-api.js +881 -0
  73. package/dist/esm/api/value-framework-api.d.ts +528 -21
  74. package/dist/esm/api/value-framework-api.js +1137 -77
  75. package/dist/esm/api/value-framework-costs-api.d.ts +119 -0
  76. package/dist/esm/api/value-framework-costs-api.js +229 -0
  77. package/dist/esm/api/value-framework-weights-api.d.ts +75 -0
  78. package/dist/esm/api/value-framework-weights-api.js +139 -0
  79. package/dist/esm/api.d.ts +8 -1
  80. package/dist/esm/api.js +8 -1
  81. package/dist/esm/base.d.ts +1 -25
  82. package/dist/esm/base.js +1 -20
  83. package/dist/esm/common.d.ts +6 -37
  84. package/dist/esm/common.js +15 -38
  85. package/dist/esm/configuration.d.ts +25 -18
  86. package/dist/esm/configuration.js +4 -3
  87. package/dist/esm/index.d.ts +1 -1
  88. package/dist/esm/index.js +1 -1
  89. package/dist/esm/models/evolution-type.d.ts +16 -0
  90. package/dist/esm/models/evolution-type.js +17 -0
  91. package/dist/esm/models/httpvalidation-error.d.ts +2 -12
  92. package/dist/esm/models/httpvalidation-error.js +1 -1
  93. package/dist/esm/models/impact-apiresponse.d.ts +33 -0
  94. package/dist/esm/models/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
  95. package/dist/esm/models/impact-create.d.ts +37 -0
  96. package/dist/esm/models/impact-create.js +14 -0
  97. package/dist/esm/models/impact-update.d.ts +22 -0
  98. package/dist/esm/models/impact-update.js +14 -0
  99. package/dist/esm/models/index.d.ts +11 -1
  100. package/dist/esm/models/index.js +11 -1
  101. package/dist/esm/models/investment-create.d.ts +21 -0
  102. package/dist/esm/models/investment-create.js +14 -0
  103. package/dist/esm/models/investment-response.d.ts +25 -0
  104. package/dist/esm/models/investment-response.js +14 -0
  105. package/dist/esm/models/investment-update.d.ts +18 -0
  106. package/dist/esm/models/investment-update.js +14 -0
  107. package/dist/esm/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
  108. package/dist/esm/models/location-inner.js +14 -0
  109. package/dist/esm/models/measurement-type.d.ts +1 -6
  110. package/dist/esm/models/measurement-type.js +1 -6
  111. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -17
  112. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  113. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -18
  114. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  115. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -13
  116. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  117. package/dist/esm/models/metric-create.d.ts +3 -28
  118. package/dist/esm/models/metric-create.js +1 -1
  119. package/dist/esm/models/metric-response.d.ts +3 -50
  120. package/dist/esm/models/metric-response.js +1 -1
  121. package/dist/esm/models/metric-type.d.ts +1 -6
  122. package/dist/esm/models/metric-type.js +1 -6
  123. package/dist/esm/models/metric-update.d.ts +3 -35
  124. package/dist/esm/models/metric-update.js +1 -1
  125. package/dist/esm/models/objective-create.d.ts +1 -10
  126. package/dist/esm/models/objective-create.js +1 -1
  127. package/dist/esm/models/objective-response.d.ts +1 -30
  128. package/dist/esm/models/objective-response.js +1 -1
  129. package/dist/esm/models/objective-update.d.ts +1 -13
  130. package/dist/esm/models/objective-update.js +1 -1
  131. package/dist/esm/models/objective-weight-create.d.ts +1 -9
  132. package/dist/esm/models/objective-weight-create.js +1 -1
  133. package/dist/esm/models/objective-weight-response.d.ts +1 -14
  134. package/dist/esm/models/objective-weight-response.js +1 -1
  135. package/dist/esm/models/objective-weight-update.d.ts +1 -8
  136. package/dist/esm/models/objective-weight-update.js +1 -1
  137. package/dist/esm/models/option-create.d.ts +33 -0
  138. package/dist/esm/models/option-create.js +14 -0
  139. package/dist/esm/models/option-response.d.ts +31 -0
  140. package/dist/esm/models/option-response.js +14 -0
  141. package/dist/esm/models/option-update.d.ts +19 -0
  142. package/dist/esm/models/option-update.js +14 -0
  143. package/dist/esm/models/validation-error.d.ts +3 -33
  144. package/dist/esm/models/validation-error.js +1 -1
  145. package/dist/esm/models/value-framework-create.d.ts +1 -10
  146. package/dist/esm/models/value-framework-create.js +1 -1
  147. package/dist/esm/models/value-framework-response.d.ts +1 -30
  148. package/dist/esm/models/value-framework-response.js +1 -1
  149. package/dist/esm/models/value-framework-update.d.ts +1 -13
  150. package/dist/esm/models/value-framework-update.js +1 -1
  151. package/dist/index.d.ts +1 -1
  152. package/dist/index.js +1 -1
  153. package/dist/models/evolution-type.d.ts +16 -0
  154. package/dist/models/evolution-type.js +20 -0
  155. package/dist/models/httpvalidation-error.d.ts +2 -12
  156. package/dist/models/httpvalidation-error.js +1 -1
  157. package/dist/models/impact-apiresponse.d.ts +33 -0
  158. package/dist/models/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
  159. package/dist/models/impact-create.d.ts +37 -0
  160. package/dist/models/impact-create.js +15 -0
  161. package/dist/models/impact-update.d.ts +22 -0
  162. package/dist/models/impact-update.js +15 -0
  163. package/dist/models/index.d.ts +11 -1
  164. package/dist/models/index.js +11 -1
  165. package/dist/models/investment-create.d.ts +21 -0
  166. package/dist/models/investment-create.js +15 -0
  167. package/dist/models/investment-response.d.ts +25 -0
  168. package/dist/models/investment-response.js +15 -0
  169. package/dist/models/investment-update.d.ts +18 -0
  170. package/dist/models/investment-update.js +15 -0
  171. package/dist/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
  172. package/dist/models/location-inner.js +15 -0
  173. package/dist/models/measurement-type.d.ts +1 -6
  174. package/dist/models/measurement-type.js +1 -6
  175. package/dist/models/metric-costs-per-year-create.d.ts +1 -17
  176. package/dist/models/metric-costs-per-year-create.js +1 -1
  177. package/dist/models/metric-costs-per-year-response.d.ts +1 -18
  178. package/dist/models/metric-costs-per-year-response.js +1 -1
  179. package/dist/models/metric-costs-per-year-update.d.ts +1 -13
  180. package/dist/models/metric-costs-per-year-update.js +1 -1
  181. package/dist/models/metric-create.d.ts +3 -28
  182. package/dist/models/metric-create.js +1 -1
  183. package/dist/models/metric-response.d.ts +3 -50
  184. package/dist/models/metric-response.js +1 -1
  185. package/dist/models/metric-type.d.ts +1 -6
  186. package/dist/models/metric-type.js +1 -6
  187. package/dist/models/metric-update.d.ts +3 -35
  188. package/dist/models/metric-update.js +1 -1
  189. package/dist/models/objective-create.d.ts +1 -10
  190. package/dist/models/objective-create.js +1 -1
  191. package/dist/models/objective-response.d.ts +1 -30
  192. package/dist/models/objective-response.js +1 -1
  193. package/dist/models/objective-update.d.ts +1 -13
  194. package/dist/models/objective-update.js +1 -1
  195. package/dist/models/objective-weight-create.d.ts +1 -9
  196. package/dist/models/objective-weight-create.js +1 -1
  197. package/dist/models/objective-weight-response.d.ts +1 -14
  198. package/dist/models/objective-weight-response.js +1 -1
  199. package/dist/models/objective-weight-update.d.ts +1 -8
  200. package/dist/models/objective-weight-update.js +1 -1
  201. package/dist/models/option-create.d.ts +33 -0
  202. package/dist/models/option-create.js +15 -0
  203. package/dist/models/option-response.d.ts +31 -0
  204. package/dist/models/option-response.js +15 -0
  205. package/dist/models/option-update.d.ts +19 -0
  206. package/dist/models/option-update.js +15 -0
  207. package/dist/models/validation-error.d.ts +3 -33
  208. package/dist/models/validation-error.js +1 -1
  209. package/dist/models/value-framework-create.d.ts +1 -10
  210. package/dist/models/value-framework-create.js +1 -1
  211. package/dist/models/value-framework-response.d.ts +1 -30
  212. package/dist/models/value-framework-response.js +1 -1
  213. package/dist/models/value-framework-update.d.ts +1 -13
  214. package/dist/models/value-framework-update.js +1 -1
  215. package/docs/DefaultApi.md +51 -0
  216. package/docs/EvolutionType.md +10 -0
  217. package/docs/HTTPValidationError.md +20 -0
  218. package/docs/ImpactAPIResponse.md +39 -0
  219. package/docs/ImpactApi.md +312 -0
  220. package/docs/ImpactCreate.md +29 -0
  221. package/docs/ImpactUpdate.md +29 -0
  222. package/docs/InvestmentApi.md +875 -0
  223. package/docs/InvestmentCreate.md +23 -0
  224. package/docs/InvestmentResponse.md +31 -0
  225. package/docs/InvestmentUpdate.md +23 -0
  226. package/docs/LocationInner.md +18 -0
  227. package/docs/MeasurementType.md +10 -0
  228. package/docs/MetricApi.md +299 -0
  229. package/docs/MetricCostsApi.md +66 -0
  230. package/docs/MetricCostsPerYearApi.md +307 -0
  231. package/docs/MetricCostsPerYearCreate.md +27 -0
  232. package/docs/MetricCostsPerYearResponse.md +31 -0
  233. package/docs/MetricCostsPerYearUpdate.md +23 -0
  234. package/docs/MetricCreate.md +33 -0
  235. package/docs/MetricResponse.md +43 -0
  236. package/docs/MetricType.md +12 -0
  237. package/docs/MetricUpdate.md +31 -0
  238. package/docs/ObjectiveApi.md +633 -0
  239. package/docs/ObjectiveCreate.md +23 -0
  240. package/docs/ObjectiveResponse.md +31 -0
  241. package/docs/ObjectiveUpdate.md +23 -0
  242. package/docs/ObjectiveWeightApi.md +298 -0
  243. package/docs/ObjectiveWeightCreate.md +25 -0
  244. package/docs/ObjectiveWeightResponse.md +27 -0
  245. package/docs/ObjectiveWeightUpdate.md +21 -0
  246. package/docs/ObjectiveWeightsApi.md +66 -0
  247. package/docs/OptionApi.md +602 -0
  248. package/docs/OptionCreate.md +29 -0
  249. package/docs/OptionResponse.md +37 -0
  250. package/docs/OptionUpdate.md +25 -0
  251. package/docs/ValidationError.md +28 -0
  252. package/docs/ValueFrameworkApi.md +1053 -0
  253. package/docs/ValueFrameworkCostsApi.md +128 -0
  254. package/docs/ValueFrameworkCreate.md +23 -0
  255. package/docs/ValueFrameworkResponse.md +31 -0
  256. package/docs/ValueFrameworkUpdate.md +23 -0
  257. package/docs/ValueFrameworkWeightsApi.md +66 -0
  258. package/index.ts +1 -1
  259. package/models/evolution-type.ts +26 -0
  260. package/models/httpvalidation-error.ts +2 -12
  261. package/models/impact-apiresponse.ts +43 -0
  262. package/models/impact-create.ts +47 -0
  263. package/models/impact-update.ts +32 -0
  264. package/models/index.ts +11 -1
  265. package/models/investment-create.ts +27 -0
  266. package/models/investment-response.ts +31 -0
  267. package/models/investment-update.ts +24 -0
  268. package/models/{validation-error-loc-inner.ts → location-inner.ts} +2 -7
  269. package/models/measurement-type.ts +1 -6
  270. package/models/metric-costs-per-year-create.ts +1 -17
  271. package/models/metric-costs-per-year-response.ts +1 -18
  272. package/models/metric-costs-per-year-update.ts +1 -13
  273. package/models/metric-create.ts +3 -28
  274. package/models/metric-response.ts +3 -50
  275. package/models/metric-type.ts +1 -6
  276. package/models/metric-update.ts +3 -35
  277. package/models/objective-create.ts +1 -10
  278. package/models/objective-response.ts +1 -30
  279. package/models/objective-update.ts +1 -13
  280. package/models/objective-weight-create.ts +1 -9
  281. package/models/objective-weight-response.ts +1 -14
  282. package/models/objective-weight-update.ts +1 -8
  283. package/models/option-create.ts +39 -0
  284. package/models/option-response.ts +37 -0
  285. package/models/option-update.ts +25 -0
  286. package/models/validation-error.ts +3 -33
  287. package/models/value-framework-create.ts +1 -10
  288. package/models/value-framework-response.ts +1 -30
  289. package/models/value-framework-update.ts +1 -13
  290. package/package.json +4 -4
@@ -0,0 +1,875 @@
1
+ # InvestmentApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createImpactForOption**](#createimpactforoption) | **POST** /investment/{investment_id}/option/{option_id}/impact/ | Create an impact for this option|
8
+ |[**createOptionForInvestment**](#createoptionforinvestment) | **POST** /investment/{investment_id}/option/ | Create an option for this investment|
9
+ |[**deleteImpactForOption**](#deleteimpactforoption) | **DELETE** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Delete an impact for this option|
10
+ |[**deleteInvestment**](#deleteinvestment) | **DELETE** /investment/{investment_id} | Delete an investment|
11
+ |[**deleteOptionForInvestment**](#deleteoptionforinvestment) | **DELETE** /investment/{investment_id}/option/{option_id} | Delete an option for this investment|
12
+ |[**getImpactForOption**](#getimpactforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Get an impact for this option|
13
+ |[**getImpactsForOption**](#getimpactsforoption) | **GET** /investment/{investment_id}/option/{option_id}/impact/ | List impacts for this option|
14
+ |[**getInvestmentById**](#getinvestmentbyid) | **GET** /investment/{investment_id} | Get an investment by ID|
15
+ |[**getInvestments**](#getinvestments) | **GET** /investment/ | List investments|
16
+ |[**getOptionForInvestment**](#getoptionforinvestment) | **GET** /investment/{investment_id}/option/{option_id} | Get an option for this investment|
17
+ |[**getOptionsForInvestment**](#getoptionsforinvestment) | **GET** /investment/{investment_id}/option/ | List options for this investment|
18
+ |[**patchImpactForOption**](#patchimpactforoption) | **PATCH** /investment/{investment_id}/option/{option_id}/impact/{impact_id} | Partially update an impact for this option|
19
+ |[**patchInvestment**](#patchinvestment) | **PATCH** /investment/{investment_id} | Partially update an investment|
20
+ |[**patchOptionForInvestment**](#patchoptionforinvestment) | **PATCH** /investment/{investment_id}/option/{option_id} | Partially update an option for this investment|
21
+ |[**postInvestment**](#postinvestment) | **POST** /investment/ | Create an investment|
22
+
23
+ # **createImpactForOption**
24
+ > ImpactAPIResponse createImpactForOption(impactCreate)
25
+
26
+ Create a new impact under this option.
27
+
28
+ ### Example
29
+
30
+ ```typescript
31
+ import {
32
+ InvestmentApi,
33
+ Configuration,
34
+ ImpactCreate
35
+ } from '@cosmotech/aip-client';
36
+
37
+ const configuration = new Configuration();
38
+ const apiInstance = new InvestmentApi(configuration);
39
+
40
+ let optionId: string; //UUID of the option (default to undefined)
41
+ let investmentId: string; //UUID of the investment (default to undefined)
42
+ let impactCreate: ImpactCreate; //
43
+
44
+ const { status, data } = await apiInstance.createImpactForOption(
45
+ optionId,
46
+ investmentId,
47
+ impactCreate
48
+ );
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+ |Name | Type | Description | Notes|
54
+ |------------- | ------------- | ------------- | -------------|
55
+ | **impactCreate** | **ImpactCreate**| | |
56
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
57
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
58
+
59
+
60
+ ### Return type
61
+
62
+ **ImpactAPIResponse**
63
+
64
+ ### Authorization
65
+
66
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json
71
+ - **Accept**: application/json
72
+
73
+
74
+ ### HTTP response details
75
+ | Status code | Description | Response headers |
76
+ |-------------|-------------|------------------|
77
+ |**201** | Impact created successfully | - |
78
+ |**400** | Invalid input or constraint violation | - |
79
+ |**404** | Investment or option not found | - |
80
+
81
+ [[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)
82
+
83
+ # **createOptionForInvestment**
84
+ > OptionResponse createOptionForInvestment(optionCreate)
85
+
86
+ Create a new option under this investment.
87
+
88
+ ### Example
89
+
90
+ ```typescript
91
+ import {
92
+ InvestmentApi,
93
+ Configuration,
94
+ OptionCreate
95
+ } from '@cosmotech/aip-client';
96
+
97
+ const configuration = new Configuration();
98
+ const apiInstance = new InvestmentApi(configuration);
99
+
100
+ let investmentId: string; //UUID of the investment (default to undefined)
101
+ let optionCreate: OptionCreate; //
102
+
103
+ const { status, data } = await apiInstance.createOptionForInvestment(
104
+ investmentId,
105
+ optionCreate
106
+ );
107
+ ```
108
+
109
+ ### Parameters
110
+
111
+ |Name | Type | Description | Notes|
112
+ |------------- | ------------- | ------------- | -------------|
113
+ | **optionCreate** | **OptionCreate**| | |
114
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
115
+
116
+
117
+ ### Return type
118
+
119
+ **OptionResponse**
120
+
121
+ ### Authorization
122
+
123
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
124
+
125
+ ### HTTP request headers
126
+
127
+ - **Content-Type**: application/json
128
+ - **Accept**: application/json
129
+
130
+
131
+ ### HTTP response details
132
+ | Status code | Description | Response headers |
133
+ |-------------|-------------|------------------|
134
+ |**201** | Option created successfully | - |
135
+ |**400** | Invalid input or constraint violation | - |
136
+ |**404** | Investment not found | - |
137
+
138
+ [[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)
139
+
140
+ # **deleteImpactForOption**
141
+ > deleteImpactForOption()
142
+
143
+ Delete an existing impact by its ID.
144
+
145
+ ### Example
146
+
147
+ ```typescript
148
+ import {
149
+ InvestmentApi,
150
+ Configuration
151
+ } from '@cosmotech/aip-client';
152
+
153
+ const configuration = new Configuration();
154
+ const apiInstance = new InvestmentApi(configuration);
155
+
156
+ let impactId: string; //UUID of the impact (default to undefined)
157
+ let optionId: string; //UUID of the option (default to undefined)
158
+ let investmentId: string; //UUID of the investment (default to undefined)
159
+
160
+ const { status, data } = await apiInstance.deleteImpactForOption(
161
+ impactId,
162
+ optionId,
163
+ investmentId
164
+ );
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ |Name | Type | Description | Notes|
170
+ |------------- | ------------- | ------------- | -------------|
171
+ | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
172
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
173
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
174
+
175
+
176
+ ### Return type
177
+
178
+ void (empty response body)
179
+
180
+ ### Authorization
181
+
182
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
183
+
184
+ ### HTTP request headers
185
+
186
+ - **Content-Type**: Not defined
187
+ - **Accept**: Not defined
188
+
189
+
190
+ ### HTTP response details
191
+ | Status code | Description | Response headers |
192
+ |-------------|-------------|------------------|
193
+ |**204** | Impact successfully deleted | - |
194
+ |**404** | Investment, option, or impact not found | - |
195
+
196
+ [[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)
197
+
198
+ # **deleteInvestment**
199
+ > deleteInvestment()
200
+
201
+ Delete an existing investment by its ID. Associated options are also deleted via cascade.
202
+
203
+ ### Example
204
+
205
+ ```typescript
206
+ import {
207
+ InvestmentApi,
208
+ Configuration
209
+ } from '@cosmotech/aip-client';
210
+
211
+ const configuration = new Configuration();
212
+ const apiInstance = new InvestmentApi(configuration);
213
+
214
+ let investmentId: string; //UUID of the investment (default to undefined)
215
+
216
+ const { status, data } = await apiInstance.deleteInvestment(
217
+ investmentId
218
+ );
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ |Name | Type | Description | Notes|
224
+ |------------- | ------------- | ------------- | -------------|
225
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
226
+
227
+
228
+ ### Return type
229
+
230
+ void (empty response body)
231
+
232
+ ### Authorization
233
+
234
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: Not defined
240
+
241
+
242
+ ### HTTP response details
243
+ | Status code | Description | Response headers |
244
+ |-------------|-------------|------------------|
245
+ |**204** | Investment successfully deleted | - |
246
+ |**404** | Investment not found | - |
247
+
248
+ [[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)
249
+
250
+ # **deleteOptionForInvestment**
251
+ > deleteOptionForInvestment()
252
+
253
+ Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
254
+
255
+ ### Example
256
+
257
+ ```typescript
258
+ import {
259
+ InvestmentApi,
260
+ Configuration
261
+ } from '@cosmotech/aip-client';
262
+
263
+ const configuration = new Configuration();
264
+ const apiInstance = new InvestmentApi(configuration);
265
+
266
+ let optionId: string; //UUID of the option (default to undefined)
267
+ let investmentId: string; //UUID of the investment (default to undefined)
268
+
269
+ const { status, data } = await apiInstance.deleteOptionForInvestment(
270
+ optionId,
271
+ investmentId
272
+ );
273
+ ```
274
+
275
+ ### Parameters
276
+
277
+ |Name | Type | Description | Notes|
278
+ |------------- | ------------- | ------------- | -------------|
279
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
280
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
281
+
282
+
283
+ ### Return type
284
+
285
+ void (empty response body)
286
+
287
+ ### Authorization
288
+
289
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: Not defined
294
+ - **Accept**: Not defined
295
+
296
+
297
+ ### HTTP response details
298
+ | Status code | Description | Response headers |
299
+ |-------------|-------------|------------------|
300
+ |**204** | Option successfully deleted | - |
301
+ |**404** | Investment or option not found | - |
302
+
303
+ [[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
+
305
+ # **getImpactForOption**
306
+ > ImpactAPIResponse getImpactForOption()
307
+
308
+ Retrieve a specific impact for the option.
309
+
310
+ ### Example
311
+
312
+ ```typescript
313
+ import {
314
+ InvestmentApi,
315
+ Configuration
316
+ } from '@cosmotech/aip-client';
317
+
318
+ const configuration = new Configuration();
319
+ const apiInstance = new InvestmentApi(configuration);
320
+
321
+ let impactId: string; //UUID of the impact (default to undefined)
322
+ let optionId: string; //UUID of the option (default to undefined)
323
+ let investmentId: string; //UUID of the investment (default to undefined)
324
+
325
+ const { status, data } = await apiInstance.getImpactForOption(
326
+ impactId,
327
+ optionId,
328
+ investmentId
329
+ );
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+ |Name | Type | Description | Notes|
335
+ |------------- | ------------- | ------------- | -------------|
336
+ | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
337
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
338
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
339
+
340
+
341
+ ### Return type
342
+
343
+ **ImpactAPIResponse**
344
+
345
+ ### Authorization
346
+
347
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
348
+
349
+ ### HTTP request headers
350
+
351
+ - **Content-Type**: Not defined
352
+ - **Accept**: application/json
353
+
354
+
355
+ ### HTTP response details
356
+ | Status code | Description | Response headers |
357
+ |-------------|-------------|------------------|
358
+ |**200** | The requested impact | - |
359
+ |**404** | Investment, option, or impact not found | - |
360
+
361
+ [[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)
362
+
363
+ # **getImpactsForOption**
364
+ > Array<ImpactAPIResponse> getImpactsForOption()
365
+
366
+ Retrieve a paginated list of all impacts for a specific option.
367
+
368
+ ### Example
369
+
370
+ ```typescript
371
+ import {
372
+ InvestmentApi,
373
+ Configuration
374
+ } from '@cosmotech/aip-client';
375
+
376
+ const configuration = new Configuration();
377
+ const apiInstance = new InvestmentApi(configuration);
378
+
379
+ let optionId: string; //UUID of the option (default to undefined)
380
+ let investmentId: string; //UUID of the investment (default to undefined)
381
+ let offset: number; //Number of records to skip (optional) (default to 0)
382
+ let limit: number; //Max number of records to return (optional) (default to 100)
383
+
384
+ const { status, data } = await apiInstance.getImpactsForOption(
385
+ optionId,
386
+ investmentId,
387
+ offset,
388
+ limit
389
+ );
390
+ ```
391
+
392
+ ### Parameters
393
+
394
+ |Name | Type | Description | Notes|
395
+ |------------- | ------------- | ------------- | -------------|
396
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
397
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
398
+ | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
399
+ | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
400
+
401
+
402
+ ### Return type
403
+
404
+ **Array<ImpactAPIResponse>**
405
+
406
+ ### Authorization
407
+
408
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
409
+
410
+ ### HTTP request headers
411
+
412
+ - **Content-Type**: Not defined
413
+ - **Accept**: application/json
414
+
415
+
416
+ ### HTTP response details
417
+ | Status code | Description | Response headers |
418
+ |-------------|-------------|------------------|
419
+ |**200** | List of impacts for the option | - |
420
+ |**404** | Investment or option not found | - |
421
+
422
+ [[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)
423
+
424
+ # **getInvestmentById**
425
+ > InvestmentResponse getInvestmentById()
426
+
427
+ Retrieve a single investment by its ID.
428
+
429
+ ### Example
430
+
431
+ ```typescript
432
+ import {
433
+ InvestmentApi,
434
+ Configuration
435
+ } from '@cosmotech/aip-client';
436
+
437
+ const configuration = new Configuration();
438
+ const apiInstance = new InvestmentApi(configuration);
439
+
440
+ let investmentId: string; //UUID of the investment (default to undefined)
441
+
442
+ const { status, data } = await apiInstance.getInvestmentById(
443
+ investmentId
444
+ );
445
+ ```
446
+
447
+ ### Parameters
448
+
449
+ |Name | Type | Description | Notes|
450
+ |------------- | ------------- | ------------- | -------------|
451
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
452
+
453
+
454
+ ### Return type
455
+
456
+ **InvestmentResponse**
457
+
458
+ ### Authorization
459
+
460
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
461
+
462
+ ### HTTP request headers
463
+
464
+ - **Content-Type**: Not defined
465
+ - **Accept**: application/json
466
+
467
+
468
+ ### HTTP response details
469
+ | Status code | Description | Response headers |
470
+ |-------------|-------------|------------------|
471
+ |**200** | The requested investment | - |
472
+ |**404** | Investment not found | - |
473
+
474
+ [[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)
475
+
476
+ # **getInvestments**
477
+ > Array<InvestmentResponse> getInvestments()
478
+
479
+ Retrieve a paginated list of all investments.
480
+
481
+ ### Example
482
+
483
+ ```typescript
484
+ import {
485
+ InvestmentApi,
486
+ Configuration
487
+ } from '@cosmotech/aip-client';
488
+
489
+ const configuration = new Configuration();
490
+ const apiInstance = new InvestmentApi(configuration);
491
+
492
+ let offset: number; //Number of records to skip (optional) (default to 0)
493
+ let limit: number; //Max number of records to return (optional) (default to 100)
494
+
495
+ const { status, data } = await apiInstance.getInvestments(
496
+ offset,
497
+ limit
498
+ );
499
+ ```
500
+
501
+ ### Parameters
502
+
503
+ |Name | Type | Description | Notes|
504
+ |------------- | ------------- | ------------- | -------------|
505
+ | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
506
+ | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
507
+
508
+
509
+ ### Return type
510
+
511
+ **Array<InvestmentResponse>**
512
+
513
+ ### Authorization
514
+
515
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
516
+
517
+ ### HTTP request headers
518
+
519
+ - **Content-Type**: Not defined
520
+ - **Accept**: application/json
521
+
522
+
523
+ ### HTTP response details
524
+ | Status code | Description | Response headers |
525
+ |-------------|-------------|------------------|
526
+ |**200** | List of investments | - |
527
+
528
+ [[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)
529
+
530
+ # **getOptionForInvestment**
531
+ > OptionResponse getOptionForInvestment()
532
+
533
+ Retrieve a specific option for the investment.
534
+
535
+ ### Example
536
+
537
+ ```typescript
538
+ import {
539
+ InvestmentApi,
540
+ Configuration
541
+ } from '@cosmotech/aip-client';
542
+
543
+ const configuration = new Configuration();
544
+ const apiInstance = new InvestmentApi(configuration);
545
+
546
+ let optionId: string; //UUID of the option (default to undefined)
547
+ let investmentId: string; //UUID of the investment (default to undefined)
548
+
549
+ const { status, data } = await apiInstance.getOptionForInvestment(
550
+ optionId,
551
+ investmentId
552
+ );
553
+ ```
554
+
555
+ ### Parameters
556
+
557
+ |Name | Type | Description | Notes|
558
+ |------------- | ------------- | ------------- | -------------|
559
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
560
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
561
+
562
+
563
+ ### Return type
564
+
565
+ **OptionResponse**
566
+
567
+ ### Authorization
568
+
569
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
570
+
571
+ ### HTTP request headers
572
+
573
+ - **Content-Type**: Not defined
574
+ - **Accept**: application/json
575
+
576
+
577
+ ### HTTP response details
578
+ | Status code | Description | Response headers |
579
+ |-------------|-------------|------------------|
580
+ |**200** | The requested option | - |
581
+ |**404** | Investment or option not found | - |
582
+
583
+ [[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
+
585
+ # **getOptionsForInvestment**
586
+ > Array<OptionResponse> getOptionsForInvestment()
587
+
588
+ Retrieve a paginated list of all options for a specific investment.
589
+
590
+ ### Example
591
+
592
+ ```typescript
593
+ import {
594
+ InvestmentApi,
595
+ Configuration
596
+ } from '@cosmotech/aip-client';
597
+
598
+ const configuration = new Configuration();
599
+ const apiInstance = new InvestmentApi(configuration);
600
+
601
+ let investmentId: string; //UUID of the investment (default to undefined)
602
+ let offset: number; //Number of records to skip (optional) (default to 0)
603
+ let limit: number; //Max number of records to return (optional) (default to 100)
604
+
605
+ const { status, data } = await apiInstance.getOptionsForInvestment(
606
+ investmentId,
607
+ offset,
608
+ limit
609
+ );
610
+ ```
611
+
612
+ ### Parameters
613
+
614
+ |Name | Type | Description | Notes|
615
+ |------------- | ------------- | ------------- | -------------|
616
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
617
+ | **offset** | [**number**] | Number of records to skip | (optional) defaults to 0|
618
+ | **limit** | [**number**] | Max number of records to return | (optional) defaults to 100|
619
+
620
+
621
+ ### Return type
622
+
623
+ **Array<OptionResponse>**
624
+
625
+ ### Authorization
626
+
627
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
628
+
629
+ ### HTTP request headers
630
+
631
+ - **Content-Type**: Not defined
632
+ - **Accept**: application/json
633
+
634
+
635
+ ### HTTP response details
636
+ | Status code | Description | Response headers |
637
+ |-------------|-------------|------------------|
638
+ |**200** | List of options for the investment | - |
639
+ |**404** | Investment not found | - |
640
+
641
+ [[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)
642
+
643
+ # **patchImpactForOption**
644
+ > ImpactAPIResponse patchImpactForOption(impactUpdate)
645
+
646
+ Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
647
+
648
+ ### Example
649
+
650
+ ```typescript
651
+ import {
652
+ InvestmentApi,
653
+ Configuration,
654
+ ImpactUpdate
655
+ } from '@cosmotech/aip-client';
656
+
657
+ const configuration = new Configuration();
658
+ const apiInstance = new InvestmentApi(configuration);
659
+
660
+ let impactId: string; //UUID of the impact (default to undefined)
661
+ let optionId: string; //UUID of the option (default to undefined)
662
+ let investmentId: string; //UUID of the investment (default to undefined)
663
+ let impactUpdate: ImpactUpdate; //
664
+
665
+ const { status, data } = await apiInstance.patchImpactForOption(
666
+ impactId,
667
+ optionId,
668
+ investmentId,
669
+ impactUpdate
670
+ );
671
+ ```
672
+
673
+ ### Parameters
674
+
675
+ |Name | Type | Description | Notes|
676
+ |------------- | ------------- | ------------- | -------------|
677
+ | **impactUpdate** | **ImpactUpdate**| | |
678
+ | **impactId** | [**string**] | UUID of the impact | defaults to undefined|
679
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
680
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
681
+
682
+
683
+ ### Return type
684
+
685
+ **ImpactAPIResponse**
686
+
687
+ ### Authorization
688
+
689
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
690
+
691
+ ### HTTP request headers
692
+
693
+ - **Content-Type**: application/json
694
+ - **Accept**: application/json
695
+
696
+
697
+ ### HTTP response details
698
+ | Status code | Description | Response headers |
699
+ |-------------|-------------|------------------|
700
+ |**200** | Impact updated successfully | - |
701
+ |**400** | Validation or constraint error | - |
702
+ |**404** | Investment, option, or impact not found | - |
703
+
704
+ [[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)
705
+
706
+ # **patchInvestment**
707
+ > InvestmentResponse patchInvestment(investmentUpdate)
708
+
709
+ Update one or more fields of an existing investment. Only the fields included in the request body will be modified; omitted fields remain unchanged.
710
+
711
+ ### Example
712
+
713
+ ```typescript
714
+ import {
715
+ InvestmentApi,
716
+ Configuration,
717
+ InvestmentUpdate
718
+ } from '@cosmotech/aip-client';
719
+
720
+ const configuration = new Configuration();
721
+ const apiInstance = new InvestmentApi(configuration);
722
+
723
+ let investmentId: string; //UUID of the investment (default to undefined)
724
+ let investmentUpdate: InvestmentUpdate; //
725
+
726
+ const { status, data } = await apiInstance.patchInvestment(
727
+ investmentId,
728
+ investmentUpdate
729
+ );
730
+ ```
731
+
732
+ ### Parameters
733
+
734
+ |Name | Type | Description | Notes|
735
+ |------------- | ------------- | ------------- | -------------|
736
+ | **investmentUpdate** | **InvestmentUpdate**| | |
737
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
738
+
739
+
740
+ ### Return type
741
+
742
+ **InvestmentResponse**
743
+
744
+ ### Authorization
745
+
746
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
747
+
748
+ ### HTTP request headers
749
+
750
+ - **Content-Type**: application/json
751
+ - **Accept**: application/json
752
+
753
+
754
+ ### HTTP response details
755
+ | Status code | Description | Response headers |
756
+ |-------------|-------------|------------------|
757
+ |**200** | Investment updated successfully | - |
758
+ |**400** | Validation or constraint error | - |
759
+ |**404** | Investment not found | - |
760
+
761
+ [[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)
762
+
763
+ # **patchOptionForInvestment**
764
+ > OptionResponse patchOptionForInvestment(optionUpdate)
765
+
766
+ Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
767
+
768
+ ### Example
769
+
770
+ ```typescript
771
+ import {
772
+ InvestmentApi,
773
+ Configuration,
774
+ OptionUpdate
775
+ } from '@cosmotech/aip-client';
776
+
777
+ const configuration = new Configuration();
778
+ const apiInstance = new InvestmentApi(configuration);
779
+
780
+ let optionId: string; //UUID of the option (default to undefined)
781
+ let investmentId: string; //UUID of the investment (default to undefined)
782
+ let optionUpdate: OptionUpdate; //
783
+
784
+ const { status, data } = await apiInstance.patchOptionForInvestment(
785
+ optionId,
786
+ investmentId,
787
+ optionUpdate
788
+ );
789
+ ```
790
+
791
+ ### Parameters
792
+
793
+ |Name | Type | Description | Notes|
794
+ |------------- | ------------- | ------------- | -------------|
795
+ | **optionUpdate** | **OptionUpdate**| | |
796
+ | **optionId** | [**string**] | UUID of the option | defaults to undefined|
797
+ | **investmentId** | [**string**] | UUID of the investment | defaults to undefined|
798
+
799
+
800
+ ### Return type
801
+
802
+ **OptionResponse**
803
+
804
+ ### Authorization
805
+
806
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
807
+
808
+ ### HTTP request headers
809
+
810
+ - **Content-Type**: application/json
811
+ - **Accept**: application/json
812
+
813
+
814
+ ### HTTP response details
815
+ | Status code | Description | Response headers |
816
+ |-------------|-------------|------------------|
817
+ |**200** | Option updated successfully | - |
818
+ |**400** | Validation or constraint error | - |
819
+ |**404** | Investment or option not found | - |
820
+
821
+ [[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)
822
+
823
+ # **postInvestment**
824
+ > InvestmentResponse postInvestment(investmentCreate)
825
+
826
+ Create a new investment.
827
+
828
+ ### Example
829
+
830
+ ```typescript
831
+ import {
832
+ InvestmentApi,
833
+ Configuration,
834
+ InvestmentCreate
835
+ } from '@cosmotech/aip-client';
836
+
837
+ const configuration = new Configuration();
838
+ const apiInstance = new InvestmentApi(configuration);
839
+
840
+ let investmentCreate: InvestmentCreate; //
841
+
842
+ const { status, data } = await apiInstance.postInvestment(
843
+ investmentCreate
844
+ );
845
+ ```
846
+
847
+ ### Parameters
848
+
849
+ |Name | Type | Description | Notes|
850
+ |------------- | ------------- | ------------- | -------------|
851
+ | **investmentCreate** | **InvestmentCreate**| | |
852
+
853
+
854
+ ### Return type
855
+
856
+ **InvestmentResponse**
857
+
858
+ ### Authorization
859
+
860
+ [OAuth2AuthorizationCodeBearer](../README.md#OAuth2AuthorizationCodeBearer)
861
+
862
+ ### HTTP request headers
863
+
864
+ - **Content-Type**: application/json
865
+ - **Accept**: application/json
866
+
867
+
868
+ ### HTTP response details
869
+ | Status code | Description | Response headers |
870
+ |-------------|-------------|------------------|
871
+ |**201** | Investment created successfully | - |
872
+ |**400** | Invalid input or constraint violation | - |
873
+
874
+ [[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
+