@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
@@ -5,7 +5,7 @@
5
5
  * Asset Investment Planning
6
6
  * API for Asset Investment Planning
7
7
  *
8
- * The version of the OpenAPI document: 0.3.0-dev1
8
+ * The version of the OpenAPI document: 0.3.0-dev3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,445 +35,15 @@ const base_1 = require("../base");
35
35
  const ValueFrameworkApiAxiosParamCreator = function (configuration) {
36
36
  return {
37
37
  /**
38
- * Create a yearly cost override for a metric within this framework.
39
- * @summary Create a yearly metric cost for this framework
40
- * @param {string} valueFrameworkId UUID of the value framework
41
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
42
- * @param {*} [options] Override http request option.
43
- * @throws {RequiredError}
44
- */
45
- createMetricCostForFramework: (valueFrameworkId_1, metricCostsPerYearCreate_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, metricCostsPerYearCreate_1, ...args_1], void 0, function* (valueFrameworkId, metricCostsPerYearCreate, options = {}) {
46
- // verify required parameter 'valueFrameworkId' is not null or undefined
47
- (0, common_1.assertParamExists)('createMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
48
- // verify required parameter 'metricCostsPerYearCreate' is not null or undefined
49
- (0, common_1.assertParamExists)('createMetricCostForFramework', 'metricCostsPerYearCreate', metricCostsPerYearCreate);
50
- const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
51
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
52
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
53
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
54
- let baseOptions;
55
- if (configuration) {
56
- baseOptions = configuration.baseOptions;
57
- }
58
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
59
- const localVarHeaderParameter = {};
60
- const localVarQueryParameter = {};
61
- // authentication OAuth2AuthorizationCodeBearer required
62
- // oauth required
63
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
64
- localVarHeaderParameter['Content-Type'] = 'application/json';
65
- localVarHeaderParameter['Accept'] = 'application/json';
66
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
67
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
68
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
69
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearCreate, localVarRequestOptions, configuration);
70
- return {
71
- url: (0, common_1.toPathString)(localVarUrlObj),
72
- options: localVarRequestOptions,
73
- };
74
- }),
75
- /**
76
- * Assign a weight to an objective within this framework.
77
- * @summary Create an objective weight for this framework
78
- * @param {string} valueFrameworkId UUID of the value framework
79
- * @param {ObjectiveWeightCreate} objectiveWeightCreate
80
- * @param {*} [options] Override http request option.
81
- * @throws {RequiredError}
82
- */
83
- createObjectiveWeightForFramework: (valueFrameworkId_1, objectiveWeightCreate_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, objectiveWeightCreate_1, ...args_1], void 0, function* (valueFrameworkId, objectiveWeightCreate, options = {}) {
84
- // verify required parameter 'valueFrameworkId' is not null or undefined
85
- (0, common_1.assertParamExists)('createObjectiveWeightForFramework', 'valueFrameworkId', valueFrameworkId);
86
- // verify required parameter 'objectiveWeightCreate' is not null or undefined
87
- (0, common_1.assertParamExists)('createObjectiveWeightForFramework', 'objectiveWeightCreate', objectiveWeightCreate);
88
- const localVarPath = `/value_framework/{value_framework_id}/objective_weight/`
89
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
90
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
91
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
92
- let baseOptions;
93
- if (configuration) {
94
- baseOptions = configuration.baseOptions;
95
- }
96
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
97
- const localVarHeaderParameter = {};
98
- const localVarQueryParameter = {};
99
- // authentication OAuth2AuthorizationCodeBearer required
100
- // oauth required
101
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
102
- localVarHeaderParameter['Content-Type'] = 'application/json';
103
- localVarHeaderParameter['Accept'] = 'application/json';
104
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
105
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
107
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(objectiveWeightCreate, localVarRequestOptions, configuration);
108
- return {
109
- url: (0, common_1.toPathString)(localVarUrlObj),
110
- options: localVarRequestOptions,
111
- };
112
- }),
113
- /**
114
- * Delete a metric cost entry for a specific year within this framework.
115
- * @summary Delete metric costs for this framework
116
- * @param {string} metricId UUID of the metric
117
- * @param {number} year Year (1600-3000)
118
- * @param {string} valueFrameworkId UUID of the value framework
119
- * @param {*} [options] Override http request option.
120
- * @throws {RequiredError}
121
- */
122
- deleteMetricCostForFramework: (metricId_1, year_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [metricId_1, year_1, valueFrameworkId_1, ...args_1], void 0, function* (metricId, year, valueFrameworkId, options = {}) {
123
- // verify required parameter 'metricId' is not null or undefined
124
- (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'metricId', metricId);
125
- // verify required parameter 'year' is not null or undefined
126
- (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'year', year);
127
- // verify required parameter 'valueFrameworkId' is not null or undefined
128
- (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
129
- const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
130
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
131
- .replace(`{${"year"}}`, encodeURIComponent(String(year)))
132
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
133
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
134
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
135
- let baseOptions;
136
- if (configuration) {
137
- baseOptions = configuration.baseOptions;
138
- }
139
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
140
- const localVarHeaderParameter = {};
141
- const localVarQueryParameter = {};
142
- // authentication OAuth2AuthorizationCodeBearer required
143
- // oauth required
144
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
145
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
146
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
147
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
148
- return {
149
- url: (0, common_1.toPathString)(localVarUrlObj),
150
- options: localVarRequestOptions,
151
- };
152
- }),
153
- /**
154
- * Remove an objective weight from this framework.
155
- * @summary Delete an objective weight for this framework
156
- * @param {string} objectiveId UUID of the objective
157
- * @param {string} valueFrameworkId UUID of the value framework
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- */
161
- deleteObjectiveWeightForFramework: (objectiveId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [objectiveId_1, valueFrameworkId_1, ...args_1], void 0, function* (objectiveId, valueFrameworkId, options = {}) {
162
- // verify required parameter 'objectiveId' is not null or undefined
163
- (0, common_1.assertParamExists)('deleteObjectiveWeightForFramework', 'objectiveId', objectiveId);
164
- // verify required parameter 'valueFrameworkId' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteObjectiveWeightForFramework', 'valueFrameworkId', valueFrameworkId);
166
- const localVarPath = `/value_framework/{value_framework_id}/objective_weight/{objective_id}`
167
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)))
168
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
169
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
- let baseOptions;
172
- if (configuration) {
173
- baseOptions = configuration.baseOptions;
174
- }
175
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
176
- const localVarHeaderParameter = {};
177
- const localVarQueryParameter = {};
178
- // authentication OAuth2AuthorizationCodeBearer required
179
- // oauth required
180
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
181
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- return {
185
- url: (0, common_1.toPathString)(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- };
188
- }),
189
- /**
190
- * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
191
- * @summary Delete a value framework
192
- * @param {string} valueFrameworkId UUID of the value framework
193
- * @param {*} [options] Override http request option.
194
- * @throws {RequiredError}
195
- */
196
- deleteValueFramework: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
197
- // verify required parameter 'valueFrameworkId' is not null or undefined
198
- (0, common_1.assertParamExists)('deleteValueFramework', 'valueFrameworkId', valueFrameworkId);
199
- const localVarPath = `/value_framework/{value_framework_id}`
200
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
201
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
203
- let baseOptions;
204
- if (configuration) {
205
- baseOptions = configuration.baseOptions;
206
- }
207
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
208
- const localVarHeaderParameter = {};
209
- const localVarQueryParameter = {};
210
- // authentication OAuth2AuthorizationCodeBearer required
211
- // oauth required
212
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
213
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
216
- return {
217
- url: (0, common_1.toPathString)(localVarUrlObj),
218
- options: localVarRequestOptions,
219
- };
220
- }),
221
- /**
222
- * Retrieve a paginated list of all metric costs for a specific value framework.
223
- * @summary List all metric costs for a value framework
224
- * @param {string} valueFrameworkId UUID of the value framework
225
- * @param {number} [offset] Number of records to skip
226
- * @param {number} [limit] Max number of records to return
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- getCostsForValueFramework: (valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (valueFrameworkId, offset, limit, options = {}) {
231
- // verify required parameter 'valueFrameworkId' is not null or undefined
232
- (0, common_1.assertParamExists)('getCostsForValueFramework', 'valueFrameworkId', valueFrameworkId);
233
- const localVarPath = `/value_framework/{value_framework_id}/costs/`
234
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
235
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
236
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
237
- let baseOptions;
238
- if (configuration) {
239
- baseOptions = configuration.baseOptions;
240
- }
241
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
242
- const localVarHeaderParameter = {};
243
- const localVarQueryParameter = {};
244
- // authentication OAuth2AuthorizationCodeBearer required
245
- // oauth required
246
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
247
- if (offset !== undefined) {
248
- localVarQueryParameter['offset'] = offset;
249
- }
250
- if (limit !== undefined) {
251
- localVarQueryParameter['limit'] = limit;
252
- }
253
- localVarHeaderParameter['Accept'] = 'application/json';
254
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
255
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
257
- return {
258
- url: (0, common_1.toPathString)(localVarUrlObj),
259
- options: localVarRequestOptions,
260
- };
261
- }),
262
- /**
263
- * Retrieve a paginated list of metric costs for a specific metric within a value framework.
264
- * @summary List metric costs for a value framework filtered by metric
265
- * @param {string} metricId UUID of the metric
266
- * @param {string} valueFrameworkId UUID of the value framework
267
- * @param {number} [offset] Number of records to skip
268
- * @param {number} [limit] Max number of records to return
269
- * @param {*} [options] Override http request option.
270
- * @throws {RequiredError}
271
- */
272
- getCostsForValueFrameworkByMetric: (metricId_1, valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [metricId_1, valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (metricId, valueFrameworkId, offset, limit, options = {}) {
273
- // verify required parameter 'metricId' is not null or undefined
274
- (0, common_1.assertParamExists)('getCostsForValueFrameworkByMetric', 'metricId', metricId);
275
- // verify required parameter 'valueFrameworkId' is not null or undefined
276
- (0, common_1.assertParamExists)('getCostsForValueFrameworkByMetric', 'valueFrameworkId', valueFrameworkId);
277
- const localVarPath = `/value_framework/{value_framework_id}/costs/{metric_id}`
278
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
279
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
280
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
281
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
- let baseOptions;
283
- if (configuration) {
284
- baseOptions = configuration.baseOptions;
285
- }
286
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
287
- const localVarHeaderParameter = {};
288
- const localVarQueryParameter = {};
289
- // authentication OAuth2AuthorizationCodeBearer required
290
- // oauth required
291
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
292
- if (offset !== undefined) {
293
- localVarQueryParameter['offset'] = offset;
294
- }
295
- if (limit !== undefined) {
296
- localVarQueryParameter['limit'] = limit;
297
- }
298
- localVarHeaderParameter['Accept'] = 'application/json';
299
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
300
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
301
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
302
- return {
303
- url: (0, common_1.toPathString)(localVarUrlObj),
304
- options: localVarRequestOptions,
305
- };
306
- }),
307
- /**
308
- * Retrieve cost data for a specific metric within this framework for a given year.
309
- * @summary Get a yearly metric cost for this framework
310
- * @param {string} metricId UUID of the metric
311
- * @param {number} year Year (1600-3000)
312
- * @param {string} valueFrameworkId UUID of the value framework
313
- * @param {*} [options] Override http request option.
314
- * @throws {RequiredError}
315
- */
316
- getMetricCostForFramework: (metricId_1, year_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [metricId_1, year_1, valueFrameworkId_1, ...args_1], void 0, function* (metricId, year, valueFrameworkId, options = {}) {
317
- // verify required parameter 'metricId' is not null or undefined
318
- (0, common_1.assertParamExists)('getMetricCostForFramework', 'metricId', metricId);
319
- // verify required parameter 'year' is not null or undefined
320
- (0, common_1.assertParamExists)('getMetricCostForFramework', 'year', year);
321
- // verify required parameter 'valueFrameworkId' is not null or undefined
322
- (0, common_1.assertParamExists)('getMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
323
- const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
324
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
325
- .replace(`{${"year"}}`, encodeURIComponent(String(year)))
326
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
327
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
328
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
329
- let baseOptions;
330
- if (configuration) {
331
- baseOptions = configuration.baseOptions;
332
- }
333
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
334
- const localVarHeaderParameter = {};
335
- const localVarQueryParameter = {};
336
- // authentication OAuth2AuthorizationCodeBearer required
337
- // oauth required
338
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
339
- localVarHeaderParameter['Accept'] = 'application/json';
340
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
341
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
342
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
343
- return {
344
- url: (0, common_1.toPathString)(localVarUrlObj),
345
- options: localVarRequestOptions,
346
- };
347
- }),
348
- /**
349
- * Retrieve a paginated list of all yearly metric costs for a specific framework.
350
- * @summary List yearly metric costs for this framework
351
- * @param {string} valueFrameworkId UUID of the value framework
352
- * @param {number} [offset] Number of records to skip
353
- * @param {number} [limit] Max number of records to return
354
- * @param {*} [options] Override http request option.
355
- * @throws {RequiredError}
356
- */
357
- getMetricCostsForFramework: (valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (valueFrameworkId, offset, limit, options = {}) {
358
- // verify required parameter 'valueFrameworkId' is not null or undefined
359
- (0, common_1.assertParamExists)('getMetricCostsForFramework', 'valueFrameworkId', valueFrameworkId);
360
- const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
361
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
362
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
363
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
364
- let baseOptions;
365
- if (configuration) {
366
- baseOptions = configuration.baseOptions;
367
- }
368
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
369
- const localVarHeaderParameter = {};
370
- const localVarQueryParameter = {};
371
- // authentication OAuth2AuthorizationCodeBearer required
372
- // oauth required
373
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
374
- if (offset !== undefined) {
375
- localVarQueryParameter['offset'] = offset;
376
- }
377
- if (limit !== undefined) {
378
- localVarQueryParameter['limit'] = limit;
379
- }
380
- localVarHeaderParameter['Accept'] = 'application/json';
381
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
382
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
383
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
384
- return {
385
- url: (0, common_1.toPathString)(localVarUrlObj),
386
- options: localVarRequestOptions,
387
- };
388
- }),
389
- /**
390
- * Retrieve the weight for a specific objective within this framework.
391
- * @summary Get an objective weight for this framework
392
- * @param {string} objectiveId UUID of the objective
393
- * @param {string} valueFrameworkId UUID of the value framework
394
- * @param {*} [options] Override http request option.
395
- * @throws {RequiredError}
396
- */
397
- getObjectiveWeightForFramework: (objectiveId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [objectiveId_1, valueFrameworkId_1, ...args_1], void 0, function* (objectiveId, valueFrameworkId, options = {}) {
398
- // verify required parameter 'objectiveId' is not null or undefined
399
- (0, common_1.assertParamExists)('getObjectiveWeightForFramework', 'objectiveId', objectiveId);
400
- // verify required parameter 'valueFrameworkId' is not null or undefined
401
- (0, common_1.assertParamExists)('getObjectiveWeightForFramework', 'valueFrameworkId', valueFrameworkId);
402
- const localVarPath = `/value_framework/{value_framework_id}/objective_weight/{objective_id}`
403
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)))
404
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
405
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
406
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
407
- let baseOptions;
408
- if (configuration) {
409
- baseOptions = configuration.baseOptions;
410
- }
411
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
412
- const localVarHeaderParameter = {};
413
- const localVarQueryParameter = {};
414
- // authentication OAuth2AuthorizationCodeBearer required
415
- // oauth required
416
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
417
- localVarHeaderParameter['Accept'] = 'application/json';
418
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
419
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
420
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
421
- return {
422
- url: (0, common_1.toPathString)(localVarUrlObj),
423
- options: localVarRequestOptions,
424
- };
425
- }),
426
- /**
427
- * Retrieve a paginated list of all objective weights for a specific framework.
428
- * @summary List objective weights for this framework
429
- * @param {string} valueFrameworkId UUID of the value framework
430
- * @param {number} [offset] Number of records to skip
431
- * @param {number} [limit] Max number of records to return
432
- * @param {*} [options] Override http request option.
433
- * @throws {RequiredError}
434
- */
435
- getObjectiveWeightsForFramework: (valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (valueFrameworkId, offset, limit, options = {}) {
436
- // verify required parameter 'valueFrameworkId' is not null or undefined
437
- (0, common_1.assertParamExists)('getObjectiveWeightsForFramework', 'valueFrameworkId', valueFrameworkId);
438
- const localVarPath = `/value_framework/{value_framework_id}/objective_weight/`
439
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
440
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
441
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
442
- let baseOptions;
443
- if (configuration) {
444
- baseOptions = configuration.baseOptions;
445
- }
446
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
447
- const localVarHeaderParameter = {};
448
- const localVarQueryParameter = {};
449
- // authentication OAuth2AuthorizationCodeBearer required
450
- // oauth required
451
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
452
- if (offset !== undefined) {
453
- localVarQueryParameter['offset'] = offset;
454
- }
455
- if (limit !== undefined) {
456
- localVarQueryParameter['limit'] = limit;
457
- }
458
- localVarHeaderParameter['Accept'] = 'application/json';
459
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
460
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
461
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
462
- return {
463
- url: (0, common_1.toPathString)(localVarUrlObj),
464
- options: localVarRequestOptions,
465
- };
466
- }),
467
- /**
468
- * Retrieve a single value framework by its ID.
469
- * @summary Get a value framework by ID
38
+ * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
39
+ * @summary Delete a value framework
470
40
  * @param {string} valueFrameworkId UUID of the value framework
471
41
  * @param {*} [options] Override http request option.
472
42
  * @throws {RequiredError}
473
43
  */
