@cosmotech/aip-client 0.3.0-dev2 → 0.3.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 +4 -40
- package/api/budget-api.ts +1 -1
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +90 -1
- package/api/investment-api.ts +55 -1254
- package/api/metric-api.ts +1 -1
- package/api/metric-costs-api.ts +1 -1
- package/api/metric-costs-per-year-api.ts +1 -1
- package/api/objective-api.ts +1 -509
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +1 -454
- package/api/preferred-option-api.ts +1 -1
- package/api/value-framework-api.ts +61 -1189
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +1 -1
- package/dist/api/budget-api.js +1 -1
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/impact-api.d.ts +42 -1
- package/dist/api/impact-api.js +85 -1
- package/dist/api/investment-api.d.ts +1 -551
- package/dist/api/investment-api.js +57 -1189
- package/dist/api/metric-api.d.ts +1 -1
- package/dist/api/metric-api.js +1 -1
- package/dist/api/metric-costs-api.d.ts +1 -1
- package/dist/api/metric-costs-api.js +1 -1
- package/dist/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/api/metric-costs-per-year-api.js +1 -1
- package/dist/api/objective-api.d.ts +1 -233
- package/dist/api/objective-api.js +1 -479
- package/dist/api/objective-weight-api.d.ts +1 -1
- package/dist/api/objective-weight-api.js +1 -1
- package/dist/api/objective-weights-api.d.ts +1 -1
- package/dist/api/objective-weights-api.js +1 -1
- package/dist/api/option-api.d.ts +1 -212
- package/dist/api/option-api.js +1 -431
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -519
- package/dist/api/value-framework-api.js +61 -1128
- package/dist/api/value-framework-costs-api.d.ts +1 -1
- package/dist/api/value-framework-costs-api.js +1 -1
- package/dist/api/value-framework-weights-api.d.ts +1 -1
- package/dist/api/value-framework-weights-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/budget-api.d.ts +1 -1
- package/dist/esm/api/budget-api.js +1 -1
- package/dist/esm/api/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +42 -1
- package/dist/esm/api/impact-api.js +85 -1
- package/dist/esm/api/investment-api.d.ts +1 -551
- package/dist/esm/api/investment-api.js +56 -1188
- package/dist/esm/api/metric-api.d.ts +1 -1
- package/dist/esm/api/metric-api.js +1 -1
- package/dist/esm/api/metric-costs-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-api.js +1 -1
- package/dist/esm/api/metric-costs-per-year-api.d.ts +1 -1
- package/dist/esm/api/metric-costs-per-year-api.js +1 -1
- package/dist/esm/api/objective-api.d.ts +1 -233
- package/dist/esm/api/objective-api.js +1 -479
- package/dist/esm/api/objective-weight-api.d.ts +1 -1
- package/dist/esm/api/objective-weight-api.js +1 -1
- package/dist/esm/api/objective-weights-api.d.ts +1 -1
- package/dist/esm/api/objective-weights-api.js +1 -1
- package/dist/esm/api/option-api.d.ts +1 -212
- package/dist/esm/api/option-api.js +1 -431
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -519
- package/dist/esm/api/value-framework-api.js +61 -1128
- package/dist/esm/api/value-framework-costs-api.d.ts +1 -1
- package/dist/esm/api/value-framework-costs-api.js +1 -1
- package/dist/esm/api/value-framework-weights-api.d.ts +1 -1
- package/dist/esm/api/value-framework-weights-api.js +1 -1
- package/dist/esm/api.d.ts +1 -1
- package/dist/esm/api.js +1 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/budget-bulk-delete-request.js +1 -1
- package/dist/esm/models/budget-create.d.ts +1 -1
- package/dist/esm/models/budget-create.js +1 -1
- package/dist/esm/models/budget-investment-response.d.ts +1 -1
- package/dist/esm/models/budget-investment-response.js +1 -1
- package/dist/esm/models/budget-link-options-request.d.ts +1 -1
- package/dist/esm/models/budget-link-options-request.js +1 -1
- package/dist/esm/models/budget-option-response.d.ts +1 -1
- package/dist/esm/models/budget-option-response.js +1 -1
- package/dist/esm/models/budget-overview-response.d.ts +1 -1
- package/dist/esm/models/budget-overview-response.js +1 -1
- package/dist/esm/models/budget-response.d.ts +1 -1
- package/dist/esm/models/budget-response.js +1 -1
- package/dist/esm/models/budget-update.d.ts +1 -1
- package/dist/esm/models/budget-update.js +1 -1
- package/dist/esm/models/bulk-delete-request.d.ts +1 -1
- package/dist/esm/models/bulk-delete-request.js +1 -1
- package/dist/esm/models/evolution-type.d.ts +1 -1
- package/dist/esm/models/evolution-type.js +1 -1
- package/dist/esm/models/httpvalidation-error.d.ts +1 -1
- package/dist/esm/models/httpvalidation-error.js +1 -1
- package/dist/esm/models/impact-apiresponse.d.ts +1 -1
- package/dist/esm/models/impact-apiresponse.js +1 -1
- package/dist/esm/models/impact-bulk-item.d.ts +37 -0
- package/dist/esm/models/impact-bulk-item.js +14 -0
- package/dist/esm/models/impact-create.d.ts +1 -1
- package/dist/esm/models/impact-create.js +1 -1
- package/dist/esm/models/impact-update.d.ts +1 -1
- package/dist/esm/models/impact-update.js +1 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/esm/models/investment-create.d.ts +1 -1
- package/dist/esm/models/investment-create.js +1 -1
- package/dist/esm/models/investment-overview-response.d.ts +1 -1
- package/dist/esm/models/investment-overview-response.js +1 -1
- package/dist/esm/models/investment-response.d.ts +1 -1
- package/dist/esm/models/investment-response.js +1 -1
- package/dist/esm/models/investment-update.d.ts +1 -1
- package/dist/esm/models/investment-update.js +1 -1
- package/dist/esm/models/location-inner.d.ts +1 -1
- package/dist/esm/models/location-inner.js +1 -1
- package/dist/esm/models/measurement-type.d.ts +1 -1
- package/dist/esm/models/measurement-type.js +1 -1
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +1 -1
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +1 -1
- package/dist/esm/models/option-overview-response.js +1 -1
- package/dist/esm/models/option-response.d.ts +1 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +1 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- 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/budget-bulk-delete-request.d.ts +1 -1
- package/dist/models/budget-bulk-delete-request.js +1 -1
- package/dist/models/budget-create.d.ts +1 -1
- package/dist/models/budget-create.js +1 -1
- package/dist/models/budget-investment-response.d.ts +1 -1
- package/dist/models/budget-investment-response.js +1 -1
- package/dist/models/budget-link-options-request.d.ts +1 -1
- package/dist/models/budget-link-options-request.js +1 -1
- package/dist/models/budget-option-response.d.ts +1 -1
- package/dist/models/budget-option-response.js +1 -1
- package/dist/models/budget-overview-response.d.ts +1 -1
- package/dist/models/budget-overview-response.js +1 -1
- package/dist/models/budget-response.d.ts +1 -1
- package/dist/models/budget-response.js +1 -1
- package/dist/models/budget-update.d.ts +1 -1
- package/dist/models/budget-update.js +1 -1
- package/dist/models/bulk-delete-request.d.ts +1 -1
- package/dist/models/bulk-delete-request.js +1 -1
- package/dist/models/evolution-type.d.ts +1 -1
- package/dist/models/evolution-type.js +1 -1
- package/dist/models/httpvalidation-error.d.ts +1 -1
- package/dist/models/httpvalidation-error.js +1 -1
- package/dist/models/impact-apiresponse.d.ts +1 -1
- package/dist/models/impact-apiresponse.js +1 -1
- package/dist/models/impact-bulk-item.d.ts +37 -0
- package/dist/models/impact-bulk-item.js +15 -0
- package/dist/models/impact-create.d.ts +1 -1
- package/dist/models/impact-create.js +1 -1
- package/dist/models/impact-update.d.ts +1 -1
- package/dist/models/impact-update.js +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/investment-create.d.ts +1 -1
- package/dist/models/investment-create.js +1 -1
- package/dist/models/investment-overview-response.d.ts +1 -1
- package/dist/models/investment-overview-response.js +1 -1
- package/dist/models/investment-response.d.ts +1 -1
- package/dist/models/investment-response.js +1 -1
- package/dist/models/investment-update.d.ts +1 -1
- package/dist/models/investment-update.js +1 -1
- package/dist/models/location-inner.d.ts +1 -1
- package/dist/models/location-inner.js +1 -1
- package/dist/models/measurement-type.d.ts +1 -1
- package/dist/models/measurement-type.js +1 -1
- package/dist/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +1 -1
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +1 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +1 -1
- package/dist/models/option-overview-response.js +1 -1
- package/dist/models/option-response.d.ts +1 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +1 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/ImpactApi.md +60 -0
- package/docs/ImpactBulkItem.md +29 -0
- package/docs/InvestmentApi.md +29 -851
- package/docs/ObjectiveApi.md +0 -351
- package/docs/OptionApi.md +0 -305
- package/docs/ValueFrameworkApi.md +7 -778
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +1 -1
- package/models/budget-create.ts +1 -1
- package/models/budget-investment-response.ts +1 -1
- package/models/budget-link-options-request.ts +1 -1
- package/models/budget-option-response.ts +1 -1
- package/models/budget-overview-response.ts +1 -1
- package/models/budget-response.ts +1 -1
- package/models/budget-update.ts +1 -1
- package/models/bulk-delete-request.ts +1 -1
- package/models/evolution-type.ts +1 -1
- package/models/httpvalidation-error.ts +1 -1
- package/models/impact-apiresponse.ts +1 -1
- package/models/impact-bulk-item.ts +47 -0
- package/models/impact-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +1 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +1 -1
- package/models/investment-response.ts +1 -1
- package/models/investment-update.ts +1 -1
- package/models/location-inner.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +1 -1
- package/models/option-overview-response.ts +1 -1
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
package/dist/api/option-api.js
CHANGED
|
@@ -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.3.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,48 +34,6 @@ const base_1 = require("../base");
|
|
|
34
34
|
*/
|
|
35
35
|
const OptionApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
|
-
/**
|
|
38
|
-
* Create a new impact under this option.
|
|
39
|
-
* @summary Create an impact for this option
|
|
40
|
-
* @param {string} optionId UUID of the option
|
|
41
|
-
* @param {string} investmentId UUID of the investment
|
|
42
|
-
* @param {ImpactCreate} impactCreate
|
|
43
|
-
* @param {*} [options] Override http request option.
|
|
44
|
-
* @throws {RequiredError}
|
|
45
|
-
*/
|
|
46
|
-
createImpactForOption: (optionId_1, investmentId_1, impactCreate_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, impactCreate_1, ...args_1], void 0, function* (optionId, investmentId, impactCreate, options = {}) {
|
|
47
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
48
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'optionId', optionId);
|
|
49
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
50
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'investmentId', investmentId);
|
|
51
|
-
// verify required parameter 'impactCreate' is not null or undefined
|
|
52
|
-
(0, common_1.assertParamExists)('createImpactForOption', 'impactCreate', impactCreate);
|
|
53
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
54
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
55
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
56
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
58
|
-
let baseOptions;
|
|
59
|
-
if (configuration) {
|
|
60
|
-
baseOptions = configuration.baseOptions;
|
|
61
|
-
}
|
|
62
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
63
|
-
const localVarHeaderParameter = {};
|
|
64
|
-
const localVarQueryParameter = {};
|
|
65
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
66
|
-
// oauth required
|
|
67
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
68
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
70
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
71
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
73
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactCreate, localVarRequestOptions, configuration);
|
|
74
|
-
return {
|
|
75
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
76
|
-
options: localVarRequestOptions,
|
|
77
|
-
};
|
|
78
|
-
}),
|
|
79
37
|
/**
|
|
80
38
|
* Create a new option under this investment.
|
|
81
39
|
* @summary Create an option for this investment
|
|
@@ -114,46 +72,6 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
114
72
|
options: localVarRequestOptions,
|
|
115
73
|
};
|
|
116
74
|
}),
|
|
117
|
-
/**
|
|
118
|
-
* Delete an existing impact by its ID.
|
|
119
|
-
* @summary Delete an impact for this option
|
|
120
|
-
* @param {string} impactId UUID of the impact
|
|
121
|
-
* @param {string} optionId UUID of the option
|
|
122
|
-
* @param {string} investmentId UUID of the investment
|
|
123
|
-
* @param {*} [options] Override http request option.
|
|
124
|
-
* @throws {RequiredError}
|
|
125
|
-
*/
|
|
126
|
-
deleteImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
127
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
128
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'impactId', impactId);
|
|
129
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
130
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'optionId', optionId);
|
|
131
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
132
|
-
(0, common_1.assertParamExists)('deleteImpactForOption', 'investmentId', investmentId);
|
|
133
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
134
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
135
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
136
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
137
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
138
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
139
|
-
let baseOptions;
|
|
140
|
-
if (configuration) {
|
|
141
|
-
baseOptions = configuration.baseOptions;
|
|
142
|
-
}
|
|
143
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
144
|
-
const localVarHeaderParameter = {};
|
|
145
|
-
const localVarQueryParameter = {};
|
|
146
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
147
|
-
// oauth required
|
|
148
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
149
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
150
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
151
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
152
|
-
return {
|
|
153
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
154
|
-
options: localVarRequestOptions,
|
|
155
|
-
};
|
|
156
|
-
}),
|
|
157
75
|
/**
|
|
158
76
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
159
77
|
* @summary Delete an option for this investment
|
|
@@ -190,92 +108,6 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
190
108
|
options: localVarRequestOptions,
|
|
191
109
|
};
|
|
192
110
|
}),
|
|
193
|
-
/**
|
|
194
|
-
* Retrieve a specific impact for the option.
|
|
195
|
-
* @summary Get an impact for this option
|
|
196
|
-
* @param {string} impactId UUID of the impact
|
|
197
|
-
* @param {string} optionId UUID of the option
|
|
198
|
-
* @param {string} investmentId UUID of the investment
|
|
199
|
-
* @param {*} [options] Override http request option.
|
|
200
|
-
* @throws {RequiredError}
|
|
201
|
-
*/
|
|
202
|
-
getImpactForOption: (impactId_1, optionId_1, investmentId_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, ...args_1], void 0, function* (impactId, optionId, investmentId, options = {}) {
|
|
203
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
204
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'impactId', impactId);
|
|
205
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
206
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'optionId', optionId);
|
|
207
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
208
|
-
(0, common_1.assertParamExists)('getImpactForOption', 'investmentId', investmentId);
|
|
209
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
210
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
211
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
212
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
213
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
214
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
-
let baseOptions;
|
|
216
|
-
if (configuration) {
|
|
217
|
-
baseOptions = configuration.baseOptions;
|
|
218
|
-
}
|
|
219
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
220
|
-
const localVarHeaderParameter = {};
|
|
221
|
-
const localVarQueryParameter = {};
|
|
222
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
223
|
-
// oauth required
|
|
224
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
225
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
226
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
227
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
228
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
229
|
-
return {
|
|
230
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
231
|
-
options: localVarRequestOptions,
|
|
232
|
-
};
|
|
233
|
-
}),
|
|
234
|
-
/**
|
|
235
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
236
|
-
* @summary List impacts for this option
|
|
237
|
-
* @param {string} optionId UUID of the option
|
|
238
|
-
* @param {string} investmentId UUID of the investment
|
|
239
|
-
* @param {number} [offset] Number of records to skip
|
|
240
|
-
* @param {number} [limit] Max number of records to return
|
|
241
|
-
* @param {*} [options] Override http request option.
|
|
242
|
-
* @throws {RequiredError}
|
|
243
|
-
*/
|
|
244
|
-
getImpactsForOption: (optionId_1, investmentId_1, offset_1, limit_1, ...args_1) => __awaiter(this, [optionId_1, investmentId_1, offset_1, limit_1, ...args_1], void 0, function* (optionId, investmentId, offset, limit, options = {}) {
|
|
245
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
246
|
-
(0, common_1.assertParamExists)('getImpactsForOption', 'optionId', optionId);
|
|
247
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
248
|
-
(0, common_1.assertParamExists)('getImpactsForOption', 'investmentId', investmentId);
|
|
249
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/`
|
|
250
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
251
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
252
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
253
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
254
|
-
let baseOptions;
|
|
255
|
-
if (configuration) {
|
|
256
|
-
baseOptions = configuration.baseOptions;
|
|
257
|
-
}
|
|
258
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
259
|
-
const localVarHeaderParameter = {};
|
|
260
|
-
const localVarQueryParameter = {};
|
|
261
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
262
|
-
// oauth required
|
|
263
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
264
|
-
if (offset !== undefined) {
|
|
265
|
-
localVarQueryParameter['offset'] = offset;
|
|
266
|
-
}
|
|
267
|
-
if (limit !== undefined) {
|
|
268
|
-
localVarQueryParameter['limit'] = limit;
|
|
269
|
-
}
|
|
270
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
271
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
272
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
274
|
-
return {
|
|
275
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
276
|
-
options: localVarRequestOptions,
|
|
277
|
-
};
|
|
278
|
-
}),
|
|
279
111
|
/**
|
|
280
112
|
* Retrieve a specific option for the investment.
|
|
281
113
|
* @summary Get an option for this investment
|
|
@@ -434,52 +266,6 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
434
266
|
options: localVarRequestOptions,
|
|
435
267
|
};
|
|
436
268
|
}),
|
|
437
|
-
/**
|
|
438
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
439
|
-
* @summary Partially update an impact for this option
|
|
440
|
-
* @param {string} impactId UUID of the impact
|
|
441
|
-
* @param {string} optionId UUID of the option
|
|
442
|
-
* @param {string} investmentId UUID of the investment
|
|
443
|
-
* @param {ImpactUpdate} impactUpdate
|
|
444
|
-
* @param {*} [options] Override http request option.
|
|
445
|
-
* @throws {RequiredError}
|
|
446
|
-
*/
|
|
447
|
-
patchImpactForOption: (impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1) => __awaiter(this, [impactId_1, optionId_1, investmentId_1, impactUpdate_1, ...args_1], void 0, function* (impactId, optionId, investmentId, impactUpdate, options = {}) {
|
|
448
|
-
// verify required parameter 'impactId' is not null or undefined
|
|
449
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'impactId', impactId);
|
|
450
|
-
// verify required parameter 'optionId' is not null or undefined
|
|
451
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'optionId', optionId);
|
|
452
|
-
// verify required parameter 'investmentId' is not null or undefined
|
|
453
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'investmentId', investmentId);
|
|
454
|
-
// verify required parameter 'impactUpdate' is not null or undefined
|
|
455
|
-
(0, common_1.assertParamExists)('patchImpactForOption', 'impactUpdate', impactUpdate);
|
|
456
|
-
const localVarPath = `/investment/{investment_id}/option/{option_id}/impact/{impact_id}`
|
|
457
|
-
.replace(`{${"impact_id"}}`, encodeURIComponent(String(impactId)))
|
|
458
|
-
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
459
|
-
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
460
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
461
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
462
|
-
let baseOptions;
|
|
463
|
-
if (configuration) {
|
|
464
|
-
baseOptions = configuration.baseOptions;
|
|
465
|
-
}
|
|
466
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
467
|
-
const localVarHeaderParameter = {};
|
|
468
|
-
const localVarQueryParameter = {};
|
|
469
|
-
// authentication OAuth2AuthorizationCodeBearer required
|
|
470
|
-
// oauth required
|
|
471
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
472
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
473
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
474
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
475
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
477
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(impactUpdate, localVarRequestOptions, configuration);
|
|
478
|
-
return {
|
|
479
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
|
-
options: localVarRequestOptions,
|
|
481
|
-
};
|
|
482
|
-
}),
|
|
483
269
|
/**
|
|
484
270
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
485
271
|
* @summary Partially update an option for this investment
|
|
@@ -531,24 +317,6 @@ exports.OptionApiAxiosParamCreator = OptionApiAxiosParamCreator;
|
|
|
531
317
|
const OptionApiFp = function (configuration) {
|
|
532
318
|
const localVarAxiosParamCreator = (0, exports.OptionApiAxiosParamCreator)(configuration);
|
|
533
319
|
return {
|
|
534
|
-
/**
|
|
535
|
-
* Create a new impact under this option.
|
|
536
|
-
* @summary Create an impact for this option
|
|
537
|
-
* @param {string} optionId UUID of the option
|
|
538
|
-
* @param {string} investmentId UUID of the investment
|
|
539
|
-
* @param {ImpactCreate} impactCreate
|
|
540
|
-
* @param {*} [options] Override http request option.
|
|
541
|
-
* @throws {RequiredError}
|
|
542
|
-
*/
|
|
543
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
544
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
545
|
-
var _a, _b, _c;
|
|
546
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createImpactForOption(optionId, investmentId, impactCreate, options);
|
|
547
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
548
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.createImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
549
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
550
|
-
});
|
|
551
|
-
},
|
|
552
320
|
/**
|
|
553
321
|
* Create a new option under this investment.
|
|
554
322
|
* @summary Create an option for this investment
|
|
@@ -566,24 +334,6 @@ const OptionApiFp = function (configuration) {
|
|
|
566
334
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
567
335
|
});
|
|
568
336
|
},
|
|
569
|
-
/**
|
|
570
|
-
* Delete an existing impact by its ID.
|
|
571
|
-
* @summary Delete an impact for this option
|
|
572
|
-
* @param {string} impactId UUID of the impact
|
|
573
|
-
* @param {string} optionId UUID of the option
|
|
574
|
-
* @param {string} investmentId UUID of the investment
|
|
575
|
-
* @param {*} [options] Override http request option.
|
|
576
|
-
* @throws {RequiredError}
|
|
577
|
-
*/
|
|
578
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
579
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
580
|
-
var _a, _b, _c;
|
|
581
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteImpactForOption(impactId, optionId, investmentId, options);
|
|
582
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
583
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.deleteImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
584
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
|
-
});
|
|
586
|
-
},
|
|
587
337
|
/**
|
|
588
338
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
589
339
|
* @summary Delete an option for this investment
|
|
@@ -601,43 +351,6 @@ const OptionApiFp = function (configuration) {
|
|
|
601
351
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
602
352
|
});
|
|
603
353
|
},
|
|
604
|
-
/**
|
|
605
|
-
* Retrieve a specific impact for the option.
|
|
606
|
-
* @summary Get an impact for this option
|
|
607
|
-
* @param {string} impactId UUID of the impact
|
|
608
|
-
* @param {string} optionId UUID of the option
|
|
609
|
-
* @param {string} investmentId UUID of the investment
|
|
610
|
-
* @param {*} [options] Override http request option.
|
|
611
|
-
* @throws {RequiredError}
|
|
612
|
-
*/
|
|
613
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
614
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
615
|
-
var _a, _b, _c;
|
|
616
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactForOption(impactId, optionId, investmentId, options);
|
|
617
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
618
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
619
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
620
|
-
});
|
|
621
|
-
},
|
|
622
|
-
/**
|
|
623
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
624
|
-
* @summary List impacts for this option
|
|
625
|
-
* @param {string} optionId UUID of the option
|
|
626
|
-
* @param {string} investmentId UUID of the investment
|
|
627
|
-
* @param {number} [offset] Number of records to skip
|
|
628
|
-
* @param {number} [limit] Max number of records to return
|
|
629
|
-
* @param {*} [options] Override http request option.
|
|
630
|
-
* @throws {RequiredError}
|
|
631
|
-
*/
|
|
632
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
633
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
634
|
-
var _a, _b, _c;
|
|
635
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getImpactsForOption(optionId, investmentId, offset, limit, options);
|
|
636
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
637
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getImpactsForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
638
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
639
|
-
});
|
|
640
|
-
},
|
|
641
354
|
/**
|
|
642
355
|
* Retrieve a specific option for the investment.
|
|
643
356
|
* @summary Get an option for this investment
|
|
@@ -708,25 +421,6 @@ const OptionApiFp = function (configuration) {
|
|
|
708
421
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
709
422
|
});
|
|
710
423
|
},
|
|
711
|
-
/**
|
|
712
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
713
|
-
* @summary Partially update an impact for this option
|
|
714
|
-
* @param {string} impactId UUID of the impact
|
|
715
|
-
* @param {string} optionId UUID of the option
|
|
716
|
-
* @param {string} investmentId UUID of the investment
|
|
717
|
-
* @param {ImpactUpdate} impactUpdate
|
|
718
|
-
* @param {*} [options] Override http request option.
|
|
719
|
-
* @throws {RequiredError}
|
|
720
|
-
*/
|
|
721
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
722
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
723
|
-
var _a, _b, _c;
|
|
724
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options);
|
|
725
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
726
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.patchImpactForOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
727
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
728
|
-
});
|
|
729
|
-
},
|
|
730
424
|
/**
|
|
731
425
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
732
426
|
* @summary Partially update an option for this investment
|
|
@@ -754,18 +448,6 @@ exports.OptionApiFp = OptionApiFp;
|
|
|
754
448
|
const OptionApiFactory = function (configuration, basePath, axios) {
|
|
755
449
|
const localVarFp = (0, exports.OptionApiFp)(configuration);
|
|
756
450
|
return {
|
|
757
|
-
/**
|
|
758
|
-
* Create a new impact under this option.
|
|
759
|
-
* @summary Create an impact for this option
|
|
760
|
-
* @param {string} optionId UUID of the option
|
|
761
|
-
* @param {string} investmentId UUID of the investment
|
|
762
|
-
* @param {ImpactCreate} impactCreate
|
|
763
|
-
* @param {*} [options] Override http request option.
|
|
764
|
-
* @throws {RequiredError}
|
|
765
|
-
*/
|
|
766
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
767
|
-
return localVarFp.createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(axios, basePath));
|
|
768
|
-
},
|
|
769
451
|
/**
|
|
770
452
|
* Create a new option under this investment.
|
|
771
453
|
* @summary Create an option for this investment
|
|
@@ -777,18 +459,6 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
777
459
|
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
778
460
|
return localVarFp.createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(axios, basePath));
|
|
779
461
|
},
|
|
780
|
-
/**
|
|
781
|
-
* Delete an existing impact by its ID.
|
|
782
|
-
* @summary Delete an impact for this option
|
|
783
|
-
* @param {string} impactId UUID of the impact
|
|
784
|
-
* @param {string} optionId UUID of the option
|
|
785
|
-
* @param {string} investmentId UUID of the investment
|
|
786
|
-
* @param {*} [options] Override http request option.
|
|
787
|
-
* @throws {RequiredError}
|
|
788
|
-
*/
|
|
789
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
790
|
-
return localVarFp.deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
791
|
-
},
|
|
792
462
|
/**
|
|
793
463
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
794
464
|
* @summary Delete an option for this investment
|
|
@@ -800,31 +470,6 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
800
470
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
801
471
|
return localVarFp.deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
802
472
|
},
|
|
803
|
-
/**
|
|
804
|
-
* Retrieve a specific impact for the option.
|
|
805
|
-
* @summary Get an impact for this option
|
|
806
|
-
* @param {string} impactId UUID of the impact
|
|
807
|
-
* @param {string} optionId UUID of the option
|
|
808
|
-
* @param {string} investmentId UUID of the investment
|
|
809
|
-
* @param {*} [options] Override http request option.
|
|
810
|
-
* @throws {RequiredError}
|
|
811
|
-
*/
|
|
812
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
813
|
-
return localVarFp.getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
814
|
-
},
|
|
815
|
-
/**
|
|
816
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
817
|
-
* @summary List impacts for this option
|
|
818
|
-
* @param {string} optionId UUID of the option
|
|
819
|
-
* @param {string} investmentId UUID of the investment
|
|
820
|
-
* @param {number} [offset] Number of records to skip
|
|
821
|
-
* @param {number} [limit] Max number of records to return
|
|
822
|
-
* @param {*} [options] Override http request option.
|
|
823
|
-
* @throws {RequiredError}
|
|
824
|
-
*/
|
|
825
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
826
|
-
return localVarFp.getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
827
|
-
},
|
|
828
473
|
/**
|
|
829
474
|
* Retrieve a specific option for the investment.
|
|
830
475
|
* @summary Get an option for this investment
|
|
@@ -871,19 +516,6 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
871
516
|
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
872
517
|
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
873
518
|
},
|
|
874
|
-
/**
|
|
875
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
876
|
-
* @summary Partially update an impact for this option
|
|
877
|
-
* @param {string} impactId UUID of the impact
|
|
878
|
-
* @param {string} optionId UUID of the option
|
|
879
|
-
* @param {string} investmentId UUID of the investment
|
|
880
|
-
* @param {ImpactUpdate} impactUpdate
|
|
881
|
-
* @param {*} [options] Override http request option.
|
|
882
|
-
* @throws {RequiredError}
|
|
883
|
-
*/
|
|
884
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
885
|
-
return localVarFp.patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(axios, basePath));
|
|
886
|
-
},
|
|
887
519
|
/**
|
|
888
520
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
889
521
|
* @summary Partially update an option for this investment
|
|
@@ -903,18 +535,6 @@ exports.OptionApiFactory = OptionApiFactory;
|
|
|
903
535
|
* OptionApi - object-oriented interface
|
|
904
536
|
*/
|
|
905
537
|
class OptionApi extends base_1.BaseAPI {
|
|
906
|
-
/**
|
|
907
|
-
* Create a new impact under this option.
|
|
908
|
-
* @summary Create an impact for this option
|
|
909
|
-
* @param {string} optionId UUID of the option
|
|
910
|
-
* @param {string} investmentId UUID of the investment
|
|
911
|
-
* @param {ImpactCreate} impactCreate
|
|
912
|
-
* @param {*} [options] Override http request option.
|
|
913
|
-
* @throws {RequiredError}
|
|
914
|
-
*/
|
|
915
|
-
createImpactForOption(optionId, investmentId, impactCreate, options) {
|
|
916
|
-
return (0, exports.OptionApiFp)(this.configuration).createImpactForOption(optionId, investmentId, impactCreate, options).then((request) => request(this.axios, this.basePath));
|
|
917
|
-
}
|
|
918
538
|
/**
|
|
919
539
|
* Create a new option under this investment.
|
|
920
540
|
* @summary Create an option for this investment
|
|
@@ -926,18 +546,6 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
926
546
|
createOptionForInvestment(investmentId, optionCreate, options) {
|
|
927
547
|
return (0, exports.OptionApiFp)(this.configuration).createOptionForInvestment(investmentId, optionCreate, options).then((request) => request(this.axios, this.basePath));
|
|
928
548
|
}
|
|
929
|
-
/**
|
|
930
|
-
* Delete an existing impact by its ID.
|
|
931
|
-
* @summary Delete an impact for this option
|
|
932
|
-
* @param {string} impactId UUID of the impact
|
|
933
|
-
* @param {string} optionId UUID of the option
|
|
934
|
-
* @param {string} investmentId UUID of the investment
|
|
935
|
-
* @param {*} [options] Override http request option.
|
|
936
|
-
* @throws {RequiredError}
|
|
937
|
-
*/
|
|
938
|
-
deleteImpactForOption(impactId, optionId, investmentId, options) {
|
|
939
|
-
return (0, exports.OptionApiFp)(this.configuration).deleteImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
940
|
-
}
|
|
941
549
|
/**
|
|
942
550
|
* Delete an existing option by its ID. Associated phases and impacts are also deleted via cascade.
|
|
943
551
|
* @summary Delete an option for this investment
|
|
@@ -949,31 +557,6 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
949
557
|
deleteOptionForInvestment(optionId, investmentId, options) {
|
|
950
558
|
return (0, exports.OptionApiFp)(this.configuration).deleteOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
951
559
|
}
|
|
952
|
-
/**
|
|
953
|
-
* Retrieve a specific impact for the option.
|
|
954
|
-
* @summary Get an impact for this option
|
|
955
|
-
* @param {string} impactId UUID of the impact
|
|
956
|
-
* @param {string} optionId UUID of the option
|
|
957
|
-
* @param {string} investmentId UUID of the investment
|
|
958
|
-
* @param {*} [options] Override http request option.
|
|
959
|
-
* @throws {RequiredError}
|
|
960
|
-
*/
|
|
961
|
-
getImpactForOption(impactId, optionId, investmentId, options) {
|
|
962
|
-
return (0, exports.OptionApiFp)(this.configuration).getImpactForOption(impactId, optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
963
|
-
}
|
|
964
|
-
/**
|
|
965
|
-
* Retrieve a paginated list of all impacts for a specific option.
|
|
966
|
-
* @summary List impacts for this option
|
|
967
|
-
* @param {string} optionId UUID of the option
|
|
968
|
-
* @param {string} investmentId UUID of the investment
|
|
969
|
-
* @param {number} [offset] Number of records to skip
|
|
970
|
-
* @param {number} [limit] Max number of records to return
|
|
971
|
-
* @param {*} [options] Override http request option.
|
|
972
|
-
* @throws {RequiredError}
|
|
973
|
-
*/
|
|
974
|
-
getImpactsForOption(optionId, investmentId, offset, limit, options) {
|
|
975
|
-
return (0, exports.OptionApiFp)(this.configuration).getImpactsForOption(optionId, investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
976
|
-
}
|
|
977
560
|
/**
|
|
978
561
|
* Retrieve a specific option for the investment.
|
|
979
562
|
* @summary Get an option for this investment
|
|
@@ -1020,19 +603,6 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
1020
603
|
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1021
604
|
return (0, exports.OptionApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1022
605
|
}
|
|
1023
|
-
/**
|
|
1024
|
-
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1025
|
-
* @summary Partially update an impact for this option
|
|
1026
|
-
* @param {string} impactId UUID of the impact
|
|
1027
|
-
* @param {string} optionId UUID of the option
|
|
1028
|
-
* @param {string} investmentId UUID of the investment
|
|
1029
|
-
* @param {ImpactUpdate} impactUpdate
|
|
1030
|
-
* @param {*} [options] Override http request option.
|
|
1031
|
-
* @throws {RequiredError}
|
|
1032
|
-
*/
|
|
1033
|
-
patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options) {
|
|
1034
|
-
return (0, exports.OptionApiFp)(this.configuration).patchImpactForOption(impactId, optionId, investmentId, impactUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
1035
|
-
}
|
|
1036
606
|
/**
|
|
1037
607
|
* Update one or more fields of an existing option. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
1038
608
|
* @summary Partially update an option for this investment
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Asset Investment Planning
|
|
3
3
|
* API for Asset Investment Planning
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 0.3.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.3.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.3.0-dev3
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|