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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/README.md +4 -40
  2. package/api/budget-api.ts +1 -1
  3. package/api/default-api.ts +1 -1
  4. package/api/impact-api.ts +90 -1
  5. package/api/investment-api.ts +55 -1254
  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 -509
  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 -454
  13. package/api/preferred-option-api.ts +1 -1
  14. package/api/value-framework-api.ts +61 -1189
  15. package/api/value-framework-costs-api.ts +1 -1
  16. package/api/value-framework-weights-api.ts +1 -1
  17. package/api.ts +1 -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 +1 -1
  22. package/dist/api/budget-api.js +1 -1
  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 +42 -1
  26. package/dist/api/impact-api.js +85 -1
  27. package/dist/api/investment-api.d.ts +1 -551
  28. package/dist/api/investment-api.js +57 -1189
  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 -233
  36. package/dist/api/objective-api.js +1 -479
  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 -212
  42. package/dist/api/option-api.js +1 -431
  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 -519
  46. package/dist/api/value-framework-api.js +61 -1128
  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 +1 -1
  52. package/dist/api.js +1 -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 +1 -1
  60. package/dist/esm/api/budget-api.js +1 -1
  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 +42 -1
  64. package/dist/esm/api/impact-api.js +85 -1
  65. package/dist/esm/api/investment-api.d.ts +1 -551
  66. package/dist/esm/api/investment-api.js +56 -1188
  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 -233
  74. package/dist/esm/api/objective-api.js +1 -479
  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 -212
  80. package/dist/esm/api/option-api.js +1 -431
  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 -519
  84. package/dist/esm/api/value-framework-api.js +61 -1128
  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 +1 -1
  90. package/dist/esm/api.js +1 -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 +1 -1
  100. package/dist/esm/models/budget-bulk-delete-request.js +1 -1
  101. package/dist/esm/models/budget-create.d.ts +1 -1
  102. package/dist/esm/models/budget-create.js +1 -1
  103. package/dist/esm/models/budget-investment-response.d.ts +1 -1
  104. package/dist/esm/models/budget-investment-response.js +1 -1
  105. package/dist/esm/models/budget-link-options-request.d.ts +1 -1
  106. package/dist/esm/models/budget-link-options-request.js +1 -1
  107. package/dist/esm/models/budget-option-response.d.ts +1 -1
  108. package/dist/esm/models/budget-option-response.js +1 -1
  109. package/dist/esm/models/budget-overview-response.d.ts +1 -1
  110. package/dist/esm/models/budget-overview-response.js +1 -1
  111. package/dist/esm/models/budget-response.d.ts +1 -1
  112. package/dist/esm/models/budget-response.js +1 -1
  113. package/dist/esm/models/budget-update.d.ts +1 -1
  114. package/dist/esm/models/budget-update.js +1 -1
  115. package/dist/esm/models/bulk-delete-request.d.ts +1 -1
  116. package/dist/esm/models/bulk-delete-request.js +1 -1
  117. package/dist/esm/models/evolution-type.d.ts +1 -1
  118. package/dist/esm/models/evolution-type.js +1 -1
  119. package/dist/esm/models/httpvalidation-error.d.ts +1 -1
  120. package/dist/esm/models/httpvalidation-error.js +1 -1
  121. package/dist/esm/models/impact-apiresponse.d.ts +1 -1
  122. package/dist/esm/models/impact-apiresponse.js +1 -1
  123. package/dist/esm/models/impact-bulk-item.d.ts +37 -0
  124. package/dist/esm/models/impact-bulk-item.js +14 -0
  125. package/dist/esm/models/impact-create.d.ts +1 -1
  126. package/dist/esm/models/impact-create.js +1 -1
  127. package/dist/esm/models/impact-update.d.ts +1 -1
  128. package/dist/esm/models/impact-update.js +1 -1
  129. package/dist/esm/models/index.d.ts +1 -0
  130. package/dist/esm/models/index.js +1 -0
  131. package/dist/esm/models/investment-create.d.ts +1 -1
  132. package/dist/esm/models/investment-create.js +1 -1
  133. package/dist/esm/models/investment-overview-response.d.ts +1 -1
  134. package/dist/esm/models/investment-overview-response.js +1 -1
  135. package/dist/esm/models/investment-response.d.ts +1 -1
  136. package/dist/esm/models/investment-response.js +1 -1
  137. package/dist/esm/models/investment-update.d.ts +1 -1
  138. package/dist/esm/models/investment-update.js +1 -1
  139. package/dist/esm/models/location-inner.d.ts +1 -1
  140. package/dist/esm/models/location-inner.js +1 -1
  141. package/dist/esm/models/measurement-type.d.ts +1 -1
  142. package/dist/esm/models/measurement-type.js +1 -1
  143. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
  144. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  145. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
  146. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  147. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
  148. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  149. package/dist/esm/models/metric-create.d.ts +1 -1
  150. package/dist/esm/models/metric-create.js +1 -1
  151. package/dist/esm/models/metric-response.d.ts +1 -1
  152. package/dist/esm/models/metric-response.js +1 -1
  153. package/dist/esm/models/metric-type.d.ts +1 -1
  154. package/dist/esm/models/metric-type.js +1 -1
  155. package/dist/esm/models/metric-update.d.ts +1 -1
  156. package/dist/esm/models/metric-update.js +1 -1
  157. package/dist/esm/models/objective-create.d.ts +1 -1
  158. package/dist/esm/models/objective-create.js +1 -1
  159. package/dist/esm/models/objective-response.d.ts +1 -1
  160. package/dist/esm/models/objective-response.js +1 -1
  161. package/dist/esm/models/objective-update.d.ts +1 -1
  162. package/dist/esm/models/objective-update.js +1 -1
  163. package/dist/esm/models/objective-weight-create.d.ts +1 -1
  164. package/dist/esm/models/objective-weight-create.js +1 -1
  165. package/dist/esm/models/objective-weight-response.d.ts +1 -1
  166. package/dist/esm/models/objective-weight-response.js +1 -1
  167. package/dist/esm/models/objective-weight-update.d.ts +1 -1
  168. package/dist/esm/models/objective-weight-update.js +1 -1
  169. package/dist/esm/models/option-chart-kpi.d.ts +1 -1
  170. package/dist/esm/models/option-chart-kpi.js +1 -1
  171. package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
  172. package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
  173. package/dist/esm/models/option-create.d.ts +1 -1
  174. package/dist/esm/models/option-create.js +1 -1
  175. package/dist/esm/models/option-overview-response.d.ts +1 -1
  176. package/dist/esm/models/option-overview-response.js +1 -1
  177. package/dist/esm/models/option-response.d.ts +1 -1
  178. package/dist/esm/models/option-response.js +1 -1
  179. package/dist/esm/models/option-update.d.ts +1 -1
  180. package/dist/esm/models/option-update.js +1 -1
  181. package/dist/esm/models/preferred-option-request.d.ts +1 -1
  182. package/dist/esm/models/preferred-option-request.js +1 -1
  183. package/dist/esm/models/preferred-option-response.d.ts +1 -1
  184. package/dist/esm/models/preferred-option-response.js +1 -1
  185. package/dist/esm/models/validation-error.d.ts +1 -1
  186. package/dist/esm/models/validation-error.js +1 -1
  187. package/dist/esm/models/value-framework-create.d.ts +1 -1
  188. package/dist/esm/models/value-framework-create.js +1 -1
  189. package/dist/esm/models/value-framework-response.d.ts +1 -1
  190. package/dist/esm/models/value-framework-response.js +1 -1
  191. package/dist/esm/models/value-framework-update.d.ts +1 -1
  192. package/dist/esm/models/value-framework-update.js +1 -1
  193. package/dist/index.d.ts +1 -1
  194. package/dist/index.js +1 -1
  195. package/dist/models/budget-bulk-delete-request.d.ts +1 -1
  196. package/dist/models/budget-bulk-delete-request.js +1 -1
  197. package/dist/models/budget-create.d.ts +1 -1
  198. package/dist/models/budget-create.js +1 -1
  199. package/dist/models/budget-investment-response.d.ts +1 -1
  200. package/dist/models/budget-investment-response.js +1 -1
  201. package/dist/models/budget-link-options-request.d.ts +1 -1
  202. package/dist/models/budget-link-options-request.js +1 -1
  203. package/dist/models/budget-option-response.d.ts +1 -1
  204. package/dist/models/budget-option-response.js +1 -1
  205. package/dist/models/budget-overview-response.d.ts +1 -1
  206. package/dist/models/budget-overview-response.js +1 -1
  207. package/dist/models/budget-response.d.ts +1 -1
  208. package/dist/models/budget-response.js +1 -1
  209. package/dist/models/budget-update.d.ts +1 -1
  210. package/dist/models/budget-update.js +1 -1
  211. package/dist/models/bulk-delete-request.d.ts +1 -1
  212. package/dist/models/bulk-delete-request.js +1 -1
  213. package/dist/models/evolution-type.d.ts +1 -1
  214. package/dist/models/evolution-type.js +1 -1
  215. package/dist/models/httpvalidation-error.d.ts +1 -1
  216. package/dist/models/httpvalidation-error.js +1 -1
  217. package/dist/models/impact-apiresponse.d.ts +1 -1
  218. package/dist/models/impact-apiresponse.js +1 -1
  219. package/dist/models/impact-bulk-item.d.ts +37 -0
  220. package/dist/models/impact-bulk-item.js +15 -0
  221. package/dist/models/impact-create.d.ts +1 -1
  222. package/dist/models/impact-create.js +1 -1
  223. package/dist/models/impact-update.d.ts +1 -1
  224. package/dist/models/impact-update.js +1 -1
  225. package/dist/models/index.d.ts +1 -0
  226. package/dist/models/index.js +1 -0
  227. package/dist/models/investment-create.d.ts +1 -1
  228. package/dist/models/investment-create.js +1 -1
  229. package/dist/models/investment-overview-response.d.ts +1 -1
  230. package/dist/models/investment-overview-response.js +1 -1
  231. package/dist/models/investment-response.d.ts +1 -1
  232. package/dist/models/investment-response.js +1 -1
  233. package/dist/models/investment-update.d.ts +1 -1
  234. package/dist/models/investment-update.js +1 -1
  235. package/dist/models/location-inner.d.ts +1 -1
  236. package/dist/models/location-inner.js +1 -1
  237. package/dist/models/measurement-type.d.ts +1 -1
  238. package/dist/models/measurement-type.js +1 -1
  239. package/dist/models/metric-costs-per-year-create.d.ts +1 -1
  240. package/dist/models/metric-costs-per-year-create.js +1 -1
  241. package/dist/models/metric-costs-per-year-response.d.ts +1 -1
  242. package/dist/models/metric-costs-per-year-response.js +1 -1
  243. package/dist/models/metric-costs-per-year-update.d.ts +1 -1
  244. package/dist/models/metric-costs-per-year-update.js +1 -1
  245. package/dist/models/metric-create.d.ts +1 -1
  246. package/dist/models/metric-create.js +1 -1
  247. package/dist/models/metric-response.d.ts +1 -1
  248. package/dist/models/metric-response.js +1 -1
  249. package/dist/models/metric-type.d.ts +1 -1
  250. package/dist/models/metric-type.js +1 -1
  251. package/dist/models/metric-update.d.ts +1 -1
  252. package/dist/models/metric-update.js +1 -1
  253. package/dist/models/objective-create.d.ts +1 -1
  254. package/dist/models/objective-create.js +1 -1
  255. package/dist/models/objective-response.d.ts +1 -1
  256. package/dist/models/objective-response.js +1 -1
  257. package/dist/models/objective-update.d.ts +1 -1
  258. package/dist/models/objective-update.js +1 -1
  259. package/dist/models/objective-weight-create.d.ts +1 -1
  260. package/dist/models/objective-weight-create.js +1 -1
  261. package/dist/models/objective-weight-response.d.ts +1 -1
  262. package/dist/models/objective-weight-response.js +1 -1
  263. package/dist/models/objective-weight-update.d.ts +1 -1
  264. package/dist/models/objective-weight-update.js +1 -1
  265. package/dist/models/option-chart-kpi.d.ts +1 -1
  266. package/dist/models/option-chart-kpi.js +1 -1
  267. package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
  268. package/dist/models/option-chart-kpis-yearly.js +1 -1
  269. package/dist/models/option-create.d.ts +1 -1
  270. package/dist/models/option-create.js +1 -1
  271. package/dist/models/option-overview-response.d.ts +1 -1
  272. package/dist/models/option-overview-response.js +1 -1
  273. package/dist/models/option-response.d.ts +1 -1
  274. package/dist/models/option-response.js +1 -1
  275. package/dist/models/option-update.d.ts +1 -1
  276. package/dist/models/option-update.js +1 -1
  277. package/dist/models/preferred-option-request.d.ts +1 -1
  278. package/dist/models/preferred-option-request.js +1 -1
  279. package/dist/models/preferred-option-response.d.ts +1 -1
  280. package/dist/models/preferred-option-response.js +1 -1
  281. package/dist/models/validation-error.d.ts +1 -1
  282. package/dist/models/validation-error.js +1 -1
  283. package/dist/models/value-framework-create.d.ts +1 -1
  284. package/dist/models/value-framework-create.js +1 -1
  285. package/dist/models/value-framework-response.d.ts +1 -1
  286. package/dist/models/value-framework-response.js +1 -1
  287. package/dist/models/value-framework-update.d.ts +1 -1
  288. package/dist/models/value-framework-update.js +1 -1
  289. package/docs/ImpactApi.md +60 -0
  290. package/docs/ImpactBulkItem.md +29 -0
  291. package/docs/InvestmentApi.md +29 -851
  292. package/docs/ObjectiveApi.md +0 -351
  293. package/docs/OptionApi.md +0 -305
  294. package/docs/ValueFrameworkApi.md +7 -778
  295. package/index.ts +1 -1
  296. package/models/budget-bulk-delete-request.ts +1 -1
  297. package/models/budget-create.ts +1 -1
  298. package/models/budget-investment-response.ts +1 -1
  299. package/models/budget-link-options-request.ts +1 -1
  300. package/models/budget-option-response.ts +1 -1
  301. package/models/budget-overview-response.ts +1 -1
  302. package/models/budget-response.ts +1 -1
  303. package/models/budget-update.ts +1 -1
  304. package/models/bulk-delete-request.ts +1 -1
  305. package/models/evolution-type.ts +1 -1
  306. package/models/httpvalidation-error.ts +1 -1
  307. package/models/impact-apiresponse.ts +1 -1
  308. package/models/impact-bulk-item.ts +47 -0
  309. package/models/impact-create.ts +1 -1
  310. package/models/impact-update.ts +1 -1
  311. package/models/index.ts +1 -0
  312. package/models/investment-create.ts +1 -1
  313. package/models/investment-overview-response.ts +1 -1
  314. package/models/investment-response.ts +1 -1
  315. package/models/investment-update.ts +1 -1
  316. package/models/location-inner.ts +1 -1
  317. package/models/measurement-type.ts +1 -1
  318. package/models/metric-costs-per-year-create.ts +1 -1
  319. package/models/metric-costs-per-year-response.ts +1 -1
  320. package/models/metric-costs-per-year-update.ts +1 -1
  321. package/models/metric-create.ts +1 -1
  322. package/models/metric-response.ts +1 -1
  323. package/models/metric-type.ts +1 -1
  324. package/models/metric-update.ts +1 -1
  325. package/models/objective-create.ts +1 -1
  326. package/models/objective-response.ts +1 -1
  327. package/models/objective-update.ts +1 -1
  328. package/models/objective-weight-create.ts +1 -1
  329. package/models/objective-weight-response.ts +1 -1
  330. package/models/objective-weight-update.ts +1 -1
  331. package/models/option-chart-kpi.ts +1 -1
  332. package/models/option-chart-kpis-yearly.ts +1 -1
  333. package/models/option-create.ts +1 -1
  334. package/models/option-overview-response.ts +1 -1
  335. package/models/option-response.ts +1 -1
  336. package/models/option-update.ts +1 -1
  337. package/models/preferred-option-request.ts +1 -1
  338. package/models/preferred-option-response.ts +1 -1
  339. package/models/validation-error.ts +1 -1
  340. package/models/value-framework-create.ts +1 -1
  341. package/models/value-framework-response.ts +1 -1
  342. package/models/value-framework-update.ts +1 -1
  343. package/package.json +1 -1