474
- getValueFrameworkById: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
44
+ deleteValueFramework: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
475
45
  // verify required parameter 'valueFrameworkId' is not null or undefined
476
- (0, common_1.assertParamExists)('getValueFrameworkById', 'valueFrameworkId', valueFrameworkId);
46
+ (0, common_1.assertParamExists)('deleteValueFramework', 'valueFrameworkId', valueFrameworkId);
477
47
  const localVarPath = `/value_framework/{value_framework_id}`
478
48
  .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
479
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -482,13 +52,12 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
482
52
  if (configuration) {
483
53
  baseOptions = configuration.baseOptions;
484
54
  }
485
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
55
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
486
56
  const localVarHeaderParameter = {};
487
57
  const localVarQueryParameter = {};
488
58
  // authentication OAuth2AuthorizationCodeBearer required
489
59
  // oauth required
490
60
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
491
- localVarHeaderParameter['Accept'] = 'application/json';
492
61
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
493
62
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
494
63
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -498,15 +67,17 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
498
67
  };
499
68
  }),
500
69
  /**
501
- * Retrieve a paginated list of all value frameworks.
502
- * @summary List value frameworks
503
- * @param {number} [offset] Number of records to skip
504
- * @param {number} [limit] Max number of records to return
70
+ * Retrieve a single value framework by its ID.
71
+ * @summary Get a value framework by ID
72
+ * @param {string} valueFrameworkId UUID of the value framework
505
73
  * @param {*} [options] Override http request option.
506
74
  * @throws {RequiredError}
507
75
  */
