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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/README.md +147 -4
  2. package/api/default-api.ts +8 -15
  3. package/api/favored-option-api.ts +210 -0
  4. package/api/impact-api.ts +507 -0
  5. package/api/investment-api.ts +1464 -0
  6. package/api/metric-api.ts +185 -164
  7. package/api/metric-costs-api.ts +144 -0
  8. package/api/metric-costs-per-year-api.ts +200 -200
  9. package/api/objective-api.ts +538 -44
  10. package/api/objective-weight-api.ts +190 -190
  11. package/api/objective-weights-api.ts +144 -0
  12. package/api/option-api.ts +925 -0
  13. package/api/value-framework-api.ts +1223 -109
  14. package/api/value-framework-costs-api.ts +239 -0
  15. package/api/value-framework-weights-api.ts +144 -0
  16. package/api.ts +9 -1
  17. package/base.ts +1 -25
  18. package/common.ts +20 -43
  19. package/configuration.ts +31 -20
  20. package/dist/api/default-api.d.ts +3 -10
  21. package/dist/api/default-api.js +7 -13
  22. package/dist/api/favored-option-api.d.ts +104 -0
  23. package/dist/api/favored-option-api.js +209 -0
  24. package/dist/api/impact-api.d.ts +245 -0
  25. package/dist/api/impact-api.js +493 -0
  26. package/dist/api/investment-api.d.ts +677 -0
  27. package/dist/api/investment-api.js +1394 -0
  28. package/dist/api/metric-api.d.ts +97 -88
  29. package/dist/api/metric-api.js +185 -157
  30. package/dist/api/metric-costs-api.d.ts +75 -0
  31. package/dist/api/metric-costs-api.js +146 -0
  32. package/dist/api/metric-costs-per-year-api.d.ts +105 -108
  33. package/dist/api/metric-costs-per-year-api.js +199 -192
  34. package/dist/api/objective-api.d.ts +242 -21
  35. package/dist/api/objective-api.js +508 -37
  36. package/dist/api/objective-weight-api.d.ts +105 -108
  37. package/dist/api/objective-weight-api.js +189 -182
  38. package/dist/api/objective-weights-api.d.ts +75 -0
  39. package/dist/api/objective-weights-api.js +146 -0
  40. package/dist/api/option-api.d.ts +436 -0
  41. package/dist/api/option-api.js +888 -0
  42. package/dist/api/value-framework-api.d.ts +528 -21
  43. package/dist/api/value-framework-api.js +1138 -78
  44. package/dist/api/value-framework-costs-api.d.ts +119 -0
  45. package/dist/api/value-framework-costs-api.js +236 -0
  46. package/dist/api/value-framework-weights-api.d.ts +75 -0
  47. package/dist/api/value-framework-weights-api.js +146 -0
  48. package/dist/api.d.ts +9 -1
  49. package/dist/api.js +9 -1
  50. package/dist/base.d.ts +1 -25
  51. package/dist/base.js +1 -20
  52. package/dist/common.d.ts +6 -37
  53. package/dist/common.js +17 -39
  54. package/dist/configuration.d.ts +25 -18
  55. package/dist/configuration.js +4 -3
  56. package/dist/esm/api/default-api.d.ts +3 -10
  57. package/dist/esm/api/default-api.js +7 -13
  58. package/dist/esm/api/favored-option-api.d.ts +104 -0
  59. package/dist/esm/api/favored-option-api.js +202 -0
  60. package/dist/esm/api/impact-api.d.ts +245 -0
  61. package/dist/esm/api/impact-api.js +486 -0
  62. package/dist/esm/api/investment-api.d.ts +677 -0
  63. package/dist/esm/api/investment-api.js +1387 -0
  64. package/dist/esm/api/metric-api.d.ts +97 -88
  65. package/dist/esm/api/metric-api.js +185 -157
  66. package/dist/esm/api/metric-costs-api.d.ts +75 -0
  67. package/dist/esm/api/metric-costs-api.js +139 -0
  68. package/dist/esm/api/metric-costs-per-year-api.d.ts +105 -108
  69. package/dist/esm/api/metric-costs-per-year-api.js +199 -192
  70. package/dist/esm/api/objective-api.d.ts +242 -21
  71. package/dist/esm/api/objective-api.js +508 -37
  72. package/dist/esm/api/objective-weight-api.d.ts +105 -108
  73. package/dist/esm/api/objective-weight-api.js +189 -182
  74. package/dist/esm/api/objective-weights-api.d.ts +75 -0
  75. package/dist/esm/api/objective-weights-api.js +139 -0
  76. package/dist/esm/api/option-api.d.ts +436 -0
  77. package/dist/esm/api/option-api.js +881 -0
  78. package/dist/esm/api/value-framework-api.d.ts +528 -21
  79. package/dist/esm/api/value-framework-api.js +1137 -77
  80. package/dist/esm/api/value-framework-costs-api.d.ts +119 -0
  81. package/dist/esm/api/value-framework-costs-api.js +229 -0
  82. package/dist/esm/api/value-framework-weights-api.d.ts +75 -0
  83. package/dist/esm/api/value-framework-weights-api.js +139 -0
  84. package/dist/esm/api.d.ts +9 -1
  85. package/dist/esm/api.js +9 -1
  86. package/dist/esm/base.d.ts +1 -25
  87. package/dist/esm/base.js +1 -20
  88. package/dist/esm/common.d.ts +6 -37
  89. package/dist/esm/common.js +15 -38
  90. package/dist/esm/configuration.d.ts +25 -18
  91. package/dist/esm/configuration.js +4 -3
  92. package/dist/esm/index.d.ts +1 -1
  93. package/dist/esm/index.js +1 -1
  94. package/dist/esm/models/evolution-type.d.ts +16 -0
  95. package/dist/esm/models/evolution-type.js +17 -0
  96. package/dist/esm/models/favored-option-request.d.ts +20 -0
  97. package/dist/esm/models/{validation-error-loc-inner.js → favored-option-request.js} +1 -1
  98. package/dist/esm/models/favored-option-response.d.ts +20 -0
  99. package/dist/esm/models/favored-option-response.js +14 -0
  100. package/dist/esm/models/httpvalidation-error.d.ts +2 -12
  101. package/dist/esm/models/httpvalidation-error.js +1 -1
  102. package/dist/esm/models/impact-apiresponse.d.ts +33 -0
  103. package/dist/esm/models/impact-apiresponse.js +14 -0
  104. package/dist/esm/models/impact-create.d.ts +37 -0
  105. package/dist/esm/models/impact-create.js +14 -0
  106. package/dist/esm/models/impact-update.d.ts +22 -0
  107. package/dist/esm/models/impact-update.js +14 -0
  108. package/dist/esm/models/index.d.ts +13 -1
  109. package/dist/esm/models/index.js +13 -1
  110. package/dist/esm/models/investment-create.d.ts +21 -0
  111. package/dist/esm/models/investment-create.js +14 -0
  112. package/dist/esm/models/investment-response.d.ts +26 -0
  113. package/dist/esm/models/investment-response.js +14 -0
  114. package/dist/esm/models/investment-update.d.ts +18 -0
  115. package/dist/esm/models/investment-update.js +14 -0
  116. package/dist/esm/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
  117. package/dist/esm/models/location-inner.js +14 -0
  118. package/dist/esm/models/measurement-type.d.ts +1 -6
  119. package/dist/esm/models/measurement-type.js +1 -6
  120. package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -17
  121. package/dist/esm/models/metric-costs-per-year-create.js +1 -1
  122. package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -18
  123. package/dist/esm/models/metric-costs-per-year-response.js +1 -1
  124. package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -13
  125. package/dist/esm/models/metric-costs-per-year-update.js +1 -1
  126. package/dist/esm/models/metric-create.d.ts +3 -28
  127. package/dist/esm/models/metric-create.js +1 -1
  128. package/dist/esm/models/metric-response.d.ts +3 -50
  129. package/dist/esm/models/metric-response.js +1 -1
  130. package/dist/esm/models/metric-type.d.ts +1 -6
  131. package/dist/esm/models/metric-type.js +1 -6
  132. package/dist/esm/models/metric-update.d.ts +3 -35
  133. package/dist/esm/models/metric-update.js +1 -1
  134. package/dist/esm/models/objective-create.d.ts +1 -10
  135. package/dist/esm/models/objective-create.js +1 -1
  136. package/dist/esm/models/objective-response.d.ts +1 -30
  137. package/dist/esm/models/objective-response.js +1 -1
  138. package/dist/esm/models/objective-update.d.ts +1 -13
  139. package/dist/esm/models/objective-update.js +1 -1
  140. package/dist/esm/models/objective-weight-create.d.ts +1 -9
  141. package/dist/esm/models/objective-weight-create.js +1 -1
  142. package/dist/esm/models/objective-weight-response.d.ts +1 -14
  143. package/dist/esm/models/objective-weight-response.js +1 -1
  144. package/dist/esm/models/objective-weight-update.d.ts +1 -8
  145. package/dist/esm/models/objective-weight-update.js +1 -1
  146. package/dist/esm/models/option-create.d.ts +33 -0
  147. package/dist/esm/models/option-create.js +14 -0
  148. package/dist/esm/models/option-response.d.ts +32 -0
  149. package/dist/esm/models/option-response.js +14 -0
  150. package/dist/esm/models/option-update.d.ts +21 -0
  151. package/dist/esm/models/option-update.js +14 -0
  152. package/dist/esm/models/validation-error.d.ts +3 -33
  153. package/dist/esm/models/validation-error.js +1 -1
  154. package/dist/esm/models/value-framework-create.d.ts +1 -10
  155. package/dist/esm/models/value-framework-create.js +1 -1
  156. package/dist/esm/models/value-framework-response.d.ts +1 -30
  157. package/dist/esm/models/value-framework-response.js +1 -1
  158. package/dist/esm/models/value-framework-update.d.ts +1 -13
  159. package/dist/esm/models/value-framework-update.js +1 -1
  160. package/dist/index.d.ts +1 -1
  161. package/dist/index.js +1 -1
  162. package/dist/models/evolution-type.d.ts +16 -0
  163. package/dist/models/evolution-type.js +20 -0
  164. package/dist/models/favored-option-request.d.ts +20 -0
  165. package/dist/models/{validation-error-loc-inner.js → favored-option-request.js} +1 -1
  166. package/dist/models/favored-option-response.d.ts +20 -0
  167. package/dist/models/favored-option-response.js +15 -0
  168. package/dist/models/httpvalidation-error.d.ts +2 -12
  169. package/dist/models/httpvalidation-error.js +1 -1
  170. package/dist/models/impact-apiresponse.d.ts +33 -0
  171. package/dist/models/impact-apiresponse.js +15 -0
  172. package/dist/models/impact-create.d.ts +37 -0
  173. package/dist/models/impact-create.js +15 -0
  174. package/dist/models/impact-update.d.ts +22 -0
  175. package/dist/models/impact-update.js +15 -0
  176. package/dist/models/index.d.ts +13 -1
  177. package/dist/models/index.js +13 -1
  178. package/dist/models/investment-create.d.ts +21 -0
  179. package/dist/models/investment-create.js +15 -0
  180. package/dist/models/investment-response.d.ts +26 -0
  181. package/dist/models/investment-response.js +15 -0
  182. package/dist/models/investment-update.d.ts +18 -0
  183. package/dist/models/investment-update.js +15 -0
  184. package/dist/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
  185. package/dist/models/location-inner.js +15 -0
  186. package/dist/models/measurement-type.d.ts +1 -6
  187. package/dist/models/measurement-type.js +1 -6
  188. package/dist/models/metric-costs-per-year-create.d.ts +1 -17
  189. package/dist/models/metric-costs-per-year-create.js +1 -1
  190. package/dist/models/metric-costs-per-year-response.d.ts +1 -18
  191. package/dist/models/metric-costs-per-year-response.js +1 -1
  192. package/dist/models/metric-costs-per-year-update.d.ts +1 -13
  193. package/dist/models/metric-costs-per-year-update.js +1 -1
  194. package/dist/models/metric-create.d.ts +3 -28
  195. package/dist/models/metric-create.js +1 -1
  196. package/dist/models/metric-response.d.ts +3 -50
  197. package/dist/models/metric-response.js +1 -1
  198. package/dist/models/metric-type.d.ts +1 -6
  199. package/dist/models/metric-type.js +1 -6
  200. package/dist/models/metric-update.d.ts +3 -35
  201. package/dist/models/metric-update.js +1 -1
  202. package/dist/models/objective-create.d.ts +1 -10
  203. package/dist/models/objective-create.js +1 -1
  204. package/dist/models/objective-response.d.ts +1 -30
  205. package/dist/models/objective-response.js +1 -1
  206. package/dist/models/objective-update.d.ts +1 -13
  207. package/dist/models/objective-update.js +1 -1
  208. package/dist/models/objective-weight-create.d.ts +1 -9
  209. package/dist/models/objective-weight-create.js +1 -1
  210. package/dist/models/objective-weight-response.d.ts +1 -14
  211. package/dist/models/objective-weight-response.js +1 -1
  212. package/dist/models/objective-weight-update.d.ts +1 -8
  213. package/dist/models/objective-weight-update.js +1 -1
  214. package/dist/models/option-create.d.ts +33 -0
  215. package/dist/models/option-create.js +15 -0
  216. package/dist/models/option-response.d.ts +32 -0
  217. package/dist/models/option-response.js +15 -0
  218. package/dist/models/option-update.d.ts +21 -0
  219. package/dist/models/option-update.js +15 -0
  220. package/dist/models/validation-error.d.ts +3 -33
  221. package/dist/models/validation-error.js +1 -1
  222. package/dist/models/value-framework-create.d.ts +1 -10
  223. package/dist/models/value-framework-create.js +1 -1
  224. package/dist/models/value-framework-response.d.ts +1 -30
  225. package/dist/models/value-framework-response.js +1 -1
  226. package/dist/models/value-framework-update.d.ts +1 -13
  227. package/dist/models/value-framework-update.js +1 -1
  228. package/docs/DefaultApi.md +51 -0
  229. package/docs/EvolutionType.md +10 -0
  230. package/docs/FavoredOptionApi.md +119 -0
  231. package/docs/FavoredOptionRequest.md +21 -0
  232. package/docs/FavoredOptionResponse.md +21 -0
  233. package/docs/HTTPValidationError.md +20 -0
  234. package/docs/ImpactAPIResponse.md +39 -0
  235. package/docs/ImpactApi.md +312 -0
  236. package/docs/ImpactCreate.md +29 -0
  237. package/docs/ImpactUpdate.md +29 -0
  238. package/docs/InvestmentApi.md +987 -0
  239. package/docs/InvestmentCreate.md +23 -0
  240. package/docs/InvestmentResponse.md +33 -0
  241. package/docs/InvestmentUpdate.md +23 -0
  242. package/docs/LocationInner.md +18 -0
  243. package/docs/MeasurementType.md +10 -0
  244. package/docs/MetricApi.md +299 -0
  245. package/docs/MetricCostsApi.md +66 -0
  246. package/docs/MetricCostsPerYearApi.md +307 -0
  247. package/docs/MetricCostsPerYearCreate.md +27 -0
  248. package/docs/MetricCostsPerYearResponse.md +31 -0
  249. package/docs/MetricCostsPerYearUpdate.md +23 -0
  250. package/docs/MetricCreate.md +33 -0
  251. package/docs/MetricResponse.md +43 -0
  252. package/docs/MetricType.md +12 -0
  253. package/docs/MetricUpdate.md +31 -0
  254. package/docs/ObjectiveApi.md +633 -0
  255. package/docs/ObjectiveCreate.md +23 -0
  256. package/docs/ObjectiveResponse.md +31 -0
  257. package/docs/ObjectiveUpdate.md +23 -0
  258. package/docs/ObjectiveWeightApi.md +298 -0
  259. package/docs/ObjectiveWeightCreate.md +25 -0
  260. package/docs/ObjectiveWeightResponse.md +27 -0
  261. package/docs/ObjectiveWeightUpdate.md +21 -0
  262. package/docs/ObjectiveWeightsApi.md +66 -0
  263. package/docs/OptionApi.md +602 -0
  264. package/docs/OptionCreate.md +29 -0
  265. package/docs/OptionResponse.md +39 -0
  266. package/docs/OptionUpdate.md +29 -0
  267. package/docs/ValidationError.md +28 -0
  268. package/docs/ValueFrameworkApi.md +1053 -0
  269. package/docs/ValueFrameworkCostsApi.md +128 -0
  270. package/docs/ValueFrameworkCreate.md +23 -0
  271. package/docs/ValueFrameworkResponse.md +31 -0
  272. package/docs/ValueFrameworkUpdate.md +23 -0
  273. package/docs/ValueFrameworkWeightsApi.md +66 -0
  274. package/index.ts +1 -1
  275. package/models/evolution-type.ts +26 -0
  276. package/models/favored-option-request.ts +26 -0
  277. package/models/favored-option-response.ts +26 -0
  278. package/models/httpvalidation-error.ts +2 -12
  279. package/models/impact-apiresponse.ts +43 -0
  280. package/models/impact-create.ts +47 -0
  281. package/models/impact-update.ts +32 -0
  282. package/models/index.ts +13 -1
  283. package/models/investment-create.ts +27 -0
  284. package/models/investment-response.ts +32 -0
  285. package/models/investment-update.ts +24 -0
  286. package/models/{validation-error-loc-inner.ts → location-inner.ts} +2 -7
  287. package/models/measurement-type.ts +1 -6
  288. package/models/metric-costs-per-year-create.ts +1 -17
  289. package/models/metric-costs-per-year-response.ts +1 -18
  290. package/models/metric-costs-per-year-update.ts +1 -13
  291. package/models/metric-create.ts +3 -28
  292. package/models/metric-response.ts +3 -50
  293. package/models/metric-type.ts +1 -6
  294. package/models/metric-update.ts +3 -35
  295. package/models/objective-create.ts +1 -10
  296. package/models/objective-response.ts +1 -30
  297. package/models/objective-update.ts +1 -13
  298. package/models/objective-weight-create.ts +1 -9
  299. package/models/objective-weight-response.ts +1 -14
  300. package/models/objective-weight-update.ts +1 -8
  301. package/models/option-create.ts +39 -0
  302. package/models/option-response.ts +38 -0
  303. package/models/option-update.ts +27 -0
  304. package/models/validation-error.ts +3 -33
  305. package/models/value-framework-create.ts +1 -10
  306. package/models/value-framework-response.ts +1 -30
  307. package/models/value-framework-update.ts +1 -13
  308. package/package.json +4 -4
