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