@cosmotech/aip-client 0.2.0-dev7 → 0.3.0-dev1

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 (340) hide show
  1. package/README.md +20 -2
  2. package/api/budget-api.ts +835 -0
  3. package/api/default-api.ts +1 -1
  4. package/api/impact-api.ts +1 -1
  5. package/api/investment-api.ts +1 -1
  6. package/api/metric-api.ts +1 -1
  7. package/api/metric-costs-api.ts +1 -1
  8. package/api/metric-costs-per-year-api.ts +1 -1
  9. package/api/objective-api.ts +1 -1
  10. package/api/objective-weight-api.ts +1 -1
  11. package/api/objective-weights-api.ts +1 -1
  12. package/api/option-api.ts +1 -1
  13. package/api/preferred-option-api.ts +1 -1
  14. package/api/value-framework-api.ts +1 -1
  15. package/api/value-framework-costs-api.ts +1 -1
  16. package/api/value-framework-weights-api.ts +1 -1
  17. package/api.ts +2 -1
  18. package/base.ts +1 -1
  19. package/common.ts +1 -1
  20. package/configuration.ts +1 -1
  21. package/dist/api/budget-api.d.ts +382 -0
  22. package/dist/api/budget-api.js +794 -0
  23. package/dist/api/default-api.d.ts +1 -1
  24. package/dist/api/default-api.js +1 -1
  25. package/dist/api/impact-api.d.ts +1 -1
  26. package/dist/api/impact-api.js +1 -1
  27. package/dist/api/investment-api.d.ts +1 -1
  28. package/dist/api/investment-api.js +1 -1
  29. package/dist/api/metric-api.d.ts +1 -1
  30. package/dist/api/metric-api.js +1 -1
  31. package/dist/api/metric-costs-api.d.ts +1 -1
  32. package/dist/api/metric-costs-api.js +1 -1
  33. package/dist/api/metric-costs-per-year-api.d.ts +1 -1
  34. package/dist/api/metric-costs-per-year-api.js +1 -1
  35. package/dist/api/objective-api.d.ts +1 -1
  36. package/dist/api/objective-api.js +1 -1
  37. package/dist/api/objective-weight-api.d.ts +1 -1
  38. package/dist/api/objective-weight-api.js +1 -1
  39. package/dist/api/objective-weights-api.d.ts +1 -1
  40. package/dist/api/objective-weights-api.js +1 -1
  41. package/dist/api/option-api.d.ts +1 -1
  42. package/dist/api/option-api.js +1 -1
  43. package/dist/api/preferred-option-api.d.ts +1 -1
  44. package/dist/api/preferred-option-api.js +1 -1
  45. package/dist/api/value-framework-api.d.ts +1 -1
  46. package/dist/api/value-framework-api.js +1 -1
  47. package/dist/api/value-framework-costs-api.d.ts +1 -1
  48. package/dist/api/value-framework-costs-api.js +1 -1
  49. package/dist/api/value-framework-weights-api.d.ts +1 -1
  50. package/dist/api/value-framework-weights-api.js +1 -1
  51. package/dist/api.d.ts +2 -1
  52. package/dist/api.js +2 -1
  53. package/dist/base.d.ts +1 -1
  54. package/dist/base.js +1 -1
  55. package/dist/common.d.ts +1 -1
  56. package/dist/common.js +1 -1
  57. package/dist/configuration.d.ts +1 -1
  58. package/dist/configuration.js +1 -1
  59. package/dist/esm/api/budget-api.d.ts +382 -0
  60. package/dist/esm/api/budget-api.js +787 -0
  61. package/dist/esm/api/default-api.d.ts +1 -1
  62. package/dist/esm/api/default-api.js +1 -1
  63. package/dist/esm/api/impact-api.d.ts +1 -1
  64. package/dist/esm/api/impact-api.js +1 -1
  65. package/dist/esm/api/investment-api.d.ts +1 -1
  66. package/dist/esm/api/investment-api.js +1 -1
  67. package/dist/esm/api/metric-api.d.ts +1 -1
  68. package/dist/esm/api/metric-api.js +1 -1
  69. package/dist/esm/api/metric-costs-api.d.ts +1 -1
  70. package/dist/esm/api/metric-costs-api.js +1 -1
  71. package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
  72. package/dist/esm/api/metric-costs-per-year-api.js +1 -1
  73. package/dist/esm/api/objective-api.d.ts +1 -1
  74. package/dist/esm/api/objective-api.js +1 -1
  75. package/dist/esm/api/objective-weight-api.d.ts +1 -1
  76. package/dist/esm/api/objective-weight-api.js +1 -1
  77. package/dist/esm/api/objective-weights-api.d.ts +1 -1
  78. package/dist/esm/api/objective-weights-api.js +1 -1
  79. package/dist/esm/api/option-api.d.ts +1 -1
  80. package/dist/esm/api/option-api.js +1 -1
  81. package/dist/esm/api/preferred-option-api.d.ts +1 -1
  82. package/dist/esm/api/preferred-option-api.js +1 -1
  83. package/dist/esm/api/value-framework-api.d.ts +1 -1
  84. package/dist/esm/api/value-framework-api.js +1 -1
  85. package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
  86. package/dist/esm/api/value-framework-costs-api.js +1 -1
  87. package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
  88. package/dist/esm/api/value-framework-weights-api.js +1 -1
  89. package/dist/esm/api.d.ts +2 -1
  90. package/dist/esm/api.js +2 -1
  91. package/dist/esm/base.d.ts +1 -1
  92. package/dist/esm/base.js +1 -1
  93. package/dist/esm/common.d.ts +1 -1
  94. package/dist/esm/common.js +1 -1
  95. package/dist/esm/configuration.d.ts +1 -1
  96. package/dist/esm/configuration.js +1 -1
  97. package/dist/esm/index.d.ts +1 -1
  98. package/dist/esm/index.js +1 -1
  99. package/dist/esm/models/budget-bulk-delete-request.d.ts +20 -0
  100. package/dist/esm/models/budget-bulk-delete-request.js +14 -0
  101. package/dist/esm/models/budget-create.d.ts +22 -0
  102. package/dist/esm/models/budget-create.js +14 -0
  103. package/dist/esm/models/budget-investment-response.d.ts +34 -0
  104. package/dist/esm/models/budget-investment-response.js +14 -0
  105. package/dist/esm/models/budget-link-options-request.d.ts +20 -0
  106. package/dist/esm/models/budget-link-options-request.js +14 -0
  107. package/dist/esm/models/budget-option-response.d.ts +50 -0
  108. package/dist/esm/models/budget-option-response.js +14 -0
  109. package/dist/esm/models/budget-overview-response.d.ts +25 -0
  110. package/dist/esm/models/budget-overview-response.js +14 -0
  111. package/dist/esm/models/budget-response.d.ts +26 -0
  112. package/dist/esm/models/budget-response.js +14 -0
  113. package/dist/esm/models/budget-update.d.ts +19 -0
  114. package/dist/esm/models/budget-update.js +14 -0
  115. package/dist/esm/models/evolution-type.d.ts +1 -1
  116. package/dist/esm/models/evolution-type.js +1 -1
  117. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  118. package/dist/esm/models/httpvalidation-error.js +1 -1
  119. package/dist/esm/models/impact-apiresponse.d.ts +1 -1
  120. package/dist/esm/models/impact-apiresponse.js +1 -1
  121. package/dist/esm/models/impact-create.d.ts +1 -1
  122. package/dist/esm/models/impact-create.js +1 -1
  123. package/dist/esm/models/impact-update.d.ts +1 -1
  124. package/dist/esm/models/impact-update.js +1 -1
  125. package/dist/esm/models/index.d.ts +8 -0
  126. package/dist/esm/models/index.js +8 -0
  127. package/dist/esm/models/investment-create.d.ts +1 -1
  128. package/dist/esm/models/investment-create.js +1 -1
  129. package/dist/esm/models/investment-overview-response.d.ts +1 -1
  130. package/dist/esm/models/investment-overview-response.js +1 -1
  131. package/dist/esm/models/investment-response.d.ts +1 -1
  132. package/dist/esm/models/investment-response.js +1 -1
  133. package/dist/esm/models/investment-update.d.ts +1 -1
  134. package/dist/esm/models/investment-update.js +1 -1
  135. package/dist/esm/models/location-inner.d.ts +1 -1
  136. package/dist/esm/models/location-inner.js +1 -1
  137. package/dist/esm/models/measurement-type.d.ts +1 -1
  138. package/dist/esm/models/measurement-type.js +1 -1
  139. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  140. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  141. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  142. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  143. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  144. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  145. package/dist/esm/models/metric-create.d.ts +1 -1
  146. package/dist/esm/models/metric-create.js +1 -1
  147. package/dist/esm/models/metric-response.d.ts +1 -1
  148. package/dist/esm/models/metric-response.js +1 -1
  149. package/dist/esm/models/metric-type.d.ts +1 -1
  150. package/dist/esm/models/metric-type.js +1 -1
  151. package/dist/esm/models/metric-update.d.ts +1 -1
  152. package/dist/esm/models/metric-update.js +1 -1
  153. package/dist/esm/models/objective-create.d.ts +1 -1
  154. package/dist/esm/models/objective-create.js +1 -1
  155. package/dist/esm/models/objective-response.d.ts +1 -1
  156. package/dist/esm/models/objective-response.js +1 -1
  157. package/dist/esm/models/objective-update.d.ts +1 -1
  158. package/dist/esm/models/objective-update.js +1 -1
  159. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  160. package/dist/esm/models/objective-weight-create.js +1 -1
  161. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  162. package/dist/esm/models/objective-weight-response.js +1 -1
  163. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  164. package/dist/esm/models/objective-weight-update.js +1 -1
  165. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  166. package/dist/esm/models/option-chart-kpi.js +1 -1
  167. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  168. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  169. package/dist/esm/models/option-create.d.ts +2 -1
  170. package/dist/esm/models/option-create.js +1 -1
  171. package/dist/esm/models/option-overview-response.d.ts +2 -1
  172. package/dist/esm/models/option-overview-response.js +1 -1
  173. package/dist/esm/models/option-response.d.ts +2 -1
  174. package/dist/esm/models/option-response.js +1 -1
  175. package/dist/esm/models/option-update.d.ts +2 -1
  176. package/dist/esm/models/option-update.js +1 -1
  177. package/dist/esm/models/preferred-option-request.d.ts +1 -1
  178. package/dist/esm/models/preferred-option-request.js +1 -1
  179. package/dist/esm/models/preferred-option-response.d.ts +1 -1
  180. package/dist/esm/models/preferred-option-response.js +1 -1
  181. package/dist/esm/models/validation-error.d.ts +1 -1
  182. package/dist/esm/models/validation-error.js +1 -1
  183. package/dist/esm/models/value-framework-create.d.ts +1 -1
  184. package/dist/esm/models/value-framework-create.js +1 -1
  185. package/dist/esm/models/value-framework-response.d.ts +1 -1
  186. package/dist/esm/models/value-framework-response.js +1 -1
  187. package/dist/esm/models/value-framework-update.d.ts +1 -1
  188. package/dist/esm/models/value-framework-update.js +1 -1
  189. package/dist/index.d.ts +1 -1
  190. package/dist/index.js +1 -1
  191. package/dist/models/budget-bulk-delete-request.d.ts +20 -0
  192. package/dist/models/budget-bulk-delete-request.js +15 -0
  193. package/dist/models/budget-create.d.ts +22 -0
  194. package/dist/models/budget-create.js +15 -0
  195. package/dist/models/budget-investment-response.d.ts +34 -0
  196. package/dist/models/budget-investment-response.js +15 -0
  197. package/dist/models/budget-link-options-request.d.ts +20 -0
  198. package/dist/models/budget-link-options-request.js +15 -0
  199. package/dist/models/budget-option-response.d.ts +50 -0
  200. package/dist/models/budget-option-response.js +15 -0
  201. package/dist/models/budget-overview-response.d.ts +25 -0
  202. package/dist/models/budget-overview-response.js +15 -0
  203. package/dist/models/budget-response.d.ts +26 -0
  204. package/dist/models/budget-response.js +15 -0
  205. package/dist/models/budget-update.d.ts +19 -0
  206. package/dist/models/budget-update.js +15 -0
  207. package/dist/models/evolution-type.d.ts +1 -1
  208. package/dist/models/evolution-type.js +1 -1
  209. package/dist/models/httpvalidation-error.d.ts +1 -1
  210. package/dist/models/httpvalidation-error.js +1 -1
  211. package/dist/models/impact-apiresponse.d.ts +1 -1
  212. package/dist/models/impact-apiresponse.js +1 -1
  213. package/dist/models/impact-create.d.ts +1 -1
  214. package/dist/models/impact-create.js +1 -1
  215. package/dist/models/impact-update.d.ts +1 -1
  216. package/dist/models/impact-update.js +1 -1
  217. package/dist/models/index.d.ts +8 -0
  218. package/dist/models/index.js +8 -0
  219. package/dist/models/investment-create.d.ts +1 -1
  220. package/dist/models/investment-create.js +1 -1
  221. package/dist/models/investment-overview-response.d.ts +1 -1
  222. package/dist/models/investment-overview-response.js +1 -1
  223. package/dist/models/investment-response.d.ts +1 -1
  224. package/dist/models/investment-response.js +1 -1
  225. package/dist/models/investment-update.d.ts +1 -1
  226. package/dist/models/investment-update.js +1 -1
  227. package/dist/models/location-inner.d.ts +1 -1
  228. package/dist/models/location-inner.js +1 -1
  229. package/dist/models/measurement-type.d.ts +1 -1
  230. package/dist/models/measurement-type.js +1 -1
  231. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  232. package/dist/models/metric-costs-per-year-create.js +1 -1
  233. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  234. package/dist/models/metric-costs-per-year-response.js +1 -1
  235. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  236. package/dist/models/metric-costs-per-year-update.js +1 -1
  237. package/dist/models/metric-create.d.ts +1 -1
  238. package/dist/models/metric-create.js +1 -1
  239. package/dist/models/metric-response.d.ts +1 -1
  240. package/dist/models/metric-response.js +1 -1
  241. package/dist/models/metric-type.d.ts +1 -1
  242. package/dist/models/metric-type.js +1 -1
  243. package/dist/models/metric-update.d.ts +1 -1
  244. package/dist/models/metric-update.js +1 -1
  245. package/dist/models/objective-create.d.ts +1 -1
  246. package/dist/models/objective-create.js +1 -1
  247. package/dist/models/objective-response.d.ts +1 -1
  248. package/dist/models/objective-response.js +1 -1
  249. package/dist/models/objective-update.d.ts +1 -1
  250. package/dist/models/objective-update.js +1 -1
  251. package/dist/models/objective-weight-create.d.ts +1 -1
  252. package/dist/models/objective-weight-create.js +1 -1
  253. package/dist/models/objective-weight-response.d.ts +1 -1
  254. package/dist/models/objective-weight-response.js +1 -1
  255. package/dist/models/objective-weight-update.d.ts +1 -1
  256. package/dist/models/objective-weight-update.js +1 -1
  257. package/dist/models/option-chart-kpi.d.ts +1 -1
  258. package/dist/models/option-chart-kpi.js +1 -1
  259. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  260. package/dist/models/option-chart-kpis-yearly.js +1 -1
  261. package/dist/models/option-create.d.ts +2 -1
  262. package/dist/models/option-create.js +1 -1
  263. package/dist/models/option-overview-response.d.ts +2 -1
  264. package/dist/models/option-overview-response.js +1 -1
  265. package/dist/models/option-response.d.ts +2 -1
  266. package/dist/models/option-response.js +1 -1
  267. package/dist/models/option-update.d.ts +2 -1
  268. package/dist/models/option-update.js +1 -1
  269. package/dist/models/preferred-option-request.d.ts +1 -1
  270. package/dist/models/preferred-option-request.js +1 -1
  271. package/dist/models/preferred-option-response.d.ts +1 -1
  272. package/dist/models/preferred-option-response.js +1 -1
  273. package/dist/models/validation-error.d.ts +1 -1
  274. package/dist/models/validation-error.js +1 -1
  275. package/dist/models/value-framework-create.d.ts +1 -1
  276. package/dist/models/value-framework-create.js +1 -1
  277. package/dist/models/value-framework-response.d.ts +1 -1
  278. package/dist/models/value-framework-response.js +1 -1
  279. package/dist/models/value-framework-update.d.ts +1 -1
  280. package/dist/models/value-framework-update.js +1 -1
  281. package/docs/BudgetApi.md +559 -0
  282. package/docs/BudgetBulkDeleteRequest.md +21 -0
  283. package/docs/BudgetCreate.md +25 -0
  284. package/docs/BudgetInvestmentResponse.md +37 -0
  285. package/docs/BudgetLinkOptionsRequest.md +21 -0
  286. package/docs/BudgetOptionResponse.md +39 -0
  287. package/docs/BudgetOverviewResponse.md +25 -0
  288. package/docs/BudgetResponse.md +33 -0
  289. package/docs/BudgetUpdate.md +25 -0
  290. package/docs/OptionCreate.md +2 -0
  291. package/docs/OptionOverviewResponse.md +2 -0
  292. package/docs/OptionResponse.md +2 -0
  293. package/docs/OptionUpdate.md +2 -0
  294. package/index.ts +1 -1
  295. package/models/budget-bulk-delete-request.ts +26 -0
  296. package/models/budget-create.ts +28 -0
  297. package/models/budget-investment-response.ts +40 -0
  298. package/models/budget-link-options-request.ts +26 -0
  299. package/models/budget-option-response.ts +56 -0
  300. package/models/budget-overview-response.ts +31 -0
  301. package/models/budget-response.ts +32 -0
  302. package/models/budget-update.ts +25 -0
  303. package/models/evolution-type.ts +1 -1
  304. package/models/httpvalidation-error.ts +1 -1
  305. package/models/impact-apiresponse.ts +1 -1
  306. package/models/impact-create.ts +1 -1
  307. package/models/impact-update.ts +1 -1
  308. package/models/index.ts +8 -0
  309. package/models/investment-create.ts +1 -1
  310. package/models/investment-overview-response.ts +1 -1
  311. package/models/investment-response.ts +1 -1
  312. package/models/investment-update.ts +1 -1
  313. package/models/location-inner.ts +1 -1
  314. package/models/measurement-type.ts +1 -1
  315. package/models/metric-costs-per-year-create.ts +1 -1
  316. package/models/metric-costs-per-year-response.ts +1 -1
  317. package/models/metric-costs-per-year-update.ts +1 -1
  318. package/models/metric-create.ts +1 -1
  319. package/models/metric-response.ts +1 -1
  320. package/models/metric-type.ts +1 -1
  321. package/models/metric-update.ts +1 -1
  322. package/models/objective-create.ts +1 -1
  323. package/models/objective-response.ts +1 -1
  324. package/models/objective-update.ts +1 -1
  325. package/models/objective-weight-create.ts +1 -1
  326. package/models/objective-weight-response.ts +1 -1
  327. package/models/objective-weight-update.ts +1 -1
  328. package/models/option-chart-kpi.ts +1 -1
  329. package/models/option-chart-kpis-yearly.ts +1 -1
  330. package/models/option-create.ts +2 -1
  331. package/models/option-overview-response.ts +2 -1
  332. package/models/option-response.ts +2 -1
  333. package/models/option-update.ts +2 -1
  334. package/models/preferred-option-request.ts +1 -1
  335. package/models/preferred-option-response.ts +1 -1
  336. package/models/validation-error.ts +1 -1
  337. package/models/value-framework-create.ts +1 -1
  338. package/models/value-framework-response.ts +1 -1
  339. package/models/value-framework-update.ts +1 -1
  340. package/package.json +1 -1