508
- getValueFrameworks: (offset_1, limit_1, ...args_1) => __awaiter(this, [offset_1, limit_1, ...args_1], void 0, function* (offset, limit, options = {}) {
509
- const localVarPath = `/value_framework/`;
76
+ getValueFrameworkById: (valueFrameworkId_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, ...args_1], void 0, function* (valueFrameworkId, options = {}) {
77
+ // verify required parameter 'valueFrameworkId' is not null or undefined
78
+ (0, common_1.assertParamExists)('getValueFrameworkById', 'valueFrameworkId', valueFrameworkId);
79
+ const localVarPath = `/value_framework/{value_framework_id}`
80
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
510
81
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
511
82
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
512
83
  let baseOptions;
@@ -519,12 +90,6 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
519
90
  // authentication OAuth2AuthorizationCodeBearer required
520
91
  // oauth required
521
92
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
522
- if (offset !== undefined) {
523
- localVarQueryParameter['offset'] = offset;
524
- }
525
- if (limit !== undefined) {
526
- localVarQueryParameter['limit'] = limit;
527
- }
528
93
  localVarHeaderParameter['Accept'] = 'application/json';
529
94
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
530
95
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -535,19 +100,15 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
535
100
  };
536
101
  }),
537
102
  /**
538
- * Retrieve a paginated list of all objective weights for a specific value framework.
539
- * @summary List all objective weights for a value framework
540
- * @param {string} valueFrameworkId UUID of the value framework
103
+ * Retrieve a paginated list of all value frameworks.
104
+ * @summary List value frameworks
541
105
  * @param {number} [offset] Number of records to skip
542
106
  * @param {number} [limit] Max number of records to return
543
107
  * @param {*} [options] Override http request option.
544
108
  * @throws {RequiredError}
545
109
  */
