@cosmotech/aip-client 0.2.0-dev2 → 0.2.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -4
- package/api/default-api.ts +8 -15
- package/api/impact-api.ts +507 -0
- package/api/investment-api.ts +1308 -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 +8 -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/impact-api.d.ts +245 -0
- package/dist/api/impact-api.js +493 -0
- package/dist/api/investment-api.d.ts +607 -0
- package/dist/api/investment-api.js +1248 -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 +8 -1
- package/dist/api.js +8 -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/impact-api.d.ts +245 -0
- package/dist/esm/api/impact-api.js +486 -0
- package/dist/esm/api/investment-api.d.ts +607 -0
- package/dist/esm/api/investment-api.js +1241 -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 +8 -1
- package/dist/esm/api.js +8 -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/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/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
- 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 +11 -1
- package/dist/esm/models/index.js +11 -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 +25 -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 +31 -0
- package/dist/esm/models/option-response.js +14 -0
- package/dist/esm/models/option-update.d.ts +19 -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/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/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
- 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 +11 -1
- package/dist/models/index.js +11 -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 +25 -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 +31 -0
- package/dist/models/option-response.js +15 -0
- package/dist/models/option-update.d.ts +19 -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/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 +875 -0
- package/docs/InvestmentCreate.md +23 -0
- package/docs/InvestmentResponse.md +31 -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 +37 -0
- package/docs/OptionUpdate.md +25 -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/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 +11 -1
- package/models/investment-create.ts +27 -0
- package/models/investment-response.ts +31 -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 +37 -0
- package/models/option-update.ts +25 -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,30 +31,67 @@ const common_1 = require("../common");
|
|
|
31
31
|
const base_1 = require("../base");
|
|
32
32
|
/**
|
|
33
33
|
* MetricCostsPerYearApi - axios parameter creator
|
|
34
|
-
* @export
|
|
35
34
|
*/
|
|
36
35
|
const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
37
36
|
return {
|
|
38
37
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @summary
|
|
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
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
77
|
+
* @summary Delete metric costs for this framework
|
|
41
78
|
* @param {string} metricId UUID of the metric
|
|
42
|
-
* @param {string} frameworkId UUID of the value framework
|
|
43
79
|
* @param {number} year Year (1600-3000)
|
|
80
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
44
81
|
* @param {*} [options] Override http request option.
|
|
45
82
|
* @throws {RequiredError}
|
|
46
83
|
*/
|
|
47
|
-
|
|
84
|
+
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 = {}) {
|
|
48
85
|
// verify required parameter 'metricId' is not null or undefined
|
|
49
|
-
(0, common_1.assertParamExists)('
|
|
50
|
-
// verify required parameter 'frameworkId' is not null or undefined
|
|
51
|
-
(0, common_1.assertParamExists)('deleteMetricCost', 'frameworkId', frameworkId);
|
|
86
|
+
(0, common_1.assertParamExists)('deleteMetricCostForFramework', 'metricId', metricId);
|
|
52
87
|
// verify required parameter 'year' is not null or undefined
|
|
53
|
-
(0, common_1.assertParamExists)('
|
|
54
|
-
|
|
88
|
+
(0, common_1.assertParamExists)('deleteMetricCostForFramework', 'year', year);
|
|
89
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
90
|
+
(0, common_1.assertParamExists)('deleteMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
|
|
91
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
55
92
|
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
56
|
-
.replace(`{${"
|
|
57
|
-
.replace(`{${"
|
|
93
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
94
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
58
95
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
96
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
60
97
|
let baseOptions;
|
|
@@ -76,25 +113,25 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
76
113
|
};
|
|
77
114
|
}),
|
|
78
115
|
/**
|
|
79
|
-
* Retrieve cost data for a specific metric within
|
|
80
|
-
* @summary Get a yearly metric cost
|
|
116
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
117
|
+
* @summary Get a yearly metric cost for this framework
|
|
81
118
|
* @param {string} metricId UUID of the metric
|
|
82
|
-
* @param {string} frameworkId UUID of the value framework
|
|
83
119
|
* @param {number} year Year (1600-3000)
|
|
120
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
84
121
|
* @param {*} [options] Override http request option.
|
|
85
122
|
* @throws {RequiredError}
|
|
86
123
|
*/
|
|
87
|
-
|
|
124
|
+
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 = {}) {
|
|
88
125
|
// verify required parameter 'metricId' is not null or undefined
|
|
89
|
-
(0, common_1.assertParamExists)('
|
|
90
|
-
// verify required parameter 'frameworkId' is not null or undefined
|
|
91
|
-
(0, common_1.assertParamExists)('getMetricCostByKeys', 'frameworkId', frameworkId);
|
|
126
|
+
(0, common_1.assertParamExists)('getMetricCostForFramework', 'metricId', metricId);
|
|
92
127
|
// verify required parameter 'year' is not null or undefined
|
|
93
|
-
(0, common_1.assertParamExists)('
|
|
94
|
-
|
|
128
|
+
(0, common_1.assertParamExists)('getMetricCostForFramework', 'year', year);
|
|
129
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
130
|
+
(0, common_1.assertParamExists)('getMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
|
|
131
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
95
132
|
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
96
|
-
.replace(`{${"
|
|
97
|
-
.replace(`{${"
|
|
133
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
134
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
98
135
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
136
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
100
137
|
let baseOptions;
|
|
@@ -107,6 +144,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
107
144
|
// authentication OAuth2AuthorizationCodeBearer required
|
|
108
145
|
// oauth required
|
|
109
146
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
147
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
110
148
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
111
149
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
112
150
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -116,15 +154,19 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
116
154
|
};
|
|
117
155
|
}),
|
|
118
156
|
/**
|
|
119
|
-
* Retrieve a paginated list of all yearly metric
|
|
120
|
-
* @summary List yearly metric costs
|
|
157
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
158
|
+
* @summary List yearly metric costs for this framework
|
|
159
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
121
160
|
* @param {number} [offset] Number of records to skip
|
|
122
161
|
* @param {number} [limit] Max number of records to return
|
|
123
162
|
* @param {*} [options] Override http request option.
|
|
124
163
|
* @throws {RequiredError}
|
|
125
164
|
*/
|
|
126
|
-
|
|
127
|
-
|
|
165
|
+
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 = {}) {
|
|
166
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('getMetricCostsForFramework', 'valueFrameworkId', valueFrameworkId);
|
|
168
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
|
|
169
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
128
170
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
171
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
130
172
|
let baseOptions;
|
|
@@ -143,6 +185,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
143
185
|
if (limit !== undefined) {
|
|
144
186
|
localVarQueryParameter['limit'] = limit;
|
|
145
187
|
}
|
|
188
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
146
189
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
147
190
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
148
191
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -152,28 +195,28 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
152
195
|
};
|
|
153
196
|
}),
|
|
154
197
|
/**
|
|
155
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
156
|
-
* @summary Partially update metric costs for
|
|
198
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
199
|
+
* @summary Partially update metric costs for this framework
|
|
157
200
|
* @param {string} metricId UUID of the metric
|
|
158
|
-
* @param {string} frameworkId UUID of the value framework
|
|
159
201
|
* @param {number} year Year (1600-3000)
|
|
202
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
160
203
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
161
204
|
* @param {*} [options] Override http request option.
|
|
162
205
|
* @throws {RequiredError}
|
|
163
206
|
*/
|
|
164
|
-
|
|
207
|
+
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 = {}) {
|
|
165
208
|
// verify required parameter 'metricId' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('
|
|
167
|
-
// verify required parameter 'frameworkId' is not null or undefined
|
|
168
|
-
(0, common_1.assertParamExists)('patchMetricCost', 'frameworkId', frameworkId);
|
|
209
|
+
(0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricId', metricId);
|
|
169
210
|
// verify required parameter 'year' is not null or undefined
|
|
170
|
-
(0, common_1.assertParamExists)('
|
|
211
|
+
(0, common_1.assertParamExists)('patchMetricCostForFramework', 'year', year);
|
|
212
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
|
|
171
214
|
// verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
|
|
172
|
-
(0, common_1.assertParamExists)('
|
|
173
|
-
const localVarPath = `/
|
|
215
|
+
(0, common_1.assertParamExists)('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
|
|
216
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
174
217
|
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
175
|
-
.replace(`{${"
|
|
176
|
-
.replace(`{${"
|
|
218
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
219
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
177
220
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
178
221
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
179
222
|
let baseOptions;
|
|
@@ -187,6 +230,7 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
187
230
|
// oauth required
|
|
188
231
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
189
232
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
190
234
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
191
235
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
192
236
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -196,135 +240,103 @@ const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
|
196
240
|
options: localVarRequestOptions,
|
|
197
241
|
};
|
|
198
242
|
}),
|
|
199
|
-
/**
|
|
200
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
201
|
-
* @summary Create a yearly metric cost
|
|
202
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
203
|
-
* @param {*} [options] Override http request option.
|
|
204
|
-
* @throws {RequiredError}
|
|
205
|
-
*/
|
|
206
|
-
postMetricCost: (metricCostsPerYearCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
207
|
-
// verify required parameter 'metricCostsPerYearCreate' is not null or undefined
|
|
208
|
-
(0, common_1.assertParamExists)('postMetricCost', 'metricCostsPerYearCreate', metricCostsPerYearCreate);
|
|
209
|
-
const localVarPath = `/metric_costs_per_year/`;
|
|
210
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
|
-
let baseOptions;
|
|
213
|
-
if (configuration) {
|
|
214
|
-
baseOptions = configuration.baseOptions;
|
|
215
|
-
}
|
|
216
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
217
|
-
const localVarHeaderParameter = {};
|
|
218
|
-
const localVarQueryParameter = {};
|
|
219
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
220
|
-
// oauth required
|
|
221
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
222
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
223
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
224
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
225
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
226
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(metricCostsPerYearCreate, localVarRequestOptions, configuration);
|
|
227
|
-
return {
|
|
228
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
229
|
-
options: localVarRequestOptions,
|
|
230
|
-
};
|
|
231
|
-
}),
|
|
232
243
|
};
|
|
233
244
|
};
|
|
234
245
|
exports.MetricCostsPerYearApiAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator;
|
|
235
246
|
/**
|
|
236
247
|
* MetricCostsPerYearApi - functional programming interface
|
|
237
|
-
* @export
|
|
238
248
|
*/
|
|
239
249
|
const MetricCostsPerYearApiFp = function (configuration) {
|
|
240
250
|
const localVarAxiosParamCreator = (0, exports.MetricCostsPerYearApiAxiosParamCreator)(configuration);
|
|
241
251
|
return {
|
|
242
252
|
/**
|
|
243
|
-
*
|
|
244
|
-
* @summary
|
|
245
|
-
* @param {string}
|
|
246
|
-
* @param {
|
|
247
|
-
* @param {number} year Year (1600-3000)
|
|
253
|
+
* Create a yearly cost override for a metric within this framework.
|
|
254
|
+
* @summary Create a yearly metric cost for this framework
|
|
255
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
256
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
248
257
|
* @param {*} [options] Override http request option.
|
|
249
258
|
* @throws {RequiredError}
|
|
250
259
|
*/
|
|
251
|
-
|
|
252
|
-
var _a, _b, _c;
|
|
260
|
+
createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
|
|
253
261
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
|
-
|
|
255
|
-
const
|
|
256
|
-
const
|
|
257
|
-
|
|
262
|
+
var _a, _b, _c;
|
|
263
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options);
|
|
264
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
265
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.createMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
266
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
258
267
|
});
|
|
259
268
|
},
|
|
260
269
|
/**
|
|
261
|
-
*
|
|
262
|
-
* @summary
|
|
270
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
271
|
+
* @summary Delete metric costs for this framework
|
|
263
272
|
* @param {string} metricId UUID of the metric
|
|
264
|
-
* @param {string} frameworkId UUID of the value framework
|
|
265
273
|
* @param {number} year Year (1600-3000)
|
|
274
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
266
275
|
* @param {*} [options] Override http request option.
|
|
267
276
|
* @throws {RequiredError}
|
|
268
277
|
*/
|
|
269
|
-
|
|
270
|
-
var _a, _b, _c;
|
|
278
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
271
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
|
-
|
|
273
|
-
const
|
|
274
|
-
const
|
|
275
|
-
|
|
280
|
+
var _a, _b, _c;
|
|
281
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options);
|
|
282
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
283
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.deleteMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
284
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
276
285
|
});
|
|
277
286
|
},
|
|
278
287
|
/**
|
|
279
|
-
* Retrieve a
|
|
280
|
-
* @summary
|
|
281
|
-
* @param {
|
|
282
|
-
* @param {number}
|
|
288
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
289
|
+
* @summary Get a yearly metric cost for this framework
|
|
290
|
+
* @param {string} metricId UUID of the metric
|
|
291
|
+
* @param {number} year Year (1600-3000)
|
|
292
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
283
293
|
* @param {*} [options] Override http request option.
|
|
284
294
|
* @throws {RequiredError}
|
|
285
295
|
*/
|
|
286
|
-
|
|
287
|
-
var _a, _b, _c;
|
|
296
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
288
297
|
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
-
|
|
290
|
-
const
|
|
291
|
-
const
|
|
292
|
-
|
|
298
|
+
var _a, _b, _c;
|
|
299
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostForFramework(metricId, year, valueFrameworkId, options);
|
|
300
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
301
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
302
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
293
303
|
});
|
|
294
304
|
},
|
|
295
305
|
/**
|
|
296
|
-
*
|
|
297
|
-
* @summary
|
|
298
|
-
* @param {string}
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {number}
|
|
301
|
-
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
306
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
307
|
+
* @summary List yearly metric costs for this framework
|
|
308
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
309
|
+
* @param {number} [offset] Number of records to skip
|
|
310
|
+
* @param {number} [limit] Max number of records to return
|
|
302
311
|
* @param {*} [options] Override http request option.
|
|
303
312
|
* @throws {RequiredError}
|
|
304
313
|
*/
|
|
305
|
-
|
|
306
|
-
var _a, _b, _c;
|
|
314
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
307
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
const
|
|
311
|
-
|
|
316
|
+
var _a, _b, _c;
|
|
317
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricCostsForFramework(valueFrameworkId, offset, limit, options);
|
|
318
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
319
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.getMetricCostsForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
320
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
312
321
|
});
|
|
313
322
|
},
|
|
314
323
|
/**
|
|
315
|
-
*
|
|
316
|
-
* @summary
|
|
317
|
-
* @param {
|
|
324
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
325
|
+
* @summary Partially update metric costs for this framework
|
|
326
|
+
* @param {string} metricId UUID of the metric
|
|
327
|
+
* @param {number} year Year (1600-3000)
|
|
328
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
329
|
+
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
318
330
|
* @param {*} [options] Override http request option.
|
|
319
331
|
* @throws {RequiredError}
|
|
320
332
|
*/
|
|
321
|
-
|
|
322
|
-
var _a, _b, _c;
|
|
333
|
+
patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
|
|
323
334
|
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
|
|
325
|
-
const
|
|
326
|
-
const
|
|
327
|
-
|
|
335
|
+
var _a, _b, _c;
|
|
336
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options);
|
|
337
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
338
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricCostsPerYearApi.patchMetricCostForFramework']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
339
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
328
340
|
});
|
|
329
341
|
},
|
|
330
342
|
};
|
|
@@ -332,141 +344,136 @@ const MetricCostsPerYearApiFp = function (configuration) {
|
|
|
332
344
|
exports.MetricCostsPerYearApiFp = MetricCostsPerYearApiFp;
|
|
333
345
|
/**
|
|
334
346
|
* MetricCostsPerYearApi - factory interface
|
|
335
|
-
* @export
|
|
336
347
|
*/
|
|
337
348
|
const MetricCostsPerYearApiFactory = function (configuration, basePath, axios) {
|
|
338
349
|
const localVarFp = (0, exports.MetricCostsPerYearApiFp)(configuration);
|
|
339
350
|
return {
|
|
340
351
|
/**
|
|
341
|
-
*
|
|
342
|
-
* @summary
|
|
352
|
+
* Create a yearly cost override for a metric within this framework.
|
|
353
|
+
* @summary Create a yearly metric cost for this framework
|
|
354
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
355
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
|
|
360
|
+
return localVarFp.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
|
|
361
|
+
},
|
|
362
|
+
/**
|
|
363
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
364
|
+
* @summary Delete metric costs for this framework
|
|
343
365
|
* @param {string} metricId UUID of the metric
|
|
344
|
-
* @param {string} frameworkId UUID of the value framework
|
|
345
366
|
* @param {number} year Year (1600-3000)
|
|
367
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
346
368
|
* @param {*} [options] Override http request option.
|
|
347
369
|
* @throws {RequiredError}
|
|
348
370
|
*/
|
|
349
|
-
|
|
350
|
-
return localVarFp.
|
|
371
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
372
|
+
return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
351
373
|
},
|
|
352
374
|
/**
|
|
353
|
-
* Retrieve cost data for a specific metric within
|
|
354
|
-
* @summary Get a yearly metric cost
|
|
375
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
376
|
+
* @summary Get a yearly metric cost for this framework
|
|
355
377
|
* @param {string} metricId UUID of the metric
|
|
356
|
-
* @param {string} frameworkId UUID of the value framework
|
|
357
378
|
* @param {number} year Year (1600-3000)
|
|
379
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
358
380
|
* @param {*} [options] Override http request option.
|
|
359
381
|
* @throws {RequiredError}
|
|
360
382
|
*/
|
|
361
|
-
|
|
362
|
-
return localVarFp.
|
|
383
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
384
|
+
return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
363
385
|
},
|
|
364
386
|
/**
|
|
365
|
-
* Retrieve a paginated list of all yearly metric
|
|
366
|
-
* @summary List yearly metric costs
|
|
387
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
388
|
+
* @summary List yearly metric costs for this framework
|
|
389
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
367
390
|
* @param {number} [offset] Number of records to skip
|
|
368
391
|
* @param {number} [limit] Max number of records to return
|
|
369
392
|
* @param {*} [options] Override http request option.
|
|
370
393
|
* @throws {RequiredError}
|
|
371
394
|
*/
|
|
372
|
-
|
|
373
|
-
return localVarFp.
|
|
395
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
396
|
+
return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
|
|
374
397
|
},
|
|
375
398
|
/**
|
|
376
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
377
|
-
* @summary Partially update metric costs for
|
|
399
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
400
|
+
* @summary Partially update metric costs for this framework
|
|
378
401
|
* @param {string} metricId UUID of the metric
|
|
379
|
-
* @param {string} frameworkId UUID of the value framework
|
|
380
402
|
* @param {number} year Year (1600-3000)
|
|
403
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
381
404
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
382
405
|
* @param {*} [options] Override http request option.
|
|
383
406
|
* @throws {RequiredError}
|
|
384
407
|
*/
|
|
385
|
-
|
|
386
|
-
return localVarFp.
|
|
387
|
-
},
|
|
388
|
-
/**
|
|
389
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
390
|
-
* @summary Create a yearly metric cost
|
|
391
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
392
|
-
* @param {*} [options] Override http request option.
|
|
393
|
-
* @throws {RequiredError}
|
|
394
|
-
*/
|
|
395
|
-
postMetricCost(metricCostsPerYearCreate, options) {
|
|
396
|
-
return localVarFp.postMetricCost(metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
|
|
408
|
+
patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
|
|
409
|
+
return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
|
|
397
410
|
},
|
|
398
411
|
};
|
|
399
412
|
};
|
|
400
413
|
exports.MetricCostsPerYearApiFactory = MetricCostsPerYearApiFactory;
|
|
401
414
|
/**
|
|
402
415
|
* MetricCostsPerYearApi - object-oriented interface
|
|
403
|
-
* @export
|
|
404
|
-
* @class MetricCostsPerYearApi
|
|
405
|
-
* @extends {BaseAPI}
|
|
406
416
|
*/
|
|
407
417
|
class MetricCostsPerYearApi extends base_1.BaseAPI {
|
|
408
418
|
/**
|
|
409
|
-
*
|
|
410
|
-
* @summary
|
|
419
|
+
* Create a yearly cost override for a metric within this framework.
|
|
420
|
+
* @summary Create a yearly metric cost for this framework
|
|
421
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
422
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
423
|
+
* @param {*} [options] Override http request option.
|
|
424
|
+
* @throws {RequiredError}
|
|
425
|
+
*/
|
|
426
|
+
createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
|
|
427
|
+
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
|
|
428
|
+
}
|
|
429
|
+
/**
|
|
430
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
431
|
+
* @summary Delete metric costs for this framework
|
|
411
432
|
* @param {string} metricId UUID of the metric
|
|
412
|
-
* @param {string} frameworkId UUID of the value framework
|
|
413
433
|
* @param {number} year Year (1600-3000)
|
|
434
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
414
435
|
* @param {*} [options] Override http request option.
|
|
415
436
|
* @throws {RequiredError}
|
|
416
|
-
* @memberof MetricCostsPerYearApi
|
|
417
437
|
*/
|
|
418
|
-
|
|
419
|
-
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).
|
|
438
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
439
|
+
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
420
440
|
}
|
|
421
441
|
/**
|
|
422
|
-
* Retrieve cost data for a specific metric within
|
|
423
|
-
* @summary Get a yearly metric cost
|
|
442
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
443
|
+
* @summary Get a yearly metric cost for this framework
|
|
424
444
|
* @param {string} metricId UUID of the metric
|
|
425
|
-
* @param {string} frameworkId UUID of the value framework
|
|
426
445
|
* @param {number} year Year (1600-3000)
|
|
446
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
427
447
|
* @param {*} [options] Override http request option.
|
|
428
448
|
* @throws {RequiredError}
|
|
429
|
-
* @memberof MetricCostsPerYearApi
|
|
430
449
|
*/
|
|
431
|
-
|
|
432
|
-
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).
|
|
450
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
451
|
+
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
433
452
|
}
|
|
434
453
|
/**
|
|
435
|
-
* Retrieve a paginated list of all yearly metric
|
|
436
|
-
* @summary List yearly metric costs
|
|
454
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
455
|
+
* @summary List yearly metric costs for this framework
|
|
456
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
437
457
|
* @param {number} [offset] Number of records to skip
|
|
438
458
|
* @param {number} [limit] Max number of records to return
|
|
439
459
|
* @param {*} [options] Override http request option.
|
|
440
460
|
* @throws {RequiredError}
|
|
441
|
-
* @memberof MetricCostsPerYearApi
|
|
442
461
|
*/
|
|
443
|
-
|
|
444
|
-
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).
|
|
462
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
463
|
+
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
445
464
|
}
|
|
446
465
|
/**
|
|
447
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
448
|
-
* @summary Partially update metric costs for
|
|
466
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
467
|
+
* @summary Partially update metric costs for this framework
|
|
449
468
|
* @param {string} metricId UUID of the metric
|
|
450
|
-
* @param {string} frameworkId UUID of the value framework
|
|
451
469
|
* @param {number} year Year (1600-3000)
|
|
470
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
452
471
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
453
472
|
* @param {*} [options] Override http request option.
|
|
454
473
|
* @throws {RequiredError}
|
|
455
|
-
* @memberof MetricCostsPerYearApi
|
|
456
|
-
*/
|
|
457
|
-
patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options) {
|
|
458
|
-
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
459
|
-
}
|
|
460
|
-
/**
|
|
461
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
462
|
-
* @summary Create a yearly metric cost
|
|
463
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
464
|
-
* @param {*} [options] Override http request option.
|
|
465
|
-
* @throws {RequiredError}
|
|
466
|
-
* @memberof MetricCostsPerYearApi
|
|
467
474
|
*/
|
|
468
|
-
|
|
469
|
-
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).
|
|
475
|
+
patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
|
|
476
|
+
return (0, exports.MetricCostsPerYearApiFp)(this.configuration).patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
470
477
|
}
|
|
471
478
|
}
|
|
472
479
|
exports.MetricCostsPerYearApi = MetricCostsPerYearApi;
|