@@ -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.2.0-dev2
8
+ * The version of the OpenAPI document: 0.2.0-dev3
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,30 +31,67 @@ const common_1 = require("../common");
31
31
  const base_1 = require("../base");
32
32
  /**
33
33
  * MetricCostsPerYearApi - axios parameter creator
34
- * @export
35
34
  */
36
35
  const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
37
36
  return {
38
37
  /**
39
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
40
- * @summary Delete metric costs for a year
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
+ * Delete a metric cost entry for a specific year within this framework.
77
+ * @summary Delete metric costs for this framework
41
78
  * @param {string} metricId UUID of the metric
42
- * @param {string} frameworkId UUID of the value framework
43
79
  * @param {number} year Year (1600-3000)
80
+ * @param {string} valueFrameworkId UUID of the value framework
44
81
  * @param {*} [options] Override http request option.
45
82
  * @throws {RequiredError}
46
83
  */
47
- deleteMetricCost: (metricId, frameworkId, year, options = {}) => __awaiter(this, void 0, void 0, function* () {
84
+ 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 = {}) {
48
85
  // verify required parameter 'metricId' is not null or undefined
49
- (0, common_1.assertParamExists)('deleteMetricCost', 'metricId', metricId);
50
- // verify required parameter 'frameworkId' is not null or undefined
51
- (0, common_1.assertParamExists)('deleteMetricCost', 'frameworkId', frameworkId);
86
+ (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'metricId', metricId);
52
87
  // verify required parameter 'year' is not null or undefined
53
- (0, common_1.assertParamExists)('deleteMetricCost', 'year', year);
54
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
88
+ (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'year', year);
89
+ // verify required parameter 'valueFrameworkId' is not null or undefined
90
+ (0, common_1.assertParamExists)('deleteMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
91
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
55
92
  .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
56
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
57
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
93
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
94
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
58
95
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
59
96
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
60
97
  let baseOptions;
@@ -76,25 +113,25 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
76
113
  };
77
114
  }),
78
115
  /**
79
- * Retrieve cost data for a specific metric within a framework for a given year.
80
- * @summary Get a yearly metric cost by metric, framework, and year
116
+ * Retrieve cost data for a specific metric within this framework for a given year.
117
+ * @summary Get a yearly metric cost for this framework
81
118
  * @param {string} metricId UUID of the metric
82
- * @param {string} frameworkId UUID of the value framework
83
119
  * @param {number} year Year (1600-3000)
120
+ * @param {string} valueFrameworkId UUID of the value framework
84
121
  * @param {*} [options] Override http request option.
85
122
  * @throws {RequiredError}
86
123
  */
87
- getMetricCostByKeys: (metricId, frameworkId, year, options = {}) => __awaiter(this, void 0, void 0, function* () {
124
+ 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 = {}) {
88
125
  // verify required parameter 'metricId' is not null or undefined
89
- (0, common_1.assertParamExists)('getMetricCostByKeys', 'metricId', metricId);
90
- // verify required parameter 'frameworkId' is not null or undefined
91
- (0, common_1.assertParamExists)('getMetricCostByKeys', 'frameworkId', frameworkId);
126
+ (0, common_1.assertParamExists)('getMetricCostForFramework', 'metricId', metricId);
92
127
  // verify required parameter 'year' is not null or undefined
93
- (0, common_1.assertParamExists)('getMetricCostByKeys', 'year', year);
94
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
128
+ (0, common_1.assertParamExists)('getMetricCostForFramework', 'year', year);
129
+ // verify required parameter 'valueFrameworkId' is not null or undefined
130
+ (0, common_1.assertParamExists)('getMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
131
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
95
132
  .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
96
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
97
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
133
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
134
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
98
135
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
99
136
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
100
137
  let baseOptions;
@@ -107,6 +144,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
107
144
  // authentication OAuth2AuthorizationCodeBearer required
108
145
  // oauth required
109
146
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
147
+ localVarHeaderParameter['Accept'] = 'application/json';
110
148
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
111
149
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
112
150
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -116,15 +154,19 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
116
154
  };
117
155
  }),
118
156
  /**
119
- * Retrieve a paginated list of all yearly metric cost overrides.
120
- * @summary List yearly metric costs
157
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
158
+ * @summary List yearly metric costs for this framework
159
+ * @param {string} valueFrameworkId UUID of the value framework
121
160
  * @param {number} [offset] Number of records to skip
122
161
  * @param {number} [limit] Max number of records to return
123
162
  * @param {*} [options] Override http request option.
124
163
  * @throws {RequiredError}
125
164
  */
126
- getMetricCosts: (offset, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
127
- const localVarPath = `/metric_costs_per_year/`;
165
+ 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 = {}) {
166
+ // verify required parameter 'valueFrameworkId' is not null or undefined
167
+ (0, common_1.assertParamExists)('getMetricCostsForFramework', 'valueFrameworkId', valueFrameworkId);
168
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
169
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
128
170
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
129
171
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
130
172
  let baseOptions;
@@ -143,6 +185,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
143
185
  if (limit !== undefined) {
144
186
  localVarQueryParameter['limit'] = limit;
145
187
  }
188
+ localVarHeaderParameter['Accept'] = 'application/json';
146
189
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
147
190
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
148
191
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -152,28 +195,28 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
152
195
  };
153
196
  }),