package/api/metric-api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,108 +22,16 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
22
22
  // @ts-ignore
23
23
  import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import type { MetricCreate } from '../models';
26
- // @ts-ignore
27
- import type { MetricResponse } from '../models';
28
- // @ts-ignore
29
- import type { MetricUpdate } from '../models';
30
- // @ts-ignore
31
25
  import type { ObjectiveCreate } from '../models';
32
26
  // @ts-ignore
33
27
  import type { ObjectiveResponse } from '../models';
34
28
  // @ts-ignore
35
29
  import type { ObjectiveUpdate } from '../models';
36
- // @ts-ignore
37
- import type { ObjectiveWeightResponse } from '../models';
38
30
  /**
39
31
  * ObjectiveApi - axios parameter creator
40
32
  */
41
33
  export const ObjectiveApiAxiosParamCreator = function (configuration?: Configuration) {
42
34
  return {
43
- /**
44
- * Create a new metric under this objective.
45
- * @summary Create a metric for this objective
46
- * @param {string} objectiveId UUID of the objective
47
- * @param {MetricCreate} metricCreate
48
- * @param {*} [options] Override http request option.
49
- * @throws {RequiredError}
50
- */
51
- createMetricForObjective: async (objectiveId: string, metricCreate: MetricCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
52
- // verify required parameter 'objectiveId' is not null or undefined
53
- assertParamExists('createMetricForObjective', 'objectiveId', objectiveId)
54
- // verify required parameter 'metricCreate' is not null or undefined
55
- assertParamExists('createMetricForObjective', 'metricCreate', metricCreate)
56
- const localVarPath = `/objective/{objective_id}/metric/`
57
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
58
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
60
- let baseOptions;
61
- if (configuration) {
62
- baseOptions = configuration.baseOptions;
63
- }
64
-
65
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
66
- const localVarHeaderParameter = {} as any;
67
- const localVarQueryParameter = {} as any;
68
-
69
- // authentication OAuth2AuthorizationCodeBearer required
70
- // oauth required
71
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
72
-
73
- localVarHeaderParameter['Content-Type'] = 'application/json';
74
- localVarHeaderParameter['Accept'] = 'application/json';
75
-
76
- setSearchParams(localVarUrlObj, localVarQueryParameter);
77
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
78
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
- localVarRequestOptions.data = serializeDataIfNeeded(metricCreate, localVarRequestOptions, configuration)
80
-
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
88
- * @summary Delete a metric for this objective
89
- * @param {string} metricId UUID of the metric
90
- * @param {string} objectiveId UUID of the objective
91
- * @param {*} [options] Override http request option.
92
- * @throws {RequiredError}
93
- */
94
- deleteMetricForObjective: async (metricId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
95
- // verify required parameter 'metricId' is not null or undefined
96
- assertParamExists('deleteMetricForObjective', 'metricId', metricId)
97
- // verify required parameter 'objectiveId' is not null or undefined
98
- assertParamExists('deleteMetricForObjective', 'objectiveId', objectiveId)
99
- const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
100
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
101
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
102
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
- let baseOptions;
105
- if (configuration) {
106
- baseOptions = configuration.baseOptions;
107
- }
108
-
109
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
110
- const localVarHeaderParameter = {} as any;
111
- const localVarQueryParameter = {} as any;
112
-
113
- // authentication OAuth2AuthorizationCodeBearer required
114
- // oauth required
115
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
116
-
117
-
118
- setSearchParams(localVarUrlObj, localVarQueryParameter);
119
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
121
-
122
- return {
123
- url: toPathString(localVarUrlObj),
124
- options: localVarRequestOptions,
125
- };
126
- },
127
35
  /**
128
36
  * Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
129
37
  * @summary Delete an objective
@@ -152,96 +60,6 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
152
60
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
153
61
 
154
62
 
155
- setSearchParams(localVarUrlObj, localVarQueryParameter);
156
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
158
-
159
- return {
160
- url: toPathString(localVarUrlObj),
161
- options: localVarRequestOptions,
162
- };
163
- },
164
- /**
165
- * Retrieve a specific metric for the objective.
166
- * @summary Get a metric for this objective
167
- * @param {string} metricId UUID of the metric
168
- * @param {string} objectiveId UUID of the objective
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- getMetricForObjective: async (metricId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
173
- // verify required parameter 'metricId' is not null or undefined
174
- assertParamExists('getMetricForObjective', 'metricId', metricId)
175
- // verify required parameter 'objectiveId' is not null or undefined
176
- assertParamExists('getMetricForObjective', 'objectiveId', objectiveId)
177
- const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
178
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
179
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
180
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
182
- let baseOptions;
183
- if (configuration) {
184
- baseOptions = configuration.baseOptions;
185
- }
186
-
187
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
188
- const localVarHeaderParameter = {} as any;
189
- const localVarQueryParameter = {} as any;
190
-
191
- // authentication OAuth2AuthorizationCodeBearer required
192
- // oauth required
193
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
194
-
195
- localVarHeaderParameter['Accept'] = 'application/json';
196
-
197
- setSearchParams(localVarUrlObj, localVarQueryParameter);
198
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
200
-
201
- return {
202
- url: toPathString(localVarUrlObj),
203
- options: localVarRequestOptions,
204
- };
205
- },
206
- /**
207
- * Retrieve a paginated list of all metrics for a specific objective.
208
- * @summary List metrics for this objective
209
- * @param {string} objectiveId UUID of the objective
210
- * @param {number} [offset] Number of records to skip
211
- * @param {number} [limit] Max number of records to return
212
- * @param {*} [options] Override http request option.
213
- * @throws {RequiredError}
214
- */
215
- getMetricsForObjective: async (objectiveId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
216
- // verify required parameter 'objectiveId' is not null or undefined
217
- assertParamExists('getMetricsForObjective', 'objectiveId', objectiveId)
218
- const localVarPath = `/objective/{objective_id}/metric/`
219
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
220
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
221
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
222
- let baseOptions;
223
- if (configuration) {
224
- baseOptions = configuration.baseOptions;
225
- }
226
-
227
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
228
- const localVarHeaderParameter = {} as any;
229
- const localVarQueryParameter = {} as any;
230
-
231
- // authentication OAuth2AuthorizationCodeBearer required
232
- // oauth required
233
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
234
-
235
- if (offset !== undefined) {
236
- localVarQueryParameter['offset'] = offset;
237
- }
238
-
239
- if (limit !== undefined) {
240
- localVarQueryParameter['limit'] = limit;
241
- }
242
-
243
- localVarHeaderParameter['Accept'] = 'application/json';
244
-
245
63
  setSearchParams(localVarUrlObj, localVarQueryParameter);
246
64
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
247
65
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -333,101 +151,6 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
333
151
  options: localVarRequestOptions,
334
152
  };
335
153
  },
336
- /**
337
- * Retrieve a paginated list of all objective weights for a specific objective.
338
- * @summary List all objective weights for an objective
339
- * @param {string} objectiveId UUID of the objective
340
- * @param {number} [offset] Number of records to skip
341
- * @param {number} [limit] Max number of records to return
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- getWeightsForObjective: async (objectiveId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
346
- // verify required parameter 'objectiveId' is not null or undefined
347
- assertParamExists('getWeightsForObjective', 'objectiveId', objectiveId)
348
- const localVarPath = `/objective/{objective_id}/weights/`
349
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
350
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
351
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
352
- let baseOptions;
353
- if (configuration) {
354
- baseOptions = configuration.baseOptions;
355
- }
356
-
357
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
358
- const localVarHeaderParameter = {} as any;
359
- const localVarQueryParameter = {} as any;
360
-
361
- // authentication OAuth2AuthorizationCodeBearer required
362
- // oauth required
363
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
364
-
365
- if (offset !== undefined) {
366
- localVarQueryParameter['offset'] = offset;
367
- }
368
-
369
- if (limit !== undefined) {
370
- localVarQueryParameter['limit'] = limit;
371
- }
372
-
373
- localVarHeaderParameter['Accept'] = 'application/json';
374
-
375
- setSearchParams(localVarUrlObj, localVarQueryParameter);
376
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
377
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
378
-
379
- return {
380
- url: toPathString(localVarUrlObj),
381
- options: localVarRequestOptions,
382
- };
383
- },
384
- /**
385
- * Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
386
- * @summary Partially update a metric for this objective
387
- * @param {string} metricId UUID of the metric
388
- * @param {string} objectiveId UUID of the objective
389
- * @param {MetricUpdate} metricUpdate
390
- * @param {*} [options] Override http request option.
391
- * @throws {RequiredError}
392
- */
393
- patchMetricForObjective: async (metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
394
- // verify required parameter 'metricId' is not null or undefined
395
- assertParamExists('patchMetricForObjective', 'metricId', metricId)
396
- // verify required parameter 'objectiveId' is not null or undefined
397
- assertParamExists('patchMetricForObjective', 'objectiveId', objectiveId)
398
- // verify required parameter 'metricUpdate' is not null or undefined
399
- assertParamExists('patchMetricForObjective', 'metricUpdate', metricUpdate)
400
- const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
401
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
402
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
403
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
404
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
405
- let baseOptions;
406
- if (configuration) {
407
- baseOptions = configuration.baseOptions;
408
- }
409
-
410
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
411
- const localVarHeaderParameter = {} as any;
412
- const localVarQueryParameter = {} as any;
413
-
414
- // authentication OAuth2AuthorizationCodeBearer required
415
- // oauth required
416
- await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
417
-
418
- localVarHeaderParameter['Content-Type'] = 'application/json';
419
- localVarHeaderParameter['Accept'] = 'application/json';
420
-
421
- setSearchParams(localVarUrlObj, localVarQueryParameter);
422
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
423
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
424
- localVarRequestOptions.data = serializeDataIfNeeded(metricUpdate, localVarRequestOptions, configuration)
425
-
426
- return {
427
- url: toPathString(localVarUrlObj),
428
- options: localVarRequestOptions,
429
- };
430
- },
431
154
  /**
432
155
  * Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
433
156
  * @summary Partially update an objective
@@ -519,34 +242,6 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
519
242
  export const ObjectiveApiFp = function(configuration?: Configuration) {
520
243
  const localVarAxiosParamCreator = ObjectiveApiAxiosParamCreator(configuration)
521
244
  return {
522
- /**
523
- * Create a new metric under this objective.
524
- * @summary Create a metric for this objective
525
- * @param {string} objectiveId UUID of the objective
526
- * @param {MetricCreate} metricCreate
527
- * @param {*} [options] Override http request option.
528
- * @throws {RequiredError}
529
- */
530
- async createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
531
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMetricForObjective(objectiveId, metricCreate, options);
532
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
533
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.createMetricForObjective']?.[localVarOperationServerIndex]?.url;
534
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
535
- },
536
- /**
537
- * Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
538
- * @summary Delete a metric for this objective
539
- * @param {string} metricId UUID of the metric
540
- * @param {string} objectiveId UUID of the objective
541
- * @param {*} [options] Override http request option.
542
- * @throws {RequiredError}
543
- */
544
- async deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
545
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMetricForObjective(metricId, objectiveId, options);
546
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
547
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.deleteMetricForObjective']?.[localVarOperationServerIndex]?.url;
548
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
549
- },
550
245
  /**
551
246
  * Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
552
247
  * @summary Delete an objective
@@ -560,35 +255,6 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
560
255
  const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.deleteObjective']?.[localVarOperationServerIndex]?.url;
561
256
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
562
257
  },
563
- /**
564
- * Retrieve a specific metric for the objective.
565
- * @summary Get a metric for this objective
566
- * @param {string} metricId UUID of the metric
567
- * @param {string} objectiveId UUID of the objective
568
- * @param {*} [options] Override http request option.
569
- * @throws {RequiredError}
570
- */
571
- async getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
572
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricForObjective(metricId, objectiveId, options);
573
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
574
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getMetricForObjective']?.[localVarOperationServerIndex]?.url;
575
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
576
- },
577
- /**
578
- * Retrieve a paginated list of all metrics for a specific objective.
579
- * @summary List metrics for this objective
580
- * @param {string} objectiveId UUID of the objective
581
- * @param {number} [offset] Number of records to skip
582
- * @param {number} [limit] Max number of records to return
583
- * @param {*} [options] Override http request option.
584
- * @throws {RequiredError}
585
- */
586
- async getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricResponse>>> {
587
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricsForObjective(objectiveId, offset, limit, options);
588
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
589
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getMetricsForObjective']?.[localVarOperationServerIndex]?.url;
590
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
591
- },
592
258
  /**
593
259
  * Retrieve a single objective by its ID.
594
260
  * @summary Get an objective by ID
@@ -616,36 +282,6 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
616
282
  const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getObjectives']?.[localVarOperationServerIndex]?.url;
617
283
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
618
284
  },
619
- /**
620
- * Retrieve a paginated list of all objective weights for a specific objective.
621
- * @summary List all objective weights for an objective
622
- * @param {string} objectiveId UUID of the objective
623
- * @param {number} [offset] Number of records to skip
624
- * @param {number} [limit] Max number of records to return
625
- * @param {*} [options] Override http request option.
626
- * @throws {RequiredError}
627
- */
628
- async getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveWeightResponse>>> {
629
- const localVarAxiosArgs = await localVarAxiosParamCreator.getWeightsForObjective(objectiveId, offset, limit, options);
630
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
631
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getWeightsForObjective']?.[localVarOperationServerIndex]?.url;
632
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
633
- },
634
- /**
635
- * Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
636
- * @summary Partially update a metric for this objective
637
- * @param {string} metricId UUID of the metric
638
- * @param {string} objectiveId UUID of the objective
639
- * @param {MetricUpdate} metricUpdate
640
- * @param {*} [options] Override http request option.
641
- * @throws {RequiredError}
642
- */
643
- async patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
644
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchMetricForObjective(metricId, objectiveId, metricUpdate, options);
645
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
646
- const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.patchMetricForObjective']?.[localVarOperationServerIndex]?.url;
647
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
648
- },
649
285
  /**
650
286
  * Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
651
287
  * @summary Partially update an objective
@@ -682,28 +318,6 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
682
318
  export const ObjectiveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
683
319
  const localVarFp = ObjectiveApiFp(configuration)
684
320
  return {
685
- /**
686
- * Create a new metric under this objective.
687
- * @summary Create a metric for this objective
688
- * @param {string} objectiveId UUID of the objective
689
- * @param {MetricCreate} metricCreate
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- */
693
- createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
694
- return localVarFp.createMetricForObjective(objectiveId, metricCreate, options).then((request) => request(axios, basePath));
695
- },
696
- /**
697
- * Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
698
- * @summary Delete a metric for this objective
699
- * @param {string} metricId UUID of the metric
700
- * @param {string} objectiveId UUID of the objective
701
- * @param {*} [options] Override http request option.
702
- * @throws {RequiredError}
703
- */
704
- deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
705
- return localVarFp.deleteMetricForObjective(metricId, objectiveId, options).then((request) => request(axios, basePath));
706
- },
707
321
  /**
708
322
  * Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
709
323
  * @summary Delete an objective
@@ -714,29 +328,6 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
714
328
  deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
715
329
  return localVarFp.deleteObjective(objectiveId, options).then((request) => request(axios, basePath));
716
330
  },
717
- /**
718
- * Retrieve a specific metric for the objective.
719
- * @summary Get a metric for this objective
720
- * @param {string} metricId UUID of the metric
721
- * @param {string} objectiveId UUID of the objective
722
- * @param {*} [options] Override http request option.
723
- * @throws {RequiredError}
724
- */
725
- getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
726
- return localVarFp.getMetricForObjective(metricId, objectiveId, options).then((request) => request(axios, basePath));
727
- },
728
- /**
729
- * Retrieve a paginated list of all metrics for a specific objective.
730
- * @summary List metrics for this objective
731
- * @param {string} objectiveId UUID of the objective
732
- * @param {number} [offset] Number of records to skip
733
- * @param {number} [limit] Max number of records to return
734
- * @param {*} [options] Override http request option.
735
- * @throws {RequiredError}
736
- */
737
- getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricResponse>> {
738
- return localVarFp.getMetricsForObjective(objectiveId, offset, limit, options).then((request) => request(axios, basePath));
739
- },
740
331
  /**
741
332
  * Retrieve a single objective by its ID.
742
333
  * @summary Get an objective by ID
@@ -758,30 +349,6 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
758
349
  getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectiveResponse>> {
759
350
  return localVarFp.getObjectives(offset, limit, options).then((request) => request(axios, basePath));
760
351
  },
761
- /**
762
- * Retrieve a paginated list of all objective weights for a specific objective.
763
- * @summary List all objective weights for an objective
764
- * @param {string} objectiveId UUID of the objective
765
- * @param {number} [offset] Number of records to skip
766
- * @param {number} [limit] Max number of records to return
767
- * @param {*} [options] Override http request option.
768
- * @throws {RequiredError}
769
- */
770
- getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectiveWeightResponse>> {
771
- return localVarFp.getWeightsForObjective(objectiveId, offset, limit, options).then((request) => request(axios, basePath));
772
- },
773
- /**
774
- * Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
775
- * @summary Partially update a metric for this objective
776
- * @param {string} metricId UUID of the metric
777
- * @param {string} objectiveId UUID of the objective
778
- * @param {MetricUpdate} metricUpdate
779
- * @param {*} [options] Override http request option.
780
- * @throws {RequiredError}
781
- */
782
- patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
783
- return localVarFp.patchMetricForObjective(metricId, objectiveId, metricUpdate, options).then((request) => request(axios, basePath));
784
- },
785
352
  /**
786
353
  * Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
787
354
  * @summary Partially update an objective
@@ -810,30 +377,6 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
810
377
  * ObjectiveApi - object-oriented interface
811
378
  */
