@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
@@ -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).
@@ -18,41 +18,35 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
18
  import globalAxios from 'axios';
19
19
  // Some imports not used depending on template conditions
20
20
  // @ts-ignore
21
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
22
22
  // @ts-ignore
23
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
24
  // @ts-ignore
25
- import { MetricCostsPerYearCreate } from '../models';
25
+ import type { MetricCostsPerYearCreate } from '../models';
26
26
  // @ts-ignore
27
- import { MetricCostsPerYearResponse } from '../models';
27
+ import type { MetricCostsPerYearResponse } from '../models';
28
28
  // @ts-ignore
29
- import { MetricCostsPerYearUpdate } from '../models';
29
+ import type { MetricCostsPerYearUpdate } from '../models';
30
30
  /**
31
31
  * MetricCostsPerYearApi - axios parameter creator
32
- * @export
33
32
  */
34
33
  export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?: Configuration) {
35
34
  return {
36
35
  /**
37
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
38
- * @summary Delete metric costs for a year
39
- * @param {string} metricId UUID of the metric
40
- * @param {string} frameworkId UUID of the value framework
41
- * @param {number} year Year (1600-3000)
36
+ * Create a yearly cost override for a metric within this framework.
37
+ * @summary Create a yearly metric cost for this framework
38
+ * @param {string} valueFrameworkId UUID of the value framework
39
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
42
40
  * @param {*} [options] Override http request option.
43
41
  * @throws {RequiredError}
44
42
  */
45
- deleteMetricCost: async (metricId: string, frameworkId: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
46
- // verify required parameter 'metricId' is not null or undefined
47
- assertParamExists('deleteMetricCost', 'metricId', metricId)
48
- // verify required parameter 'frameworkId' is not null or undefined
49
- assertParamExists('deleteMetricCost', 'frameworkId', frameworkId)
50
- // verify required parameter 'year' is not null or undefined
51
- assertParamExists('deleteMetricCost', 'year', year)
52
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
53
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
54
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
55
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
43
+ createMetricCostForFramework: async (valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'valueFrameworkId' is not null or undefined
45
+ assertParamExists('createMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
46
+ // verify required parameter 'metricCostsPerYearCreate' is not null or undefined
47
+ assertParamExists('createMetricCostForFramework', 'metricCostsPerYearCreate', metricCostsPerYearCreate)
48
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
49
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
56
50
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
51
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
52
  let baseOptions;
@@ -60,7 +54,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
60
54
  baseOptions = configuration.baseOptions;
61
55
  }
62
56
 
63
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
57
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
64
58
  const localVarHeaderParameter = {} as any;
65
59
  const localVarQueryParameter = {} as any;
66
60
 
@@ -68,11 +62,13 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
68
62
  // oauth required
69
63
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
70
64
 
65
+ localVarHeaderParameter['Content-Type'] = 'application/json';
66
+ localVarHeaderParameter['Accept'] = 'application/json';
71
67
 
72
-
73
68
  setSearchParams(localVarUrlObj, localVarQueryParameter);
74
69
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
70
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
71
+ localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearCreate, localVarRequestOptions, configuration)
76
72
 
77
73
  return {
78
74
  url: toPathString(localVarUrlObj),
@@ -80,25 +76,25 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
80
76
  };
81
77
  },
82
78
  /**
83
- * Retrieve cost data for a specific metric within a framework for a given year.
84
- * @summary Get a yearly metric cost by metric, framework, and year
79
+ * Delete a metric cost entry for a specific year within this framework.
80
+ * @summary Delete metric costs for this framework
85
81
  * @param {string} metricId UUID of the metric
86
- * @param {string} frameworkId UUID of the value framework
87
82
  * @param {number} year Year (1600-3000)
83
+ * @param {string} valueFrameworkId UUID of the value framework
88
84
  * @param {*} [options] Override http request option.
89
85
  * @throws {RequiredError}
90
86
  */
91
- getMetricCostByKeys: async (metricId: string, frameworkId: string, year: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
87
+ deleteMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
92
88
  // verify required parameter 'metricId' is not null or undefined
93
- assertParamExists('getMetricCostByKeys', 'metricId', metricId)
94
- // verify required parameter 'frameworkId' is not null or undefined
95
- assertParamExists('getMetricCostByKeys', 'frameworkId', frameworkId)
89
+ assertParamExists('deleteMetricCostForFramework', 'metricId', metricId)
96
90
  // verify required parameter 'year' is not null or undefined
97
- assertParamExists('getMetricCostByKeys', 'year', year)
98
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
91
+ assertParamExists('deleteMetricCostForFramework', 'year', year)
92
+ // verify required parameter 'valueFrameworkId' is not null or undefined
93
+ assertParamExists('deleteMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
94
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
99
95
  .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
100
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
101
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
96
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
97
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
102
98
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
103
99
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
104
100
  let baseOptions;
@@ -106,7 +102,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
106
102
  baseOptions = configuration.baseOptions;
107
103
  }
108
104
 
109
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
105
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
110
106
  const localVarHeaderParameter = {} as any;
111
107
  const localVarQueryParameter = {} as any;
112
108
 
@@ -115,7 +111,6 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
115
111
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
116
112
 
117
113
 
118
-
119
114
  setSearchParams(localVarUrlObj, localVarQueryParameter);
120
115
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
116
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -126,15 +121,25 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
126
121
  };
127
122
  },
128
123
  /**
129
- * Retrieve a paginated list of all yearly metric cost overrides.
130
- * @summary List yearly metric costs
131
- * @param {number} [offset] Number of records to skip
132
- * @param {number} [limit] Max number of records to return
124
+ * Retrieve cost data for a specific metric within this framework for a given year.
125
+ * @summary Get a yearly metric cost for this framework
126
+ * @param {string} metricId UUID of the metric
127
+ * @param {number} year Year (1600-3000)
128
+ * @param {string} valueFrameworkId UUID of the value framework
133
129
  * @param {*} [options] Override http request option.
134
130
  * @throws {RequiredError}
135
131
  */
136
- getMetricCosts: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
137
- const localVarPath = `/metric_costs_per_year/`;
132
+ getMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
133
+ // verify required parameter 'metricId' is not null or undefined
134
+ assertParamExists('getMetricCostForFramework', 'metricId', metricId)
135
+ // verify required parameter 'year' is not null or undefined
136
+ assertParamExists('getMetricCostForFramework', 'year', year)
137
+ // verify required parameter 'valueFrameworkId' is not null or undefined
138
+ assertParamExists('getMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
139
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
140
+ .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
141
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
142
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
138
143
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
139
144
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
140
145
  let baseOptions;
@@ -150,16 +155,8 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
150
155
  // oauth required
151
156
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
152
157
 
153
- if (offset !== undefined) {
154
- localVarQueryParameter['offset'] = offset;
155
- }
156
-
157
- if (limit !== undefined) {
158
- localVarQueryParameter['limit'] = limit;
159
- }
160
-
158
+ localVarHeaderParameter['Accept'] = 'application/json';
161
159
 
162
-
163
160
  setSearchParams(localVarUrlObj, localVarQueryParameter);
164
161
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
165
162
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -170,28 +167,19 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
170
167
  };
171
168
  },
