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