@cosmotech/aip-client 0.2.0-dev2 → 0.2.0-dev3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -4
- package/api/default-api.ts +8 -15
- package/api/impact-api.ts +507 -0
- package/api/investment-api.ts +1308 -0
- package/api/metric-api.ts +185 -164
- package/api/metric-costs-api.ts +144 -0
- package/api/metric-costs-per-year-api.ts +200 -200
- package/api/objective-api.ts +538 -44
- package/api/objective-weight-api.ts +190 -190
- package/api/objective-weights-api.ts +144 -0
- package/api/option-api.ts +925 -0
- package/api/value-framework-api.ts +1223 -109
- package/api/value-framework-costs-api.ts +239 -0
- package/api/value-framework-weights-api.ts +144 -0
- package/api.ts +8 -1
- package/base.ts +1 -25
- package/common.ts +20 -43
- package/configuration.ts +31 -20
- package/dist/api/default-api.d.ts +3 -10
- package/dist/api/default-api.js +7 -13
- package/dist/api/impact-api.d.ts +245 -0
- package/dist/api/impact-api.js +493 -0
- package/dist/api/investment-api.d.ts +607 -0
- package/dist/api/investment-api.js +1248 -0
- package/dist/api/metric-api.d.ts +97 -88
- package/dist/api/metric-api.js +185 -157
- package/dist/api/metric-costs-api.d.ts +75 -0
- package/dist/api/metric-costs-api.js +146 -0
- package/dist/api/metric-costs-per-year-api.d.ts +105 -108
- package/dist/api/metric-costs-per-year-api.js +199 -192
- package/dist/api/objective-api.d.ts +242 -21
- package/dist/api/objective-api.js +508 -37
- package/dist/api/objective-weight-api.d.ts +105 -108
- package/dist/api/objective-weight-api.js +189 -182
- package/dist/api/objective-weights-api.d.ts +75 -0
- package/dist/api/objective-weights-api.js +146 -0
- package/dist/api/option-api.d.ts +436 -0
- package/dist/api/option-api.js +888 -0
- package/dist/api/value-framework-api.d.ts +528 -21
- package/dist/api/value-framework-api.js +1138 -78
- package/dist/api/value-framework-costs-api.d.ts +119 -0
- package/dist/api/value-framework-costs-api.js +236 -0
- package/dist/api/value-framework-weights-api.d.ts +75 -0
- package/dist/api/value-framework-weights-api.js +146 -0
- package/dist/api.d.ts +8 -1
- package/dist/api.js +8 -1
- package/dist/base.d.ts +1 -25
- package/dist/base.js +1 -20
- package/dist/common.d.ts +6 -37
- package/dist/common.js +17 -39
- package/dist/configuration.d.ts +25 -18
- package/dist/configuration.js +4 -3
- package/dist/esm/api/default-api.d.ts +3 -10
- package/dist/esm/api/default-api.js +7 -13
- package/dist/esm/api/impact-api.d.ts +245 -0
- package/dist/esm/api/impact-api.js +486 -0
- package/dist/esm/api/investment-api.d.ts +607 -0
- package/dist/esm/api/investment-api.js +1241 -0
- package/dist/esm/api/metric-api.d.ts +97 -88
- package/dist/esm/api/metric-api.js +185 -157
- package/dist/esm/api/metric-costs-api.d.ts +75 -0
- package/dist/esm/api/metric-costs-api.js +139 -0
- package/dist/esm/api/metric-costs-per-year-api.d.ts +105 -108
- package/dist/esm/api/metric-costs-per-year-api.js +199 -192
- package/dist/esm/api/objective-api.d.ts +242 -21
- package/dist/esm/api/objective-api.js +508 -37
- package/dist/esm/api/objective-weight-api.d.ts +105 -108
- package/dist/esm/api/objective-weight-api.js +189 -182
- package/dist/esm/api/objective-weights-api.d.ts +75 -0
- package/dist/esm/api/objective-weights-api.js +139 -0
- package/dist/esm/api/option-api.d.ts +436 -0
- package/dist/esm/api/option-api.js +881 -0
- package/dist/esm/api/value-framework-api.d.ts +528 -21
- package/dist/esm/api/value-framework-api.js +1137 -77
- package/dist/esm/api/value-framework-costs-api.d.ts +119 -0
- package/dist/esm/api/value-framework-costs-api.js +229 -0
- package/dist/esm/api/value-framework-weights-api.d.ts +75 -0
- package/dist/esm/api/value-framework-weights-api.js +139 -0
- package/dist/esm/api.d.ts +8 -1
- package/dist/esm/api.js +8 -1
- package/dist/esm/base.d.ts +1 -25
- package/dist/esm/base.js +1 -20
- package/dist/esm/common.d.ts +6 -37
- package/dist/esm/common.js +15 -38
- package/dist/esm/configuration.d.ts +25 -18
- package/dist/esm/configuration.js +4 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +16 -0
- package/dist/esm/models/evolution-type.js +17 -0
- package/dist/esm/models/httpvalidation-error.d.ts +2 -12
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +33 -0
- package/dist/esm/models/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
- package/dist/esm/models/impact-create.d.ts +37 -0
- package/dist/esm/models/impact-create.js +14 -0
- package/dist/esm/models/impact-update.d.ts +22 -0
- package/dist/esm/models/impact-update.js +14 -0
- package/dist/esm/models/index.d.ts +11 -1
- package/dist/esm/models/index.js +11 -1
- package/dist/esm/models/investment-create.d.ts +21 -0
- package/dist/esm/models/investment-create.js +14 -0
- package/dist/esm/models/investment-response.d.ts +25 -0
- package/dist/esm/models/investment-response.js +14 -0
- package/dist/esm/models/investment-update.d.ts +18 -0
- package/dist/esm/models/investment-update.js +14 -0
- package/dist/esm/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
- package/dist/esm/models/location-inner.js +14 -0
- package/dist/esm/models/measurement-type.d.ts +1 -6
- package/dist/esm/models/measurement-type.js +1 -6
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -17
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -18
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -13
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +3 -28
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +3 -50
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -6
- package/dist/esm/models/metric-type.js +1 -6
- package/dist/esm/models/metric-update.d.ts +3 -35
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -10
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -30
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -13
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -9
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -14
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -8
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-create.d.ts +33 -0
- package/dist/esm/models/option-create.js +14 -0
- package/dist/esm/models/option-response.d.ts +31 -0
- package/dist/esm/models/option-response.js +14 -0
- package/dist/esm/models/option-update.d.ts +19 -0
- package/dist/esm/models/option-update.js +14 -0
- package/dist/esm/models/validation-error.d.ts +3 -33
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -10
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -30
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -13
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/evolution-type.d.ts +16 -0
- package/dist/models/evolution-type.js +20 -0
- package/dist/models/httpvalidation-error.d.ts +2 -12
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +33 -0
- package/dist/models/{validation-error-loc-inner.js → impact-apiresponse.js} +1 -1
- package/dist/models/impact-create.d.ts +37 -0
- package/dist/models/impact-create.js +15 -0
- package/dist/models/impact-update.d.ts +22 -0
- package/dist/models/impact-update.js +15 -0
- package/dist/models/index.d.ts +11 -1
- package/dist/models/index.js +11 -1
- package/dist/models/investment-create.d.ts +21 -0
- package/dist/models/investment-create.js +15 -0
- package/dist/models/investment-response.d.ts +25 -0
- package/dist/models/investment-response.js +15 -0
- package/dist/models/investment-update.d.ts +18 -0
- package/dist/models/investment-update.js +15 -0
- package/dist/models/{validation-error-loc-inner.d.ts → location-inner.d.ts} +2 -7
- package/dist/models/location-inner.js +15 -0
- package/dist/models/measurement-type.d.ts +1 -6
- package/dist/models/measurement-type.js +1 -6
- package/dist/models/metric-costs-per-year-create.d.ts +1 -17
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -18
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -13
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +3 -28
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +3 -50
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -6
- package/dist/models/metric-type.js +1 -6
- package/dist/models/metric-update.d.ts +3 -35
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -10
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -30
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -13
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -9
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -14
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -8
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-create.d.ts +33 -0
- package/dist/models/option-create.js +15 -0
- package/dist/models/option-response.d.ts +31 -0
- package/dist/models/option-response.js +15 -0
- package/dist/models/option-update.d.ts +19 -0
- package/dist/models/option-update.js +15 -0
- package/dist/models/validation-error.d.ts +3 -33
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -10
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -30
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -13
- package/dist/models/value-framework-update.js +1 -1
- package/docs/DefaultApi.md +51 -0
- package/docs/EvolutionType.md +10 -0
- package/docs/HTTPValidationError.md +20 -0
- package/docs/ImpactAPIResponse.md +39 -0
- package/docs/ImpactApi.md +312 -0
- package/docs/ImpactCreate.md +29 -0
- package/docs/ImpactUpdate.md +29 -0
- package/docs/InvestmentApi.md +875 -0
- package/docs/InvestmentCreate.md +23 -0
- package/docs/InvestmentResponse.md +31 -0
- package/docs/InvestmentUpdate.md +23 -0
- package/docs/LocationInner.md +18 -0
- package/docs/MeasurementType.md +10 -0
- package/docs/MetricApi.md +299 -0
- package/docs/MetricCostsApi.md +66 -0
- package/docs/MetricCostsPerYearApi.md +307 -0
- package/docs/MetricCostsPerYearCreate.md +27 -0
- package/docs/MetricCostsPerYearResponse.md +31 -0
- package/docs/MetricCostsPerYearUpdate.md +23 -0
- package/docs/MetricCreate.md +33 -0
- package/docs/MetricResponse.md +43 -0
- package/docs/MetricType.md +12 -0
- package/docs/MetricUpdate.md +31 -0
- package/docs/ObjectiveApi.md +633 -0
- package/docs/ObjectiveCreate.md +23 -0
- package/docs/ObjectiveResponse.md +31 -0
- package/docs/ObjectiveUpdate.md +23 -0
- package/docs/ObjectiveWeightApi.md +298 -0
- package/docs/ObjectiveWeightCreate.md +25 -0
- package/docs/ObjectiveWeightResponse.md +27 -0
- package/docs/ObjectiveWeightUpdate.md +21 -0
- package/docs/ObjectiveWeightsApi.md +66 -0
- package/docs/OptionApi.md +602 -0
- package/docs/OptionCreate.md +29 -0
- package/docs/OptionResponse.md +37 -0
- package/docs/OptionUpdate.md +25 -0
- package/docs/ValidationError.md +28 -0
- package/docs/ValueFrameworkApi.md +1053 -0
- package/docs/ValueFrameworkCostsApi.md +128 -0
- package/docs/ValueFrameworkCreate.md +23 -0
- package/docs/ValueFrameworkResponse.md +31 -0
- package/docs/ValueFrameworkUpdate.md +23 -0
- package/docs/ValueFrameworkWeightsApi.md +66 -0
- package/index.ts +1 -1
- package/models/evolution-type.ts +26 -0
- package/models/httpvalidation-error.ts +2 -12
- package/models/impact-apiresponse.ts +43 -0
- package/models/impact-create.ts +47 -0
- package/models/impact-update.ts +32 -0
- package/models/index.ts +11 -1
- package/models/investment-create.ts +27 -0
- package/models/investment-response.ts +31 -0
- package/models/investment-update.ts +24 -0
- package/models/{validation-error-loc-inner.ts → location-inner.ts} +2 -7
- package/models/measurement-type.ts +1 -6
- package/models/metric-costs-per-year-create.ts +1 -17
- package/models/metric-costs-per-year-response.ts +1 -18
- package/models/metric-costs-per-year-update.ts +1 -13
- package/models/metric-create.ts +3 -28
- package/models/metric-response.ts +3 -50
- package/models/metric-type.ts +1 -6
- package/models/metric-update.ts +3 -35
- package/models/objective-create.ts +1 -10
- package/models/objective-response.ts +1 -30
- package/models/objective-update.ts +1 -13
- package/models/objective-weight-create.ts +1 -9
- package/models/objective-weight-response.ts +1 -14
- package/models/objective-weight-update.ts +1 -8
- package/models/option-create.ts +39 -0
- package/models/option-response.ts +37 -0
- package/models/option-update.ts +25 -0
- package/models/validation-error.ts +3 -33
- package/models/value-framework-create.ts +1 -10
- package/models/value-framework-response.ts +1 -30
- package/models/value-framework-update.ts +1 -13
- package/package.json +4 -4
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Configuration } from '../configuration';
|
|
13
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { MetricCostsPerYearResponse } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* MetricCostsApi - axios parameter creator
|
|
18
|
+
*/
|
|
19
|
+
export declare const MetricCostsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
22
|
+
* @summary List all metric costs for a metric
|
|
23
|
+
* @param {string} metricId UUID of the metric
|
|
24
|
+
* @param {number} [offset] Number of records to skip
|
|
25
|
+
* @param {number} [limit] Max number of records to return
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
getCostsForMetric: (metricId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* MetricCostsApi - functional programming interface
|
|
33
|
+
*/
|
|
34
|
+
export declare const MetricCostsApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
37
|
+
* @summary List all metric costs for a metric
|
|
38
|
+
* @param {string} metricId UUID of the metric
|
|
39
|
+
* @param {number} [offset] Number of records to skip
|
|
40
|
+
* @param {number} [limit] Max number of records to return
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
getCostsForMetric(metricId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricCostsPerYearResponse>>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* MetricCostsApi - factory interface
|
|
48
|
+
*/
|
|
49
|
+
export declare const MetricCostsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
52
|
+
* @summary List all metric costs for a metric
|
|
53
|
+
* @param {string} metricId UUID of the metric
|
|
54
|
+
* @param {number} [offset] Number of records to skip
|
|
55
|
+
* @param {number} [limit] Max number of records to return
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getCostsForMetric(metricId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricCostsPerYearResponse>>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* MetricCostsApi - object-oriented interface
|
|
63
|
+
*/
|
|
64
|
+
export declare class MetricCostsApi extends BaseAPI {
|
|
65
|
+
/**
|
|
66
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
67
|
+
* @summary List all metric costs for a metric
|
|
68
|
+
* @param {string} metricId UUID of the metric
|
|
69
|
+
* @param {number} [offset] Number of records to skip
|
|
70
|
+
* @param {number} [limit] Max number of records to return
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
getCostsForMetric(metricId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse[], any, {}>>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Asset Investment Planning
|
|
5
|
+
* API for Asset Investment Planning
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* MetricCostsApi - axios parameter creator
|
|
31
|
+
*/
|
|
32
|
+
export const MetricCostsApiAxiosParamCreator = function (configuration) {
|
|
33
|
+
return {
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
36
|
+
* @summary List all metric costs for a metric
|
|
37
|
+
* @param {string} metricId UUID of the metric
|
|
38
|
+
* @param {number} [offset] Number of records to skip
|
|
39
|
+
* @param {number} [limit] Max number of records to return
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
getCostsForMetric: (metricId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [metricId_1, offset_1, limit_1, ...args_1], void 0, function* (metricId, offset, limit, options = {}) {
|
|
44
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
45
|
+
assertParamExists('getCostsForMetric', 'metricId', metricId);
|
|
46
|
+
const localVarPath = `/metric/{metric_id}/costs/`
|
|
47
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)));
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
58
|
+
// oauth required
|
|
59
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
60
|
+
if (offset !== undefined) {
|
|
61
|
+
localVarQueryParameter['offset'] = offset;
|
|
62
|
+
}
|
|
63
|
+
if (limit !== undefined) {
|
|
64
|
+
localVarQueryParameter['limit'] = limit;
|
|
65
|
+
}
|
|
66
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
67
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
69
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
70
|
+
return {
|
|
71
|
+
url: toPathString(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
}),
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* MetricCostsApi - functional programming interface
|
|
79
|
+
*/
|
|
80
|
+
export const MetricCostsApiFp = function (configuration) {
|
|
81
|
+
const localVarAxiosParamCreator = MetricCostsApiAxiosParamCreator(configuration);
|
|
82
|
+
return {
|
|
83
|
+
/**
|
|
84
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
85
|
+
* @summary List all metric costs for a metric
|
|
86
|
+
* @param {string} metricId UUID of the metric
|
|
87
|
+
* @param {number} [offset] Number of records to skip
|
|
88
|
+
* @param {number} [limit] Max number of records to return
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
getCostsForMetric(metricId, offset, limit, options) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCostsForMetric(metricId, offset, limit, options);
|
|
96
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
97
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MetricCostsApi.getCostsForMetric']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
98
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* MetricCostsApi - factory interface
|
|
105
|
+
*/
|
|
106
|
+
export const MetricCostsApiFactory = function (configuration, basePath, axios) {
|
|
107
|
+
const localVarFp = MetricCostsApiFp(configuration);
|
|
108
|
+
return {
|
|
109
|
+
/**
|
|
110
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
111
|
+
* @summary List all metric costs for a metric
|
|
112
|
+
* @param {string} metricId UUID of the metric
|
|
113
|
+
* @param {number} [offset] Number of records to skip
|
|
114
|
+
* @param {number} [limit] Max number of records to return
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
getCostsForMetric(metricId, offset, limit, options) {
|
|
119
|
+
return localVarFp.getCostsForMetric(metricId, offset, limit, options).then((request) => request(axios, basePath));
|
|
120
|
+
},
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* MetricCostsApi - object-oriented interface
|
|
125
|
+
*/
|
|
126
|
+
export class MetricCostsApi extends BaseAPI {
|
|
127
|
+
/**
|
|
128
|
+
* Retrieve a paginated list of all metric costs for a specific metric across all frameworks.
|
|
129
|
+
* @summary List all metric costs for a metric
|
|
130
|
+
* @param {string} metricId UUID of the metric
|
|
131
|
+
* @param {number} [offset] Number of records to skip
|
|
132
|
+
* @param {number} [limit] Max number of records to return
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
getCostsForMetric(metricId, offset, limit, options) {
|
|
137
|
+
return MetricCostsApiFp(this.configuration).getCostsForMetric(metricId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,230 +11,227 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
-
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { MetricCostsPerYearCreate } from '../models';
|
|
16
|
-
import { MetricCostsPerYearResponse } from '../models';
|
|
17
|
-
import { MetricCostsPerYearUpdate } from '../models';
|
|
14
|
+
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import type { MetricCostsPerYearCreate } from '../models';
|
|
16
|
+
import type { MetricCostsPerYearResponse } from '../models';
|
|
17
|
+
import type { MetricCostsPerYearUpdate } from '../models';
|
|
18
18
|
/**
|
|
19
19
|
* MetricCostsPerYearApi - axios parameter creator
|
|
20
|
-
* @export
|
|
21
20
|
*/
|
|
22
21
|
export declare const MetricCostsPerYearApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
22
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @summary
|
|
23
|
+
* Create a yearly cost override for a metric within this framework.
|
|
24
|
+
* @summary Create a yearly metric cost for this framework
|
|
25
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
26
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
createMetricCostForFramework: (valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
33
|
+
* @summary Delete metric costs for this framework
|
|
26
34
|
* @param {string} metricId UUID of the metric
|
|
27
|
-
* @param {string} frameworkId UUID of the value framework
|
|
28
35
|
* @param {number} year Year (1600-3000)
|
|
36
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
29
37
|
* @param {*} [options] Override http request option.
|
|
30
38
|
* @throws {RequiredError}
|
|
31
39
|
*/
|
|
32
|
-
|
|
40
|
+
deleteMetricCostForFramework: (metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
41
|
/**
|
|
34
|
-
* Retrieve cost data for a specific metric within
|
|
35
|
-
* @summary Get a yearly metric cost
|
|
42
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
43
|
+
* @summary Get a yearly metric cost for this framework
|
|
36
44
|
* @param {string} metricId UUID of the metric
|
|
37
|
-
* @param {string} frameworkId UUID of the value framework
|
|
38
45
|
* @param {number} year Year (1600-3000)
|
|
46
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
39
47
|
* @param {*} [options] Override http request option.
|
|
40
48
|
* @throws {RequiredError}
|
|
41
49
|
*/
|
|
42
|
-
|
|
50
|
+
getMetricCostForFramework: (metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
43
51
|
/**
|
|
44
|
-
* Retrieve a paginated list of all yearly metric
|
|
45
|
-
* @summary List yearly metric costs
|
|
52
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
53
|
+
* @summary List yearly metric costs for this framework
|
|
54
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
46
55
|
* @param {number} [offset] Number of records to skip
|
|
47
56
|
* @param {number} [limit] Max number of records to return
|
|
48
57
|
* @param {*} [options] Override http request option.
|
|
49
58
|
* @throws {RequiredError}
|
|
50
59
|
*/
|
|
51
|
-
|
|
60
|
+
getMetricCostsForFramework: (valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
52
61
|
/**
|
|
53
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
54
|
-
* @summary Partially update metric costs for
|
|
62
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
63
|
+
* @summary Partially update metric costs for this framework
|
|
55
64
|
* @param {string} metricId UUID of the metric
|
|
56
|
-
* @param {string} frameworkId UUID of the value framework
|
|
57
65
|
* @param {number} year Year (1600-3000)
|
|
66
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
58
67
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
59
68
|
* @param {*} [options] Override http request option.
|
|
60
69
|
* @throws {RequiredError}
|
|
61
70
|
*/
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
65
|
-
* @summary Create a yearly metric cost
|
|
66
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
67
|
-
* @param {*} [options] Override http request option.
|
|
68
|
-
* @throws {RequiredError}
|
|
69
|
-
*/
|
|
70
|
-
postMetricCost: (metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
+
patchMetricCostForFramework: (metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
72
|
};
|
|
72
73
|
/**
|
|
73
74
|
* MetricCostsPerYearApi - functional programming interface
|
|
74
|
-
* @export
|
|
75
75
|
*/
|
|
76
76
|
export declare const MetricCostsPerYearApiFp: (configuration?: Configuration) => {
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
|
-
* @summary
|
|
78
|
+
* Create a yearly cost override for a metric within this framework.
|
|
79
|
+
* @summary Create a yearly metric cost for this framework
|
|
80
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
81
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>>;
|
|
86
|
+
/**
|
|
87
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
88
|
+
* @summary Delete metric costs for this framework
|
|
80
89
|
* @param {string} metricId UUID of the metric
|
|
81
|
-
* @param {string} frameworkId UUID of the value framework
|
|
82
90
|
* @param {number} year Year (1600-3000)
|
|
91
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
83
92
|
* @param {*} [options] Override http request option.
|
|
84
93
|
* @throws {RequiredError}
|
|
85
94
|
*/
|
|
86
|
-
|
|
95
|
+
deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
87
96
|
/**
|
|
88
|
-
* Retrieve cost data for a specific metric within
|
|
89
|
-
* @summary Get a yearly metric cost
|
|
97
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
98
|
+
* @summary Get a yearly metric cost for this framework
|
|
90
99
|
* @param {string} metricId UUID of the metric
|
|
91
|
-
* @param {string} frameworkId UUID of the value framework
|
|
92
100
|
* @param {number} year Year (1600-3000)
|
|
101
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
93
102
|
* @param {*} [options] Override http request option.
|
|
94
103
|
* @throws {RequiredError}
|
|
95
104
|
*/
|
|
96
|
-
|
|
105
|
+
getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>>;
|
|
97
106
|
/**
|
|
98
|
-
* Retrieve a paginated list of all yearly metric
|
|
99
|
-
* @summary List yearly metric costs
|
|
107
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
108
|
+
* @summary List yearly metric costs for this framework
|
|
109
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
100
110
|
* @param {number} [offset] Number of records to skip
|
|
101
111
|
* @param {number} [limit] Max number of records to return
|
|
102
112
|
* @param {*} [options] Override http request option.
|
|
103
113
|
* @throws {RequiredError}
|
|
104
114
|
*/
|
|
105
|
-
|
|
115
|
+
getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricCostsPerYearResponse>>>;
|
|
106
116
|
/**
|
|
107
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
108
|
-
* @summary Partially update metric costs for
|
|
117
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
118
|
+
* @summary Partially update metric costs for this framework
|
|
109
119
|
* @param {string} metricId UUID of the metric
|
|
110
|
-
* @param {string} frameworkId UUID of the value framework
|
|
111
120
|
* @param {number} year Year (1600-3000)
|
|
121
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
112
122
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
113
123
|
* @param {*} [options] Override http request option.
|
|
114
124
|
* @throws {RequiredError}
|
|
115
125
|
*/
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
119
|
-
* @summary Create a yearly metric cost
|
|
120
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
121
|
-
* @param {*} [options] Override http request option.
|
|
122
|
-
* @throws {RequiredError}
|
|
123
|
-
*/
|
|
124
|
-
postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>>;
|
|
126
|
+
patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricCostsPerYearResponse>>;
|
|
125
127
|
};
|
|
126
128
|
/**
|
|
127
129
|
* MetricCostsPerYearApi - factory interface
|
|
128
|
-
* @export
|
|
129
130
|
*/
|
|
130
131
|
export declare const MetricCostsPerYearApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
131
132
|
/**
|
|
132
|
-
*
|
|
133
|
-
* @summary
|
|
133
|
+
* Create a yearly cost override for a metric within this framework.
|
|
134
|
+
* @summary Create a yearly metric cost for this framework
|
|
135
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
136
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse>;
|
|
141
|
+
/**
|
|
142
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
143
|
+
* @summary Delete metric costs for this framework
|
|
134
144
|
* @param {string} metricId UUID of the metric
|
|
135
|
-
* @param {string} frameworkId UUID of the value framework
|
|
136
145
|
* @param {number} year Year (1600-3000)
|
|
146
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
137
147
|
* @param {*} [options] Override http request option.
|
|
138
148
|
* @throws {RequiredError}
|
|
139
149
|
*/
|
|
140
|
-
|
|
150
|
+
deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
141
151
|
/**
|
|
142
|
-
* Retrieve cost data for a specific metric within
|
|
143
|
-
* @summary Get a yearly metric cost
|
|
152
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
153
|
+
* @summary Get a yearly metric cost for this framework
|
|
144
154
|
* @param {string} metricId UUID of the metric
|
|
145
|
-
* @param {string} frameworkId UUID of the value framework
|
|
146
155
|
* @param {number} year Year (1600-3000)
|
|
156
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
147
157
|
* @param {*} [options] Override http request option.
|
|
148
158
|
* @throws {RequiredError}
|
|
149
159
|
*/
|
|
150
|
-
|
|
160
|
+
getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse>;
|
|
151
161
|
/**
|
|
152
|
-
* Retrieve a paginated list of all yearly metric
|
|
153
|
-
* @summary List yearly metric costs
|
|
162
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
163
|
+
* @summary List yearly metric costs for this framework
|
|
164
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
154
165
|
* @param {number} [offset] Number of records to skip
|
|
155
166
|
* @param {number} [limit] Max number of records to return
|
|
156
167
|
* @param {*} [options] Override http request option.
|
|
157
168
|
* @throws {RequiredError}
|
|
158
169
|
*/
|
|
159
|
-
|
|
170
|
+
getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricCostsPerYearResponse>>;
|
|
160
171
|
/**
|
|
161
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
162
|
-
* @summary Partially update metric costs for
|
|
172
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
173
|
+
* @summary Partially update metric costs for this framework
|
|
163
174
|
* @param {string} metricId UUID of the metric
|
|
164
|
-
* @param {string} frameworkId UUID of the value framework
|
|
165
175
|
* @param {number} year Year (1600-3000)
|
|
176
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
166
177
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
167
178
|
* @param {*} [options] Override http request option.
|
|
168
179
|
* @throws {RequiredError}
|
|
169
180
|
*/
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
173
|
-
* @summary Create a yearly metric cost
|
|
174
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
175
|
-
* @param {*} [options] Override http request option.
|
|
176
|
-
* @throws {RequiredError}
|
|
177
|
-
*/
|
|
178
|
-
postMetricCost(metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: any): AxiosPromise<MetricCostsPerYearResponse>;
|
|
181
|
+
patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): AxiosPromise<MetricCostsPerYearResponse>;
|
|
179
182
|
};
|
|
180
183
|
/**
|
|
181
184
|
* MetricCostsPerYearApi - object-oriented interface
|
|
182
|
-
* @export
|
|
183
|
-
* @class MetricCostsPerYearApi
|
|
184
|
-
* @extends {BaseAPI}
|
|
185
185
|
*/
|
|
186
186
|
export declare class MetricCostsPerYearApi extends BaseAPI {
|
|
187
187
|
/**
|
|
188
|
-
*
|
|
189
|
-
* @summary
|
|
188
|
+
* Create a yearly cost override for a metric within this framework.
|
|
189
|
+
* @summary Create a yearly metric cost for this framework
|
|
190
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
191
|
+
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
createMetricCostForFramework(valueFrameworkId: string, metricCostsPerYearCreate: MetricCostsPerYearCreate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse, any, {}>>;
|
|
196
|
+
/**
|
|
197
|
+
* Delete a metric cost entry for a specific year within this framework.
|
|
198
|
+
* @summary Delete metric costs for this framework
|
|
190
199
|
* @param {string} metricId UUID of the metric
|
|
191
|
-
* @param {string} frameworkId UUID of the value framework
|
|
192
200
|
* @param {number} year Year (1600-3000)
|
|
201
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
193
202
|
* @param {*} [options] Override http request option.
|
|
194
203
|
* @throws {RequiredError}
|
|
195
|
-
* @memberof MetricCostsPerYearApi
|
|
196
204
|
*/
|
|
197
|
-
|
|
205
|
+
deleteMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
198
206
|
/**
|
|
199
|
-
* Retrieve cost data for a specific metric within
|
|
200
|
-
* @summary Get a yearly metric cost
|
|
207
|
+
* Retrieve cost data for a specific metric within this framework for a given year.
|
|
208
|
+
* @summary Get a yearly metric cost for this framework
|
|
201
209
|
* @param {string} metricId UUID of the metric
|
|
202
|
-
* @param {string} frameworkId UUID of the value framework
|
|
203
210
|
* @param {number} year Year (1600-3000)
|
|
211
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
204
212
|
* @param {*} [options] Override http request option.
|
|
205
213
|
* @throws {RequiredError}
|
|
206
|
-
* @memberof MetricCostsPerYearApi
|
|
207
214
|
*/
|
|
208
|
-
|
|
215
|
+
getMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse, any, {}>>;
|
|
209
216
|
/**
|
|
210
|
-
* Retrieve a paginated list of all yearly metric
|
|
211
|
-
* @summary List yearly metric costs
|
|
217
|
+
* Retrieve a paginated list of all yearly metric costs for a specific framework.
|
|
218
|
+
* @summary List yearly metric costs for this framework
|
|
219
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
212
220
|
* @param {number} [offset] Number of records to skip
|
|
213
221
|
* @param {number} [limit] Max number of records to return
|
|
214
222
|
* @param {*} [options] Override http request option.
|
|
215
223
|
* @throws {RequiredError}
|
|
216
|
-
* @memberof MetricCostsPerYearApi
|
|
217
224
|
*/
|
|
218
|
-
|
|
225
|
+
getMetricCostsForFramework(valueFrameworkId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse[], any, {}>>;
|
|
219
226
|
/**
|
|
220
|
-
* Update the perceived and/or direct cost of a metric for a specific year
|
|
221
|
-
* @summary Partially update metric costs for
|
|
227
|
+
* Update the perceived and/or direct cost of a metric for a specific year within this framework.
|
|
228
|
+
* @summary Partially update metric costs for this framework
|
|
222
229
|
* @param {string} metricId UUID of the metric
|
|
223
|
-
* @param {string} frameworkId UUID of the value framework
|
|
224
230
|
* @param {number} year Year (1600-3000)
|
|
231
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
225
232
|
* @param {MetricCostsPerYearUpdate} metricCostsPerYearUpdate
|
|
226
233
|
* @param {*} [options] Override http request option.
|
|
227
234
|
* @throws {RequiredError}
|
|
228
|
-
* @memberof MetricCostsPerYearApi
|
|
229
|
-
*/
|
|
230
|
-
patchMetricCost(metricId: string, frameworkId: string, year: number, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse, any, {}>>;
|
|
231
|
-
/**
|
|
232
|
-
* Create a yearly cost override for a metric within a framework. Year must be between 1600 and 3000, costs must be >= 0.
|
|
233
|
-
* @summary Create a yearly metric cost
|
|
234
|
-
* @param {MetricCostsPerYearCreate} metricCostsPerYearCreate
|
|
235
|
-
* @param {*} [options] Override http request option.
|
|
236
|
-
* @throws {RequiredError}
|
|
237
|
-
* @memberof MetricCostsPerYearApi
|
|
238
235
|
*/
|
|
239
|
-
|
|
236
|
+
patchMetricCostForFramework(metricId: string, year: number, valueFrameworkId: string, metricCostsPerYearUpdate: MetricCostsPerYearUpdate, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MetricCostsPerYearResponse, any, {}>>;
|
|
240
237
|
}
|