172
169
  /**
173
- * 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).
174
- * @summary Partially update metric costs for a year
175
- * @param {string} metricId UUID of the metric
176
- * @param {string} frameworkId UUID of the value framework
177
- * @param {number} year Year (1600-3000)
178
- * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
170
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
171
+ * @summary List yearly metric costs for this framework
172
+ * @param {string} valueFrameworkId UUID of the value framework
173
+ * @param {number} [offset] Number of records to skip
174
+ * @param {number} [limit] Max number of records to return
179
175
  * @param {*} [options] Override http request option.
180
176
  * @throws {RequiredError}
181
177
  */
182
- patchMetricCost: async (metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
183
- // verify required parameter 'metricId' is not null or undefined
184
- assertParamExists('patchMetricCost', 'metricId', metricId)
185
- // verify required parameter 'frameworkId' is not null or undefined
186
- assertParamExists('patchMetricCost', 'frameworkId', frameworkId)
187
- // verify required parameter 'year' is not null or undefined
188
- assertParamExists('patchMetricCost', 'year', year)
189
- // verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
190
- assertParamExists('patchMetricCost', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate)
191
- const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
192
- .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
193
- .replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
194
- .replace(`{${"year"}}`, encodeURIComponent(String(year)));
178
+ getMetricCostsForFramework: async (valueFrameworkId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
179
+ // verify required parameter 'valueFrameworkId' is not null or undefined
180
+ assertParamExists('getMetricCostsForFramework', 'valueFrameworkId', valueFrameworkId)
181
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
182
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
195
183
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
196
184
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
197
185
  let baseOptions;
@@ -199,7 +187,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
199
187
  baseOptions = configuration.baseOptions;
200
188
  }
201
189
 
202
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
190
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
203
191
  const localVarHeaderParameter = {} as any;
204
192
  const localVarQueryParameter = {} as any;
205
193
 
@@ -207,14 +195,19 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
207
195
  // oauth required
208
196
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
209
197
 
198
+ if (offset !== undefined) {
199
+ localVarQueryParameter['offset'] = offset;
200
+ }
210
201
 
211
-
212
- localVarHeaderParameter['Content-Type'] = 'application/json';
202
+ if (limit !== undefined) {
203
+ localVarQueryParameter['limit'] = limit;
204
+ }
205
+
206
+ localVarHeaderParameter['Accept'] = 'application/json';
213
207
 
214
208
  setSearchParams(localVarUrlObj, localVarQueryParameter);
215
209
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
216
210
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
217
- localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearUpdate, localVarRequestOptions, configuration)
218
211
 
