@cosmotech/aip-client 0.2.0-dev2 → 0.2.0-dev4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +147 -4
- package/api/default-api.ts +8 -15
- package/api/favored-option-api.ts +210 -0
- package/api/impact-api.ts +507 -0
- package/api/investment-api.ts +1464 -0
- package/api/metric-api.ts +185 -164
- package/api/metric-costs-api.ts +144 -0
- package/api/metric-costs-per-year-api.ts +200 -200
- package/api/objective-api.ts +538 -44
- package/api/objective-weight-api.ts +190 -190
- package/api/objective-weights-api.ts +144 -0
- package/api/option-api.ts +925 -0
- package/api/value-framework-api.ts +1223 -109
- package/api/value-framework-costs-api.ts +239 -0
- package/api/value-framework-weights-api.ts +144 -0
- package/api.ts +9 -1
- package/base.ts +1 -25
- package/common.ts +20 -43
- package/configuration.ts +31 -20
- package/dist/api/default-api.d.ts +3 -10
- package/dist/api/default-api.js +7 -13
- package/dist/api/favored-option-api.d.ts +104 -0
- package/dist/api/favored-option-api.js +209 -0
- package/dist/api/impact-api.d.ts +245 -0
- package/dist/api/impact-api.js +493 -0
- package/dist/api/investment-api.d.ts +677 -0
- package/dist/api/investment-api.js +1394 -0
- package/dist/api/metric-api.d.ts +97 -88
- package/dist/api/metric-api.js +185 -157
- package/dist/api/metric-costs-api.d.ts +75 -0
- package/dist/api/metric-costs-api.js +146 -0
- package/dist/api/metric-costs-per-year-api.d.ts +105 -108
- package/dist/api/metric-costs-per-year-api.js +199 -192
- package/dist/api/objective-api.d.ts +242 -21
- package/dist/api/objective-api.js +508 -37
- package/dist/api/objective-weight-api.d.ts +105 -108
- package/dist/api/objective-weight-api.js +189 -182
- package/dist/api/objective-weights-api.d.ts +75 -0
- package/dist/api/objective-weights-api.js +146 -0
- package/dist/api/option-api.d.ts +436 -0
- package/dist/api/option-api.js +888 -0
- package/dist/api/value-framework-api.d.ts +528 -21
- package/dist/api/value-framework-api.js +1138 -78
- package/dist/api/value-framework-costs-api.d.ts +119 -0
- package/dist/api/value-framework-costs-api.js +236 -0
- package/dist/api/value-framework-weights-api.d.ts +75 -0
- package/dist/api/value-framework-weights-api.js +146 -0
- package/dist/api.d.ts +9 -1
- package/dist/api.js +9 -1
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +6 -37
- package/dist/common.js +17 -39
- package/dist/configuration.d.ts +25 -18
- package/dist/configuration.js +4 -3
- package/dist/esm/api/default-api.d.ts +3 -10
- package/dist/esm/api/default-api.js +7 -13
- package/dist/esm/api/favored-option-api.d.ts +104 -0
- package/dist/esm/api/favored-option-api.js +202 -0
- package/dist/esm/api/impact-api.d.ts +245 -0
- package/dist/esm/api/impact-api.js +486 -0
- package/dist/esm/api/investment-api.d.ts +677 -0
- package/dist/esm/api/investment-api.js +1387 -0
- package/dist/esm/api/metric-api.d.ts +97 -88
- package/dist/esm/api/metric-api.js +185 -157
- package/dist/esm/api/metric-costs-api.d.ts +75 -0
- package/dist/esm/api/metric-costs-api.js +139 -0
- package/dist/esm/api/metric-costs-per-year-api.d.ts +105 -108
- package/dist/esm/api/metric-costs-per-year-api.js +199 -192
- package/dist/esm/api/objective-api.d.ts +242 -21
- package/dist/esm/api/objective-api.js +508 -37
- package/dist/esm/api/objective-weight-api.d.ts +105 -108
- package/dist/esm/api/objective-weight-api.js +189 -182
- package/dist/esm/api/objective-weights-api.d.ts +75 -0
- package/dist/esm/api/objective-weights-api.js +139 -0
- package/dist/esm/api/option-api.d.ts +436 -0
- package/dist/esm/api/option-api.js +881 -0
- package/dist/esm/api/value-framework-api.d.ts +528 -21
- package/dist/esm/api/value-framework-api.js +1137 -77
- package/dist/esm/api/value-framework-costs-api.d.ts +119 -0
- package/dist/esm/api/value-framework-costs-api.js +229 -0
- package/dist/esm/api/value-framework-weights-api.d.ts +75 -0
- package/dist/esm/api/value-framework-weights-api.js +139 -0
- package/dist/esm/api.d.ts +9 -1
- package/dist/esm/api.js +9 -1
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +6 -37
- package/dist/esm/common.js +15 -38
- package/dist/esm/configuration.d.ts +25 -18
- package/dist/esm/configuration.js +4 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +16 -0
- package/dist/esm/models/evolution-type.js +17 -0
- package/dist/esm/models/favored-option-request.d.ts +20 -0
- package/dist/esm/models/{validation-error-loc-inner.js → favored-option-request.js} +1 -1
- package/dist/esm/models/favored-option-response.d.ts +20 -0
- package/dist/esm/models/favored-option-response.js +14 -0
- package/dist/esm/models/httpvalidation-error.d.ts +2 -12
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +33 -0
- package/dist/esm/models/impact-apiresponse.js +14 -0
- package/dist/esm/models/impact-create.d.ts +37 -0
- package/dist/esm/models/impact-create.js +14 -0
- package/dist/esm/models/impact-update.d.ts +22 -0
- package/dist/esm/models/impact-update.js +14 -0
- package/dist/esm/models/index.d.ts +13 -1
- package/dist/esm/models/index.js +13 -1
- package/dist/esm/models/investment-create.d.ts +21 -0
- package/dist/esm/models/investment-create.js +14 -0
- package/dist/esm/models/investment-response.d.ts +26 -0
- package/dist/esm/models/investment-response.js +14 -0
- package/dist/esm/models/investment-update.d.ts +18 -0
- package/dist/esm/models/investment-update.js +14 -0
- package/dist/esm/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
- package/dist/esm/models/location-inner.js +14 -0
- package/dist/esm/models/measurement-type.d.ts +1 -6
- package/dist/esm/models/measurement-type.js +1 -6
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -17
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -18
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -13
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +3 -28
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +3 -50
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -6
- package/dist/esm/models/metric-type.js +1 -6
- package/dist/esm/models/metric-update.d.ts +3 -35
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -10
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -30
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -13
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -9
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -14
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -8
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-create.d.ts +33 -0
- package/dist/esm/models/option-create.js +14 -0
- package/dist/esm/models/option-response.d.ts +32 -0
- package/dist/esm/models/option-response.js +14 -0
- package/dist/esm/models/option-update.d.ts +21 -0
- package/dist/esm/models/option-update.js +14 -0
- package/dist/esm/models/validation-error.d.ts +3 -33
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -10
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -30
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -13
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/evolution-type.d.ts +16 -0
- package/dist/models/evolution-type.js +20 -0
- package/dist/models/favored-option-request.d.ts +20 -0
- package/dist/models/{validation-error-loc-inner.js → favored-option-request.js} +1 -1
- package/dist/models/favored-option-response.d.ts +20 -0
- package/dist/models/favored-option-response.js +15 -0
- package/dist/models/httpvalidation-error.d.ts +2 -12
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +33 -0
- package/dist/models/impact-apiresponse.js +15 -0
- package/dist/models/impact-create.d.ts +37 -0
- package/dist/models/impact-create.js +15 -0
- package/dist/models/impact-update.d.ts +22 -0
- package/dist/models/impact-update.js +15 -0
- package/dist/models/index.d.ts +13 -1
- package/dist/models/index.js +13 -1
- package/dist/models/investment-create.d.ts +21 -0
- package/dist/models/investment-create.js +15 -0
- package/dist/models/investment-response.d.ts +26 -0
- package/dist/models/investment-response.js +15 -0
- package/dist/models/investment-update.d.ts +18 -0
- package/dist/models/investment-update.js +15 -0
- package/dist/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
- package/dist/models/location-inner.js +15 -0
- package/dist/models/measurement-type.d.ts +1 -6
- package/dist/models/measurement-type.js +1 -6
- package/dist/models/metric-costs-per-year-create.d.ts +1 -17
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -18
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -13
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +3 -28
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +3 -50
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -6
- package/dist/models/metric-type.js +1 -6
- package/dist/models/metric-update.d.ts +3 -35
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -10
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -30
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -13
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -9
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -14
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -8
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-create.d.ts +33 -0
- package/dist/models/option-create.js +15 -0
- package/dist/models/option-response.d.ts +32 -0
- package/dist/models/option-response.js +15 -0
- package/dist/models/option-update.d.ts +21 -0
- package/dist/models/option-update.js +15 -0
- package/dist/models/validation-error.d.ts +3 -33
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -10
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -30
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -13
- package/dist/models/value-framework-update.js +1 -1
- package/docs/DefaultApi.md +51 -0
- package/docs/EvolutionType.md +10 -0
- package/docs/FavoredOptionApi.md +119 -0
- package/docs/FavoredOptionRequest.md +21 -0
- package/docs/FavoredOptionResponse.md +21 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/ImpactAPIResponse.md +39 -0
- package/docs/ImpactApi.md +312 -0
- package/docs/ImpactCreate.md +29 -0
- package/docs/ImpactUpdate.md +29 -0
- package/docs/InvestmentApi.md +987 -0
- package/docs/InvestmentCreate.md +23 -0
- package/docs/InvestmentResponse.md +33 -0
- package/docs/InvestmentUpdate.md +23 -0
- package/docs/LocationInner.md +18 -0
- package/docs/MeasurementType.md +10 -0
- package/docs/MetricApi.md +299 -0
- package/docs/MetricCostsApi.md +66 -0
- package/docs/MetricCostsPerYearApi.md +307 -0
- package/docs/MetricCostsPerYearCreate.md +27 -0
- package/docs/MetricCostsPerYearResponse.md +31 -0
- package/docs/MetricCostsPerYearUpdate.md +23 -0
- package/docs/MetricCreate.md +33 -0
- package/docs/MetricResponse.md +43 -0
- package/docs/MetricType.md +12 -0
- package/docs/MetricUpdate.md +31 -0
- package/docs/ObjectiveApi.md +633 -0
- package/docs/ObjectiveCreate.md +23 -0
- package/docs/ObjectiveResponse.md +31 -0
- package/docs/ObjectiveUpdate.md +23 -0
- package/docs/ObjectiveWeightApi.md +298 -0
- package/docs/ObjectiveWeightCreate.md +25 -0
- package/docs/ObjectiveWeightResponse.md +27 -0
- package/docs/ObjectiveWeightUpdate.md +21 -0
- package/docs/ObjectiveWeightsApi.md +66 -0
- package/docs/OptionApi.md +602 -0
- package/docs/OptionCreate.md +29 -0
- package/docs/OptionResponse.md +39 -0
- package/docs/OptionUpdate.md +29 -0
- package/docs/ValidationError.md +28 -0
- package/docs/ValueFrameworkApi.md +1053 -0
- package/docs/ValueFrameworkCostsApi.md +128 -0
- package/docs/ValueFrameworkCreate.md +23 -0
- package/docs/ValueFrameworkResponse.md +31 -0
- package/docs/ValueFrameworkUpdate.md +23 -0
- package/docs/ValueFrameworkWeightsApi.md +66 -0
- package/index.ts +1 -1
- package/models/evolution-type.ts +26 -0
- package/models/favored-option-request.ts +26 -0
- package/models/favored-option-response.ts +26 -0
- package/models/httpvalidation-error.ts +2 -12
- package/models/impact-apiresponse.ts +43 -0
- package/models/impact-create.ts +47 -0
- package/models/impact-update.ts +32 -0
- package/models/index.ts +13 -1
- package/models/investment-create.ts +27 -0
- package/models/investment-response.ts +32 -0
- package/models/investment-update.ts +24 -0
- package/models/{validation-error-loc-inner.ts → location-inner.ts} +2 -7
- package/models/measurement-type.ts +1 -6
- package/models/metric-costs-per-year-create.ts +1 -17
- package/models/metric-costs-per-year-response.ts +1 -18
- package/models/metric-costs-per-year-update.ts +1 -13
- package/models/metric-create.ts +3 -28
- package/models/metric-response.ts +3 -50
- package/models/metric-type.ts +1 -6
- package/models/metric-update.ts +3 -35
- package/models/objective-create.ts +1 -10
- package/models/objective-response.ts +1 -30
- package/models/objective-update.ts +1 -13
- package/models/objective-weight-create.ts +1 -9
- package/models/objective-weight-response.ts +1 -14
- package/models/objective-weight-update.ts +1 -8
- package/models/option-create.ts +39 -0
- package/models/option-response.ts +38 -0
- package/models/option-update.ts +27 -0
- package/models/validation-error.ts +3 -33
- package/models/value-framework-create.ts +1 -10
- package/models/value-framework-response.ts +1 -30
- package/models/value-framework-update.ts +1 -13
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Asset Investment Planning
|
|
5
5
|
* API for Asset Investment Planning
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -18,41 +18,35 @@ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
|
18
18
|
import globalAxios from 'axios';
|
|
19
19
|
// Some imports not used depending on template conditions
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
22
|
// @ts-ignore
|
|
23
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
24
|
// @ts-ignore
|
|
25
|
-
import { MetricCostsPerYearCreate } from '../models';
|
|
25
|
+
import type { MetricCostsPerYearCreate } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import { MetricCostsPerYearResponse } from '../models';
|
|
27
|
+
import type { MetricCostsPerYearResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import { MetricCostsPerYearUpdate } from '../models';
|
|
29
|
+
import type { MetricCostsPerYearUpdate } from '../models';
|
|
30
30
|
/**
|
|
31
31
|
* MetricCostsPerYearApi - axios parameter creator
|
|
32
|
-
* @export
|
|
33
32
|
*/
|
|
34
33
|
export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
34
|
return {
|
|
36
35
|
/**
|
|
37
|
-
*
|
|
38
|
-
* @summary
|
|
39
|
-
* @param {string}
|
|
40
|
-
* @param {
|
|
41
|
-
* @param {number} year Year (1600-3000)
|
|
36
|
+
* Create a yearly cost override for a metric within this framework.
|
|
37
|
+
* @summary Create a yearly metric cost for this framework
|
|
38
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
39
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
42
40
|
* @param {*} [options] Override http request option.
|
|
43
41
|
* @throws {RequiredError}
|
|
44
42
|
*/
|
|
45
|
-
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('
|
|
48
|
-
// verify required parameter '
|
|
49
|
-
assertParamExists('
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
|
|
53
|
-
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
54
|
-
.replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
|
|
55
|
-
.replace(`{${"year"}}`, encodeURIComponent(String(year)));
|
|
43
|
+
createMetricCostForFramework: async (valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
45
|
+
assertParamExists('createMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
|
|
46
|
+
// verify required parameter 'metricCostsPerYearCreate' is not null or undefined
|
|
47
|
+
assertParamExists('createMetricCostForFramework', 'metricCostsPerYearCreate', metricCostsPerYearCreate)
|
|
48
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
|
|
49
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
56
50
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
51
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
52
|
let baseOptions;
|
|
@@ -60,7 +54,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
60
54
|
baseOptions = configuration.baseOptions;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
const localVarRequestOptions = { method: '
|
|
57
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
58
|
const localVarHeaderParameter = {} as any;
|
|
65
59
|
const localVarQueryParameter = {} as any;
|
|
66
60
|
|
|
@@ -68,11 +62,13 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
68
62
|
// oauth required
|
|
69
63
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
70
64
|
|
|
65
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
66
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
71
67
|
|
|
72
|
-
|
|
73
68
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
69
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
70
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
71
|
+
localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearCreate, localVarRequestOptions, configuration)
|
|
76
72
|
|
|
77
73
|
return {
|
|
78
74
|
url: toPathString(localVarUrlObj),
|
|
@@ -80,25 +76,25 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
80
76
|
};
|
|
81
77
|
},
|
|
82
78
|
/**
|
|
83
|
-
*
|
|
84
|
-
* @summary
|
|
79
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
80
|
+
* @summary Delete metric costs for this framework
|
|
85
81
|
* @param {string} metricId UUID of the metric
|
|
86
|
-
* @param {string} frameworkId UUID of the value framework
|
|
87
82
|
* @param {number} year Year (1600-3000)
|
|
83
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
88
84
|
* @param {*} [options] Override http request option.
|
|
89
85
|
* @throws {RequiredError}
|
|
90
86
|
*/
|
|
91
|
-
|
|
87
|
+
deleteMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
88
|
// verify required parameter 'metricId' is not null or undefined
|
|
93
|
-
assertParamExists('
|
|
94
|
-
// verify required parameter 'frameworkId' is not null or undefined
|
|
95
|
-
assertParamExists('getMetricCostByKeys', 'frameworkId', frameworkId)
|
|
89
|
+
assertParamExists('deleteMetricCostForFramework', 'metricId', metricId)
|
|
96
90
|
// verify required parameter 'year' is not null or undefined
|
|
97
|
-
assertParamExists('
|
|
98
|
-
|
|
91
|
+
assertParamExists('deleteMetricCostForFramework', 'year', year)
|
|
92
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
93
|
+
assertParamExists('deleteMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
|
|
94
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
99
95
|
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
100
|
-
.replace(`{${"
|
|
101
|
-
.replace(`{${"
|
|
96
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
97
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
102
98
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
99
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
100
|
let baseOptions;
|
|
@@ -106,7 +102,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
106
102
|
baseOptions = configuration.baseOptions;
|
|
107
103
|
}
|
|
108
104
|
|
|
109
|
-
const localVarRequestOptions = { method: '
|
|
105
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
110
106
|
const localVarHeaderParameter = {} as any;
|
|
111
107
|
const localVarQueryParameter = {} as any;
|
|
112
108
|
|
|
@@ -115,7 +111,6 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
115
111
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
116
112
|
|
|
117
113
|
|
|
118
|
-
|
|
119
114
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
120
115
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
116
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -126,15 +121,25 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
126
121
|
};
|
|
127
122
|
},
|
|
128
123
|
/**
|
|
129
|
-
* Retrieve a
|
|
130
|
-
* @summary
|
|
131
|
-
* @param {
|
|
132
|
-
* @param {number}
|
|
124
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
125
|
+
* @summary Get a yearly metric cost for this framework
|
|
126
|
+
* @param {string} metricId UUID of the metric
|
|
127
|
+
* @param {number} year Year (1600-3000)
|
|
128
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
133
129
|
* @param {*} [options] Override http request option.
|
|
134
130
|
* @throws {RequiredError}
|
|
135
131
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
132
|
+
getMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
133
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
134
|
+
assertParamExists('getMetricCostForFramework', 'metricId', metricId)
|
|
135
|
+
// verify required parameter 'year' is not null or undefined
|
|
136
|
+
assertParamExists('getMetricCostForFramework', 'year', year)
|
|
137
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
138
|
+
assertParamExists('getMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
|
|
139
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
140
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
141
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
142
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
138
143
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
139
144
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
140
145
|
let baseOptions;
|
|
@@ -150,16 +155,8 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
150
155
|
// oauth required
|
|
151
156
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
152
157
|
|
|
153
|
-
|
|
154
|
-
localVarQueryParameter['offset'] = offset;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (limit !== undefined) {
|
|
158
|
-
localVarQueryParameter['limit'] = limit;
|
|
159
|
-
}
|
|
160
|
-
|
|
158
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
161
159
|
|
|
162
|
-
|
|
163
160
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
161
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
162
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -170,28 +167,19 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
170
167
|
};
|
|
171
168
|
},
|
|
172
169
|
/**
|
|
173
|
-
*
|
|
174
|
-
* @summary
|
|
175
|
-
* @param {string}
|
|
176
|
-
* @param {
|
|
177
|
-
* @param {number}
|
|
178
|
-
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
170
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
171
|
+
* @summary List yearly metric costs for this framework
|
|
172
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
173
|
+
* @param {number} [offset] Number of records to skip
|
|
174
|
+
* @param {number} [limit] Max number of records to return
|
|
179
175
|
* @param {*} [options] Override http request option.
|
|
180
176
|
* @throws {RequiredError}
|
|
181
177
|
*/
|
|
182
|
-
|
|
183
|
-
// verify required parameter '
|
|
184
|
-
assertParamExists('
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
// verify required parameter 'year' is not null or undefined
|
|
188
|
-
assertParamExists('patchMetricCost', 'year', year)
|
|
189
|
-
// verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
|
|
190
|
-
assertParamExists('patchMetricCost', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate)
|
|
191
|
-
const localVarPath = `/metric_costs_per_year/{metric_id}/{framework_id}/{year}`
|
|
192
|
-
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
193
|
-
.replace(`{${"framework_id"}}`, encodeURIComponent(String(frameworkId)))
|
|
194
|
-
.replace(`{${"year"}}`, encodeURIComponent(String(year)));
|
|
178
|
+
getMetricCostsForFramework: async (valueFrameworkId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
179
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
180
|
+
assertParamExists('getMetricCostsForFramework', 'valueFrameworkId', valueFrameworkId)
|
|
181
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/`
|
|
182
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
195
183
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
184
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
185
|
let baseOptions;
|
|
@@ -199,7 +187,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
199
187
|
baseOptions = configuration.baseOptions;
|
|
200
188
|
}
|
|
201
189
|
|
|
202
|
-
const localVarRequestOptions = { method: '
|
|
190
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
203
191
|
const localVarHeaderParameter = {} as any;
|
|
204
192
|
const localVarQueryParameter = {} as any;
|
|
205
193
|
|
|
@@ -207,14 +195,19 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
207
195
|
// oauth required
|
|
208
196
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
209
197
|
|
|
198
|
+
if (offset !== undefined) {
|
|
199
|
+
localVarQueryParameter['offset'] = offset;
|
|
200
|
+
}
|
|
210
201
|
|
|
211
|
-
|
|
212
|
-
|
|
202
|
+
if (limit !== undefined) {
|
|
203
|
+
localVarQueryParameter['limit'] = limit;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
213
207
|
|
|
214
208
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
215
209
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
210
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
217
|
-
localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearUpdate, localVarRequestOptions, configuration)
|
|
218
211
|
|
|
219
212
|
return {
|
|
220
213
|
url: toPathString(localVarUrlObj),
|
|
@@ -222,16 +215,28 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
222
215
|
};
|
|
223
216
|
},
|
|
224
217
|
/**
|
|
225
|
-
*
|
|
226
|
-
* @summary
|
|
227
|
-
* @param {
|
|
218
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
219
|
+
* @summary Partially update metric costs for this framework
|
|
220
|
+
* @param {string} metricId UUID of the metric
|
|
221
|
+
* @param {number} year Year (1600-3000)
|
|
222
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
223
|
+
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
228
224
|
* @param {*} [options] Override http request option.
|
|
229
225
|
* @throws {RequiredError}
|
|
230
226
|
*/
|
|
231
|
-
|
|
232
|
-
// verify required parameter '
|
|
233
|
-
assertParamExists('
|
|
234
|
-
|
|
227
|
+
patchMetricCostForFramework: async (metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
228
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
229
|
+
assertParamExists('patchMetricCostForFramework', 'metricId', metricId)
|
|
230
|
+
// verify required parameter 'year' is not null or undefined
|
|
231
|
+
assertParamExists('patchMetricCostForFramework', 'year', year)
|
|
232
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
233
|
+
assertParamExists('patchMetricCostForFramework', 'valueFrameworkId', valueFrameworkId)
|
|
234
|
+
// verify required parameter 'metricCostsPerYearUpdate' is not null or undefined
|
|
235
|
+
assertParamExists('patchMetricCostForFramework', 'metricCostsPerYearUpdate', metricCostsPerYearUpdate)
|
|
236
|
+
const localVarPath = `/value_framework/{value_framework_id}/metric_costs_per_year/{metric_id}/{year}`
|
|
237
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
238
|
+
.replace(`{${"year"}}`, encodeURIComponent(String(year)))
|
|
239
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
235
240
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
236
241
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
237
242
|
let baseOptions;
|
|
@@ -239,7 +244,7 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
239
244
|
baseOptions = configuration.baseOptions;
|
|
240
245
|
}
|
|
241
246
|
|
|
242
|
-
const localVarRequestOptions = { method: '
|
|
247
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
243
248
|
const localVarHeaderParameter = {} as any;
|
|
244
249
|
const localVarQueryParameter = {} as any;
|
|
245
250
|
|
|
@@ -247,14 +252,13 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
247
252
|
// oauth required
|
|
248
253
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
249
254
|
|
|
250
|
-
|
|
251
|
-
|
|
252
255
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
256
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
253
257
|
|
|
254
258
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
255
259
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
256
260
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
257
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
261
|
+
localVarRequestOptions.data = serializeDataIfNeeded(metricCostsPerYearUpdate, localVarRequestOptions, configuration)
|
|
258
262
|
|
|
259
263
|
return {
|
|
260
264
|
url: toPathString(localVarUrlObj),
|
|
@@ -266,228 +270,224 @@ export const MetricCostsPerYearApiAxiosParamCreator = function (configuration?:
|
|
|
266
270
|
|
|
267
271
|
/**
|
|
268
272
|
* MetricCostsPerYearApi - functional programming interface
|
|
269
|
-
* @export
|
|
270
273
|
*/
|
|
271
274
|
export const MetricCostsPerYearApiFp = function(configuration?: Configuration) {
|
|
272
275
|
const localVarAxiosParamCreator = MetricCostsPerYearApiAxiosParamCreator(configuration)
|
|
273
276
|
return {
|
|
274
277
|
/**
|
|
275
|
-
*
|
|
276
|
-
* @summary
|
|
278
|
+
* Create a yearly cost override for a metric within this framework.
|
|
279
|
+
* @summary Create a yearly metric cost for this framework
|
|
280
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
281
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
async createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
|
|
286
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options);
|
|
287
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
288
|
+
const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.createMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
|
|
289
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
293
|
+
* @summary Delete metric costs for this framework
|
|
277
294
|
* @param {string} metricId UUID of the metric
|
|
278
|
-
* @param {string} frameworkId UUID of the value framework
|
|
279
295
|
* @param {number} year Year (1600-3000)
|
|
296
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
280
297
|
* @param {*} [options] Override http request option.
|
|
281
298
|
* @throws {RequiredError}
|
|
282
299
|
*/
|
|
283
|
-
async
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
285
|
-
const
|
|
286
|
-
const
|
|
287
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
300
|
+
async deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
301
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options);
|
|
302
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
303
|
+
const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.deleteMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
|
|
304
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
288
305
|
},
|
|
289
306
|
/**
|
|
290
|
-
* Retrieve cost data for a specific metric within
|
|
291
|
-
* @summary Get a yearly metric cost
|
|
307
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
308
|
+
* @summary Get a yearly metric cost for this framework
|
|
292
309
|
* @param {string} metricId UUID of the metric
|
|
293
|
-
* @param {string} frameworkId UUID of the value framework
|
|
294
310
|
* @param {number} year Year (1600-3000)
|
|
311
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
295
312
|
* @param {*} [options] Override http request option.
|
|
296
313
|
* @throws {RequiredError}
|
|
297
314
|
*/
|
|
298
|
-
async
|
|
299
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
300
|
-
const
|
|
301
|
-
const
|
|
302
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
315
|
+
async getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
|
|
316
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCostForFramework(metricId, year, valueFrameworkId, options);
|
|
317
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
318
|
+
const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
|
|
319
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
303
320
|
},
|
|
304
321
|
/**
|
|
305
|
-
* Retrieve a paginated list of all yearly metric
|
|
306
|
-
* @summary List yearly metric costs
|
|
322
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
323
|
+
* @summary List yearly metric costs for this framework
|
|
324
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
307
325
|
* @param {number} [offset] Number of records to skip
|
|
308
326
|
* @param {number} [limit] Max number of records to return
|
|
309
327
|
* @param {*} [options] Override http request option.
|
|
310
328
|
* @throws {RequiredError}
|
|
311
329
|
*/
|
|
312
|
-
async
|
|
313
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
314
|
-
const
|
|
315
|
-
const
|
|
316
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
330
|
+
async getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricCostsPerYearResponse>>> {
|
|
331
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricCostsForFramework(valueFrameworkId, offset, limit, options);
|
|
332
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
333
|
+
const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.getMetricCostsForFramework']?.[localVarOperationServerIndex]?.url;
|
|
334
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
317
335
|
},
|
|
318
336
|
/**
|
|
319
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
320
|
-
* @summary Partially update metric costs for
|
|
337
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
338
|
+
* @summary Partially update metric costs for this framework
|
|
321
339
|
* @param {string} metricId UUID of the metric
|
|
322
|
-
* @param {string} frameworkId UUID of the value framework
|
|
323
340
|
* @param {number} year Year (1600-3000)
|
|
341
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
324
342
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
325
343
|
* @param {*} [options] Override http request option.
|
|
326
344
|
* @throws {RequiredError}
|
|
327
345
|
*/
|
|
328
|
-
async
|
|
329
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
330
|
-
const
|
|
331
|
-
const
|
|
332
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
333
|
-
},
|
|
334
|
-
/**
|
|
335
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
336
|
-
* @summary Create a yearly metric cost
|
|
337
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
338
|
-
* @param {*} [options] Override http request option.
|
|
339
|
-
* @throws {RequiredError}
|
|
340
|
-
*/
|
|
341
|
-
async postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
|
|
342
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postMetricCost(metricCostsPerYearCreate, options);
|
|
343
|
-
const index = configuration?.serverIndex ?? 0;
|
|
344
|
-
const operationBasePath = operationServerMap['MetricCostsPerYearApi.postMetricCost']?.[index]?.url;
|
|
345
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
346
|
+
async patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>> {
|
|
347
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options);
|
|
348
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
349
|
+
const localVarOperationServerBasePath = operationServerMap['MetricCostsPerYearApi.patchMetricCostForFramework']?.[localVarOperationServerIndex]?.url;
|
|
350
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
346
351
|
},
|
|
347
352
|
}
|
|
348
353
|
};
|
|
349
354
|
|
|
350
355
|
/**
|
|
351
356
|
* MetricCostsPerYearApi - factory interface
|
|
352
|
-
* @export
|
|
353
357
|
*/
|
|
354
358
|
export const MetricCostsPerYearApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
355
359
|
const localVarFp = MetricCostsPerYearApiFp(configuration)
|
|
356
360
|
return {
|
|
357
361
|
/**
|
|
358
|
-
*
|
|
359
|
-
* @summary
|
|
362
|
+
* Create a yearly cost override for a metric within this framework.
|
|
363
|
+
* @summary Create a yearly metric cost for this framework
|
|
364
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
365
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
|
|
370
|
+
return localVarFp.createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
|
|
371
|
+
},
|
|
372
|
+
/**
|
|
373
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
374
|
+
* @summary Delete metric costs for this framework
|
|
360
375
|
* @param {string} metricId UUID of the metric
|
|
361
|
-
* @param {string} frameworkId UUID of the value framework
|
|
362
376
|
* @param {number} year Year (1600-3000)
|
|
377
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
363
378
|
* @param {*} [options] Override http request option.
|
|
364
379
|
* @throws {RequiredError}
|
|
365
380
|
*/
|
|
366
|
-
|
|
367
|
-
return localVarFp.
|
|
381
|
+
deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
382
|
+
return localVarFp.deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
368
383
|
},
|
|
369
384
|
/**
|
|
370
|
-
* Retrieve cost data for a specific metric within
|
|
371
|
-
* @summary Get a yearly metric cost
|
|
385
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
386
|
+
* @summary Get a yearly metric cost for this framework
|
|
372
387
|
* @param {string} metricId UUID of the metric
|
|
373
|
-
* @param {string} frameworkId UUID of the value framework
|
|
374
388
|
* @param {number} year Year (1600-3000)
|
|
389
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
375
390
|
* @param {*} [options] Override http request option.
|
|
376
391
|
* @throws {RequiredError}
|
|
377
392
|
*/
|
|
378
|
-
|
|
379
|
-
return localVarFp.
|
|
393
|
+
getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
|
|
394
|
+
return localVarFp.getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
380
395
|
},
|
|
381
396
|
/**
|
|
382
|
-
* Retrieve a paginated list of all yearly metric
|
|
383
|
-
* @summary List yearly metric costs
|
|
397
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
398
|
+
* @summary List yearly metric costs for this framework
|
|
399
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
384
400
|
* @param {number} [offset] Number of records to skip
|
|
385
401
|
* @param {number} [limit] Max number of records to return
|
|
386
402
|
* @param {*} [options] Override http request option.
|
|
387
403
|
* @throws {RequiredError}
|
|
388
404
|
*/
|
|
389
|
-
|
|
390
|
-
return localVarFp.
|
|
405
|
+
getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricCostsPerYearResponse>> {
|
|
406
|
+
return localVarFp.getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(axios, basePath));
|
|
391
407
|
},
|
|
392
408
|
/**
|
|
393
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
394
|
-
* @summary Partially update metric costs for
|
|
409
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
410
|
+
* @summary Partially update metric costs for this framework
|
|
395
411
|
* @param {string} metricId UUID of the metric
|
|
396
|
-
* @param {string} frameworkId UUID of the value framework
|
|
397
412
|
* @param {number} year Year (1600-3000)
|
|
413
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
398
414
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
399
415
|
* @param {*} [options] Override http request option.
|
|
400
416
|
* @throws {RequiredError}
|
|
401
417
|
*/
|
|
402
|
-
|
|
403
|
-
return localVarFp.
|
|
404
|
-
},
|
|
405
|
-
/**
|
|
406
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
407
|
-
* @summary Create a yearly metric cost
|
|
408
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
409
|
-
* @param {*} [options] Override http request option.
|
|
410
|
-
* @throws {RequiredError}
|
|
411
|
-
*/
|
|
412
|
-
postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: any): AxiosPromise<MetricCostsPerYearResponse> {
|
|
413
|
-
return localVarFp.postMetricCost(metricCostsPerYearCreate, options).then((request) => request(axios, basePath));
|
|
418
|
+
patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse> {
|
|
419
|
+
return localVarFp.patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(axios, basePath));
|
|
414
420
|
},
|
|
415
421
|
};
|
|
416
422
|
};
|
|
417
423
|
|
|
418
424
|
/**
|
|
419
425
|
* MetricCostsPerYearApi - object-oriented interface
|
|
420
|
-
* @export
|
|
421
|
-
* @class MetricCostsPerYearApi
|
|
422
|
-
* @extends {BaseAPI}
|
|
423
426
|
*/
|
|
424
427
|
export class MetricCostsPerYearApi extends BaseAPI {
|
|
425
428
|
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary
|
|
429
|
+
* Create a yearly cost override for a metric within this framework.
|
|
430
|
+
* @summary Create a yearly metric cost for this framework
|
|
431
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
432
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
433
|
+
* @param {*} [options] Override http request option.
|
|
434
|
+
* @throws {RequiredError}
|
|
435
|
+
*/
|
|
436
|
+
public createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig) {
|
|
437
|
+
return MetricCostsPerYearApiFp(this.configuration).createMetricCostForFramework(valueFrameworkId, metricCostsPerYearCreate, options).then((request) => request(this.axios, this.basePath));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
442
|
+
* @summary Delete metric costs for this framework
|
|
428
443
|
* @param {string} metricId UUID of the metric
|
|
429
|
-
* @param {string} frameworkId UUID of the value framework
|
|
430
444
|
* @param {number} year Year (1600-3000)
|
|
445
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
431
446
|
* @param {*} [options] Override http request option.
|
|
432
447
|
* @throws {RequiredError}
|
|
433
|
-
* @memberof MetricCostsPerYearApi
|
|
434
448
|
*/
|
|
435
|
-
public
|
|
436
|
-
return MetricCostsPerYearApiFp(this.configuration).
|
|
449
|
+
public deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
450
|
+
return MetricCostsPerYearApiFp(this.configuration).deleteMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
437
451
|
}
|
|
438
452
|
|
|
439
453
|
/**
|
|
440
|
-
* Retrieve cost data for a specific metric within
|
|
441
|
-
* @summary Get a yearly metric cost
|
|
454
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
455
|
+
* @summary Get a yearly metric cost for this framework
|
|
442
456
|
* @param {string} metricId UUID of the metric
|
|
443
|
-
* @param {string} frameworkId UUID of the value framework
|
|
444
457
|
* @param {number} year Year (1600-3000)
|
|
458
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
445
459
|
* @param {*} [options] Override http request option.
|
|
446
460
|
* @throws {RequiredError}
|
|
447
|
-
* @memberof MetricCostsPerYearApi
|
|
448
461
|
*/
|
|
449
|
-
public
|
|
450
|
-
return MetricCostsPerYearApiFp(this.configuration).
|
|
462
|
+
public getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
463
|
+
return MetricCostsPerYearApiFp(this.configuration).getMetricCostForFramework(metricId, year, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
451
464
|
}
|
|
452
465
|
|
|
453
466
|
/**
|
|
454
|
-
* Retrieve a paginated list of all yearly metric
|
|
455
|
-
* @summary List yearly metric costs
|
|
467
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
468
|
+
* @summary List yearly metric costs for this framework
|
|
469
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
456
470
|
* @param {number} [offset] Number of records to skip
|
|
457
471
|
* @param {number} [limit] Max number of records to return
|
|
458
472
|
* @param {*} [options] Override http request option.
|
|
459
473
|
* @throws {RequiredError}
|
|
460
|
-
* @memberof MetricCostsPerYearApi
|
|
461
474
|
*/
|
|
462
|
-
public
|
|
463
|
-
return MetricCostsPerYearApiFp(this.configuration).
|
|
475
|
+
public getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
476
|
+
return MetricCostsPerYearApiFp(this.configuration).getMetricCostsForFramework(valueFrameworkId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
464
477
|
}
|
|
465
478
|
|
|
466
479
|
/**
|
|
467
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
468
|
-
* @summary Partially update metric costs for
|
|
480
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
481
|
+
* @summary Partially update metric costs for this framework
|
|
469
482
|
* @param {string} metricId UUID of the metric
|
|
470
|
-
* @param {string} frameworkId UUID of the value framework
|
|
471
483
|
* @param {number} year Year (1600-3000)
|
|
484
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
472
485
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
473
486
|
* @param {*} [options] Override http request option.
|
|
474
487
|
* @throws {RequiredError}
|
|
475
|
-
* @memberof MetricCostsPerYearApi
|
|
476
|
-
*/
|
|
477
|
-
public patchMetricCost(metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig) {
|
|
478
|
-
return MetricCostsPerYearApiFp(this.configuration).patchMetricCost(metricId, frameworkId, year, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
483
|
-
* @summary Create a yearly metric cost
|
|
484
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
485
|
-
* @param {*} [options] Override http request option.
|
|
486
|
-
* @throws {RequiredError}
|
|
487
|
-
* @memberof MetricCostsPerYearApi
|
|
488
488
|
*/
|
|
489
|
-
public
|
|
490
|
-
return MetricCostsPerYearApiFp(this.configuration).
|
|
489
|
+
public patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig) {
|
|
490
|
+
return MetricCostsPerYearApiFp(this.configuration).patchMetricCostForFramework(metricId, year, valueFrameworkId, metricCostsPerYearUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
|