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