154
197
  /**
155
- * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
156
- * @summary Partially update metric costs for a year
198
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
199
+ * @summary Partially update metric costs for this framework
157
200
  * @param {string} metricId UUID of the metric
158
- * @param {string} frameworkId UUID of the value framework
159
201
  * @param {number} year Year (1600-3000)
202
+ * @param {string} valueFrameworkId UUID of the value framework
160
203
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
161
204
  * @param {*} [options] Override http request option.
162
205
  * @throws {RequiredError}
163
206
  */
164
- patchMetricCost: (metricId, frameworkId, year, metricCostsPerYearUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
207
+ 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 = {}) {
165
208
  // verify required parameter 'metricId' is not null or undefined
166
- (0, common_1.assertParamExists)('patchMetricCost', 'metricId', metricId);
167
- // verify required parameter 'frameworkId' is not null or undefined
168
- (0, common_1.assertParamExists)('patchMetricCost', 'frameworkId', frameworkId);
209
+ (0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricId', metricId);
169
210
  // verify required parameter 'year' is not null or undefined
170
- (0, common_1.assertParamExists)('patchMetricCost', 'year', year);
211
+ (0, common_1.assertParamExists)('patchMetricCostForFramework', 'year', year);
212
+ // verify required parameter 'valueFrameworkId' is not null or undefined
213
+ (0, common_1.assertParamExists)('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
171
214
  // verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
172
- (0, common_1.assertParamExists)('patchMetricCost', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
173
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
215
+ (0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
216
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
174
217
  .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
175
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
176
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
218
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
219
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
177
220
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
178
221
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
179
222
  let baseOptions;
@@ -187,6 +230,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
187
230
  // oauth required
188
231
  yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
189
232
  localVarHeaderParameter['Content-Type'] = 'application/json';
233
+ localVarHeaderParameter['Accept'] = 'application/json';
190
234
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
191
235
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
236
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -196,135 +240,103 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
196
240
  options: localVarRequestOptions,
197
241
  };
198
242
  }),
199
- /**
200
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
201
- * @summary Create a yearly metric cost
202
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
203
- * @param {*} [options] Override http request option.
204
- * @throws {RequiredError}
205
- */
206
- postMetricCost: (metricCostsPerYearCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
207
- // verify required parameter 'metricCostsPerYearCreate' is not null or undefined
208
- (0, common_1.assertParamExists)('postMetricCost', 'metricCostsPerYearCreate', metricCostsPerYearCreate);
209
- const localVarPath = `/metric_costs_per_year/`;
210
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
211
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
- let baseOptions;
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- }
216
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
217
- const localVarHeaderParameter = {};
218
- const localVarQueryParameter = {};
219
- // authentication OAuth2AuthorizationCodeBearer required
220
- // oauth required
221
- yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
222
- localVarHeaderParameter['Content-Type'] = 'application/json';
223
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
224
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
226
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearCreate, localVarRequestOptions, configuration);
227
- return {
228
- url: (0, common_1.toPathString)(localVarUrlObj),
229
- options: localVarRequestOptions,
230
- };
231
- }),
232
243
  };
