@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
package/api/objective-api.ts
CHANGED
|
@@ -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,21 +18,112 @@ 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 {
|
|
25
|
+
import type { MetricCreate } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
import {
|
|
27
|
+
import type { MetricResponse } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
|
-
import {
|
|
29
|
+
import type { MetricUpdate } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { ObjectiveCreate } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { ObjectiveResponse } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { ObjectiveUpdate } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { ObjectiveWeightResponse } from '../models';
|
|
30
38
|
/**
|
|
31
39
|
* ObjectiveApi - axios parameter creator
|
|
32
|
-
* @export
|
|
33
40
|
*/
|
|
34
41
|
export const ObjectiveApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
35
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
* Create a new metric under this objective.
|
|
45
|
+
* @summary Create a metric for this objective
|
|
46
|
+
* @param {string} objectiveId UUID of the objective
|
|
47
|
+
* @param {MetricCreate} metricCreate
|
|
48
|
+
* @param {*} [options] Override http request option.
|
|
49
|
+
* @throws {RequiredError}
|
|
50
|
+
*/
|
|
51
|
+
createMetricForObjective: async (objectiveId: string, metricCreate: MetricCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
52
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
53
|
+
assertParamExists('createMetricForObjective', 'objectiveId', objectiveId)
|
|
54
|
+
// verify required parameter 'metricCreate' is not null or undefined
|
|
55
|
+
assertParamExists('createMetricForObjective', 'metricCreate', metricCreate)
|
|
56
|
+
const localVarPath = `/objective/{objective_id}/metric/`
|
|
57
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
58
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
59
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
60
|
+
let baseOptions;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
70
|
+
// oauth required
|
|
71
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
72
|
+
|
|
73
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
74
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
localVarRequestOptions.data = serializeDataIfNeeded(metricCreate, localVarRequestOptions, configuration)
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
88
|
+
* @summary Delete a metric for this objective
|
|
89
|
+
* @param {string} metricId UUID of the metric
|
|
90
|
+
* @param {string} objectiveId UUID of the objective
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
deleteMetricForObjective: async (metricId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
96
|
+
assertParamExists('deleteMetricForObjective', 'metricId', metricId)
|
|
97
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
98
|
+
assertParamExists('deleteMetricForObjective', 'objectiveId', objectiveId)
|
|
99
|
+
const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
|
|
100
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
101
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
110
|
+
const localVarHeaderParameter = {} as any;
|
|
111
|
+
const localVarQueryParameter = {} as any;
|
|
112
|
+
|
|
113
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
114
|
+
// oauth required
|
|
115
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
119
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
120
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
url: toPathString(localVarUrlObj),
|
|
124
|
+
options: localVarRequestOptions,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
36
127
|
/**
|
|
37
128
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
38
129
|
* @summary Delete an objective
|
|
@@ -61,7 +152,96 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
61
152
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
62
153
|
|
|
63
154
|
|
|
64
|
-
|
|
155
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
156
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
157
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
158
|
+
|
|
159
|
+
return {
|
|
160
|
+
url: toPathString(localVarUrlObj),
|
|
161
|
+
options: localVarRequestOptions,
|
|
162
|
+
};
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
* Retrieve a specific metric for the objective.
|
|
166
|
+
* @summary Get a metric for this objective
|
|
167
|
+
* @param {string} metricId UUID of the metric
|
|
168
|
+
* @param {string} objectiveId UUID of the objective
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
getMetricForObjective: async (metricId: string, objectiveId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
173
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
174
|
+
assertParamExists('getMetricForObjective', 'metricId', metricId)
|
|
175
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
176
|
+
assertParamExists('getMetricForObjective', 'objectiveId', objectiveId)
|
|
177
|
+
const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
|
|
178
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
179
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
181
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
182
|
+
let baseOptions;
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
188
|
+
const localVarHeaderParameter = {} as any;
|
|
189
|
+
const localVarQueryParameter = {} as any;
|
|
190
|
+
|
|
191
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
192
|
+
// oauth required
|
|
193
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
194
|
+
|
|
195
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
196
|
+
|
|
197
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
url: toPathString(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
* Retrieve a paginated list of all metrics for a specific objective.
|
|
208
|
+
* @summary List metrics for this objective
|
|
209
|
+
* @param {string} objectiveId UUID of the objective
|
|
210
|
+
* @param {number} [offset] Number of records to skip
|
|
211
|
+
* @param {number} [limit] Max number of records to return
|
|
212
|
+
* @param {*} [options] Override http request option.
|
|
213
|
+
* @throws {RequiredError}
|
|
214
|
+
*/
|
|
215
|
+
getMetricsForObjective: async (objectiveId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
216
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
217
|
+
assertParamExists('getMetricsForObjective', 'objectiveId', objectiveId)
|
|
218
|
+
const localVarPath = `/objective/{objective_id}/metric/`
|
|
219
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
222
|
+
let baseOptions;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
228
|
+
const localVarHeaderParameter = {} as any;
|
|
229
|
+
const localVarQueryParameter = {} as any;
|
|
230
|
+
|
|
231
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
232
|
+
// oauth required
|
|
233
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
234
|
+
|
|
235
|
+
if (offset !== undefined) {
|
|
236
|
+
localVarQueryParameter['offset'] = offset;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (limit !== undefined) {
|
|
240
|
+
localVarQueryParameter['limit'] = limit;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
244
|
+
|
|
65
245
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
66
246
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
247
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -98,8 +278,8 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
98
278
|
// oauth required
|
|
99
279
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
100
280
|
|
|
281
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
101
282
|
|
|
102
|
-
|
|
103
283
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
284
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
285
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -142,8 +322,56 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
142
322
|
localVarQueryParameter['limit'] = limit;
|
|
143
323
|
}
|
|
144
324
|
|
|
325
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
326
|
+
|
|
327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
328
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
329
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
330
|
+
|
|
331
|
+
return {
|
|
332
|
+
url: toPathString(localVarUrlObj),
|
|
333
|
+
options: localVarRequestOptions,
|
|
334
|
+
};
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* Retrieve a paginated list of all objective weights for a specific objective.
|
|
338
|
+
* @summary List all objective weights for an objective
|
|
339
|
+
* @param {string} objectiveId UUID of the objective
|
|
340
|
+
* @param {number} [offset] Number of records to skip
|
|
341
|
+
* @param {number} [limit] Max number of records to return
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
getWeightsForObjective: async (objectiveId: string, offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
346
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
347
|
+
assertParamExists('getWeightsForObjective', 'objectiveId', objectiveId)
|
|
348
|
+
const localVarPath = `/objective/{objective_id}/weights/`
|
|
349
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
350
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
352
|
+
let baseOptions;
|
|
353
|
+
if (configuration) {
|
|
354
|
+
baseOptions = configuration.baseOptions;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
358
|
+
const localVarHeaderParameter = {} as any;
|
|
359
|
+
const localVarQueryParameter = {} as any;
|
|
360
|
+
|
|
361
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
362
|
+
// oauth required
|
|
363
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
364
|
+
|
|
365
|
+
if (offset !== undefined) {
|
|
366
|
+
localVarQueryParameter['offset'] = offset;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (limit !== undefined) {
|
|
370
|
+
localVarQueryParameter['limit'] = limit;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
145
374
|
|
|
146
|
-
|
|
147
375
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
148
376
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
377
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -153,6 +381,53 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
153
381
|
options: localVarRequestOptions,
|
|
154
382
|
};
|
|
155
383
|
},
|
|
384
|
+
/**
|
|
385
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
386
|
+
* @summary Partially update a metric for this objective
|
|
387
|
+
* @param {string} metricId UUID of the metric
|
|
388
|
+
* @param {string} objectiveId UUID of the objective
|
|
389
|
+
* @param {MetricUpdate} metricUpdate
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
patchMetricForObjective: async (metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
394
|
+
// verify required parameter 'metricId' is not null or undefined
|
|
395
|
+
assertParamExists('patchMetricForObjective', 'metricId', metricId)
|
|
396
|
+
// verify required parameter 'objectiveId' is not null or undefined
|
|
397
|
+
assertParamExists('patchMetricForObjective', 'objectiveId', objectiveId)
|
|
398
|
+
// verify required parameter 'metricUpdate' is not null or undefined
|
|
399
|
+
assertParamExists('patchMetricForObjective', 'metricUpdate', metricUpdate)
|
|
400
|
+
const localVarPath = `/objective/{objective_id}/metric/{metric_id}`
|
|
401
|
+
.replace(`{${"metric_id"}}`, encodeURIComponent(String(metricId)))
|
|
402
|
+
.replace(`{${"objective_id"}}`, encodeURIComponent(String(objectiveId)));
|
|
403
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
404
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
405
|
+
let baseOptions;
|
|
406
|
+
if (configuration) {
|
|
407
|
+
baseOptions = configuration.baseOptions;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
411
|
+
const localVarHeaderParameter = {} as any;
|
|
412
|
+
const localVarQueryParameter = {} as any;
|
|
413
|
+
|
|
414
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
415
|
+
// oauth required
|
|
416
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
417
|
+
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
420
|
+
|
|
421
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
422
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
423
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
424
|
+
localVarRequestOptions.data = serializeDataIfNeeded(metricUpdate, localVarRequestOptions, configuration)
|
|
425
|
+
|
|
426
|
+
return {
|
|
427
|
+
url: toPathString(localVarUrlObj),
|
|
428
|
+
options: localVarRequestOptions,
|
|
429
|
+
};
|
|
430
|
+
},
|
|
156
431
|
/**
|
|
157
432
|
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
158
433
|
* @summary Partially update an objective
|
|
@@ -183,9 +458,8 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
183
458
|
// oauth required
|
|
184
459
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
185
460
|
|
|
186
|
-
|
|
187
|
-
|
|
188
461
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
462
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
189
463
|
|
|
190
464
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
191
465
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -223,9 +497,8 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
223
497
|
// oauth required
|
|
224
498
|
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
225
499
|
|
|
226
|
-
|
|
227
|
-
|
|
228
500
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
501
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
229
502
|
|
|
230
503
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
231
504
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -242,11 +515,38 @@ export const ObjectiveApiAxiosParamCreator = function (configuration?: Configura
|
|
|
242
515
|
|
|
243
516
|
/**
|
|
244
517
|
* ObjectiveApi - functional programming interface
|
|
245
|
-
* @export
|
|
246
518
|
*/
|
|
247
519
|
export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
248
520
|
const localVarAxiosParamCreator = ObjectiveApiAxiosParamCreator(configuration)
|
|
249
521
|
return {
|
|
522
|
+
/**
|
|
523
|
+
* Create a new metric under this objective.
|
|
524
|
+
* @summary Create a metric for this objective
|
|
525
|
+
* @param {string} objectiveId UUID of the objective
|
|
526
|
+
* @param {MetricCreate} metricCreate
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
*/
|
|
530
|
+
async createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
|
|
531
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMetricForObjective(objectiveId, metricCreate, options);
|
|
532
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
533
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.createMetricForObjective']?.[localVarOperationServerIndex]?.url;
|
|
534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
535
|
+
},
|
|
536
|
+
/**
|
|
537
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
538
|
+
* @summary Delete a metric for this objective
|
|
539
|
+
* @param {string} metricId UUID of the metric
|
|
540
|
+
* @param {string} objectiveId UUID of the objective
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
*/
|
|
544
|
+
async deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
545
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMetricForObjective(metricId, objectiveId, options);
|
|
546
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
547
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.deleteMetricForObjective']?.[localVarOperationServerIndex]?.url;
|
|
548
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
549
|
+
},
|
|
250
550
|
/**
|
|
251
551
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
252
552
|
* @summary Delete an objective
|
|
@@ -256,9 +556,38 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
|
256
556
|
*/
|
|
257
557
|
async deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
258
558
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteObjective(objectiveId, options);
|
|
259
|
-
const
|
|
260
|
-
const
|
|
261
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
559
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
560
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.deleteObjective']?.[localVarOperationServerIndex]?.url;
|
|
561
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Retrieve a specific metric for the objective.
|
|
565
|
+
* @summary Get a metric for this objective
|
|
566
|
+
* @param {string} metricId UUID of the metric
|
|
567
|
+
* @param {string} objectiveId UUID of the objective
|
|
568
|
+
* @param {*} [options] Override http request option.
|
|
569
|
+
* @throws {RequiredError}
|
|
570
|
+
*/
|
|
571
|
+
async getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
|
|
572
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricForObjective(metricId, objectiveId, options);
|
|
573
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
574
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getMetricForObjective']?.[localVarOperationServerIndex]?.url;
|
|
575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
|
+
},
|
|
577
|
+
/**
|
|
578
|
+
* Retrieve a paginated list of all metrics for a specific objective.
|
|
579
|
+
* @summary List metrics for this objective
|
|
580
|
+
* @param {string} objectiveId UUID of the objective
|
|
581
|
+
* @param {number} [offset] Number of records to skip
|
|
582
|
+
* @param {number} [limit] Max number of records to return
|
|
583
|
+
* @param {*} [options] Override http request option.
|
|
584
|
+
* @throws {RequiredError}
|
|
585
|
+
*/
|
|
586
|
+
async getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MetricResponse>>> {
|
|
587
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getMetricsForObjective(objectiveId, offset, limit, options);
|
|
588
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
589
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getMetricsForObjective']?.[localVarOperationServerIndex]?.url;
|
|
590
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
262
591
|
},
|
|
263
592
|
/**
|
|
264
593
|
* Retrieve a single objective by its ID.
|
|
@@ -269,9 +598,9 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
|
269
598
|
*/
|
|
270
599
|
async getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
271
600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectiveById(objectiveId, options);
|
|
272
|
-
const
|
|
273
|
-
const
|
|
274
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
601
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
602
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getObjectiveById']?.[localVarOperationServerIndex]?.url;
|
|
603
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
275
604
|
},
|
|
276
605
|
/**
|
|
277
606
|
* Retrieve a paginated list of all objectives.
|
|
@@ -283,9 +612,39 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
|
283
612
|
*/
|
|
284
613
|
async getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveResponse>>> {
|
|
285
614
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getObjectives(offset, limit, options);
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
615
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
616
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getObjectives']?.[localVarOperationServerIndex]?.url;
|
|
617
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
618
|
+
},
|
|
619
|
+
/**
|
|
620
|
+
* Retrieve a paginated list of all objective weights for a specific objective.
|
|
621
|
+
* @summary List all objective weights for an objective
|
|
622
|
+
* @param {string} objectiveId UUID of the objective
|
|
623
|
+
* @param {number} [offset] Number of records to skip
|
|
624
|
+
* @param {number} [limit] Max number of records to return
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
async getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ObjectiveWeightResponse>>> {
|
|
629
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getWeightsForObjective(objectiveId, offset, limit, options);
|
|
630
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
631
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.getWeightsForObjective']?.[localVarOperationServerIndex]?.url;
|
|
632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
633
|
+
},
|
|
634
|
+
/**
|
|
635
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
636
|
+
* @summary Partially update a metric for this objective
|
|
637
|
+
* @param {string} metricId UUID of the metric
|
|
638
|
+
* @param {string} objectiveId UUID of the objective
|
|
639
|
+
* @param {MetricUpdate} metricUpdate
|
|
640
|
+
* @param {*} [options] Override http request option.
|
|
641
|
+
* @throws {RequiredError}
|
|
642
|
+
*/
|
|
643
|
+
async patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MetricResponse>> {
|
|
644
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchMetricForObjective(metricId, objectiveId, metricUpdate, options);
|
|
645
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
646
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.patchMetricForObjective']?.[localVarOperationServerIndex]?.url;
|
|
647
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
289
648
|
},
|
|
290
649
|
/**
|
|
291
650
|
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
@@ -297,9 +656,9 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
|
297
656
|
*/
|
|
298
657
|
async patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
299
658
|
const localVarAxiosArgs = await localVarAxiosParamCreator.patchObjective(objectiveId, objectiveUpdate, options);
|
|
300
|
-
const
|
|
301
|
-
const
|
|
302
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
659
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
660
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.patchObjective']?.[localVarOperationServerIndex]?.url;
|
|
661
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
303
662
|
},
|
|
304
663
|
/**
|
|
305
664
|
* Create a new objective. Name must be unique and non-empty.
|
|
@@ -310,20 +669,41 @@ export const ObjectiveApiFp = function(configuration?: Configuration) {
|
|
|
310
669
|
*/
|
|
311
670
|
async postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ObjectiveResponse>> {
|
|
312
671
|
const localVarAxiosArgs = await localVarAxiosParamCreator.postObjective(objectiveCreate, options);
|
|
313
|
-
const
|
|
314
|
-
const
|
|
315
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios,
|
|
672
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
673
|
+
const localVarOperationServerBasePath = operationServerMap['ObjectiveApi.postObjective']?.[localVarOperationServerIndex]?.url;
|
|
674
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
316
675
|
},
|
|
317
676
|
}
|
|
318
677
|
};
|
|
319
678
|
|
|
320
679
|
/**
|
|
321
680
|
* ObjectiveApi - factory interface
|
|
322
|
-
* @export
|
|
323
681
|
*/
|
|
324
682
|
export const ObjectiveApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
325
683
|
const localVarFp = ObjectiveApiFp(configuration)
|
|
326
684
|
return {
|
|
685
|
+
/**
|
|
686
|
+
* Create a new metric under this objective.
|
|
687
|
+
* @summary Create a metric for this objective
|
|
688
|
+
* @param {string} objectiveId UUID of the objective
|
|
689
|
+
* @param {MetricCreate} metricCreate
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
*/
|
|
693
|
+
createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
|
|
694
|
+
return localVarFp.createMetricForObjective(objectiveId, metricCreate, options).then((request) => request(axios, basePath));
|
|
695
|
+
},
|
|
696
|
+
/**
|
|
697
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
698
|
+
* @summary Delete a metric for this objective
|
|
699
|
+
* @param {string} metricId UUID of the metric
|
|
700
|
+
* @param {string} objectiveId UUID of the objective
|
|
701
|
+
* @param {*} [options] Override http request option.
|
|
702
|
+
* @throws {RequiredError}
|
|
703
|
+
*/
|
|
704
|
+
deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
705
|
+
return localVarFp.deleteMetricForObjective(metricId, objectiveId, options).then((request) => request(axios, basePath));
|
|
706
|
+
},
|
|
327
707
|
/**
|
|
328
708
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
329
709
|
* @summary Delete an objective
|
|
@@ -331,9 +711,32 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
331
711
|
* @param {*} [options] Override http request option.
|
|
332
712
|
* @throws {RequiredError}
|
|
333
713
|
*/
|
|
334
|
-
deleteObjective(objectiveId: string, options?:
|
|
714
|
+
deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
335
715
|
return localVarFp.deleteObjective(objectiveId, options).then((request) => request(axios, basePath));
|
|
336
716
|
},
|
|
717
|
+
/**
|
|
718
|
+
* Retrieve a specific metric for the objective.
|
|
719
|
+
* @summary Get a metric for this objective
|
|
720
|
+
* @param {string} metricId UUID of the metric
|
|
721
|
+
* @param {string} objectiveId UUID of the objective
|
|
722
|
+
* @param {*} [options] Override http request option.
|
|
723
|
+
* @throws {RequiredError}
|
|
724
|
+
*/
|
|
725
|
+
getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
|
|
726
|
+
return localVarFp.getMetricForObjective(metricId, objectiveId, options).then((request) => request(axios, basePath));
|
|
727
|
+
},
|
|
728
|
+
/**
|
|
729
|
+
* Retrieve a paginated list of all metrics for a specific objective.
|
|
730
|
+
* @summary List metrics for this objective
|
|
731
|
+
* @param {string} objectiveId UUID of the objective
|
|
732
|
+
* @param {number} [offset] Number of records to skip
|
|
733
|
+
* @param {number} [limit] Max number of records to return
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<MetricResponse>> {
|
|
738
|
+
return localVarFp.getMetricsForObjective(objectiveId, offset, limit, options).then((request) => request(axios, basePath));
|
|
739
|
+
},
|
|
337
740
|
/**
|
|
338
741
|
* Retrieve a single objective by its ID.
|
|
339
742
|
* @summary Get an objective by ID
|
|
@@ -341,7 +744,7 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
341
744
|
* @param {*} [options] Override http request option.
|
|
342
745
|
* @throws {RequiredError}
|
|
343
746
|
*/
|
|
344
|
-
getObjectiveById(objectiveId: string, options?:
|
|
747
|
+
getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig): AxiosPromise<ObjectiveResponse> {
|
|
345
748
|
return localVarFp.getObjectiveById(objectiveId, options).then((request) => request(axios, basePath));
|
|
346
749
|
},
|
|
347
750
|
/**
|
|
@@ -352,9 +755,33 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
352
755
|
* @param {*} [options] Override http request option.
|
|
353
756
|
* @throws {RequiredError}
|
|
354
757
|
*/
|
|
355
|
-
getObjectives(offset?: number, limit?: number, options?:
|
|
758
|
+
getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectiveResponse>> {
|
|
356
759
|
return localVarFp.getObjectives(offset, limit, options).then((request) => request(axios, basePath));
|
|
357
760
|
},
|
|
761
|
+
/**
|
|
762
|
+
* Retrieve a paginated list of all objective weights for a specific objective.
|
|
763
|
+
* @summary List all objective weights for an objective
|
|
764
|
+
* @param {string} objectiveId UUID of the objective
|
|
765
|
+
* @param {number} [offset] Number of records to skip
|
|
766
|
+
* @param {number} [limit] Max number of records to return
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<ObjectiveWeightResponse>> {
|
|
771
|
+
return localVarFp.getWeightsForObjective(objectiveId, offset, limit, options).then((request) => request(axios, basePath));
|
|
772
|
+
},
|
|
773
|
+
/**
|
|
774
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
775
|
+
* @summary Partially update a metric for this objective
|
|
776
|
+
* @param {string} metricId UUID of the metric
|
|
777
|
+
* @param {string} objectiveId UUID of the objective
|
|
778
|
+
* @param {MetricUpdate} metricUpdate
|
|
779
|
+
* @param {*} [options] Override http request option.
|
|
780
|
+
* @throws {RequiredError}
|
|
781
|
+
*/
|
|
782
|
+
patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig): AxiosPromise<MetricResponse> {
|
|
783
|
+
return localVarFp.patchMetricForObjective(metricId, objectiveId, metricUpdate, options).then((request) => request(axios, basePath));
|
|
784
|
+
},
|
|
358
785
|
/**
|
|
359
786
|
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
360
787
|
* @summary Partially update an objective
|
|
@@ -363,7 +790,7 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
363
790
|
* @param {*} [options] Override http request option.
|
|
364
791
|
* @throws {RequiredError}
|
|
365
792
|
*/
|
|
366
|
-
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?:
|
|
793
|
+
patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig): AxiosPromise<ObjectiveResponse> {
|
|
367
794
|
return localVarFp.patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(axios, basePath));
|
|
368
795
|
},
|
|
369
796
|
/**
|
|
@@ -373,7 +800,7 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
373
800
|
* @param {*} [options] Override http request option.
|
|
374
801
|
* @throws {RequiredError}
|
|
375
802
|
*/
|
|
376
|
-
postObjective(objectiveCreate: ObjectiveCreate, options?:
|
|
803
|
+
postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig): AxiosPromise<ObjectiveResponse> {
|
|
377
804
|
return localVarFp.postObjective(objectiveCreate, options).then((request) => request(axios, basePath));
|
|
378
805
|
},
|
|
379
806
|
};
|
|
@@ -381,30 +808,74 @@ export const ObjectiveApiFactory = function (configuration?: Configuration, base
|
|
|
381
808
|
|
|
382
809
|
/**
|
|
383
810
|
* ObjectiveApi - object-oriented interface
|
|
384
|
-
* @export
|
|
385
|
-
* @class ObjectiveApi
|
|
386
|
-
* @extends {BaseAPI}
|
|
387
811
|
*/
|
|
388
812
|
export class ObjectiveApi extends BaseAPI {
|
|
813
|
+
/**
|
|
814
|
+
* Create a new metric under this objective.
|
|
815
|
+
* @summary Create a metric for this objective
|
|
816
|
+
* @param {string} objectiveId UUID of the objective
|
|
817
|
+
* @param {MetricCreate} metricCreate
|
|
818
|
+
* @param {*} [options] Override http request option.
|
|
819
|
+
* @throws {RequiredError}
|
|
820
|
+
*/
|
|
821
|
+
public createMetricForObjective(objectiveId: string, metricCreate: MetricCreate, options?: RawAxiosRequestConfig) {
|
|
822
|
+
return ObjectiveApiFp(this.configuration).createMetricForObjective(objectiveId, metricCreate, options).then((request) => request(this.axios, this.basePath));
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/**
|
|
826
|
+
* Delete an existing metric by its ID. Associated metric costs per year are also deleted via cascade.
|
|
827
|
+
* @summary Delete a metric for this objective
|
|
828
|
+
* @param {string} metricId UUID of the metric
|
|
829
|
+
* @param {string} objectiveId UUID of the objective
|
|
830
|
+
* @param {*} [options] Override http request option.
|
|
831
|
+
* @throws {RequiredError}
|
|
832
|
+
*/
|
|
833
|
+
public deleteMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
834
|
+
return ObjectiveApiFp(this.configuration).deleteMetricForObjective(metricId, objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
835
|
+
}
|
|
836
|
+
|
|
389
837
|
/**
|
|
390
838
|
* Delete an existing objective by its ID. Associated metrics and objective weights are also deleted via cascade.
|
|
391
839
|
* @summary Delete an objective
|
|
392
840
|
* @param {string} objectiveId UUID of the objective
|
|
393
841
|
* @param {*} [options] Override http request option.
|
|
394
842
|
* @throws {RequiredError}
|
|
395
|
-
* @memberof ObjectiveApi
|
|
396
843
|
*/
|
|
397
844
|
public deleteObjective(objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
398
845
|
return ObjectiveApiFp(this.configuration).deleteObjective(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
399
846
|
}
|
|
400
847
|
|
|
848
|
+
/**
|
|
849
|
+
* Retrieve a specific metric for the objective.
|
|
850
|
+
* @summary Get a metric for this objective
|
|
851
|
+
* @param {string} metricId UUID of the metric
|
|
852
|
+
* @param {string} objectiveId UUID of the objective
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
public getMetricForObjective(metricId: string, objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
857
|
+
return ObjectiveApiFp(this.configuration).getMetricForObjective(metricId, objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/**
|
|
861
|
+
* Retrieve a paginated list of all metrics for a specific objective.
|
|
862
|
+
* @summary List metrics for this objective
|
|
863
|
+
* @param {string} objectiveId UUID of the objective
|
|
864
|
+
* @param {number} [offset] Number of records to skip
|
|
865
|
+
* @param {number} [limit] Max number of records to return
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
public getMetricsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
870
|
+
return ObjectiveApiFp(this.configuration).getMetricsForObjective(objectiveId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
871
|
+
}
|
|
872
|
+
|
|
401
873
|
/**
|
|
402
874
|
* Retrieve a single objective by its ID.
|
|
403
875
|
* @summary Get an objective by ID
|
|
404
876
|
* @param {string} objectiveId UUID of the objective
|
|
405
877
|
* @param {*} [options] Override http request option.
|
|
406
878
|
* @throws {RequiredError}
|
|
407
|
-
* @memberof ObjectiveApi
|
|
408
879
|
*/
|
|
409
880
|
public getObjectiveById(objectiveId: string, options?: RawAxiosRequestConfig) {
|
|
410
881
|
return ObjectiveApiFp(this.configuration).getObjectiveById(objectiveId, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -417,12 +888,37 @@ export class ObjectiveApi extends BaseAPI {
|
|
|
417
888
|
* @param {number} [limit] Max number of records to return
|
|
418
889
|
* @param {*} [options] Override http request option.
|
|
419
890
|
* @throws {RequiredError}
|
|
420
|
-
* @memberof ObjectiveApi
|
|
421
891
|
*/
|
|
422
892
|
public getObjectives(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
423
893
|
return ObjectiveApiFp(this.configuration).getObjectives(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
424
894
|
}
|
|
425
895
|
|
|
896
|
+
/**
|
|
897
|
+
* Retrieve a paginated list of all objective weights for a specific objective.
|
|
898
|
+
* @summary List all objective weights for an objective
|
|
899
|
+
* @param {string} objectiveId UUID of the objective
|
|
900
|
+
* @param {number} [offset] Number of records to skip
|
|
901
|
+
* @param {number} [limit] Max number of records to return
|
|
902
|
+
* @param {*} [options] Override http request option.
|
|
903
|
+
* @throws {RequiredError}
|
|
904
|
+
*/
|
|
905
|
+
public getWeightsForObjective(objectiveId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
906
|
+
return ObjectiveApiFp(this.configuration).getWeightsForObjective(objectiveId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* Update one or more fields of an existing metric. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
911
|
+
* @summary Partially update a metric for this objective
|
|
912
|
+
* @param {string} metricId UUID of the metric
|
|
913
|
+
* @param {string} objectiveId UUID of the objective
|
|
914
|
+
* @param {MetricUpdate} metricUpdate
|
|
915
|
+
* @param {*} [options] Override http request option.
|
|
916
|
+
* @throws {RequiredError}
|
|
917
|
+
*/
|
|
918
|
+
public patchMetricForObjective(metricId: string, objectiveId: string, metricUpdate: MetricUpdate, options?: RawAxiosRequestConfig) {
|
|
919
|
+
return ObjectiveApiFp(this.configuration).patchMetricForObjective(metricId, objectiveId, metricUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
920
|
+
}
|
|
921
|
+
|
|
426
922
|
/**
|
|
427
923
|
* Update one or more fields of an existing objective. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
428
924
|
* @summary Partially update an objective
|
|
@@ -430,7 +926,6 @@ export class ObjectiveApi extends BaseAPI {
|
|
|
430
926
|
* @param {ObjectiveUpdate} objectiveUpdate
|
|
431
927
|
* @param {*} [options] Override http request option.
|
|
432
928
|
* @throws {RequiredError}
|
|
433
|
-
* @memberof ObjectiveApi
|
|
434
929
|
*/
|
|
435
930
|
public patchObjective(objectiveId: string, objectiveUpdate: ObjectiveUpdate, options?: RawAxiosRequestConfig) {
|
|
436
931
|
return ObjectiveApiFp(this.configuration).patchObjective(objectiveId, objectiveUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -442,7 +937,6 @@ export class ObjectiveApi extends BaseAPI {
|
|
|
442
937
|
* @param {ObjectiveCreate} objectiveCreate
|
|
443
938
|
* @param {*} [options] Override http request option.
|
|
444
939
|
* @throws {RequiredError}
|
|
445
|
-
* @memberof ObjectiveApi
|
|
446
940
|
*/
|
|
447
941
|
public postObjective(objectiveCreate: ObjectiveCreate, options?: RawAxiosRequestConfig) {
|
|
448
942
|
return ObjectiveApiFp(this.configuration).postObjective(objectiveCreate, options).then((request) => request(this.axios, this.basePath));
|