@@ -0,0 +1,794 @@
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.3.0-dev1
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.BudgetApi = exports.BudgetApiFactory = exports.BudgetApiFp = exports.BudgetApiAxiosParamCreator = 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
+ * BudgetApi - axios parameter creator
34
+ */
35
+ const BudgetApiAxiosParamCreator = function (configuration) {
36
+ return {
37
+ /**
38
+ * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
39
+ * @summary Bulk delete budgets
40
+ * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ bulkDeleteBudgets: (budgetBulkDeleteRequest_1, ...args_1) => __awaiter(this, [budgetBulkDeleteRequest_1, ...args_1], void 0, function* (budgetBulkDeleteRequest, options = {}) {
45
+ // verify required parameter 'budgetBulkDeleteRequest' is not null or undefined
46
+ (0, common_1.assertParamExists)('bulkDeleteBudgets', 'budgetBulkDeleteRequest', budgetBulkDeleteRequest);
47
+ const localVarPath = `/budget/bulk`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
55
+ const localVarHeaderParameter = {};
56
+ const localVarQueryParameter = {};
57
+ // authentication OAuth2AuthorizationCodeBearer required
58
+ // oauth required
59
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
60
+ localVarHeaderParameter['Content-Type'] = 'application/json';
61
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
62
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
63
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
64
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(budgetBulkDeleteRequest, localVarRequestOptions, configuration);
65
+ return {
66
+ url: (0, common_1.toPathString)(localVarUrlObj),
67
+ options: localVarRequestOptions,
68
+ };
69
+ }),
70
+ /**
71
+ * Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
72
+ * @summary Delete a budget
73
+ * @param {string} budgetId UUID of the budget
74
+ * @param {*} [options] Override http request option.
75
+ * @throws {RequiredError}
76
+ */
77
+ deleteBudget: (budgetId_1, ...args_1) => __awaiter(this, [budgetId_1, ...args_1], void 0, function* (budgetId, options = {}) {
78
+ // verify required parameter 'budgetId' is not null or undefined
79
+ (0, common_1.assertParamExists)('deleteBudget', 'budgetId', budgetId);
80
+ const localVarPath = `/budget/{budget_id}`
81
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
82
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
84
+ let baseOptions;
85
+ if (configuration) {
86
+ baseOptions = configuration.baseOptions;
87
+ }
88
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
89
+ const localVarHeaderParameter = {};
90
+ const localVarQueryParameter = {};
91
+ // authentication OAuth2AuthorizationCodeBearer required
92
+ // oauth required
93
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
94
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
95
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
96
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
97
+ return {
98
+ url: (0, common_1.toPathString)(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ }),
102
+ /**
103
+ * Retrieve a single budget by its ID.
104
+ * @summary Get a budget by ID
105
+ * @param {string} budgetId UUID of the budget
106
+ * @param {*} [options] Override http request option.
107
+ * @throws {RequiredError}
108
+ */
109
+ getBudgetById: (budgetId_1, ...args_1) => __awaiter(this, [budgetId_1, ...args_1], void 0, function* (budgetId, options = {}) {
110
+ // verify required parameter 'budgetId' is not null or undefined
111
+ (0, common_1.assertParamExists)('getBudgetById', 'budgetId', budgetId);
112
+ const localVarPath = `/budget/{budget_id}`
113
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
114
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
115
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ let baseOptions;
117
+ if (configuration) {
118
+ baseOptions = configuration.baseOptions;
119
+ }
120
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
121
+ const localVarHeaderParameter = {};
122
+ const localVarQueryParameter = {};
123
+ // authentication OAuth2AuthorizationCodeBearer required
124
+ // oauth required
125
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
126
+ localVarHeaderParameter['Accept'] = 'application/json';
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ return {
131
+ url: (0, common_1.toPathString)(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ }),
135
+ /**
136
+ * Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
137
+ * @summary List investments linked to this budget via options
138
+ * @param {string} budgetId UUID of the budget
139
+ * @param {string} valueFrameworkId UUID of the value framework
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ getBudgetInvestments: (budgetId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [budgetId_1, valueFrameworkId_1, ...args_1], void 0, function* (budgetId, valueFrameworkId, options = {}) {
144
+ // verify required parameter 'budgetId' is not null or undefined
145
+ (0, common_1.assertParamExists)('getBudgetInvestments', 'budgetId', budgetId);
146
+ // verify required parameter 'valueFrameworkId' is not null or undefined
147
+ (0, common_1.assertParamExists)('getBudgetInvestments', 'valueFrameworkId', valueFrameworkId);
148
+ const localVarPath = `/budget/{budget_id}/investments`
149
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
152
+ let baseOptions;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ }
156
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
157
+ const localVarHeaderParameter = {};
158
+ const localVarQueryParameter = {};
159
+ // authentication OAuth2AuthorizationCodeBearer required
160
+ // oauth required
161
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
162
+ if (valueFrameworkId !== undefined) {
163
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
164
+ }
165
+ localVarHeaderParameter['Accept'] = 'application/json';
166
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
167
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
168
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
169
+ return {
170
+ url: (0, common_1.toPathString)(localVarUrlObj),
171
+ options: localVarRequestOptions,
172
+ };
173
+ }),
174
+ /**
175
+ * Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
176
+ * @summary List options linked to this budget
177
+ * @param {string} budgetId UUID of the budget
178
+ * @param {string} valueFrameworkId UUID of the value framework
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ getBudgetOptions: (budgetId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [budgetId_1, valueFrameworkId_1, ...args_1], void 0, function* (budgetId, valueFrameworkId, options = {}) {
183
+ // verify required parameter 'budgetId' is not null or undefined
184
+ (0, common_1.assertParamExists)('getBudgetOptions', 'budgetId', budgetId);
185
+ // verify required parameter 'valueFrameworkId' is not null or undefined
186
+ (0, common_1.assertParamExists)('getBudgetOptions', 'valueFrameworkId', valueFrameworkId);
187
+ const localVarPath = `/budget/{budget_id}/options`
188
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ if (configuration) {
193
+ baseOptions = configuration.baseOptions;
194
+ }
195
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
196
+ const localVarHeaderParameter = {};
197
+ const localVarQueryParameter = {};
198
+ // authentication OAuth2AuthorizationCodeBearer required
199
+ // oauth required
200
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
201
+ if (valueFrameworkId !== undefined) {
202
+ localVarQueryParameter['value_framework_id'] = valueFrameworkId;
203
+ }
204
+ localVarHeaderParameter['Accept'] = 'application/json';
205
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
206
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
207
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
208
+ return {
209
+ url: (0, common_1.toPathString)(localVarUrlObj),
210
+ options: localVarRequestOptions,
211
+ };
212
+ }),
213
+ /**
214
+ * Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
215
+ * @summary Get budget overview
216
+ * @param {string} budgetId UUID of the budget
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ getBudgetOverview: (budgetId_1, ...args_1) => __awaiter(this, [budgetId_1, ...args_1], void 0, function* (budgetId, options = {}) {
221
+ // verify required parameter 'budgetId' is not null or undefined
222
+ (0, common_1.assertParamExists)('getBudgetOverview', 'budgetId', budgetId);
223
+ const localVarPath = `/budget/{budget_id}/overview`
224
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
225
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
226
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
227
+ let baseOptions;
228
+ if (configuration) {
229
+ baseOptions = configuration.baseOptions;
230
+ }
231
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
232
+ const localVarHeaderParameter = {};
233
+ const localVarQueryParameter = {};
234
+ // authentication OAuth2AuthorizationCodeBearer required
235
+ // oauth required
236
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
237
+ localVarHeaderParameter['Accept'] = 'application/json';
238
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
241
+ return {
242
+ url: (0, common_1.toPathString)(localVarUrlObj),
243
+ options: localVarRequestOptions,
244
+ };
245
+ }),
246
+ /**
247
+ * Retrieve a paginated list of all budgets, ordered by name.
248
+ * @summary List all budgets
249
+ * @param {number} [offset] Number of records to skip
250
+ * @param {number} [limit] Max number of records to return
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ getBudgets: (offset_1, limit_1, ...args_1) => __awaiter(this, [offset_1, limit_1, ...args_1], void 0, function* (offset, limit, options = {}) {
255
+ const localVarPath = `/budget/`;
256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
258
+ let baseOptions;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ }
262
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
263
+ const localVarHeaderParameter = {};
264
+ const localVarQueryParameter = {};
265
+ // authentication OAuth2AuthorizationCodeBearer required
266
+ // oauth required
267
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
268
+ if (offset !== undefined) {
269
+ localVarQueryParameter['offset'] = offset;
270
+ }
271
+ if (limit !== undefined) {
272
+ localVarQueryParameter['limit'] = limit;
273
+ }
274
+ localVarHeaderParameter['Accept'] = 'application/json';
275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
276
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
277
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
278
+ return {
279
+ url: (0, common_1.toPathString)(localVarUrlObj),
280
+ options: localVarRequestOptions,
281
+ };
282
+ }),
283
+ /**
284
+ * Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
285
+ * @summary Bulk-link options to this budget
286
+ * @param {string} budgetId UUID of the budget
287
+ * @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
288
+ * @param {*} [options] Override http request option.
289
+ * @throws {RequiredError}
290
+ */
291
+ linkOptionsToBudget: (budgetId_1, budgetLinkOptionsRequest_1, ...args_1) => __awaiter(this, [budgetId_1, budgetLinkOptionsRequest_1, ...args_1], void 0, function* (budgetId, budgetLinkOptionsRequest, options = {}) {
292
+ // verify required parameter 'budgetId' is not null or undefined
293
+ (0, common_1.assertParamExists)('linkOptionsToBudget', 'budgetId', budgetId);
294
+ // verify required parameter 'budgetLinkOptionsRequest' is not null or undefined
295
+ (0, common_1.assertParamExists)('linkOptionsToBudget', 'budgetLinkOptionsRequest', budgetLinkOptionsRequest);
296
+ const localVarPath = `/budget/{budget_id}/link-options`
297
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
298
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
299
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
300
+ let baseOptions;
301
+ if (configuration) {
302
+ baseOptions = configuration.baseOptions;
303
+ }
304
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
305
+ const localVarHeaderParameter = {};
306
+ const localVarQueryParameter = {};
307
+ // authentication OAuth2AuthorizationCodeBearer required
308
+ // oauth required
309
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
311
+ localVarHeaderParameter['Accept'] = 'application/json';
312
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
315
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(budgetLinkOptionsRequest, localVarRequestOptions, configuration);
316
+ return {
317
+ url: (0, common_1.toPathString)(localVarUrlObj),
318
+ options: localVarRequestOptions,
319
+ };
320
+ }),
321
+ /**
322
+ * Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
323
+ * @summary Partially update a budget
324
+ * @param {string} budgetId UUID of the budget
325
+ * @param {BudgetUpdate} budgetUpdate
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ patchBudget: (budgetId_1, budgetUpdate_1, ...args_1) => __awaiter(this, [budgetId_1, budgetUpdate_1, ...args_1], void 0, function* (budgetId, budgetUpdate, options = {}) {
330
+ // verify required parameter 'budgetId' is not null or undefined
331
+ (0, common_1.assertParamExists)('patchBudget', 'budgetId', budgetId);
332
+ // verify required parameter 'budgetUpdate' is not null or undefined
333
+ (0, common_1.assertParamExists)('patchBudget', 'budgetUpdate', budgetUpdate);
334
+ const localVarPath = `/budget/{budget_id}`
335
+ .replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
336
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
337
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
338
+ let baseOptions;
339
+ if (configuration) {
340
+ baseOptions = configuration.baseOptions;
341
+ }
342
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
343
+ const localVarHeaderParameter = {};
344
+ const localVarQueryParameter = {};
345
+ // authentication OAuth2AuthorizationCodeBearer required
346
+ // oauth required
347
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
348
+ localVarHeaderParameter['Content-Type'] = 'application/json';
349
+ localVarHeaderParameter['Accept'] = 'application/json';
350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
351
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(budgetUpdate, localVarRequestOptions, configuration);
354
+ return {
355
+ url: (0, common_1.toPathString)(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ };
358
+ }),
359
+ /**
360
+ * Create a new budget.
361
+ * @summary Create a budget
362
+ * @param {BudgetCreate} budgetCreate
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ postBudget: (budgetCreate_1, ...args_1) => __awaiter(this, [budgetCreate_1, ...args_1], void 0, function* (budgetCreate, options = {}) {
367
+ // verify required parameter 'budgetCreate' is not null or undefined
368
+ (0, common_1.assertParamExists)('postBudget', 'budgetCreate', budgetCreate);
369
+ const localVarPath = `/budget/`;
370
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
371
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
372
+ let baseOptions;
373
+ if (configuration) {
374
+ baseOptions = configuration.baseOptions;
375
+ }
376
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
377
+ const localVarHeaderParameter = {};
378
+ const localVarQueryParameter = {};
379
+ // authentication OAuth2AuthorizationCodeBearer required
380
+ // oauth required
381
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
382
+ localVarHeaderParameter['Content-Type'] = 'application/json';
383
+ localVarHeaderParameter['Accept'] = 'application/json';
384
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
386
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
387
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(budgetCreate, localVarRequestOptions, configuration);
388
+ return {
389
+ url: (0, common_1.toPathString)(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ };
392
+ }),
393
+ };
394
+ };
395
+ exports.BudgetApiAxiosParamCreator = BudgetApiAxiosParamCreator;
396
+ /**
397
+ * BudgetApi - functional programming interface
398
+ */
399
+ const BudgetApiFp = function (configuration) {
400
+ const localVarAxiosParamCreator = (0, exports.BudgetApiAxiosParamCreator)(configuration);
401
+ return {
402
+ /**
403
+ * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
404
+ * @summary Bulk delete budgets
405
+ * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ bulkDeleteBudgets(budgetBulkDeleteRequest, options) {
410
+ return __awaiter(this, void 0, void 0, function* () {
411
+ var _a, _b, _c;
412
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkDeleteBudgets(budgetBulkDeleteRequest, options);
413
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
414
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.bulkDeleteBudgets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
415
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
416
+ });
417
+ },
418
+ /**
419
+ * Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
420
+ * @summary Delete a budget
421
+ * @param {string} budgetId UUID of the budget
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ deleteBudget(budgetId, options) {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ var _a, _b, _c;
428
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBudget(budgetId, options);
429
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
430
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.deleteBudget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
431
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
432
+ });
433
+ },
434
+ /**
435
+ * Retrieve a single budget by its ID.
436
+ * @summary Get a budget by ID
437
+ * @param {string} budgetId UUID of the budget
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ getBudgetById(budgetId, options) {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ var _a, _b, _c;
444
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBudgetById(budgetId, options);
445
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
446
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.getBudgetById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
447
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
448
+ });
449
+ },
450
+ /**
451
+ * Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
452
+ * @summary List investments linked to this budget via options
453
+ * @param {string} budgetId UUID of the budget
454
+ * @param {string} valueFrameworkId UUID of the value framework
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ getBudgetInvestments(budgetId, valueFrameworkId, options) {
459
+ return __awaiter(this, void 0, void 0, function* () {
460
+ var _a, _b, _c;
461
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBudgetInvestments(budgetId, valueFrameworkId, options);
462
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
463
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.getBudgetInvestments']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
464
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
465
+ });
466
+ },
467
+ /**
468
+ * Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
469
+ * @summary List options linked to this budget
470
+ * @param {string} budgetId UUID of the budget
471
+ * @param {string} valueFrameworkId UUID of the value framework
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ getBudgetOptions(budgetId, valueFrameworkId, options) {
476
+ return __awaiter(this, void 0, void 0, function* () {
477
+ var _a, _b, _c;
478
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBudgetOptions(budgetId, valueFrameworkId, options);
479
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
480
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.getBudgetOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
481
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
482
+ });
483
+ },
484
+ /**
485
+ * Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
486
+ * @summary Get budget overview
487
+ * @param {string} budgetId UUID of the budget
488
+ * @param {*} [options] Override http request option.
489
+ * @throws {RequiredError}
490
+ */
491
+ getBudgetOverview(budgetId, options) {
492
+ return __awaiter(this, void 0, void 0, function* () {
493
+ var _a, _b, _c;
494
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBudgetOverview(budgetId, options);
495
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
496
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.getBudgetOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
497
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
498
+ });
499
+ },
500
+ /**
501
+ * Retrieve a paginated list of all budgets, ordered by name.
502
+ * @summary List all budgets
503
+ * @param {number} [offset] Number of records to skip
504
+ * @param {number} [limit] Max number of records to return
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ getBudgets(offset, limit, options) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ var _a, _b, _c;
511
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getBudgets(offset, limit, options);
512
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
513
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.getBudgets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
514
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
515
+ });
516
+ },
517
+ /**
518
+ * Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
519
+ * @summary Bulk-link options to this budget
520
+ * @param {string} budgetId UUID of the budget
521
+ * @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ */
525
+ linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options) {
526
+ return __awaiter(this, void 0, void 0, function* () {
527
+ var _a, _b, _c;
528
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options);
529
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
530
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.linkOptionsToBudget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
531
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
532
+ });
533
+ },
534
+ /**
535
+ * Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
536
+ * @summary Partially update a budget
537
+ * @param {string} budgetId UUID of the budget
538
+ * @param {BudgetUpdate} budgetUpdate
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ */
542
+ patchBudget(budgetId, budgetUpdate, options) {
543
+ return __awaiter(this, void 0, void 0, function* () {
544
+ var _a, _b, _c;
545
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patchBudget(budgetId, budgetUpdate, options);
546
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
547
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.patchBudget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
548
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
549
+ });
550
+ },
551
+ /**
552
+ * Create a new budget.
553
+ * @summary Create a budget
554
+ * @param {BudgetCreate} budgetCreate
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ postBudget(budgetCreate, options) {
559
+ return __awaiter(this, void 0, void 0, function* () {
560
+ var _a, _b, _c;
561
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postBudget(budgetCreate, options);
562
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
563
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BudgetApi.postBudget']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
564
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
565
+ });
566
+ },
567
+ };
568
+ };
569
+ exports.BudgetApiFp = BudgetApiFp;
570
+ /**
571
+ * BudgetApi - factory interface
572
+ */
573
+ const BudgetApiFactory = function (configuration, basePath, axios) {
574
+ const localVarFp = (0, exports.BudgetApiFp)(configuration);
575
+ return {
576
+ /**
577
+ * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
578
+ * @summary Bulk delete budgets
579
+ * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ bulkDeleteBudgets(budgetBulkDeleteRequest, options) {
584
+ return localVarFp.bulkDeleteBudgets(budgetBulkDeleteRequest, options).then((request) => request(axios, basePath));
585
+ },
586
+ /**
587
+ * Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
588
+ * @summary Delete a budget
589
+ * @param {string} budgetId UUID of the budget
590
+ * @param {*} [options] Override http request option.
591
+ * @throws {RequiredError}
592
+ */
593
+ deleteBudget(budgetId, options) {
594
+ return localVarFp.deleteBudget(budgetId, options).then((request) => request(axios, basePath));
595
+ },
596
+ /**
597
+ * Retrieve a single budget by its ID.
598
+ * @summary Get a budget by ID
599
+ * @param {string} budgetId UUID of the budget
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ */
603
+ getBudgetById(budgetId, options) {
604
+ return localVarFp.getBudgetById(budgetId, options).then((request) => request(axios, basePath));
605
+ },
606
+ /**
607
+ * Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
608
+ * @summary List investments linked to this budget via options
609
+ * @param {string} budgetId UUID of the budget
610
+ * @param {string} valueFrameworkId UUID of the value framework
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ getBudgetInvestments(budgetId, valueFrameworkId, options) {
615
+ return localVarFp.getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
616
+ },
617
+ /**
618
+ * Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
619
+ * @summary List options linked to this budget
620
+ * @param {string} budgetId UUID of the budget
621
+ * @param {string} valueFrameworkId UUID of the value framework
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ */
625
+ getBudgetOptions(budgetId, valueFrameworkId, options) {
626
+ return localVarFp.getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
627
+ },
628
+ /**
629
+ * Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
630
+ * @summary Get budget overview
631
+ * @param {string} budgetId UUID of the budget
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ */
635
+ getBudgetOverview(budgetId, options) {
636
+ return localVarFp.getBudgetOverview(budgetId, options).then((request) => request(axios, basePath));
637
+ },
638
+ /**
639
+ * Retrieve a paginated list of all budgets, ordered by name.
640
+ * @summary List all budgets
641
+ * @param {number} [offset] Number of records to skip
642
+ * @param {number} [limit] Max number of records to return
643
+ * @param {*} [options] Override http request option.
644
+ * @throws {RequiredError}
645
+ */
646
+ getBudgets(offset, limit, options) {
647
+ return localVarFp.getBudgets(offset, limit, options).then((request) => request(axios, basePath));
648
+ },
649
+ /**
650
+ * Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
651
+ * @summary Bulk-link options to this budget
652
+ * @param {string} budgetId UUID of the budget
653
+ * @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options) {
658
+ return localVarFp.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options).then((request) => request(axios, basePath));
659
+ },
660
+ /**
661
+ * Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
662
+ * @summary Partially update a budget
663
+ * @param {string} budgetId UUID of the budget
664
+ * @param {BudgetUpdate} budgetUpdate
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ patchBudget(budgetId, budgetUpdate, options) {
669
+ return localVarFp.patchBudget(budgetId, budgetUpdate, options).then((request) => request(axios, basePath));
670
+ },
671
+ /**
672
+ * Create a new budget.
673
+ * @summary Create a budget
674
+ * @param {BudgetCreate} budgetCreate
675
+ * @param {*} [options] Override http request option.
676
+ * @throws {RequiredError}
677
+ */
678
+ postBudget(budgetCreate, options) {
679
+ return localVarFp.postBudget(budgetCreate, options).then((request) => request(axios, basePath));
680
+ },
681
+ };
682
+ };
683
+ exports.BudgetApiFactory = BudgetApiFactory;
684
+ /**
685
+ * BudgetApi - object-oriented interface
686
+ */
687
+ class BudgetApi extends base_1.BaseAPI {
688
+ /**
689
+ * Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
690
+ * @summary Bulk delete budgets
691
+ * @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
692
+ * @param {*} [options] Override http request option.
693
+ * @throws {RequiredError}
694
+ */
695
+ bulkDeleteBudgets(budgetBulkDeleteRequest, options) {
696
+ return (0, exports.BudgetApiFp)(this.configuration).bulkDeleteBudgets(budgetBulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
697
+ }
698
+ /**
699
+ * Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
700
+ * @summary Delete a budget
701
+ * @param {string} budgetId UUID of the budget
702
+ * @param {*} [options] Override http request option.
703
+ * @throws {RequiredError}
704
+ */
705
+ deleteBudget(budgetId, options) {
706
+ return (0, exports.BudgetApiFp)(this.configuration).deleteBudget(budgetId, options).then((request) => request(this.axios, this.basePath));
707
+ }
708
+ /**
709
+ * Retrieve a single budget by its ID.
710
+ * @summary Get a budget by ID
711
+ * @param {string} budgetId UUID of the budget
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ getBudgetById(budgetId, options) {
716
+ return (0, exports.BudgetApiFp)(this.configuration).getBudgetById(budgetId, options).then((request) => request(this.axios, this.basePath));
717
+ }
718
+ /**
719
+ * Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
720
+ * @summary List investments linked to this budget via options
721
+ * @param {string} budgetId UUID of the budget
722
+ * @param {string} valueFrameworkId UUID of the value framework
723
+ * @param {*} [options] Override http request option.
724
+ * @throws {RequiredError}
725
+ */
726
+ getBudgetInvestments(budgetId, valueFrameworkId, options) {
727
+ return (0, exports.BudgetApiFp)(this.configuration).getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
728
+ }
729
+ /**
730
+ * Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
731
+ * @summary List options linked to this budget
732
+ * @param {string} budgetId UUID of the budget
733
+ * @param {string} valueFrameworkId UUID of the value framework
734
+ * @param {*} [options] Override http request option.
735
+ * @throws {RequiredError}
736
+ */
737
+ getBudgetOptions(budgetId, valueFrameworkId, options) {
738
+ return (0, exports.BudgetApiFp)(this.configuration).getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
739
+ }
740
+ /**
741
+ * Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
742
+ * @summary Get budget overview
743
+ * @param {string} budgetId UUID of the budget
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ getBudgetOverview(budgetId, options) {
748
+ return (0, exports.BudgetApiFp)(this.configuration).getBudgetOverview(budgetId, options).then((request) => request(this.axios, this.basePath));
749
+ }
750
+ /**
751
+ * Retrieve a paginated list of all budgets, ordered by name.
752
+ * @summary List all budgets
753
+ * @param {number} [offset] Number of records to skip
754
+ * @param {number} [limit] Max number of records to return
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ getBudgets(offset, limit, options) {
759
+ return (0, exports.BudgetApiFp)(this.configuration).getBudgets(offset, limit, options).then((request) => request(this.axios, this.basePath));
760
+ }
761
+ /**
762
+ * Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
763
+ * @summary Bulk-link options to this budget
764
+ * @param {string} budgetId UUID of the budget
765
+ * @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
766
+ * @param {*} [options] Override http request option.
767
+ * @throws {RequiredError}
768
+ */
769
+ linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options) {
770
+ return (0, exports.BudgetApiFp)(this.configuration).linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options).then((request) => request(this.axios, this.basePath));
771
+ }
772
+ /**
773
+ * Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
774
+ * @summary Partially update a budget
775
+ * @param {string} budgetId UUID of the budget
776
+ * @param {BudgetUpdate} budgetUpdate
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ patchBudget(budgetId, budgetUpdate, options) {
781
+ return (0, exports.BudgetApiFp)(this.configuration).patchBudget(budgetId, budgetUpdate, options).then((request) => request(this.axios, this.basePath));
782
+ }
783
+ /**
784
+ * Create a new budget.
785
+ * @summary Create a budget
786
+ * @param {BudgetCreate} budgetCreate
787
+ * @param {*} [options] Override http request option.
788
+ * @throws {RequiredError}
789
+ */
790
+ postBudget(budgetCreate, options) {
791
+ return (0, exports.BudgetApiFp)(this.configuration).postBudget(budgetCreate, options).then((request) => request(this.axios, this.basePath));
792
+ }
793
+ }
794
+ exports.BudgetApi = BudgetApi;