546
- getWeightsForValueFramework: (valueFrameworkId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [valueFrameworkId_1, offset_1, limit_1, ...args_1], void 0, function* (valueFrameworkId, offset, limit, options = {}) {
547
- // verify required parameter 'valueFrameworkId' is not null or undefined
548
- (0, common_1.assertParamExists)('getWeightsForValueFramework', 'valueFrameworkId', valueFrameworkId);
549
- const localVarPath = `/value_framework/{value_framework_id}/weights/`
550
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
110
+ getValueFrameworks: (offset_1, limit_1, ...args_1) => __awaiter(this, [offset_1, limit_1, ...args_1], void 0, function* (offset, limit, options = {}) {
111
+ const localVarPath = `/value_framework/`;
551
112
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
552
113
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
553
114
  let baseOptions;
@@ -575,94 +136,6 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
575
136
  options: localVarRequestOptions,
576
137
  };
577
138
  }),
578
- /**
579
- * Update the perceived and/or direct cost of a metric for a specific year within this framework.
580
- * @summary Partially update metric costs for this framework
581
- * @param {string} metricId UUID of the metric
582
- * @param {number} year Year (1600-3000)
583
- * @param {string} valueFrameworkId UUID of the value framework
584
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
585
- * @param {*} [options] Override http request option.
586
- * @throws {RequiredError}
587
- */
588
- patchMetricCostForFramework: (metricId_1, year_1, valueFrameworkId_1, metricCostsPerYearUpdate_1, ...args_1) => __awaiter(this, [metricId_1, year_1, valueFrameworkId_1, metricCostsPerYearUpdate_1, ...args_1], void 0, function* (metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options = {}) {
589
- // verify required parameter 'metricId' is not null or undefined
590
- (0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricId', metricId);
591
- // verify required parameter 'year' is not null or undefined
592
- (0, common_1.assertParamExists)('patchMetricCostForFramework', 'year', year);
593
- // verify required parameter 'valueFrameworkId' is not null or undefined
594
- (0, common_1.assertParamExists)('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
595
- // verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
596
- (0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
597
- const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
598
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
599
- .replace(`{${"year"}}`, encodeURIComponent(String(year)))
600
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
601
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
602
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
603
- let baseOptions;
604
- if (configuration) {
605
- baseOptions = configuration.baseOptions;
606
- }
607
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
608
- const localVarHeaderParameter = {};
609
- const localVarQueryParameter = {};
610
- // authentication OAuth2AuthorizationCodeBearer required
611
- // oauth required
612
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
613
- localVarHeaderParameter['Content-Type'] = 'application/json';
614
- localVarHeaderParameter['Accept'] = 'application/json';
615
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
616
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
617
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
618
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearUpdate, localVarRequestOptions, configuration);
619
- return {
620
- url: (0, common_1.toPathString)(localVarUrlObj),
621
- options: localVarRequestOptions,
622
- };
623
- }),
624
- /**
625
- * Update the weight of an objective within this value framework.
626
- * @summary Partially update an objective weight for this framework
627
- * @param {string} objectiveId UUID of the objective
628
- * @param {string} valueFrameworkId UUID of the value framework
629
- * @param {ObjectiveWeightUpdate} objectiveWeightUpdate
630
- * @param {*} [options] Override http request option.
631
- * @throws {RequiredError}
632
- */
633
- patchObjectiveWeightForFramework: (objectiveId_1, valueFrameworkId_1, objectiveWeightUpdate_1, ...args_1) => __awaiter(this, [objectiveId_1, valueFrameworkId_1, objectiveWeightUpdate_1, ...args_1], void 0, function* (objectiveId, valueFrameworkId, objectiveWeightUpdate, options = {}) {
634
- // verify required parameter 'objectiveId' is not null or undefined
635
- (0, common_1.assertParamExists)('patchObjectiveWeightForFramework', 'objectiveId', objectiveId);
636
- // verify required parameter 'valueFrameworkId' is not null or undefined
637
- (0, common_1.assertParamExists)('patchObjectiveWeightForFramework', 'valueFrameworkId', valueFrameworkId);
638
- // verify required parameter 'objectiveWeightUpdate' is not null or undefined
639
- (0, common_1.assertParamExists)('patchObjectiveWeightForFramework', 'objectiveWeightUpdate', objectiveWeightUpdate);
640
- const localVarPath = `/value_framework/{value_framework_id}/objective_weight/{objective_id}`
641
- .replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)))
642
- .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
643
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
644
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
645
- let baseOptions;
646
- if (configuration) {
647
- baseOptions = configuration.baseOptions;
648
- }
649
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
650
- const localVarHeaderParameter = {};
651
- const localVarQueryParameter = {};
652
- // authentication OAuth2AuthorizationCodeBearer required
653
- // oauth required
654
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
655
- localVarHeaderParameter['Content-Type'] = 'application/json';
656
- localVarHeaderParameter['Accept'] = 'application/json';
657
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
658
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
659
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
660
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(objectiveWeightUpdate, localVarRequestOptions, configuration);
661
- return {
662
- url: (0, common_1.toPathString)(localVarUrlObj),
663
- options: localVarRequestOptions,
664
- };
665
- }),
666
139
  /**
667
140
  * Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
668
141
  * @summary Partially update a value framework
@@ -706,234 +179,57 @@ const ValueFrameworkApiAxiosParamCreator = function (configuration) {
706
179
  * @summary Create a value framework
707
180
  * @param {ValueFrameworkCreate} valueFrameworkCreate
708
181
  * @param {*} [options] Override http request option.
709
- * @throws {RequiredError}
710
- */
711
- postValueFramework: (valueFrameworkCreate_1, ...args_1) => __awaiter(this, [valueFrameworkCreate_1, ...args_1], void 0, function* (valueFrameworkCreate, options = {}) {
712
- // verify required parameter 'valueFrameworkCreate' is not null or undefined
713
- (0, common_1.assertParamExists)('postValueFramework', 'valueFrameworkCreate', valueFrameworkCreate);
714
- const localVarPath = `/value_framework/`;
715
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
716
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
717
- let baseOptions;
718
- if (configuration) {
719
- baseOptions = configuration.baseOptions;
720
- }
721
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
722
- const localVarHeaderParameter = {};
723
- const localVarQueryParameter = {};
724
- // authentication OAuth2AuthorizationCodeBearer required
725
- // oauth required
726
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
727
- localVarHeaderParameter['Content-Type'] = 'application/json';
728
- localVarHeaderParameter['Accept'] = 'application/json';
729
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
730
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
731
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
732
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(valueFrameworkCreate, localVarRequestOptions, configuration);
733
- return {
734
- url: (0, common_1.toPathString)(localVarUrlObj),
735
- options: localVarRequestOptions,
736
- };
737
- }),
738
- };
739
- };
740
- exports.ValueFrameworkApiAxiosParamCreator = ValueFrameworkApiAxiosParamCreator;
741
- /**
742
- * ValueFrameworkApi - functional programming interface
743
- */
744
- const ValueFrameworkApiFp = function (configuration) {
745
- const localVarAxiosParamCreator = (0, exports.ValueFrameworkApiAxiosParamCreator)(configuration);
746
- return {
747
- /**
748
- * Create a yearly cost override for a metric within this framework.
749
- * @summary Create a yearly metric cost for this framework
750
- * @param {string} valueFrameworkId UUID of the value framework
751
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
752
- * @param {*} [options] Override http request option.
753
- * @throws {RequiredError}
754
- */
755
- createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
756
- return __awaiter(this, void 0, void 0, function* () {
757
- var _a, _b, _c;
758
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options);
759
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
760
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.createMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
761
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
762
- });
763
- },
764
- /**
765
- * Assign a weight to an objective within this framework.
766
- * @summary Create an objective weight for this framework
767
- * @param {string} valueFrameworkId UUID of the value framework
768
- * @param {ObjectiveWeightCreate} objectiveWeightCreate
769
- * @param {*} [options] Override http request option.
770
- * @throws {RequiredError}
771
- */
772
- createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options) {
773
- return __awaiter(this, void 0, void 0, function* () {
774
- var _a, _b, _c;
775
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options);
776
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
777
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.createObjectiveWeightForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
778
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
779
- });
780
- },
781
- /**
782
- * Delete a metric cost entry for a specific year within this framework.
783
- * @summary Delete metric costs for this framework
784
- * @param {string} metricId UUID of the metric
785
- * @param {number} year Year (1600-3000)
786
- * @param {string} valueFrameworkId UUID of the value framework
787
- * @param {*} [options] Override http request option.
788
- * @throws {RequiredError}
789
- */
790
- deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
791
- return __awaiter(this, void 0, void 0, function* () {
792
- var _a, _b, _c;
793
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options);
794
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
795
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.deleteMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
796
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
797
- });
798
- },
799
- /**
800
- * Remove an objective weight from this framework.
801
- * @summary Delete an objective weight for this framework
802
- * @param {string} objectiveId UUID of the objective
803
- * @param {string} valueFrameworkId UUID of the value framework
804
- * @param {*} [options] Override http request option.
805
- * @throws {RequiredError}
806
- */
807
- deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
808
- return __awaiter(this, void 0, void 0, function* () {
809
- var _a, _b, _c;
810
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options);
811
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
812
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.deleteObjectiveWeightForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
813
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
814
- });
815
- },
816
- /**
817
- * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
818
- * @summary Delete a value framework
819
- * @param {string} valueFrameworkId UUID of the value framework
820
- * @param {*} [options] Override http request option.
821
- * @throws {RequiredError}
822
- */
823
- deleteValueFramework(valueFrameworkId, options) {
824
- return __awaiter(this, void 0, void 0, function* () {
825
- var _a, _b, _c;
826
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteValueFramework(valueFrameworkId, options);
827
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
828
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.deleteValueFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
829
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
830
- });
831
- },
832
- /**
833
- * Retrieve a paginated list of all metric costs for a specific value framework.
834
- * @summary List all metric costs for a value framework
835
- * @param {string} valueFrameworkId UUID of the value framework
836
- * @param {number} [offset] Number of records to skip
837
- * @param {number} [limit] Max number of records to return
838
- * @param {*} [options] Override http request option.
839
- * @throws {RequiredError}
840
- */
841
- getCostsForValueFramework(valueFrameworkId, offset, limit, options) {
842
- return __awaiter(this, void 0, void 0, function* () {
843
- var _a, _b, _c;
844
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCostsForValueFramework(valueFrameworkId, offset, limit, options);
845
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
846
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getCostsForValueFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
847
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
848
- });
849
- },
850
- /**
851
- * Retrieve a paginated list of metric costs for a specific metric within a value framework.
852
- * @summary List metric costs for a value framework filtered by metric
853
- * @param {string} metricId UUID of the metric
854
- * @param {string} valueFrameworkId UUID of the value framework
855
- * @param {number} [offset] Number of records to skip
856
- * @param {number} [limit] Max number of records to return
857
- * @param {*} [options] Override http request option.
858
- * @throws {RequiredError}
859
- */
860
- getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options) {
861
- return __awaiter(this, void 0, void 0, function* () {
862
- var _a, _b, _c;
863
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options);
864
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
865
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getCostsForValueFrameworkByMetric']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
866
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
867
- });
868
- },
869
- /**
870
- * Retrieve cost data for a specific metric within this framework for a given year.
871
- * @summary Get a yearly metric cost for this framework
872
- * @param {string} metricId UUID of the metric
873
- * @param {number} year Year (1600-3000)
874
- * @param {string} valueFrameworkId UUID of the value framework
875
- * @param {*} [options] Override http request option.
876
- * @throws {RequiredError}
877
- */
878
- getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
879
- return __awaiter(this, void 0, void 0, function* () {
880
- var _a, _b, _c;
881
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostForFramework(metricId, year, valueFrameworkId, options);
882
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
883
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
884
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
885
- });
886
- },
887
- /**
888
- * Retrieve a paginated list of all yearly metric costs for a specific framework.
889
- * @summary List yearly metric costs for this framework
890
- * @param {string} valueFrameworkId UUID of the value framework
891
- * @param {number} [offset] Number of records to skip
892
- * @param {number} [limit] Max number of records to return
893
- * @param {*} [options] Override http request option.
894
- * @throws {RequiredError}
895
- */
896
- getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
897
- return __awaiter(this, void 0, void 0, function* () {
898
- var _a, _b, _c;
899
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostsForFramework(valueFrameworkId, offset, limit, options);
900
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
901
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getMetricCostsForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
902
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
903
- });
904
- },
905
- /**
906
- * Retrieve the weight for a specific objective within this framework.
907
- * @summary Get an objective weight for this framework
908
- * @param {string} objectiveId UUID of the objective
909
- * @param {string} valueFrameworkId UUID of the value framework
910
- * @param {*} [options] Override http request option.
911
- * @throws {RequiredError}
912
- */
913
- getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
914
- return __awaiter(this, void 0, void 0, function* () {
915
- var _a, _b, _c;
916
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options);
917
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
918
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getObjectiveWeightForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
919
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
920
- });
921
- },
182
+ * @throws {RequiredError}
183
+ */
184
+ postValueFramework: (valueFrameworkCreate_1, ...args_1) => __awaiter(this, [valueFrameworkCreate_1, ...args_1], void 0, function* (valueFrameworkCreate, options = {}) {
185
+ // verify required parameter 'valueFrameworkCreate' is not null or undefined
186
+ (0, common_1.assertParamExists)('postValueFramework', 'valueFrameworkCreate', valueFrameworkCreate);
187
+ const localVarPath = `/value_framework/`;
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ // authentication OAuth2AuthorizationCodeBearer required
198
+ // oauth required
199
+ yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
200
+ localVarHeaderParameter['Content-Type'] = 'application/json';
201
+ localVarHeaderParameter['Accept'] = 'application/json';
202
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
205
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(valueFrameworkCreate, localVarRequestOptions, configuration);
206
+ return {
207
+ url: (0, common_1.toPathString)(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ }),
211
+ };
212
+ };
213
+ exports.ValueFrameworkApiAxiosParamCreator = ValueFrameworkApiAxiosParamCreator;
214
+ /**
215
+ * ValueFrameworkApi - functional programming interface
216
+ */
217
+ const ValueFrameworkApiFp = function (configuration) {
218
+ const localVarAxiosParamCreator = (0, exports.ValueFrameworkApiAxiosParamCreator)(configuration);
219
+ return {
922
220
  /**
923
- * Retrieve a paginated list of all objective weights for a specific framework.
924
- * @summary List objective weights for this framework
221
+ * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
222
+ * @summary Delete a value framework
925
223
  * @param {string} valueFrameworkId UUID of the value framework
926
- * @param {number} [offset] Number of records to skip
927
- * @param {number} [limit] Max number of records to return
928
224
  * @param {*} [options] Override http request option.
929
225
  * @throws {RequiredError}
930
226
  */
931
- getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options) {
227
+ deleteValueFramework(valueFrameworkId, options) {
932
228
  return __awaiter(this, void 0, void 0, function* () {
933
229
  var _a, _b, _c;
934
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options);
230
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteValueFramework(valueFrameworkId, options);
935
231
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
936
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getObjectiveWeightsForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
232
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.deleteValueFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
937
233
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
938
234
  });
939
235
  },
@@ -970,61 +266,6 @@ const ValueFrameworkApiFp = function (configuration) {
970
266
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
971
267
  });
