@cosmotech/aip-client 0.2.0-dev → 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 +62 -0
- package/dist/api/default-api.js +122 -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 +607 -0
- package/dist/api/investment-api.js +1248 -0
- package/dist/api/metric-api.d.ts +225 -0
- package/dist/api/metric-api.js +458 -0
- 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 +237 -0
- package/dist/api/metric-costs-per-year-api.js +479 -0
- package/dist/api/objective-api.d.ts +437 -0
- package/dist/api/objective-api.js +901 -0
- package/dist/api/objective-weight-api.d.ts +225 -0
- package/dist/api/objective-weight-api.js +458 -0
- 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 +723 -0
- package/dist/api/value-framework-api.js +1490 -0
- 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 +24 -0
- package/dist/api.js +42 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/default-api.d.ts +62 -0
- package/dist/esm/api/default-api.js +115 -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 +607 -0
- package/dist/esm/api/investment-api.js +1241 -0
- package/dist/esm/api/metric-api.d.ts +225 -0
- package/dist/esm/api/metric-api.js +451 -0
- 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 +237 -0
- package/dist/esm/api/metric-costs-per-year-api.js +472 -0
- package/dist/esm/api/objective-api.d.ts +437 -0
- package/dist/esm/api/objective-api.js +894 -0
- package/dist/esm/api/objective-weight-api.d.ts +225 -0
- package/dist/esm/api/objective-weight-api.js +451 -0
- 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 +723 -0
- package/dist/esm/api/value-framework-api.js +1483 -0
- 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 +24 -0
- package/dist/esm/api.js +26 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- 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 +15 -0
- package/dist/esm/models/httpvalidation-error.js +14 -0
- 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 +30 -0
- package/dist/esm/models/index.js +30 -0
- 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/location-inner.d.ts +13 -0
- package/dist/esm/models/location-inner.js +14 -0
- package/dist/esm/models/measurement-type.d.ts +16 -0
- package/dist/esm/models/measurement-type.js +17 -0
- package/dist/esm/models/metric-costs-per-year-create.d.ts +32 -0
- package/dist/esm/models/metric-costs-per-year-create.js +14 -0
- package/dist/esm/models/metric-costs-per-year-response.d.ts +37 -0
- package/dist/esm/models/metric-costs-per-year-response.js +14 -0
- package/dist/esm/models/metric-costs-per-year-update.d.ts +18 -0
- package/dist/esm/models/metric-costs-per-year-update.js +14 -0
- package/dist/esm/models/metric-create.d.ts +43 -0
- package/dist/esm/models/metric-create.js +14 -0
- package/dist/esm/models/metric-response.d.ts +45 -0
- package/dist/esm/models/metric-response.js +14 -0
- package/dist/esm/models/metric-type.d.ts +17 -0
- package/dist/esm/models/metric-type.js +18 -0
- package/dist/esm/models/metric-update.d.ts +24 -0
- package/dist/esm/models/metric-update.js +14 -0
- package/dist/esm/models/objective-create.d.ts +21 -0
- package/dist/esm/models/objective-create.js +14 -0
- package/dist/esm/models/objective-response.d.ts +25 -0
- package/dist/esm/models/objective-response.js +14 -0
- package/dist/esm/models/objective-update.d.ts +18 -0
- package/dist/esm/models/objective-update.js +14 -0
- package/dist/esm/models/objective-weight-create.d.ts +28 -0
- package/dist/esm/models/objective-weight-create.js +14 -0
- package/dist/esm/models/objective-weight-response.d.ts +29 -0
- package/dist/esm/models/objective-weight-response.js +14 -0
- package/dist/esm/models/objective-weight-update.d.ts +17 -0
- package/dist/esm/models/objective-weight-update.js +14 -0
- 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 +19 -0
- package/dist/esm/models/validation-error.js +14 -0
- package/dist/esm/models/value-framework-create.d.ts +21 -0
- package/dist/esm/models/value-framework-create.js +14 -0
- package/dist/esm/models/value-framework-response.d.ts +25 -0
- package/dist/esm/models/value-framework-response.js +14 -0
- package/dist/esm/models/value-framework-update.d.ts +18 -0
- package/dist/esm/models/value-framework-update.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/evolution-type.d.ts +16 -0
- package/dist/models/evolution-type.js +20 -0
- package/dist/models/httpvalidation-error.d.ts +15 -0
- package/dist/models/httpvalidation-error.js +15 -0
- 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 +30 -0
- package/dist/models/index.js +46 -0
- 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/location-inner.d.ts +13 -0
- package/dist/models/location-inner.js +15 -0
- package/dist/models/measurement-type.d.ts +16 -0
- package/dist/models/measurement-type.js +20 -0
- package/dist/models/metric-costs-per-year-create.d.ts +32 -0
- package/dist/models/metric-costs-per-year-create.js +15 -0
- package/dist/models/metric-costs-per-year-response.d.ts +37 -0
- package/dist/models/metric-costs-per-year-response.js +15 -0
- package/dist/models/metric-costs-per-year-update.d.ts +18 -0
- package/dist/models/metric-costs-per-year-update.js +15 -0
- package/dist/models/metric-create.d.ts +43 -0
- package/dist/models/metric-create.js +15 -0
- package/dist/models/metric-response.d.ts +45 -0
- package/dist/models/metric-response.js +15 -0
- package/dist/models/metric-type.d.ts +17 -0
- package/dist/models/metric-type.js +21 -0
- package/dist/models/metric-update.d.ts +24 -0
- package/dist/models/metric-update.js +15 -0
- package/dist/models/objective-create.d.ts +21 -0
- package/dist/models/objective-create.js +15 -0
- package/dist/models/objective-response.d.ts +25 -0
- package/dist/models/objective-response.js +15 -0
- package/dist/models/objective-update.d.ts +18 -0
- package/dist/models/objective-update.js +15 -0
- package/dist/models/objective-weight-create.d.ts +28 -0
- package/dist/models/objective-weight-create.js +15 -0
- package/dist/models/objective-weight-response.d.ts +29 -0
- package/dist/models/objective-weight-response.js +15 -0
- package/dist/models/objective-weight-update.d.ts +17 -0
- package/dist/models/objective-weight-update.js +15 -0
- 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 +19 -0
- package/dist/models/validation-error.js +15 -0
- package/dist/models/value-framework-create.d.ts +21 -0
- package/dist/models/value-framework-create.js +15 -0
- package/dist/models/value-framework-response.d.ts +25 -0
- package/dist/models/value-framework-response.js +15 -0
- package/dist/models/value-framework-update.d.ts +18 -0
- package/dist/models/value-framework-update.js +15 -0
- 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
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* MetricCostsPerYearApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const MetricCostsPerYearApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
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
|
|
75
|
+
* @param {string} metricId UUID of the metric
|
|
76
|
+
* @param {number} year Year (1600-3000)
|
|
77
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
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 = {}) {
|
|
82
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
83
|
+
assertParamExists('deleteMetricCostForFramework', 'metricId', metricId);
|
|
84
|
+
// verify required parameter 'year' is not null or undefined
|
|
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}`
|
|
89
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
90
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
91
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
92
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
93
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
94
|
+
let baseOptions;
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions;
|
|
97
|
+
}
|
|
98
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
99
|
+
const localVarHeaderParameter = {};
|
|
100
|
+
const localVarQueryParameter = {};
|
|
101
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
102
|
+
// oauth required
|
|
103
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
107
|
+
return {
|
|
108
|
+
url: toPathString(localVarUrlObj),
|
|
109
|
+
options: localVarRequestOptions,
|
|
110
|
+
};
|
|
111
|
+
}),
|
|
112
|
+
/**
|
|
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
|
|
115
|
+
* @param {string} metricId UUID of the metric
|
|
116
|
+
* @param {number} year Year (1600-3000)
|
|
117
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
118
|
+
* @param {*} [options] Override http request option.
|
|
119
|
+
* @throws {RequiredError}
|
|
120
|
+
*/
|
|
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 = {}) {
|
|
122
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
123
|
+
assertParamExists('getMetricCostForFramework', 'metricId', metricId);
|
|
124
|
+
// verify required parameter 'year' is not null or undefined
|
|
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}`
|
|
129
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
130
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
131
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
139
|
+
const localVarHeaderParameter = {};
|
|
140
|
+
const localVarQueryParameter = {};
|
|
141
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
142
|
+
// oauth required
|
|
143
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
144
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
}),
|
|
153
|
+
/**
|
|
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
|
|
157
|
+
* @param {number} [offset] Number of records to skip
|
|
158
|
+
* @param {number} [limit] Max number of records to return
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
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)));
|
|
167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
169
|
+
let baseOptions;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
}
|
|
173
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
174
|
+
const localVarHeaderParameter = {};
|
|
175
|
+
const localVarQueryParameter = {};
|
|
176
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
177
|
+
// oauth required
|
|
178
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
179
|
+
if (offset !== undefined) {
|
|
180
|
+
localVarQueryParameter['offset'] = offset;
|
|
181
|
+
}
|
|
182
|
+
if (limit !== undefined) {
|
|
183
|
+
localVarQueryParameter['limit'] = limit;
|
|
184
|
+
}
|
|
185
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
189
|
+
return {
|
|
190
|
+
url: toPathString(localVarUrlObj),
|
|
191
|
+
options: localVarRequestOptions,
|
|
192
|
+
};
|
|
193
|
+
}),
|
|
194
|
+
/**
|
|
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
|
|
197
|
+
* @param {string} metricId UUID of the metric
|
|
198
|
+
* @param {number} year Year (1600-3000)
|
|
199
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
200
|
+
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
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 = {}) {
|
|
205
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
206
|
+
assertParamExists('patchMetricCostForFramework', 'metricId', metricId);
|
|
207
|
+
// verify required parameter 'year' is not null or undefined
|
|
208
|
+
assertParamExists('patchMetricCostForFramework', 'year', year);
|
|
209
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
210
|
+
assertParamExists('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId);
|
|
211
|
+
// verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
|
|
212
|
+
assertParamExists('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate);
|
|
213
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
214
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
215
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
216
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
217
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
218
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
219
|
+
let baseOptions;
|
|
220
|
+
if (configuration) {
|
|
221
|
+
baseOptions = configuration.baseOptions;
|
|
222
|
+
}
|
|
223
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
224
|
+
const localVarHeaderParameter = {};
|
|
225
|
+
const localVarQueryParameter = {};
|
|
226
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
227
|
+
// oauth required
|
|
228
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
229
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
230
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
234
|
+
localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearUpdate, localVarRequestOptions, configuration);
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
}),
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* MetricCostsPerYearApi - functional programming interface
|
|
244
|
+
*/
|
|
245
|
+
export const MetricCostsPerYearApiFp = function (configuration) {
|
|
246
|
+
const localVarAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator(configuration);
|
|
247
|
+
return {
|
|
248
|
+
/**
|
|
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
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
*/
|
|
256
|
+
createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options) {
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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);
|
|
263
|
+
});
|
|
264
|
+
},
|
|
265
|
+
/**
|
|
266
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
267
|
+
* @summary Delete metric costs for this framework
|
|
268
|
+
* @param {string} metricId UUID of the metric
|
|
269
|
+
* @param {number} year Year (1600-3000)
|
|
270
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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);
|
|
281
|
+
});
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
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
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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);
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
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
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
*/
|
|
310
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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);
|
|
317
|
+
});
|
|
318
|
+
},
|
|
319
|
+
/**
|
|
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
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
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);
|
|
336
|
+
});
|
|
337
|
+
},
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* MetricCostsPerYearApi - factory interface
|
|
342
|
+
*/
|
|
343
|
+
export const MetricCostsPerYearApiFactory = function (configuration, basePath, axios) {
|
|
344
|
+
const localVarFp = MetricCostsPerYearApiFp(configuration);
|
|
345
|
+
return {
|
|
346
|
+
/**
|
|
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
|
|
360
|
+
* @param {string} metricId UUID of the metric
|
|
361
|
+
* @param {number} year Year (1600-3000)
|
|
362
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
367
|
+
return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
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
|
|
372
|
+
* @param {string} metricId UUID of the metric
|
|
373
|
+
* @param {number} year Year (1600-3000)
|
|
374
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
379
|
+
return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
380
|
+
},
|
|
381
|
+
/**
|
|
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
|
|
385
|
+
* @param {number} [offset] Number of records to skip
|
|
386
|
+
* @param {number} [limit] Max number of records to return
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
391
|
+
return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
|
|
392
|
+
},
|
|
393
|
+
/**
|
|
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
|
|
396
|
+
* @param {string} metricId UUID of the metric
|
|
397
|
+
* @param {number} year Year (1600-3000)
|
|
398
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
399
|
+
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options) {
|
|
404
|
+
return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
/**
|
|
409
|
+
* MetricCostsPerYearApi - object-oriented interface
|
|
410
|
+
*/
|
|
411
|
+
export class MetricCostsPerYearApi extends BaseAPI {
|
|
412
|
+
/**
|
|
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
|
|
426
|
+
* @param {string} metricId UUID of the metric
|
|
427
|
+
* @param {number} year Year (1600-3000)
|
|
428
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
429
|
+
* @param {*} [options] Override http request option.
|
|
430
|
+
* @throws {RequiredError}
|
|
431
|
+
*/
|
|
432
|
+
deleteMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
433
|
+
return MetricCostsPerYearApiFp(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
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
|
|
438
|
+
* @param {string} metricId UUID of the metric
|
|
439
|
+
* @param {number} year Year (1600-3000)
|
|
440
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
getMetricCostForFramework(metricId, year, valueFrameworkId, options) {
|
|
445
|
+
return MetricCostsPerYearApiFp(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
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
|
|
451
|
+
* @param {number} [offset] Number of records to skip
|
|
452
|
+
* @param {number} [limit] Max number of records to return
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
getMetricCostsForFramework(valueFrameworkId, offset, limit, options) {
|
|
457
|
+
return MetricCostsPerYearApiFp(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
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
|
|
462
|
+
* @param {string} metricId UUID of the metric
|
|
463
|
+
* @param {number} year Year (1600-3000)
|
|
464
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
465
|
+
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
466
|
+
* @param {*} [options] Override http request option.
|
|
467
|
+
* @throws {RequiredError}
|
|
468
|
+
*/
|
|
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));
|
|
471
|
+
}
|
|
472
|
+
}
|