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