972
268
  },
973
- /**
974
- * Retrieve a paginated list of all objective weights for a specific value framework.
975
- * @summary List all objective weights for a value framework
976
- * @param {string} valueFrameworkId UUID of the value framework
977
- * @param {number} [offset] Number of records to skip
978
- * @param {number} [limit] Max number of records to return
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- getWeightsForValueFramework(valueFrameworkId, offset, limit, options) {
983
- return __awaiter(this, void 0, void 0, function* () {
984
- var _a, _b, _c;
985
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWeightsForValueFramework(valueFrameworkId, offset, limit, options);
986
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
987
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.getWeightsForValueFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
988
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
989
- });
990
- },
991
- /**
992
- * Update the perceived and/or direct cost of a metric for a specific year within this framework.
993
- * @summary Partially update metric costs for this framework
994
- * @param {string} metricId UUID of the metric
995
- * @param {number} year Year (1600-3000)
996
- * @param {string} valueFrameworkId UUID of the value framework
997
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
998
- * @param {*} [options] Override http request option.
999
- * @throws {RequiredError}
1000
- */
1001
- patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
1002
- return __awaiter(this, void 0, void 0, function* () {
1003
- var _a, _b, _c;
1004
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options);
1005
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1006
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.patchMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1007
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1008
- });
1009
- },
1010
- /**
1011
- * Update the weight of an objective within this value framework.
1012
- * @summary Partially update an objective weight for this framework
1013
- * @param {string} objectiveId UUID of the objective
1014
- * @param {string} valueFrameworkId UUID of the value framework
1015
- * @param {ObjectiveWeightUpdate} objectiveWeightUpdate
1016
- * @param {*} [options] Override http request option.
1017
- * @throws {RequiredError}
1018
- */
1019
- patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options) {
1020
- return __awaiter(this, void 0, void 0, function* () {
1021
- var _a, _b, _c;
1022
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options);
1023
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1024
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ValueFrameworkApi.patchObjectiveWeightForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1025
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1026
- });
1027
- },
1028
269
  /**
1029
270
  * Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1030
271
  * @summary Partially update a value framework
@@ -1067,51 +308,6 @@ exports.ValueFrameworkApiFp = ValueFrameworkApiFp;
1067
308
  const ValueFrameworkApiFactory = function (configuration, basePath, axios) {
1068
309
  const localVarFp = (0, exports.ValueFrameworkApiFp)(configuration);
1069
310
  return {
1070
- /**
1071
- * Create a yearly cost override for a metric within this framework.
1072
- * @summary Create a yearly metric cost for this framework
1073
- * @param {string} valueFrameworkId UUID of the value framework
1074
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
1075
- * @param {*} [options] Override http request option.
1076
- * @throws {RequiredError}
1077
- */
1078
- createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
1079
- return localVarFp.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
1080
- },
1081
- /**
1082
- * Assign a weight to an objective within this framework.
1083
- * @summary Create an objective weight for this framework
1084
- * @param {string} valueFrameworkId UUID of the value framework
1085
- * @param {ObjectiveWeightCreate} objectiveWeightCreate
1086
- * @param {*} [options] Override http request option.
1087
- * @throws {RequiredError}
1088
- */
1089
- createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options) {
1090
- return localVarFp.createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options).then((request) => request(axios, basePath));
1091
- },
1092
- /**
1093
- * Delete a metric cost entry for a specific year within this framework.
1094
- * @summary Delete metric costs for this framework
1095
- * @param {string} metricId UUID of the metric
1096
- * @param {number} year Year (1600-3000)
1097
- * @param {string} valueFrameworkId UUID of the value framework
1098
- * @param {*} [options] Override http request option.
1099
- * @throws {RequiredError}
1100
- */
1101
- deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
1102
- return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
1103
- },
1104
- /**
1105
- * Remove an objective weight from this framework.
1106
- * @summary Delete an objective weight for this framework
1107
- * @param {string} objectiveId UUID of the objective
1108
- * @param {string} valueFrameworkId UUID of the value framework
1109
- * @param {*} [options] Override http request option.
1110
- * @throws {RequiredError}
1111
- */
1112
- deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
1113
- return localVarFp.deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options).then((request) => request(axios, basePath));
1114
- },
1115
311
  /**
1116
312
  * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
1117
313
  * @summary Delete a value framework
@@ -1122,78 +318,6 @@ const ValueFrameworkApiFactory = function (configuration, basePath, axios) {
1122
318
  deleteValueFramework(valueFrameworkId, options) {
1123
319
  return localVarFp.deleteValueFramework(valueFrameworkId, options).then((request) => request(axios, basePath));
1124
320
  },
1125
- /**
1126
- * Retrieve a paginated list of all metric costs for a specific value framework.
1127
- * @summary List all metric costs for a value framework
1128
- * @param {string} valueFrameworkId UUID of the value framework
1129
- * @param {number} [offset] Number of records to skip
1130
- * @param {number} [limit] Max number of records to return
1131
- * @param {*} [options] Override http request option.
1132
- * @throws {RequiredError}
1133
- */
1134
- getCostsForValueFramework(valueFrameworkId, offset, limit, options) {
1135
- return localVarFp.getCostsForValueFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
1136
- },
1137
- /**
1138
- * Retrieve a paginated list of metric costs for a specific metric within a value framework.
1139
- * @summary List metric costs for a value framework filtered by metric
1140
- * @param {string} metricId UUID of the metric
1141
- * @param {string} valueFrameworkId UUID of the value framework
1142
- * @param {number} [offset] Number of records to skip
1143
- * @param {number} [limit] Max number of records to return
1144
- * @param {*} [options] Override http request option.
1145
- * @throws {RequiredError}
1146
- */
1147
- getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options) {
1148
- return localVarFp.getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
1149
- },
1150
- /**
1151
- * Retrieve cost data for a specific metric within this framework for a given year.
1152
- * @summary Get a yearly metric cost for this framework
1153
- * @param {string} metricId UUID of the metric
1154
- * @param {number} year Year (1600-3000)
1155
- * @param {string} valueFrameworkId UUID of the value framework
1156
- * @param {*} [options] Override http request option.
1157
- * @throws {RequiredError}
1158
- */
1159
- getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
1160
- return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
1161
- },
1162
- /**
1163
- * Retrieve a paginated list of all yearly metric costs for a specific framework.
1164
- * @summary List yearly metric costs for this framework
1165
- * @param {string} valueFrameworkId UUID of the value framework
1166
- * @param {number} [offset] Number of records to skip
1167
- * @param {number} [limit] Max number of records to return
1168
- * @param {*} [options] Override http request option.
1169
- * @throws {RequiredError}
1170
- */
1171
- getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
1172
- return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
1173
- },
1174
- /**
1175
- * Retrieve the weight for a specific objective within this framework.
1176
- * @summary Get an objective weight for this framework
1177
- * @param {string} objectiveId UUID of the objective
1178
- * @param {string} valueFrameworkId UUID of the value framework
1179
- * @param {*} [options] Override http request option.
1180
- * @throws {RequiredError}
1181
- */
1182
- getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
1183
- return localVarFp.getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options).then((request) => request(axios, basePath));
1184
- },
1185
- /**
1186
- * Retrieve a paginated list of all objective weights for a specific framework.
1187
- * @summary List objective weights for this framework
1188
- * @param {string} valueFrameworkId UUID of the value framework
1189
- * @param {number} [offset] Number of records to skip
1190
- * @param {number} [limit] Max number of records to return
1191
- * @param {*} [options] Override http request option.
1192
- * @throws {RequiredError}
1193
- */
1194
- getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options) {
1195
- return localVarFp.getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
1196
- },
1197
321
  /**
1198
322
  * Retrieve a single value framework by its ID.
1199
323
  * @summary Get a value framework by ID
@@ -1215,43 +339,6 @@ const ValueFrameworkApiFactory = function (configuration, basePath, axios) {
1215
339
  getValueFrameworks(offset, limit, options) {
1216
340
  return localVarFp.getValueFrameworks(offset, limit, options).then((request) => request(axios, basePath));
1217
341
  },
1218
- /**
1219
- * Retrieve a paginated list of all objective weights for a specific value framework.
1220
- * @summary List all objective weights for a value framework
1221
- * @param {string} valueFrameworkId UUID of the value framework
1222
- * @param {number} [offset] Number of records to skip
1223
- * @param {number} [limit] Max number of records to return
1224
- * @param {*} [options] Override http request option.
1225
- * @throws {RequiredError}
1226
- */
1227
- getWeightsForValueFramework(valueFrameworkId, offset, limit, options) {
1228
- return localVarFp.getWeightsForValueFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
1229
- },
1230
- /**
1231
- * Update the perceived and/or direct cost of a metric for a specific year within this framework.
1232
- * @summary Partially update metric costs for this framework
1233
- * @param {string} metricId UUID of the metric
1234
- * @param {number} year Year (1600-3000)
1235
- * @param {string} valueFrameworkId UUID of the value framework
1236
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
1237
- * @param {*} [options] Override http request option.
1238
- * @throws {RequiredError}
1239
- */
1240
- patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
1241
- return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
1242
- },
1243
- /**
1244
- * Update the weight of an objective within this value framework.
1245
- * @summary Partially update an objective weight for this framework
1246
- * @param {string} objectiveId UUID of the objective
1247
- * @param {string} valueFrameworkId UUID of the value framework
1248
- * @param {ObjectiveWeightUpdate} objectiveWeightUpdate
1249
- * @param {*} [options] Override http request option.
1250
- * @throws {RequiredError}
1251
- */
1252
- patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options) {
1253
- return localVarFp.patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options).then((request) => request(axios, basePath));
1254
- },
1255
342
  /**
1256
343
  * Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1257
344
  * @summary Partially update a value framework
@@ -1280,51 +367,6 @@ exports.ValueFrameworkApiFactory = ValueFrameworkApiFactory;
1280
367
  * ValueFrameworkApi - object-oriented interface
1281
368
  */