219
212
  return {
220
213
  url: toPathString(localVarUrlObj),
@@ -222,16 +215,28 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
222
215
  };
223
216
  },
224
217
  /**
225
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
226
- * @summary Create a yearly metric cost
227
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
218
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
219
+ * @summary Partially update metric costs for this framework
220
+ * @param {string} metricId UUID of the metric
221
+ * @param {number} year Year (1600-3000)
222
+ * @param {string} valueFrameworkId UUID of the value framework
223
+ * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
228
224
  * @param {*} [options] Override http request option.
229
225
  * @throws {RequiredError}
230
226
  */
231
- postMetricCost: async (metricCostsPerYearCreate: MetricCostsPerYearCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
232
- // verify required parameter 'metricCostsPerYearCreate' is not null or undefined
233
- assertParamExists('postMetricCost', 'metricCostsPerYearCreate', metricCostsPerYearCreate)
234
- const localVarPath = `/metric_costs_per_year/`;
227
+ patchMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
228
+ // verify required parameter 'metricId' is not null or undefined
229
+ assertParamExists('patchMetricCostForFramework', 'metricId', metricId)
230
+ // verify required parameter 'year' is not null or undefined
231
+ assertParamExists('patchMetricCostForFramework', 'year', year)
232
+ // verify required parameter 'valueFrameworkId' is not null or undefined
233
+ assertParamExists('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
234
+ // verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
235
+ assertParamExists('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate)
236
+ const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
237
+ .replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
238
+ .replace(`{${"year"}}`, encodeURIComponent(String(year)))
239
+ .replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
235
240
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
236
241
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
237
242
  let baseOptions;
@@ -239,7 +244,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
239
244
  baseOptions = configuration.baseOptions;
240
245
  }
241
246
 
242
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
247
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
243
248
  const localVarHeaderParameter = {} as any;
244
249
  const localVarQueryParameter = {} as any;
245
250
 
@@ -247,14 +252,13 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
247
252
  // oauth required
248
253
  await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
249
254
 
250
-
251
-
252
255
  localVarHeaderParameter['Content-Type'] = 'application/json';
256
+ localVarHeaderParameter['Accept'] = 'application/json';
253
257
 
254
258
  setSearchParams(localVarUrlObj, localVarQueryParameter);
255
259
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
260
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
- localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearCreate, localVarRequestOptions, configuration)
261
+ localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearUpdate, localVarRequestOptions, configuration)
258
262
 