233
244
  };
234
245
  exports.MetricCostsPerYearApiAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator;
235
246
  /**
236
247
  * MetricCostsPerYearApi - functional programming interface
237
- * @export
238
248
  */
239
249
  const MetricCostsPerYearApiFp = function (configuration) {
240
250
  const localVarAxiosParamCreator = (0, exports.MetricCostsPerYearApiAxiosParamCreator)(configuration);
241
251
  return {
242
252
  /**
243
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
244
- * @summary Delete metric costs for a year
245
- * @param {string} metricId UUID of the metric
246
- * @param {string} frameworkId UUID of the value framework
247
- * @param {number} year Year (1600-3000)
253
+ * Create a yearly cost override for a metric within this framework.
254
+ * @summary Create a yearly metric cost for this framework
255
+ * @param {string} valueFrameworkId UUID of the value framework
256
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
248
257
  * @param {*} [options] Override http request option.
249
258
  * @throws {RequiredError}
250
259
  */
251
- deleteMetricCost(metricId, frameworkId, year, options) {
252
- var _a, _b, _c;
260
+ createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
253
261
  return __awaiter(this, void 0, void 0, function* () {
254
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMetricCost(metricId, frameworkId, year, options);
255
- const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
256
- const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.deleteMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
257
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
262
+ var _a, _b, _c;
263
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options);
264
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
265
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.createMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
266
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
258
267
  });
259
268
  },
260
269
  /**
261
- * Retrieve cost data for a specific metric within a framework for a given year.
262
- * @summary Get a yearly metric cost by metric, framework, and year
270
+ * Delete a metric cost entry for a specific year within this framework.
271
+ * @summary Delete metric costs for this framework
263
272
  * @param {string} metricId UUID of the metric
264
- * @param {string} frameworkId UUID of the value framework
265
273
  * @param {number} year Year (1600-3000)
274
+ * @param {string} valueFrameworkId UUID of the value framework
266
275
  * @param {*} [options] Override http request option.
267
276
  * @throws {RequiredError}
268
277
  */
269
- getMetricCostByKeys(metricId, frameworkId, year, options) {
270
- var _a, _b, _c;
278
+ deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
271
279
  return __awaiter(this, void 0, void 0, function* () {
272
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostByKeys(metricId, frameworkId, year, options);
273
- const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
274
- const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostByKeys']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
275
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
280
+ var _a, _b, _c;
281
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options);
282
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
283
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.deleteMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
284
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
276
285
  });
277
286
  },
