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