259
263
  return {
260
264
  url: toPathString(localVarUrlObj),
@@ -266,228 +270,224 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
266
270
 
267
271
  /**
268
272
  * MetricCostsPerYearApi - functional programming interface
269
- * @export
270
273
  */
271
274
  export const MetricCostsPerYearApiFp = function(configuration?: Configuration) {
272
275
  const localVarAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator(configuration)
273
276
  return {
274
277
  /**
275
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
276
- * @summary Delete metric costs for a year
278
+ * Create a yearly cost override for a metric within this framework.
279
+ * @summary Create a yearly metric cost for this framework
280
+ * @param {string} valueFrameworkId UUID of the value framework
281
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ async createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options);
287
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
288
+ const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.createMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
289
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
290
+ },
291
+ /**
292
+ * Delete a metric cost entry for a specific year within this framework.
293
+ * @summary Delete metric costs for this framework
277
294
  * @param {string} metricId UUID of the metric
278
- * @param {string} frameworkId UUID of the value framework
279
295
  * @param {number} year Year (1600-3000)
296
+ * @param {string} valueFrameworkId UUID of the value framework
280
297
  * @param {*} [options] Override http request option.
281
298
  * @throws {RequiredError}
282
299
  */
283
- async deleteMetricCost(metricId: string, frameworkId: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
284
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMetricCost(metricId, frameworkId, year, options);
285
- const index = configuration?.serverIndex ?? 0;
286
- const operationBasePath = operationServerMap['MetricCostsPerYearApi.deleteMetricCost']?.[index]?.url;
287
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
300
+ async deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options);
302
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
303
+ const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.deleteMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
304
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
288
305
  },
289
306
  /**
290
- * Retrieve cost data for a specific metric within a framework for a given year.
291
- * @summary Get a yearly metric cost by metric, framework, and year
307
+ * Retrieve cost data for a specific metric within this framework for a given year.
308
+ * @summary Get a yearly metric cost for this framework
292
309
  * @param {string} metricId UUID of the metric
293
- * @param {string} frameworkId UUID of the value framework
294
310
  * @param {number} year Year (1600-3000)
311
+ * @param {string} valueFrameworkId UUID of the value framework
295
312
  * @param {*} [options] Override http request option.
296
313
  * @throws {RequiredError}
297
314
  */
298
- async getMetricCostByKeys(metricId: string, frameworkId: string, year: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
299
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCostByKeys(metricId, frameworkId, year, options);
300
- const index = configuration?.serverIndex ?? 0;
301
- const operationBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCostByKeys']?.[index]?.url;
302
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
315
+ async getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCostForFramework(metricId, year, valueFrameworkId, options);
317
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
318
+ const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
319
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
303
320
  },
304
321
  /**
305
- * Retrieve a paginated list of all yearly metric cost overrides.
306
- * @summary List yearly metric costs
322
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
323
+ * @summary List yearly metric costs for this framework
324
+ * @param {string} valueFrameworkId UUID of the value framework
307
325
  * @param {number} [offset] Number of records to skip
308
326
  * @param {number} [limit] Max number of records to return
309
327
  * @param {*} [options] Override http request option.
310
328
  * @throws {RequiredError}
311
329
  */
312
- async getMetricCosts(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricCostsPerYearResponse>>> {
313
- const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCosts(offset, limit, options);
314
- const index = configuration?.serverIndex ?? 0;
315
- const operationBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCosts']?.[index]?.url;
316
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
330
+ async getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricCostsPerYearResponse>>> {
331
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCostsForFramework(valueFrameworkId, offset, limit, options);
332
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
333
+ const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCostsForFramework']?.[localVarOperationServerIndex]?.url;
334
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
317
335
  },
318
336
  /**
319
- * 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).
320
- * @summary Partially update metric costs for a year
337
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
338
+ * @summary Partially update metric costs for this framework
321
339
  * @param {string} metricId UUID of the metric
322
- * @param {string} frameworkId UUID of the value framework
323
340
  * @param {number} year Year (1600-3000)
341
+ * @param {string} valueFrameworkId UUID of the value framework
324
342
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
325
343
  * @param {*} [options] Override http request option.
326
344
  * @throws {RequiredError}
327
345
  */
328
- async patchMetricCost(metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
329
- const localVarAxiosArgs = await localVarAxiosParamCreator.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options);
330
- const index = configuration?.serverIndex ?? 0;
331
- const operationBasePath = operationServerMap['MetricCostsPerYearApi.patchMetricCost']?.[index]?.url;
332
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
333
- },
334
- /**
335
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
336
- * @summary Create a yearly metric cost
337
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- */
341
- async postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
342
- const localVarAxiosArgs = await localVarAxiosParamCreator.postMetricCost(metricCostsPerYearCreate, options);
343
- const index = configuration?.serverIndex ?? 0;
344
- const operationBasePath = operationServerMap['MetricCostsPerYearApi.postMetricCost']?.[index]?.url;
345
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
346
+ async patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options);
348
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
349
+ const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.patchMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
350
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
346
351
  },
347
352
  }
348
353
  };
349
354
 
350
355
  /**
351
356
  * MetricCostsPerYearApi - factory interface
352
- * @export
353
357
  */