278
287
  /**
279
- * Retrieve a paginated list of all yearly metric cost overrides.
280
- * @summary List yearly metric costs
281
- * @param {number} [offset] Number of records to skip
282
- * @param {number} [limit] Max number of records to return
288
+ * Retrieve cost data for a specific metric within this framework for a given year.
289
+ * @summary Get a yearly metric cost for this framework
290
+ * @param {string} metricId UUID of the metric
291
+ * @param {number} year Year (1600-3000)
292
+ * @param {string} valueFrameworkId UUID of the value framework
283
293
  * @param {*} [options] Override http request option.
284
294
  * @throws {RequiredError}
285
295
  */
286
- getMetricCosts(offset, limit, options) {
287
- var _a, _b, _c;
296
+ getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
288
297
  return __awaiter(this, void 0, void 0, function* () {
289
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCosts(offset, limit, options);
290
- const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
291
- const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCosts']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
292
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
298
+ var _a, _b, _c;
299
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostForFramework(metricId, year, valueFrameworkId, options);
300
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
301
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
302
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
293
303
  });
294
304
  },
295
305
  /**
296
- * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
297
- * @summary Partially update metric costs for a year
298
- * @param {string} metricId UUID of the metric
299
- * @param {string} frameworkId UUID of the value framework
300
- * @param {number} year Year (1600-3000)
301
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
306
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
307
+ * @summary List yearly metric costs for this framework
308
+ * @param {string} valueFrameworkId UUID of the value framework
309
+ * @param {number} [offset] Number of records to skip
310
+ * @param {number} [limit] Max number of records to return
302
311
  * @param {*} [options] Override http request option.
303
312
  * @throws {RequiredError}
304
313
  */