812
379
  export class ObjectiveApi extends BaseAPI {
813
- /**
814
- * Create a new metric under this objective.
815
- * @summary Create a metric for this objective
816
- * @param {string} objectiveId UUID of the objective
817
- * @param {MetricCreate} metricCreate
818
- * @param {*} [options] Override http request option.
819
- * @throws {RequiredError}
820
- */
821
- public createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig) {
822
- return ObjectiveApiFp(this.configuration).createMetricForObjective(objectiveId, metricCreate, options).then((request) => request(this.axios, this.basePath));
823
- }
824
-
825
- /**
826
- * Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
827
- * @summary Delete a metric for this objective
828
- * @param {string} metricId UUID of the metric
829
- * @param {string} objectiveId UUID of the objective
830
- * @param {*} [options] Override http request option.
831
- * @throws {RequiredError}
832
- */
833
- public deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
834
- return ObjectiveApiFp(this.configuration).deleteMetricForObjective(metricId, objectiveId, options).then((request) => request(this.axios, this.basePath));
835
- }
836
-
837
380
  /**
838
381
  * Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
839
382
  * @summary Delete an objective
@@ -845,31 +388,6 @@ export class ObjectiveApi extends BaseAPI {
845
388
  return ObjectiveApiFp(this.configuration).deleteObjective(objectiveId, options).then((request) => request(this.axios, this.basePath));
846
389
  }
847
390
 
848
- /**
849
- * Retrieve a specific metric for the objective.
850
- * @summary Get a metric for this objective
851
- * @param {string} metricId UUID of the metric
852
- * @param {string} objectiveId UUID of the objective
853
- * @param {*} [options] Override http request option.
854
- * @throws {RequiredError}
855
- */
856
- public getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
857
- return ObjectiveApiFp(this.configuration).getMetricForObjective(metricId, objectiveId, options).then((request) => request(this.axios, this.basePath));
858
- }
859
-
860
- /**
861
- * Retrieve a paginated list of all metrics for a specific objective.
862
- * @summary List metrics for this objective
863
- * @param {string} objectiveId UUID of the objective
864
- * @param {number} [offset] Number of records to skip
865
- * @param {number} [limit] Max number of records to return
866
- * @param {*} [options] Override http request option.
867
- * @throws {RequiredError}
868
- */
869
- public getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
870
- return ObjectiveApiFp(this.configuration).getMetricsForObjective(objectiveId, offset, limit, options).then((request) => request(this.axios, this.basePath));
871
- }
872
-
873
391
  /**
874
392
  * Retrieve a single objective by its ID.
875
393
  * @summary Get an objective by ID
@@ -893,32 +411,6 @@ export class ObjectiveApi extends BaseAPI {
893
411
  return ObjectiveApiFp(this.configuration).getObjectives(offset, limit, options).then((request) => request(this.axios, this.basePath));
894
412
  }
895
413
 
896
- /**
897
- * Retrieve a paginated list of all objective weights for a specific objective.
898
- * @summary List all objective weights for an objective
899
- * @param {string} objectiveId UUID of the objective
900
- * @param {number} [offset] Number of records to skip
901
- * @param {number} [limit] Max number of records to return
902
- * @param {*} [options] Override http request option.
903
- * @throws {RequiredError}
904
- */
905
- public getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
906
- return ObjectiveApiFp(this.configuration).getWeightsForObjective(objectiveId, offset, limit, options).then((request) => request(this.axios, this.basePath));
907
- }
908
-
909
- /**
910
- * Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
911
- * @summary Partially update a metric for this objective
912
- * @param {string} metricId UUID of the metric
913
- * @param {string} objectiveId UUID of the objective
914
- * @param {MetricUpdate} metricUpdate
915
- * @param {*} [options] Override http request option.
916
- * @throws {RequiredError}
917
- */
918
- public patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig) {
919
- return ObjectiveApiFp(this.configuration).patchMetricForObjective(metricId, objectiveId, metricUpdate, options).then((request) => request(this.axios, this.basePath));
920
- }
921
-
922
414
  /**
923
415
  * Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
924
416
  * @summary Partially update an objective
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Asset Investment Planning
5
5
  * API for Asset Investment Planning
6
6
  *
7
- * The version of the OpenAPI document: 0.3.0-dev1
7
+ * The version of the OpenAPI document: 0.3.0-dev3
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).