354
358
  export const MetricCostsPerYearApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
355
359
  const localVarFp = MetricCostsPerYearApiFp(configuration)
356
360
  return {
357
361
  /**
358
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
359
- * @summary Delete metric costs for a year
362
+ * Create a yearly cost override for a metric within this framework.
363
+ * @summary Create a yearly metric cost for this framework
364
+ * @param {string} valueFrameworkId UUID of the value framework
365
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
370
+ return localVarFp.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
371
+ },
372
+ /**
373
+ * Delete a metric cost entry for a specific year within this framework.
374
+ * @summary Delete metric costs for this framework
360
375
  * @param {string} metricId UUID of the metric
361
- * @param {string} frameworkId UUID of the value framework
362
376
  * @param {number} year Year (1600-3000)
377
+ * @param {string} valueFrameworkId UUID of the value framework
363
378
  * @param {*} [options] Override http request option.
364
379
  * @throws {RequiredError}
365
380
  */
366
- deleteMetricCost(metricId: string, frameworkId: string, year: number, options?: any): AxiosPromise<void> {
367
- return localVarFp.deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
381
+ deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
382
+ return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
368
383
  },
369
384
  /**
370
- * Retrieve cost data for a specific metric within a framework for a given year.
371
- * @summary Get a yearly metric cost by metric, framework, and year
385
+ * Retrieve cost data for a specific metric within this framework for a given year.
386
+ * @summary Get a yearly metric cost for this framework
372
387
  * @param {string} metricId UUID of the metric
373
- * @param {string} frameworkId UUID of the value framework
374
388
  * @param {number} year Year (1600-3000)
389
+ * @param {string} valueFrameworkId UUID of the value framework
375
390
  * @param {*} [options] Override http request option.
376
391
  * @throws {RequiredError}
377
392
  */
378
- getMetricCostByKeys(metricId: string, frameworkId: string, year: number, options?: any): AxiosPromise<MetricCostsPerYearResponse> {
379
- return localVarFp.getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(axios, basePath));
393
+ getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
394
+ return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
380
395
  },
381
396
  /**
382
- * Retrieve a paginated list of all yearly metric cost overrides.
383
- * @summary List yearly metric costs
397
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
398
+ * @summary List yearly metric costs for this framework
399
+ * @param {string} valueFrameworkId UUID of the value framework
384
400
  * @param {number} [offset] Number of records to skip
385
401
  * @param {number} [limit] Max number of records to return
386
402
  * @param {*} [options] Override http request option.
387
403
  * @throws {RequiredError}
388
404
  */