305
- patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
306
- var _a, _b, _c;
314
+ getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
307
315
  return __awaiter(this, void 0, void 0, function* () {
308
- const localVarAxiosArgs = yield localVarAxiosParamCreator.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options);
309
- const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
310
- const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.patchMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
311
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
316
+ var _a, _b, _c;
317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostsForFramework(valueFrameworkId, offset, limit, options);
318
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
319
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostsForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
320
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
312
321
  });
313
322
  },
314
323
  /**
315
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
316
- * @summary Create a yearly metric cost
317
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
324
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
325
+ * @summary Partially update metric costs for this framework
326
+ * @param {string} metricId UUID of the metric
327
+ * @param {number} year Year (1600-3000)
328
+ * @param {string} valueFrameworkId UUID of the value framework
329
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
318
330
  * @param {*} [options] Override http request option.
319
331
  * @throws {RequiredError}
320
332
  */
321
- postMetricCost(metricCostsPerYearCreate, options) {
322
- var _a, _b, _c;
333
+ patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
323
334
  return __awaiter(this, void 0, void 0, function* () {
324
- const localVarAxiosArgs = yield localVarAxiosParamCreator.postMetricCost(metricCostsPerYearCreate, options);
325
- const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
326
- const operationBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.postMetricCost']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
327
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, operationBasePath || basePath);
335
+ var _a, _b, _c;
336
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options);
337
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
338
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.patchMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
339
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
328
340
  });
