@cosmotech/aip-client 0.2.0-dev5 → 0.2.0-dev7
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 +13 -8
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +259 -98
- 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 -1
- package/api/objective-weight-api.ts +1 -1
- package/api/objective-weights-api.ts +1 -1
- package/api/option-api.ts +89 -5
- package/api/{favored-option-api.ts → preferred-option-api.ts} +40 -40
- package/api/value-framework-api.ts +1 -1
- package/api/value-framework-costs-api.ts +1 -1
- package/api/value-framework-weights-api.ts +1 -1
- package/api.ts +2 -2
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +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 +1 -1
- package/dist/api/impact-api.js +1 -1
- package/dist/api/investment-api.d.ts +117 -47
- package/dist/api/investment-api.js +240 -91
- 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 -1
- package/dist/api/objective-api.js +1 -1
- 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 +42 -5
- package/dist/api/option-api.js +83 -5
- package/dist/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
- package/dist/api/{favored-option-api.js → preferred-option-api.js} +43 -43
- package/dist/api/value-framework-api.d.ts +1 -1
- package/dist/api/value-framework-api.js +1 -1
- 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 +2 -2
- package/dist/api.js +2 -2
- 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/default-api.d.ts +1 -1
- package/dist/esm/api/default-api.js +1 -1
- package/dist/esm/api/impact-api.d.ts +1 -1
- package/dist/esm/api/impact-api.js +1 -1
- package/dist/esm/api/investment-api.d.ts +117 -47
- package/dist/esm/api/investment-api.js +240 -91
- 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 -1
- package/dist/esm/api/objective-api.js +1 -1
- 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 +42 -5
- package/dist/esm/api/option-api.js +83 -5
- package/dist/esm/api/{favored-option-api.d.ts → preferred-option-api.d.ts} +23 -23
- package/dist/esm/api/{favored-option-api.js → preferred-option-api.js} +38 -38
- package/dist/esm/api/value-framework-api.d.ts +1 -1
- package/dist/esm/api/value-framework-api.js +1 -1
- 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 +2 -2
- package/dist/esm/api.js +2 -2
- 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/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-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 +4 -2
- package/dist/esm/models/index.js +4 -2
- 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 +29 -0
- package/dist/esm/models/{favored-option-request.js → 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 +37 -0
- package/dist/esm/models/{favored-option-response.js → 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/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
- package/dist/esm/models/preferred-option-request.js +14 -0
- package/dist/esm/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
- package/dist/esm/models/preferred-option-response.js +14 -0
- 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/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-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 +4 -2
- package/dist/models/index.js +4 -2
- 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 +29 -0
- package/dist/models/{favored-option-request.js → 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 +37 -0
- package/dist/models/{favored-option-response.js → 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/{favored-option-request.d.ts → preferred-option-request.d.ts} +2 -2
- package/dist/models/preferred-option-request.js +15 -0
- package/dist/models/{favored-option-response.d.ts → preferred-option-response.d.ts} +3 -3
- package/dist/models/preferred-option-response.js +15 -0
- 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/InvestmentApi.md +174 -65
- package/docs/InvestmentOverviewResponse.md +33 -0
- package/docs/OptionApi.md +58 -2
- package/docs/OptionOverviewResponse.md +31 -0
- package/docs/{FavoredOptionApi.md → PreferredOptionApi.md} +19 -19
- package/docs/{FavoredOptionRequest.md → PreferredOptionRequest.md} +3 -3
- package/docs/{FavoredOptionResponse.md → PreferredOptionResponse.md} +4 -4
- package/index.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-create.ts +1 -1
- package/models/impact-update.ts +1 -1
- package/models/index.ts +4 -2
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +35 -0
- 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 +43 -0
- package/models/option-response.ts +1 -1
- package/models/option-update.ts +1 -1
- package/models/{favored-option-request.ts → preferred-option-request.ts} +2 -2
- package/models/{favored-option-response.ts → preferred-option-response.ts} +3 -3
- 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.d.ts
CHANGED
|
@@ -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.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -17,6 +17,7 @@ import type { ImpactCreate } from '../models';
|
|
|
17
17
|
import type { ImpactUpdate } from '../models';
|
|
18
18
|
import type { OptionChartKPIsYearly } from '../models';
|
|
19
19
|
import type { OptionCreate } from '../models';
|
|
20
|
+
import type { OptionOverviewResponse } from '../models';
|
|
20
21
|
import type { OptionResponse } from '../models';
|
|
21
22
|
import type { OptionUpdate } from '../models';
|
|
22
23
|
/**
|
|
@@ -92,7 +93,7 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
92
93
|
*/
|
|
93
94
|
getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
94
95
|
/**
|
|
95
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
96
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
96
97
|
* @summary Get the kpis for a given option inside a value framework
|
|
97
98
|
* @param {string} investmentId UUID of the investment
|
|
98
99
|
* @param {string} optionId UUID of the option
|
|
@@ -111,6 +112,15 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
111
112
|
* @throws {RequiredError}
|
|
112
113
|
*/
|
|
113
114
|
getOptionsForInvestment: (investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
115
|
+
/**
|
|
116
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
117
|
+
* @summary Option overview table for this investment
|
|
118
|
+
* @param {string} investmentId UUID of the investment
|
|
119
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
120
|
+
* @param {*} [options] Override http request option.
|
|
121
|
+
* @throws {RequiredError}
|
|
122
|
+
*/
|
|
123
|
+
getOptionsOverview: (investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
114
124
|
/**
|
|
115
125
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
116
126
|
* @summary Partially update an impact for this option
|
|
@@ -206,7 +216,7 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
|
|
|
206
216
|
*/
|
|
207
217
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
|
|
208
218
|
/**
|
|
209
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
219
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
210
220
|
* @summary Get the kpis for a given option inside a value framework
|
|
211
221
|
* @param {string} investmentId UUID of the investment
|
|
212
222
|
* @param {string} optionId UUID of the option
|
|
@@ -225,6 +235,15 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
|
|
|
225
235
|
* @throws {RequiredError}
|
|
226
236
|
*/
|
|
227
237
|
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionResponse>>>;
|
|
238
|
+
/**
|
|
239
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
240
|
+
* @summary Option overview table for this investment
|
|
241
|
+
* @param {string} investmentId UUID of the investment
|
|
242
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @throws {RequiredError}
|
|
245
|
+
*/
|
|
246
|
+
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionOverviewResponse>>>;
|
|
228
247
|
/**
|
|
229
248
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
230
249
|
* @summary Partially update an impact for this option
|
|
@@ -320,7 +339,7 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
|
|
|
320
339
|
*/
|
|
321
340
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
|
|
322
341
|
/**
|
|
323
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
342
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
324
343
|
* @summary Get the kpis for a given option inside a value framework
|
|
325
344
|
* @param {string} investmentId UUID of the investment
|
|
326
345
|
* @param {string} optionId UUID of the option
|
|
@@ -339,6 +358,15 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
|
|
|
339
358
|
* @throws {RequiredError}
|
|
340
359
|
*/
|
|
341
360
|
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionResponse>>;
|
|
361
|
+
/**
|
|
362
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
363
|
+
* @summary Option overview table for this investment
|
|
364
|
+
* @param {string} investmentId UUID of the investment
|
|
365
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
366
|
+
* @param {*} [options] Override http request option.
|
|
367
|
+
* @throws {RequiredError}
|
|
368
|
+
*/
|
|
369
|
+
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionOverviewResponse>>;
|
|
342
370
|
/**
|
|
343
371
|
* Update one or more fields of an existing impact. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
344
372
|
* @summary Partially update an impact for this option
|
|
@@ -434,7 +462,7 @@ export declare class OptionApi extends BaseAPI {
|
|
|
434
462
|
*/
|
|
435
463
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
|
|
436
464
|
/**
|
|
437
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
465
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
438
466
|
* @summary Get the kpis for a given option inside a value framework
|
|
439
467
|
* @param {string} investmentId UUID of the investment
|
|
440
468
|
* @param {string} optionId UUID of the option
|
|
@@ -453,6 +481,15 @@ export declare class OptionApi extends BaseAPI {
|
|
|
453
481
|
* @throws {RequiredError}
|
|
454
482
|
*/
|
|
455
483
|
getOptionsForInvestment(investmentId: string, offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse[], any, {}>>;
|
|
484
|
+
/**
|
|
485
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
486
|
+
* @summary Option overview table for this investment
|
|
487
|
+
* @param {string} investmentId UUID of the investment
|
|
488
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
489
|
+
* @param {*} [options] Override http request option.
|
|
490
|
+
* @throws {RequiredError}
|
|
491
|
+
*/
|
|
492
|
+
getOptionsOverview(investmentId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionOverviewResponse[], any, {}>>;
|
|
456
493
|
/**
|
|
457
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.
|
|
458
495
|
* @summary Partially update an impact for this option
|
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.2.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -314,7 +314,7 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
316
|
/**
|
|
317
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
317
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
318
318
|
* @summary Get the kpis for a given option inside a value framework
|
|
319
319
|
* @param {string} investmentId UUID of the investment
|
|
320
320
|
* @param {string} optionId UUID of the option
|
|
@@ -395,6 +395,45 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
395
395
|
options: localVarRequestOptions,
|
|
396
396
|
};
|
|
397
397
|
}),
|
|
398
|
+
/**
|
|
399
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
400
|
+
* @summary Option overview table for this investment
|
|
401
|
+
* @param {string} investmentId UUID of the investment
|
|
402
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
403
|
+
* @param {*} [options] Override http request option.
|
|
404
|
+
* @throws {RequiredError}
|
|
405
|
+
*/
|
|
406
|
+
getOptionsOverview: (investmentId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, valueFrameworkId, options = {}) {
|
|
407
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
408
|
+
(0, common_1.assertParamExists)('getOptionsOverview', 'investmentId', investmentId);
|
|
409
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
410
|
+
(0, common_1.assertParamExists)('getOptionsOverview', 'valueFrameworkId', valueFrameworkId);
|
|
411
|
+
const localVarPath = `/investment/{investment_id}/option/overview`
|
|
412
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
413
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
414
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
415
|
+
let baseOptions;
|
|
416
|
+
if (configuration) {
|
|
417
|
+
baseOptions = configuration.baseOptions;
|
|
418
|
+
}
|
|
419
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
420
|
+
const localVarHeaderParameter = {};
|
|
421
|
+
const localVarQueryParameter = {};
|
|
422
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
423
|
+
// oauth required
|
|
424
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
425
|
+
if (valueFrameworkId !== undefined) {
|
|
426
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
427
|
+
}
|
|
428
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
429
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
430
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
431
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
432
|
+
return {
|
|
433
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
434
|
+
options: localVarRequestOptions,
|
|
435
|
+
};
|
|
436
|
+
}),
|
|
398
437
|
/**
|
|
399
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.
|
|
400
439
|
* @summary Partially update an impact for this option
|
|
@@ -617,7 +656,7 @@ const OptionApiFp = function (configuration) {
|
|
|
617
656
|
});
|
|
618
657
|
},
|
|
619
658
|
/**
|
|
620
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
659
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
621
660
|
* @summary Get the kpis for a given option inside a value framework
|
|
622
661
|
* @param {string} investmentId UUID of the investment
|
|
623
662
|
* @param {string} optionId UUID of the option
|
|
@@ -652,6 +691,23 @@ const OptionApiFp = function (configuration) {
|
|
|
652
691
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
653
692
|
});
|
|
654
693
|
},
|
|
694
|
+
/**
|
|
695
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
696
|
+
* @summary Option overview table for this investment
|
|
697
|
+
* @param {string} investmentId UUID of the investment
|
|
698
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
699
|
+
* @param {*} [options] Override http request option.
|
|
700
|
+
* @throws {RequiredError}
|
|
701
|
+
*/
|
|
702
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
703
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
704
|
+
var _a, _b, _c;
|
|
705
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionsOverview(investmentId, valueFrameworkId, options);
|
|
706
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
707
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getOptionsOverview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
708
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
709
|
+
});
|
|
710
|
+
},
|
|
655
711
|
/**
|
|
656
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.
|
|
657
713
|
* @summary Partially update an impact for this option
|
|
@@ -781,7 +837,7 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
781
837
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
782
838
|
},
|
|
783
839
|
/**
|
|
784
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
840
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
785
841
|
* @summary Get the kpis for a given option inside a value framework
|
|
786
842
|
* @param {string} investmentId UUID of the investment
|
|
787
843
|
* @param {string} optionId UUID of the option
|
|
@@ -804,6 +860,17 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
804
860
|
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
805
861
|
return localVarFp.getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(axios, basePath));
|
|
806
862
|
},
|
|
863
|
+
/**
|
|
864
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
865
|
+
* @summary Option overview table for this investment
|
|
866
|
+
* @param {string} investmentId UUID of the investment
|
|
867
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
868
|
+
* @param {*} [options] Override http request option.
|
|
869
|
+
* @throws {RequiredError}
|
|
870
|
+
*/
|
|
871
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
872
|
+
return localVarFp.getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
873
|
+
},
|
|
807
874
|
/**
|
|
808
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.
|
|
809
876
|
* @summary Partially update an impact for this option
|
|
@@ -919,7 +986,7 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
919
986
|
return (0, exports.OptionApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
920
987
|
}
|
|
921
988
|
/**
|
|
922
|
-
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
989
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework. Data is sourced from the v_option_yearly_kpis database view.
|
|
923
990
|
* @summary Get the kpis for a given option inside a value framework
|
|
924
991
|
* @param {string} investmentId UUID of the investment
|
|
925
992
|
* @param {string} optionId UUID of the option
|
|
@@ -942,6 +1009,17 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
942
1009
|
getOptionsForInvestment(investmentId, offset, limit, options) {
|
|
943
1010
|
return (0, exports.OptionApiFp)(this.configuration).getOptionsForInvestment(investmentId, offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
944
1011
|
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Return a flat overview of all options for a specific investment. Each row includes the option\'s start date, cost, duration and NPV computed by the v_option_npv database view for the given value framework.
|
|
1014
|
+
* @summary Option overview table for this investment
|
|
1015
|
+
* @param {string} investmentId UUID of the investment
|
|
1016
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
getOptionsOverview(investmentId, valueFrameworkId, options) {
|
|
1021
|
+
return (0, exports.OptionApiFp)(this.configuration).getOptionsOverview(investmentId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1022
|
+
}
|
|
945
1023
|
/**
|
|
946
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.
|
|
947
1025
|
* @summary Partially update an impact for this option
|
|
@@ -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.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
15
|
+
import type { PreferredOptionRequest } from '../models';
|
|
16
|
+
import type { PreferredOptionResponse } from '../models';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* PreferredOptionApi - axios parameter creator
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const PreferredOptionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
21
|
/**
|
|
22
22
|
* Get the preferred option for an investment.
|
|
23
23
|
* @summary Get the preferred option for an investment
|
|
@@ -25,21 +25,21 @@ export declare const FavoredOptionApiAxiosParamCreator: (configuration?: Configu
|
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
getPreferredOption: (investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
29
|
/**
|
|
30
30
|
* Set the preferred option for an investment.
|
|
31
31
|
* @summary Set the preferred option for an investment
|
|
32
32
|
* @param {string} investmentId UUID of the investment
|
|
33
|
-
* @param {
|
|
33
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
setPreferredOption: (investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* PreferredOptionApi - functional programming interface
|
|
41
41
|
*/
|
|
42
|
-
export declare const
|
|
42
|
+
export declare const PreferredOptionApiFp: (configuration?: Configuration) => {
|
|
43
43
|
/**
|
|
44
44
|
* Get the preferred option for an investment.
|
|
45
45
|
* @summary Get the preferred option for an investment
|
|
@@ -47,21 +47,21 @@ export declare const FavoredOptionApiFp: (configuration?: Configuration) => {
|
|
|
47
47
|
* @param {*} [options] Override http request option.
|
|
48
48
|
* @throws {RequiredError}
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>>;
|
|
51
51
|
/**
|
|
52
52
|
* Set the preferred option for an investment.
|
|
53
53
|
* @summary Set the preferred option for an investment
|
|
54
54
|
* @param {string} investmentId UUID of the investment
|
|
55
|
-
* @param {
|
|
55
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreferredOptionResponse>>;
|
|
60
60
|
};
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* PreferredOptionApi - factory interface
|
|
63
63
|
*/
|
|
64
|
-
export declare const
|
|
64
|
+
export declare const PreferredOptionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
65
65
|
/**
|
|
66
66
|
* Get the preferred option for an investment.
|
|
67
67
|
* @summary Get the preferred option for an investment
|
|
@@ -69,21 +69,21 @@ export declare const FavoredOptionApiFactory: (configuration?: Configuration, ba
|
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse>;
|
|
73
73
|
/**
|
|
74
74
|
* Set the preferred option for an investment.
|
|
75
75
|
* @summary Set the preferred option for an investment
|
|
76
76
|
* @param {string} investmentId UUID of the investment
|
|
77
|
-
* @param {
|
|
77
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PreferredOptionResponse>;
|
|
82
82
|
};
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* PreferredOptionApi - object-oriented interface
|
|
85
85
|
*/
|
|
86
|
-
export declare class
|
|
86
|
+
export declare class PreferredOptionApi extends BaseAPI {
|
|
87
87
|
/**
|
|
88
88
|
* Get the preferred option for an investment.
|
|
89
89
|
* @summary Get the preferred option for an investment
|
|
@@ -91,14 +91,14 @@ export declare class FavoredOptionApi extends BaseAPI {
|
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
*/
|
|
94
|
-
|
|
94
|
+
getPreferredOption(investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreferredOptionResponse, any, {}>>;
|
|
95
95
|
/**
|
|
96
96
|
* Set the preferred option for an investment.
|
|
97
97
|
* @summary Set the preferred option for an investment
|
|
98
98
|
* @param {string} investmentId UUID of the investment
|
|
99
|
-
* @param {
|
|
99
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
100
100
|
* @param {*} [options] Override http request option.
|
|
101
101
|
* @throws {RequiredError}
|
|
102
102
|
*/
|
|
103
|
-
|
|
103
|
+
setPreferredOption(investmentId: string, preferredOptionRequest: PreferredOptionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreferredOptionResponse, any, {}>>;
|
|
104
104
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Asset Investment Planning
|
|
6
6
|
* API for Asset Investment Planning
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.2.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.PreferredOptionApi = exports.PreferredOptionApiFactory = exports.PreferredOptionApiFp = exports.PreferredOptionApiAxiosParamCreator = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -30,9 +30,9 @@ const common_1 = require("../common");
|
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const base_1 = require("../base");
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* PreferredOptionApi - axios parameter creator
|
|
34
34
|
*/
|
|
35
|
-
const
|
|
35
|
+
const PreferredOptionApiAxiosParamCreator = function (configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
* Get the preferred option for an investment.
|
|
@@ -41,10 +41,10 @@ const FavoredOptionApiAxiosParamCreator = function (configuration) {
|
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
getPreferredOption: (investmentId_1, ...args_1) => __awaiter(this, [investmentId_1, ...args_1], void 0, function* (investmentId, options = {}) {
|
|
45
45
|
// verify required parameter 'investmentId' is not null or undefined
|
|
46
|
-
(0, common_1.assertParamExists)('
|
|
47
|
-
const localVarPath = `/investment/{investment_id}/
|
|
46
|
+
(0, common_1.assertParamExists)('getPreferredOption', 'investmentId', investmentId);
|
|
47
|
+
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
48
48
|
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -71,16 +71,16 @@ const FavoredOptionApiAxiosParamCreator = function (configuration) {
|
|
|
71
71
|
* Set the preferred option for an investment.
|
|
72
72
|
* @summary Set the preferred option for an investment
|
|
73
73
|
* @param {string} investmentId UUID of the investment
|
|
74
|
-
* @param {
|
|
74
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
75
75
|
* @param {*} [options] Override http request option.
|
|
76
76
|
* @throws {RequiredError}
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
setPreferredOption: (investmentId_1, preferredOptionRequest_1, ...args_1) => __awaiter(this, [investmentId_1, preferredOptionRequest_1, ...args_1], void 0, function* (investmentId, preferredOptionRequest, options = {}) {
|
|
79
79
|
// verify required parameter 'investmentId' is not null or undefined
|
|
80
|
-
(0, common_1.assertParamExists)('
|
|
81
|
-
// verify required parameter '
|
|
82
|
-
(0, common_1.assertParamExists)('
|
|
83
|
-
const localVarPath = `/investment/{investment_id}/
|
|
80
|
+
(0, common_1.assertParamExists)('setPreferredOption', 'investmentId', investmentId);
|
|
81
|
+
// verify required parameter 'preferredOptionRequest' is not null or undefined
|
|
82
|
+
(0, common_1.assertParamExists)('setPreferredOption', 'preferredOptionRequest', preferredOptionRequest);
|
|
83
|
+
const localVarPath = `/investment/{investment_id}/preferred_option`
|
|
84
84
|
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)));
|
|
85
85
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
86
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -99,7 +99,7 @@ const FavoredOptionApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
100
100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
101
101
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
102
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
102
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(preferredOptionRequest, localVarRequestOptions, configuration);
|
|
103
103
|
return {
|
|
104
104
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
105
105
|
options: localVarRequestOptions,
|
|
@@ -107,12 +107,12 @@ const FavoredOptionApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
}),
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
exports.
|
|
110
|
+
exports.PreferredOptionApiAxiosParamCreator = PreferredOptionApiAxiosParamCreator;
|
|
111
111
|
/**
|
|
112
|
-
*
|
|
112
|
+
* PreferredOptionApi - functional programming interface
|
|
113
113
|
*/
|
|
114
|
-
const
|
|
115
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
114
|
+
const PreferredOptionApiFp = function (configuration) {
|
|
115
|
+
const localVarAxiosParamCreator = (0, exports.PreferredOptionApiAxiosParamCreator)(configuration);
|
|
116
116
|
return {
|
|
117
117
|
/**
|
|
118
118
|
* Get the preferred option for an investment.
|
|
@@ -121,12 +121,12 @@ const FavoredOptionApiFp = function (configuration) {
|
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
getPreferredOption(investmentId, options) {
|
|
125
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
126
|
var _a, _b, _c;
|
|
127
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
127
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferredOption(investmentId, options);
|
|
128
128
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
129
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
129
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreferredOptionApi.getPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
130
130
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
131
131
|
});
|
|
132
132
|
},
|
|
@@ -134,27 +134,27 @@ const FavoredOptionApiFp = function (configuration) {
|
|
|
134
134
|
* Set the preferred option for an investment.
|
|
135
135
|
* @summary Set the preferred option for an investment
|
|
136
136
|
* @param {string} investmentId UUID of the investment
|
|
137
|
-
* @param {
|
|
137
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
142
142
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
143
|
var _a, _b, _c;
|
|
144
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
144
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.setPreferredOption(investmentId, preferredOptionRequest, options);
|
|
145
145
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
146
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
146
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PreferredOptionApi.setPreferredOption']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
147
147
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
148
148
|
});
|
|
149
149
|
},
|
|
150
150
|
};
|
|
151
151
|
};
|
|
152
|
-
exports.
|
|
152
|
+
exports.PreferredOptionApiFp = PreferredOptionApiFp;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* PreferredOptionApi - factory interface
|
|
155
155
|
*/
|
|
156
|
-
const
|
|
157
|
-
const localVarFp = (0, exports.
|
|
156
|
+
const PreferredOptionApiFactory = function (configuration, basePath, axios) {
|
|
157
|
+
const localVarFp = (0, exports.PreferredOptionApiFp)(configuration);
|
|
158
158
|
return {
|
|
159
159
|
/**
|
|
160
160
|
* Get the preferred option for an investment.
|
|
@@ -163,27 +163,27 @@ const FavoredOptionApiFactory = function (configuration, basePath, axios) {
|
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
|
|
167
|
-
return localVarFp.
|
|
166
|
+
getPreferredOption(investmentId, options) {
|
|
167
|
+
return localVarFp.getPreferredOption(investmentId, options).then((request) => request(axios, basePath));
|
|
168
168
|
},
|
|
169
169
|
/**
|
|
170
170
|
* Set the preferred option for an investment.
|
|
171
171
|
* @summary Set the preferred option for an investment
|
|
172
172
|
* @param {string} investmentId UUID of the investment
|
|
173
|
-
* @param {
|
|
173
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
174
174
|
* @param {*} [options] Override http request option.
|
|
175
175
|
* @throws {RequiredError}
|
|
176
176
|
*/
|
|
177
|
-
|
|
178
|
-
return localVarFp.
|
|
177
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
178
|
+
return localVarFp.setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(axios, basePath));
|
|
179
179
|
},
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
|
-
exports.
|
|
182
|
+
exports.PreferredOptionApiFactory = PreferredOptionApiFactory;
|
|
183
183
|
/**
|
|
184
|
-
*
|
|
184
|
+
* PreferredOptionApi - object-oriented interface
|
|
185
185
|
*/
|
|
186
|
-
class
|
|
186
|
+
class PreferredOptionApi extends base_1.BaseAPI {
|
|
187
187
|
/**
|
|
188
188
|
* Get the preferred option for an investment.
|
|
189
189
|
* @summary Get the preferred option for an investment
|
|
@@ -191,19 +191,19 @@ class FavoredOptionApi extends base_1.BaseAPI {
|
|
|
191
191
|
* @param {*} [options] Override http request option.
|
|
192
192
|
* @throws {RequiredError}
|
|
193
193
|
*/
|
|
194
|
-
|
|
195
|
-
return (0, exports.
|
|
194
|
+
getPreferredOption(investmentId, options) {
|
|
195
|
+
return (0, exports.PreferredOptionApiFp)(this.configuration).getPreferredOption(investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
196
196
|
}
|
|
197
197
|
/**
|
|
198
198
|
* Set the preferred option for an investment.
|
|
199
199
|
* @summary Set the preferred option for an investment
|
|
200
200
|
* @param {string} investmentId UUID of the investment
|
|
201
|
-
* @param {
|
|
201
|
+
* @param {PreferredOptionRequest} preferredOptionRequest
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
|
|
206
|
-
return (0, exports.
|
|
205
|
+
setPreferredOption(investmentId, preferredOptionRequest, options) {
|
|
206
|
+
return (0, exports.PreferredOptionApiFp)(this.configuration).setPreferredOption(investmentId, preferredOptionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
exports.
|
|
209
|
+
exports.PreferredOptionApi = PreferredOptionApi;
|
|
@@ -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.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
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.2.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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.2.0-
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
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.2.0-
|
|
8
|
+
* The version of the OpenAPI document: 0.2.0-dev6
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|