389
- getMetricCosts(offset?: number, limit?: number, options?: any): AxiosPromise<Array<MetricCostsPerYearResponse>> {
390
- return localVarFp.getMetricCosts(offset, limit, options).then((request) => request(axios, basePath));
405
+ getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricCostsPerYearResponse>> {
406
+ return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
391
407
  },
392
408
  /**
393
- * 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).
394
- * @summary Partially update metric costs for a year
409
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
410
+ * @summary Partially update metric costs for this framework
395
411
  * @param {string} metricId UUID of the metric
396
- * @param {string} frameworkId UUID of the value framework
397
412
  * @param {number} year Year (1600-3000)
413
+ * @param {string} valueFrameworkId UUID of the value framework
398
414
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
399
415
  * @param {*} [options] Override http request option.
400
416
  * @throws {RequiredError}
401
417
  */
402
- patchMetricCost(metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: any): AxiosPromise<MetricCostsPerYearResponse> {
403
- return localVarFp.patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
404
- },
405
- /**
406
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
407
- * @summary Create a yearly metric cost
408
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: any): AxiosPromise<MetricCostsPerYearResponse> {
413
- return localVarFp.postMetricCost(metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
418
+ patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
419
+ return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
414
420
  },
415
421
  };
416
422
  };
417
423
 
418
424
  /**
419
425
  * MetricCostsPerYearApi - object-oriented interface
420
- * @export
421
- * @class MetricCostsPerYearApi
422
- * @extends {BaseAPI}
423
426
  */
424
427
  export class MetricCostsPerYearApi extends BaseAPI {
425
428
  /**
426
- * Delete a metric cost entry by its composite key (metric_id, framework_id, year).
427
- * @summary Delete metric costs for a year
429
+ * Create a yearly cost override for a metric within this framework.
430
+ * @summary Create a yearly metric cost for this framework
431
+ * @param {string} valueFrameworkId UUID of the value framework
432
+ * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ public createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig) {
437
+ return MetricCostsPerYearApiFp(this.configuration).createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
438
+ }
439
+
440
+ /**
441
+ * Delete a metric cost entry for a specific year within this framework.
442
+ * @summary Delete metric costs for this framework
428
443
  * @param {string} metricId UUID of the metric
429
- * @param {string} frameworkId UUID of the value framework
430
444
  * @param {number} year Year (1600-3000)
445
+ * @param {string} valueFrameworkId UUID of the value framework
431
446
  * @param {*} [options] Override http request option.
432
447
  * @throws {RequiredError}
433
- * @memberof MetricCostsPerYearApi
434
448
  */
435
- public deleteMetricCost(metricId: string, frameworkId: string, year: number, options?: RawAxiosRequestConfig) {
436
- return MetricCostsPerYearApiFp(this.configuration).deleteMetricCost(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
449
+ public deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
450
+ return MetricCostsPerYearApiFp(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
437
451
  }
438
452
 
439
453
  /**
440
- * Retrieve cost data for a specific metric within a framework for a given year.
441
- * @summary Get a yearly metric cost by metric, framework, and year
454
+ * Retrieve cost data for a specific metric within this framework for a given year.
455
+ * @summary Get a yearly metric cost for this framework
442
456
  * @param {string} metricId UUID of the metric
443
- * @param {string} frameworkId UUID of the value framework
444
457
  * @param {number} year Year (1600-3000)
458
+ * @param {string} valueFrameworkId UUID of the value framework
445
459
  * @param {*} [options] Override http request option.
446
460
  * @throws {RequiredError}
447
- * @memberof MetricCostsPerYearApi
448
461
  */
449
- public getMetricCostByKeys(metricId: string, frameworkId: string, year: number, options?: RawAxiosRequestConfig) {
450
- return MetricCostsPerYearApiFp(this.configuration).getMetricCostByKeys(metricId, frameworkId, year, options).then((request) => request(this.axios, this.basePath));
462
+ public getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
463
+ return MetricCostsPerYearApiFp(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
451
464
  }
452
465
 
453
466
  /**
454
- * Retrieve a paginated list of all yearly metric cost overrides.
455
- * @summary List yearly metric costs
467
+ * Retrieve a paginated list of all yearly metric costs for a specific framework.
468
+ * @summary List yearly metric costs for this framework
469
+ * @param {string} valueFrameworkId UUID of the value framework
456
470
  * @param {number} [offset] Number of records to skip
457
471
  * @param {number} [limit] Max number of records to return
458
472
  * @param {*} [options] Override http request option.
459
473
  * @throws {RequiredError}
460
- * @memberof MetricCostsPerYearApi
461
474
  */
462
- public getMetricCosts(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
463
- return MetricCostsPerYearApiFp(this.configuration).getMetricCosts(offset, limit, options).then((request) => request(this.axios, this.basePath));
475
+ public getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
476
+ return MetricCostsPerYearApiFp(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
464
477
  }
465
478
 
466
479
  /**
467
- * 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).
468
- * @summary Partially update metric costs for a year
480
+ * Update the perceived and/or direct cost of a metric for a specific year within this framework.
481
+ * @summary Partially update metric costs for this framework
469
482
  * @param {string} metricId UUID of the metric
470
- * @param {string} frameworkId UUID of the value framework
471
483
  * @param {number} year Year (1600-3000)
484
+ * @param {string} valueFrameworkId UUID of the value framework
472
485
  * @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
473
486
  * @param {*} [options] Override http request option.
474
487
  * @throws {RequiredError}
475
- * @memberof MetricCostsPerYearApi
476
- */
477
- public patchMetricCost(metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig) {
478
- return MetricCostsPerYearApiFp(this.configuration).patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
479
- }
480
-
481
- /**
482
- * Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
483
- * @summary Create a yearly metric cost
484
- * @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
485
- * @param {*} [options] Override http request option.
486
- * @throws {RequiredError}
487
- * @memberof MetricCostsPerYearApi
488
488
  */
489
- public postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig) {
490
- return MetricCostsPerYearApiFp(this.configuration).postMetricCost(metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
489
+ public patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig) {
490
+ return MetricCostsPerYearApiFp(this.configuration).patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
491
491
  }
492
492
  }
493
493