1282
369
  class ValueFrameworkApi extends base_1.BaseAPI {
1283
- /**
1284
- * Create a yearly cost override for a metric within this framework.
1285
- * @summary Create a yearly metric cost for this framework
1286
- * @param {string} valueFrameworkId UUID of the value framework
1287
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
1288
- * @param {*} [options] Override http request option.
1289
- * @throws {RequiredError}
1290
- */
1291
- createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
1292
- return (0, exports.ValueFrameworkApiFp)(this.configuration).createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
1293
- }
1294
- /**
1295
- * Assign a weight to an objective within this framework.
1296
- * @summary Create an objective weight for this framework
1297
- * @param {string} valueFrameworkId UUID of the value framework
1298
- * @param {ObjectiveWeightCreate} objectiveWeightCreate
1299
- * @param {*} [options] Override http request option.
1300
- * @throws {RequiredError}
1301
- */
1302
- createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options) {
1303
- return (0, exports.ValueFrameworkApiFp)(this.configuration).createObjectiveWeightForFramework(valueFrameworkId, objectiveWeightCreate, options).then((request) => request(this.axios, this.basePath));
1304
- }
1305
- /**
1306
- * Delete a metric cost entry for a specific year within this framework.
1307
- * @summary Delete metric costs for this framework
1308
- * @param {string} metricId UUID of the metric
1309
- * @param {number} year Year (1600-3000)
1310
- * @param {string} valueFrameworkId UUID of the value framework
1311
- * @param {*} [options] Override http request option.
1312
- * @throws {RequiredError}
1313
- */
1314
- deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
1315
- return (0, exports.ValueFrameworkApiFp)(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1316
- }
1317
- /**
1318
- * Remove an objective weight from this framework.
1319
- * @summary Delete an objective weight for this framework
1320
- * @param {string} objectiveId UUID of the objective
1321
- * @param {string} valueFrameworkId UUID of the value framework
1322
- * @param {*} [options] Override http request option.
1323
- * @throws {RequiredError}
1324
- */
1325
- deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
1326
- return (0, exports.ValueFrameworkApiFp)(this.configuration).deleteObjectiveWeightForFramework(objectiveId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1327
- }
1328
370
  /**
1329
371
  * Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
1330
372
  * @summary Delete a value framework
@@ -1335,78 +377,6 @@ class ValueFrameworkApi extends base_1.BaseAPI {
1335
377
  deleteValueFramework(valueFrameworkId, options) {
1336
378
  return (0, exports.ValueFrameworkApiFp)(this.configuration).deleteValueFramework(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1337
379
  }
1338
- /**
1339
- * Retrieve a paginated list of all metric costs for a specific value framework.
1340
- * @summary List all metric costs for a value framework
1341
- * @param {string} valueFrameworkId UUID of the value framework
1342
- * @param {number} [offset] Number of records to skip
1343
- * @param {number} [limit] Max number of records to return
1344
- * @param {*} [options] Override http request option.
1345
- * @throws {RequiredError}
1346
- */
1347
- getCostsForValueFramework(valueFrameworkId, offset, limit, options) {
1348
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getCostsForValueFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1349
- }
1350
- /**
1351
- * Retrieve a paginated list of metric costs for a specific metric within a value framework.
1352
- * @summary List metric costs for a value framework filtered by metric
1353
- * @param {string} metricId UUID of the metric
1354
- * @param {string} valueFrameworkId UUID of the value framework
1355
- * @param {number} [offset] Number of records to skip
1356
- * @param {number} [limit] Max number of records to return
1357
- * @param {*} [options] Override http request option.
1358
- * @throws {RequiredError}
1359
- */
1360
- getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options) {
1361
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getCostsForValueFrameworkByMetric(metricId, valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1362
- }
1363
- /**
1364
- * Retrieve cost data for a specific metric within this framework for a given year.
1365
- * @summary Get a yearly metric cost for this framework
1366
- * @param {string} metricId UUID of the metric
1367
- * @param {number} year Year (1600-3000)
1368
- * @param {string} valueFrameworkId UUID of the value framework
1369
- * @param {*} [options] Override http request option.
1370
- * @throws {RequiredError}
1371
- */
1372
- getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
1373
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1374
- }
1375
- /**
1376
- * Retrieve a paginated list of all yearly metric costs for a specific framework.
1377
- * @summary List yearly metric costs for this framework
1378
- * @param {string} valueFrameworkId UUID of the value framework
1379
- * @param {number} [offset] Number of records to skip
1380
- * @param {number} [limit] Max number of records to return
1381
- * @param {*} [options] Override http request option.
1382
- * @throws {RequiredError}
1383
- */
1384
- getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
1385
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1386
- }
1387
- /**
1388
- * Retrieve the weight for a specific objective within this framework.
1389
- * @summary Get an objective weight for this framework
1390
- * @param {string} objectiveId UUID of the objective
1391
- * @param {string} valueFrameworkId UUID of the value framework
1392
- * @param {*} [options] Override http request option.
1393
- * @throws {RequiredError}
1394
- */
1395
- getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options) {
1396
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getObjectiveWeightForFramework(objectiveId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
1397
- }
1398
- /**
1399
- * Retrieve a paginated list of all objective weights for a specific framework.
1400
- * @summary List objective weights for this framework
1401
- * @param {string} valueFrameworkId UUID of the value framework
1402
- * @param {number} [offset] Number of records to skip
1403
- * @param {number} [limit] Max number of records to return
1404
- * @param {*} [options] Override http request option.
1405
- * @throws {RequiredError}
1406
- */
1407
- getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options) {
1408
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getObjectiveWeightsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1409
- }
1410
380
  /**
1411
381
  * Retrieve a single value framework by its ID.
1412
382
  * @summary Get a value framework by ID
@@ -1428,43 +398,6 @@ class ValueFrameworkApi extends base_1.BaseAPI {
1428
398
  getValueFrameworks(offset, limit, options) {
1429
399
  return (0, exports.ValueFrameworkApiFp)(this.configuration).getValueFrameworks(offset, limit, options).then((request) => request(this.axios, this.basePath));
1430
400
  }
1431
- /**
1432
- * Retrieve a paginated list of all objective weights for a specific value framework.
1433
- * @summary List all objective weights for a value framework
1434
- * @param {string} valueFrameworkId UUID of the value framework
1435
- * @param {number} [offset] Number of records to skip
1436
- * @param {number} [limit] Max number of records to return
1437
- * @param {*} [options] Override http request option.
1438
- * @throws {RequiredError}
1439
- */
1440
- getWeightsForValueFramework(valueFrameworkId, offset, limit, options) {
1441
- return (0, exports.ValueFrameworkApiFp)(this.configuration).getWeightsForValueFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
1442
- }
1443
- /**
1444
- * Update the perceived and/or direct cost of a metric for a specific year within this framework.
1445
- * @summary Partially update metric costs for this framework
1446
- * @param {string} metricId UUID of the metric
1447
- * @param {number} year Year (1600-3000)
1448
- * @param {string} valueFrameworkId UUID of the value framework
1449
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
1450
- * @param {*} [options] Override http request option.
1451
- * @throws {RequiredError}
1452
- */
1453
- patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
1454
- return (0, exports.ValueFrameworkApiFp)(this.configuration).patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
1455
- }
1456
- /**
1457
- * Update the weight of an objective within this value framework.
1458
- * @summary Partially update an objective weight for this framework
1459
- * @param {string} objectiveId UUID of the objective
1460
- * @param {string} valueFrameworkId UUID of the value framework
1461
- * @param {ObjectiveWeightUpdate} objectiveWeightUpdate
1462
- * @param {*} [options] Override http request option.
1463
- * @throws {RequiredError}
1464
- */
1465
- patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options) {
1466
- return (0, exports.ValueFrameworkApiFp)(this.configuration).patchObjectiveWeightForFramework(objectiveId, valueFrameworkId, objectiveWeightUpdate, options).then((request) => request(this.axios, this.basePath));
1467
- }
1468
401
  /**
1469
402
  * Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
1470
403
  * @summary Partially update a value framework