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

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