329
341
  },
330
342
  };
@@ -332,141 +344,136 @@ const MetricCostsPerYearApiFp = function (configuration) {
332
344
  exports.MetricCostsPerYearApiFp = MetricCostsPerYearApiFp;
333
345
  /**
334
346
  * MetricCostsPerYearApi - factory interface
335
- * @export
336
347
  */
337
348
  const MetricCostsPerYearApiFactory = function (configuration, basePath, axios) {
338
349
  const localVarFp = (0, exports.MetricCostsPerYearApiFp)(configuration);
339
350
  return {
340
351
  /**
341
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
342
- * @summary Delete metric costs for a year
352
+ * Create a yearly cost override for a metric within this framework.
353
+ * @summary Create a yearly metric cost for this framework
354
+ * @param {string} valueFrameworkId UUID of the value framework
355
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
360
+ return localVarFp.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
361
+ },
362
+ /**
363
+ * Delete a metric cost entry for a specific year within this framework.
364
+ * @summary Delete metric costs for this framework
343
365
  * @param {string} metricId UUID of the metric
344
- * @param {string} frameworkId UUID of the value framework
345
366
  * @param {number} year Year (1600-3000)
367
+ * @param {string} valueFrameworkId UUID of the value framework
346
368
  * @param {*} [options] Override http request option.
347
369
  * @throws {RequiredError}
348
370
  */
349
- deleteMetricCost(metricId, frameworkId, year, options) {
350
- return localVarFp.deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
371
+ deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
372
+ return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
351
373
  },
352
374
  /**
353
- * Retrieve cost data for a specific metric within a framework for a given year.
354
- * @summary Get a yearly metric cost by metric, framework, and year
375
+ * Retrieve cost data for a specific metric within this framework for a given year.
376
+ * @summary Get a yearly metric cost for this framework
355
377
  * @param {string} metricId UUID of the metric
356
- * @param {string} frameworkId UUID of the value framework
357
378
  * @param {number} year Year (1600-3000)
379
+ * @param {string} valueFrameworkId UUID of the value framework
358
380
  * @param {*} [options] Override http request option.
359
381
  * @throws {RequiredError}
360
382
  */
361
- getMetricCostByKeys(metricId, frameworkId, year, options) {
362
- return localVarFp.getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
383
+ getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
384
+ return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
363
385
  },
364
386
  /**
365
- * Retrieve a paginated list of all yearly metric cost overrides.
366
- * @summary List yearly metric costs
387
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
388
+ * @summary List yearly metric costs for this framework
389
+ * @param {string} valueFrameworkId UUID of the value framework
367
390
  * @param {number} [offset] Number of records to skip
368
391
  * @param {number} [limit] Max number of records to return
369
392
  * @param {*} [options] Override http request option.
370
393
  * @throws {RequiredError}
371
394
  */
372
- getMetricCosts(offset, limit, options) {
373
- return localVarFp.getMetricCosts(offset, limit, options).then((request) => request(axios, basePath));
395
+ getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
396
+ return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
374
397
  },
375
398
  /**
376
- * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
377
- * @summary Partially update metric costs for a year
399
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
400
+ * @summary Partially update metric costs for this framework
378
401
  * @param {string} metricId UUID of the metric
379
- * @param {string} frameworkId UUID of the value framework
380
402
  * @param {number} year Year (1600-3000)
403
+ * @param {string} valueFrameworkId UUID of the value framework
381
404
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
382
405
  * @param {*} [options] Override http request option.
383
406
  * @throws {RequiredError}
384
407
  */
385
- patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
386
- return localVarFp.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
387
- },
388
- /**
389
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
390
- * @summary Create a yearly metric cost
391
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
392
- * @param {*} [options] Override http request option.
393
- * @throws {RequiredError}
394
- */
395
- postMetricCost(metricCostsPerYearCreate, options) {
396
- return localVarFp.postMetricCost(metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
408
+ patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
409
+ return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
397
410
  },
398
411
  };
399
412
  };
400
413
  exports.MetricCostsPerYearApiFactory = MetricCostsPerYearApiFactory;
401
414
  /**
402
415
  * MetricCostsPerYearApi - object-oriented interface
403
- * @export
404
- * @class MetricCostsPerYearApi
405
- * @extends {BaseAPI}
406
416
  */
407
417
  class MetricCostsPerYearApi extends base_1.BaseAPI {
408
418
  /**
409
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
410
- * @summary Delete metric costs for a year
419
+ * Create a yearly cost override for a metric within this framework.
420
+ * @summary Create a yearly metric cost for this framework
421
+ * @param {string} valueFrameworkId UUID of the value framework
422
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
427
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
428
+ }
429
+ /**
430
+ * Delete a metric cost entry for a specific year within this framework.
431
+ * @summary Delete metric costs for this framework
411
432
  * @param {string} metricId UUID of the metric
412
- * @param {string} frameworkId UUID of the value framework
413
433
  * @param {number} year Year (1600-3000)
434
+ * @param {string} valueFrameworkId UUID of the value framework
414
435
  * @param {*} [options] Override http request option.
415
436
  * @throws {RequiredError}
416
- * @memberof MetricCostsPerYearApi
417
437
  */
418
- deleteMetricCost(metricId, frameworkId, year, options) {
419
- return (0, exports.MetricCostsPerYearApiFp)(this.configuration).deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
438
+ deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
439
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
420
440
  }
421
441
  /**
422
- * Retrieve cost data for a specific metric within a framework for a given year.
423
- * @summary Get a yearly metric cost by metric, framework, and year
442
+ * Retrieve cost data for a specific metric within this framework for a given year.
443
+ * @summary Get a yearly metric cost for this framework
424
444
  * @param {string} metricId UUID of the metric
425
- * @param {string} frameworkId UUID of the value framework
426
445
  * @param {number} year Year (1600-3000)
446
+ * @param {string} valueFrameworkId UUID of the value framework
427
447
  * @param {*} [options] Override http request option.
428
448
  * @throws {RequiredError}
429
- * @memberof MetricCostsPerYearApi
430
449
  */
431
- getMetricCostByKeys(metricId, frameworkId, year, options) {
432
- return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
450
+ getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
451
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
433
452
  }
434
453
  /**
435
- * Retrieve a paginated list of all yearly metric cost overrides.
436
- * @summary List yearly metric costs
454
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
455
+ * @summary List yearly metric costs for this framework
456
+ * @param {string} valueFrameworkId UUID of the value framework
437
457
  * @param {number} [offset] Number of records to skip
438
458
  * @param {number} [limit] Max number of records to return
439
459
  * @param {*} [options] Override http request option.
440
460
  * @throws {RequiredError}
441
- * @memberof MetricCostsPerYearApi
442
461
  */
443
- getMetricCosts(offset, limit, options) {
444
- return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCosts(offset, limit, options).then((request) => request(this.axios, this.basePath));
462
+ getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
463
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
445
464
  }
446
465
  /**
447
- * Update the perceived and/or direct cost of a metric for a specific year and framework. Identified by the composite key (metric_id, framework_id, year).
448
- * @summary Partially update metric costs for a year
466
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
467
+ * @summary Partially update metric costs for this framework
449
468
  * @param {string} metricId UUID of the metric
450
- * @param {string} frameworkId UUID of the value framework
451
469
  * @param {number} year Year (1600-3000)
470
+ * @param {string} valueFrameworkId UUID of the value framework
452
471
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
453
472
  * @param {*} [options] Override http request option.
454
473
  * @throws {RequiredError}
455
- * @memberof MetricCostsPerYearApi
456
- */
457
- patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
458
- return (0, exports.MetricCostsPerYearApiFp)(this.configuration).patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
459
- }
460
- /**
461
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
462
- * @summary Create a yearly metric cost
463
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
464
- * @param {*} [options] Override http request option.
465
- * @throws {RequiredError}
466
- * @memberof MetricCostsPerYearApi
467
474
  */
468
- postMetricCost(metricCostsPerYearCreate, options) {
469
- return (0, exports.MetricCostsPerYearApiFp)(this.configuration).postMetricCost(metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
475
+ patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
476
+ return (0, exports.MetricCostsPerYearApiFp)(this.configuration).patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
470
477
  }
471
478
  }
472
479
  exports.MetricCostsPerYearApi = MetricCostsPerYearApi;