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