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

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