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