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