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