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