@cosmotech/aip-client 0.2.0-dev4 → 0.2.0-dev5
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 +6 -2
- package/api/investment-api.ts +88 -0
- package/api/option-api.ts +88 -0
- package/dist/api/investment-api.d.ts +41 -0
- package/dist/api/investment-api.js +83 -0
- package/dist/api/option-api.d.ts +41 -0
- package/dist/api/option-api.js +83 -0
- package/dist/esm/api/investment-api.d.ts +41 -0
- package/dist/esm/api/investment-api.js +83 -0
- package/dist/esm/api/option-api.d.ts +41 -0
- package/dist/esm/api/option-api.js +83 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/esm/models/option-chart-kpi.d.ts +29 -0
- package/dist/esm/models/option-chart-kpi.js +14 -0
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/esm/models/option-chart-kpis-yearly.js +14 -0
- package/dist/esm/models/option-create.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/option-chart-kpi.d.ts +29 -0
- package/dist/models/option-chart-kpi.js +15 -0
- package/dist/models/option-chart-kpis-yearly.d.ts +29 -0
- package/dist/models/option-chart-kpis-yearly.js +15 -0
- package/dist/models/option-create.d.ts +1 -1
- package/docs/InvestmentApi.md +59 -0
- package/docs/OptionApi.md +59 -0
- package/docs/OptionChartKPI.md +27 -0
- package/docs/OptionChartKPIsYearly.md +25 -0
- package/docs/OptionCreate.md +1 -1
- package/models/index.ts +2 -0
- package/models/option-chart-kpi.ts +35 -0
- package/models/option-chart-kpis-yearly.ts +37 -0
- package/models/option-create.ts +1 -1
- package/package.json +1 -1
package/dist/api/option-api.js
CHANGED
|
@@ -313,6 +313,47 @@ const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
313
313
|
options: localVarRequestOptions,
|
|
314
314
|
};
|
|
315
315
|
}),
|
|
316
|
+
/**
|
|
317
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
318
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
319
|
+
* @param {string} investmentId UUID of the investment
|
|
320
|
+
* @param {string} optionId UUID of the option
|
|
321
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
322
|
+
* @param {*} [options] Override http request option.
|
|
323
|
+
* @throws {RequiredError}
|
|
324
|
+
*/
|
|
325
|
+
getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
|
|
326
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
327
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'investmentId', investmentId);
|
|
328
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
329
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'optionId', optionId);
|
|
330
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
332
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
333
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
334
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
335
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
336
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
337
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
338
|
+
let baseOptions;
|
|
339
|
+
if (configuration) {
|
|
340
|
+
baseOptions = configuration.baseOptions;
|
|
341
|
+
}
|
|
342
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
343
|
+
const localVarHeaderParameter = {};
|
|
344
|
+
const localVarQueryParameter = {};
|
|
345
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
346
|
+
// oauth required
|
|
347
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
348
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
349
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
350
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
351
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
352
|
+
return {
|
|
353
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
354
|
+
options: localVarRequestOptions,
|
|
355
|
+
};
|
|
356
|
+
}),
|
|
316
357
|
/**
|
|
317
358
|
* Retrieve a paginated list of all options for a specific investment.
|
|
318
359
|
* @summary List options for this investment
|
|
@@ -575,6 +616,24 @@ const OptionApiFp = function (configuration) {
|
|
|
575
616
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
576
617
|
});
|
|
577
618
|
},
|
|
619
|
+
/**
|
|
620
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
621
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
622
|
+
* @param {string} investmentId UUID of the investment
|
|
623
|
+
* @param {string} optionId UUID of the option
|
|
624
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
629
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
630
|
+
var _a, _b, _c;
|
|
631
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
|
|
632
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
633
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OptionApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
634
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
635
|
+
});
|
|
636
|
+
},
|
|
578
637
|
/**
|
|
579
638
|
* Retrieve a paginated list of all options for a specific investment.
|
|
580
639
|
* @summary List options for this investment
|
|
@@ -721,6 +780,18 @@ const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
721
780
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
722
781
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
723
782
|
},
|
|
783
|
+
/**
|
|
784
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
785
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
786
|
+
* @param {string} investmentId UUID of the investment
|
|
787
|
+
* @param {string} optionId UUID of the option
|
|
788
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
793
|
+
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
794
|
+
},
|
|
724
795
|
/**
|
|
725
796
|
* Retrieve a paginated list of all options for a specific investment.
|
|
726
797
|
* @summary List options for this investment
|
|
@@ -847,6 +918,18 @@ class OptionApi extends base_1.BaseAPI {
|
|
|
847
918
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
848
919
|
return (0, exports.OptionApiFp)(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
849
920
|
}
|
|
921
|
+
/**
|
|
922
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
923
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
924
|
+
* @param {string} investmentId UUID of the investment
|
|
925
|
+
* @param {string} optionId UUID of the option
|
|
926
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
927
|
+
* @param {*} [options] Override http request option.
|
|
928
|
+
* @throws {RequiredError}
|
|
929
|
+
*/
|
|
930
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
931
|
+
return (0, exports.OptionApiFp)(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
932
|
+
}
|
|
850
933
|
/**
|
|
851
934
|
* Retrieve a paginated list of all options for a specific investment.
|
|
852
935
|
* @summary List options for this investment
|
|
@@ -20,6 +20,7 @@ import type { ImpactUpdate } from '../models';
|
|
|
20
20
|
import type { InvestmentCreate } from '../models';
|
|
21
21
|
import type { InvestmentResponse } from '../models';
|
|
22
22
|
import type { InvestmentUpdate } from '../models';
|
|
23
|
+
import type { OptionChartKPIsYearly } from '../models';
|
|
23
24
|
import type { OptionCreate } from '../models';
|
|
24
25
|
import type { OptionResponse } from '../models';
|
|
25
26
|
import type { OptionUpdate } from '../models';
|
|
@@ -128,6 +129,16 @@ export declare const InvestmentApiAxiosParamCreator: (configuration?: Configurat
|
|
|
128
129
|
* @throws {RequiredError}
|
|
129
130
|
*/
|
|
130
131
|
getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
132
|
+
/**
|
|
133
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
134
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
135
|
+
* @param {string} investmentId UUID of the investment
|
|
136
|
+
* @param {string} optionId UUID of the option
|
|
137
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
getOptionKpis: (investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
131
142
|
/**
|
|
132
143
|
* Retrieve a paginated list of all options for a specific investment.
|
|
133
144
|
* @summary List options for this investment
|
|
@@ -291,6 +302,16 @@ export declare const InvestmentApiFp: (configuration?: Configuration) => {
|
|
|
291
302
|
* @throws {RequiredError}
|
|
292
303
|
*/
|
|
293
304
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
|
|
305
|
+
/**
|
|
306
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
307
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
308
|
+
* @param {string} investmentId UUID of the investment
|
|
309
|
+
* @param {string} optionId UUID of the option
|
|
310
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
311
|
+
* @param {*} [options] Override http request option.
|
|
312
|
+
* @throws {RequiredError}
|
|
313
|
+
*/
|
|
314
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>>;
|
|
294
315
|
/**
|
|
295
316
|
* Retrieve a paginated list of all options for a specific investment.
|
|
296
317
|
* @summary List options for this investment
|
|
@@ -454,6 +475,16 @@ export declare const InvestmentApiFactory: (configuration?: Configuration, baseP
|
|
|
454
475
|
* @throws {RequiredError}
|
|
455
476
|
*/
|
|
456
477
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
|
|
478
|
+
/**
|
|
479
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
480
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
481
|
+
* @param {string} investmentId UUID of the investment
|
|
482
|
+
* @param {string} optionId UUID of the option
|
|
483
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>>;
|
|
457
488
|
/**
|
|
458
489
|
* Retrieve a paginated list of all options for a specific investment.
|
|
459
490
|
* @summary List options for this investment
|
|
@@ -617,6 +648,16 @@ export declare class InvestmentApi extends BaseAPI {
|
|
|
617
648
|
* @throws {RequiredError}
|
|
618
649
|
*/
|
|
619
650
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
|
|
651
|
+
/**
|
|
652
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
653
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
654
|
+
* @param {string} investmentId UUID of the investment
|
|
655
|
+
* @param {string} optionId UUID of the option
|
|
656
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
*/
|
|
660
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionChartKPIsYearly[], any, {}>>;
|
|
620
661
|
/**
|
|
621
662
|
* Retrieve a paginated list of all options for a specific investment.
|
|
622
663
|
* @summary List options for this investment
|
|
@@ -445,6 +445,47 @@ export const InvestmentApiAxiosParamCreator = function (configuration) {
|
|
|
445
445
|
options: localVarRequestOptions,
|
|
446
446
|
};
|
|
447
447
|
}),
|
|
448
|
+
/**
|
|
449
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
450
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
451
|
+
* @param {string} investmentId UUID of the investment
|
|
452
|
+
* @param {string} optionId UUID of the option
|
|
453
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
|
|
458
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
459
|
+
assertParamExists('getOptionKpis', 'investmentId', investmentId);
|
|
460
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
461
|
+
assertParamExists('getOptionKpis', 'optionId', optionId);
|
|
462
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
463
|
+
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
464
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
465
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
466
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
467
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
469
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
470
|
+
let baseOptions;
|
|
471
|
+
if (configuration) {
|
|
472
|
+
baseOptions = configuration.baseOptions;
|
|
473
|
+
}
|
|
474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
475
|
+
const localVarHeaderParameter = {};
|
|
476
|
+
const localVarQueryParameter = {};
|
|
477
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
478
|
+
// oauth required
|
|
479
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
480
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
481
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
482
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
484
|
+
return {
|
|
485
|
+
url: toPathString(localVarUrlObj),
|
|
486
|
+
options: localVarRequestOptions,
|
|
487
|
+
};
|
|
488
|
+
}),
|
|
448
489
|
/**
|
|
449
490
|
* Retrieve a paginated list of all options for a specific investment.
|
|
450
491
|
* @summary List options for this investment
|
|
@@ -881,6 +922,24 @@ export const InvestmentApiFp = function (configuration) {
|
|
|
881
922
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
882
923
|
});
|
|
883
924
|
},
|
|
925
|
+
/**
|
|
926
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
927
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
928
|
+
* @param {string} investmentId UUID of the investment
|
|
929
|
+
* @param {string} optionId UUID of the option
|
|
930
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
931
|
+
* @param {*} [options] Override http request option.
|
|
932
|
+
* @throws {RequiredError}
|
|
933
|
+
*/
|
|
934
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
936
|
+
var _a, _b, _c;
|
|
937
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
|
|
938
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
939
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['InvestmentApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
940
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
941
|
+
});
|
|
942
|
+
},
|
|
884
943
|
/**
|
|
885
944
|
* Retrieve a paginated list of all options for a specific investment.
|
|
886
945
|
* @summary List options for this investment
|
|
@@ -1117,6 +1176,18 @@ export const InvestmentApiFactory = function (configuration, basePath, axios) {
|
|
|
1117
1176
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
1118
1177
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
1119
1178
|
},
|
|
1179
|
+
/**
|
|
1180
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1181
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
1182
|
+
* @param {string} investmentId UUID of the investment
|
|
1183
|
+
* @param {string} optionId UUID of the option
|
|
1184
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
*/
|
|
1188
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
1189
|
+
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
1190
|
+
},
|
|
1120
1191
|
/**
|
|
1121
1192
|
* Retrieve a paginated list of all options for a specific investment.
|
|
1122
1193
|
* @summary List options for this investment
|
|
@@ -1315,6 +1386,18 @@ export class InvestmentApi extends BaseAPI {
|
|
|
1315
1386
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
1316
1387
|
return InvestmentApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1317
1388
|
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
1391
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
1392
|
+
* @param {string} investmentId UUID of the investment
|
|
1393
|
+
* @param {string} optionId UUID of the option
|
|
1394
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
*/
|
|
1398
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
1399
|
+
return InvestmentApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
1400
|
+
}
|
|
1318
1401
|
/**
|
|
1319
1402
|
* Retrieve a paginated list of all options for a specific investment.
|
|
1320
1403
|
* @summary List options for this investment
|
|
@@ -15,6 +15,7 @@ import { type RequestArgs, BaseAPI } from '../base';
|
|
|
15
15
|
import type { ImpactAPIResponse } from '../models';
|
|
16
16
|
import type { ImpactCreate } from '../models';
|
|
17
17
|
import type { ImpactUpdate } from '../models';
|
|
18
|
+
import type { OptionChartKPIsYearly } from '../models';
|
|
18
19
|
import type { OptionCreate } from '../models';
|
|
19
20
|
import type { OptionResponse } from '../models';
|
|
20
21
|
import type { OptionUpdate } from '../models';
|
|
@@ -90,6 +91,16 @@ export declare const OptionApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
90
91
|
* @throws {RequiredError}
|
|
91
92
|
*/
|
|
92
93
|
getOptionForInvestment: (optionId: string, investmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
94
|
+
/**
|
|
95
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
96
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
97
|
+
* @param {string} investmentId UUID of the investment
|
|
98
|
+
* @param {string} optionId UUID of the option
|
|
99
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
getOptionKpis: (investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
93
104
|
/**
|
|
94
105
|
* Retrieve a paginated list of all options for a specific investment.
|
|
95
106
|
* @summary List options for this investment
|
|
@@ -194,6 +205,16 @@ export declare const OptionApiFp: (configuration?: Configuration) => {
|
|
|
194
205
|
* @throws {RequiredError}
|
|
195
206
|
*/
|
|
196
207
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OptionResponse>>;
|
|
208
|
+
/**
|
|
209
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
210
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
211
|
+
* @param {string} investmentId UUID of the investment
|
|
212
|
+
* @param {string} optionId UUID of the option
|
|
213
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OptionChartKPIsYearly>>>;
|
|
197
218
|
/**
|
|
198
219
|
* Retrieve a paginated list of all options for a specific investment.
|
|
199
220
|
* @summary List options for this investment
|
|
@@ -298,6 +319,16 @@ export declare const OptionApiFactory: (configuration?: Configuration, basePath?
|
|
|
298
319
|
* @throws {RequiredError}
|
|
299
320
|
*/
|
|
300
321
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<OptionResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
324
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
325
|
+
* @param {string} investmentId UUID of the investment
|
|
326
|
+
* @param {string} optionId UUID of the option
|
|
327
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
*/
|
|
331
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<OptionChartKPIsYearly>>;
|
|
301
332
|
/**
|
|
302
333
|
* Retrieve a paginated list of all options for a specific investment.
|
|
303
334
|
* @summary List options for this investment
|
|
@@ -402,6 +433,16 @@ export declare class OptionApi extends BaseAPI {
|
|
|
402
433
|
* @throws {RequiredError}
|
|
403
434
|
*/
|
|
404
435
|
getOptionForInvestment(optionId: string, investmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionResponse, any, {}>>;
|
|
436
|
+
/**
|
|
437
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
438
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
439
|
+
* @param {string} investmentId UUID of the investment
|
|
440
|
+
* @param {string} optionId UUID of the option
|
|
441
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
getOptionKpis(investmentId: string, optionId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OptionChartKPIsYearly[], any, {}>>;
|
|
405
446
|
/**
|
|
406
447
|
* Retrieve a paginated list of all options for a specific investment.
|
|
407
448
|
* @summary List options for this investment
|
|
@@ -310,6 +310,47 @@ export const OptionApiAxiosParamCreator = function (configuration) {
|
|
|
310
310
|
options: localVarRequestOptions,
|
|
311
311
|
};
|
|
312
312
|
}),
|
|
313
|
+
/**
|
|
314
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
315
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
316
|
+
* @param {string} investmentId UUID of the investment
|
|
317
|
+
* @param {string} optionId UUID of the option
|
|
318
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
getOptionKpis: (investmentId_1, optionId_1, valueFrameworkId_1, ...args_1) => __awaiter(this, [investmentId_1, optionId_1, valueFrameworkId_1, ...args_1], void 0, function* (investmentId, optionId, valueFrameworkId, options = {}) {
|
|
323
|
+
// verify required parameter 'investmentId' is not null or undefined
|
|
324
|
+
assertParamExists('getOptionKpis', 'investmentId', investmentId);
|
|
325
|
+
// verify required parameter 'optionId' is not null or undefined
|
|
326
|
+
assertParamExists('getOptionKpis', 'optionId', optionId);
|
|
327
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
328
|
+
assertParamExists('getOptionKpis', 'valueFrameworkId', valueFrameworkId);
|
|
329
|
+
const localVarPath = `/investment/{investment_id}/option/{option_id}/kpis/{value_framework_id}`
|
|
330
|
+
.replace(`{${"investment_id"}}`, encodeURIComponent(String(investmentId)))
|
|
331
|
+
.replace(`{${"option_id"}}`, encodeURIComponent(String(optionId)))
|
|
332
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
333
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
335
|
+
let baseOptions;
|
|
336
|
+
if (configuration) {
|
|
337
|
+
baseOptions = configuration.baseOptions;
|
|
338
|
+
}
|
|
339
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
340
|
+
const localVarHeaderParameter = {};
|
|
341
|
+
const localVarQueryParameter = {};
|
|
342
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
343
|
+
// oauth required
|
|
344
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
345
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
346
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
347
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
348
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
349
|
+
return {
|
|
350
|
+
url: toPathString(localVarUrlObj),
|
|
351
|
+
options: localVarRequestOptions,
|
|
352
|
+
};
|
|
353
|
+
}),
|
|
313
354
|
/**
|
|
314
355
|
* Retrieve a paginated list of all options for a specific investment.
|
|
315
356
|
* @summary List options for this investment
|
|
@@ -571,6 +612,24 @@ export const OptionApiFp = function (configuration) {
|
|
|
571
612
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
572
613
|
});
|
|
573
614
|
},
|
|
615
|
+
/**
|
|
616
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
617
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
618
|
+
* @param {string} investmentId UUID of the investment
|
|
619
|
+
* @param {string} optionId UUID of the option
|
|
620
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
626
|
+
var _a, _b, _c;
|
|
627
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getOptionKpis(investmentId, optionId, valueFrameworkId, options);
|
|
628
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
629
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OptionApi.getOptionKpis']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
630
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
631
|
+
});
|
|
632
|
+
},
|
|
574
633
|
/**
|
|
575
634
|
* Retrieve a paginated list of all options for a specific investment.
|
|
576
635
|
* @summary List options for this investment
|
|
@@ -716,6 +775,18 @@ export const OptionApiFactory = function (configuration, basePath, axios) {
|
|
|
716
775
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
717
776
|
return localVarFp.getOptionForInvestment(optionId, investmentId, options).then((request) => request(axios, basePath));
|
|
718
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
780
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
781
|
+
* @param {string} investmentId UUID of the investment
|
|
782
|
+
* @param {string} optionId UUID of the option
|
|
783
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
*/
|
|
787
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
788
|
+
return localVarFp.getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
789
|
+
},
|
|
719
790
|
/**
|
|
720
791
|
* Retrieve a paginated list of all options for a specific investment.
|
|
721
792
|
* @summary List options for this investment
|
|
@@ -841,6 +912,18 @@ export class OptionApi extends BaseAPI {
|
|
|
841
912
|
getOptionForInvestment(optionId, investmentId, options) {
|
|
842
913
|
return OptionApiFp(this.configuration).getOptionForInvestment(optionId, investmentId, options).then((request) => request(this.axios, this.basePath));
|
|
843
914
|
}
|
|
915
|
+
/**
|
|
916
|
+
* Return a KPI object containing all the data necessary to display graphs about the option inside a value framework
|
|
917
|
+
* @summary Get the kpis for a given option inside a value framework
|
|
918
|
+
* @param {string} investmentId UUID of the investment
|
|
919
|
+
* @param {string} optionId UUID of the option
|
|
920
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
getOptionKpis(investmentId, optionId, valueFrameworkId, options) {
|
|
925
|
+
return OptionApiFp(this.configuration).getOptionKpis(investmentId, optionId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
926
|
+
}
|
|
844
927
|
/**
|
|
845
928
|
* Retrieve a paginated list of all options for a specific investment.
|
|
846
929
|
* @summary List options for this investment
|
|
@@ -23,6 +23,8 @@ export * from './objective-update';
|
|
|
23
23
|
export * from './objective-weight-create';
|
|
24
24
|
export * from './objective-weight-response';
|
|
25
25
|
export * from './objective-weight-update';
|
|
26
|
+
export * from './option-chart-kpi';
|
|
27
|
+
export * from './option-chart-kpis-yearly';
|
|
26
28
|
export * from './option-create';
|
|
27
29
|
export * from './option-response';
|
|
28
30
|
export * from './option-update';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -23,6 +23,8 @@ export * from './objective-update';
|
|
|
23
23
|
export * from './objective-weight-create';
|
|
24
24
|
export * from './objective-weight-response';
|
|
25
25
|
export * from './objective-weight-update';
|
|
26
|
+
export * from './option-chart-kpi';
|
|
27
|
+
export * from './option-chart-kpis-yearly';
|
|
26
28
|
export * from './option-create';
|
|
27
29
|
export * from './option-response';
|
|
28
30
|
export * from './option-update';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Schema of a KPI value for a given time step, contain both the monetary and objective value
|
|
14
|
+
*/
|
|
15
|
+
export interface OptionChartKPI {
|
|
16
|
+
/**
|
|
17
|
+
* Metric value of the KPI
|
|
18
|
+
*/
|
|
19
|
+
'metric_value'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Monetary value of the KPI
|
|
22
|
+
*/
|
|
23
|
+
'monetary_value'?: number;
|
|
24
|
+
'name'?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Symbol of the KPI
|
|
27
|
+
*/
|
|
28
|
+
'symbol'?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev3
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { OptionChartKPI } from './option-chart-kpi';
|
|
13
|
+
/**
|
|
14
|
+
* Schema of a combined list of KPI values for a given time step, contain both the monetary and objective value
|
|
15
|
+
*/
|
|
16
|
+
export interface OptionChartKPIsYearly {
|
|
17
|
+
/**
|
|
18
|
+
* List of KPI values for this time step
|
|
19
|
+
*/
|
|
20
|
+
'kpis'?: Array<OptionChartKPI>;
|
|
21
|
+
/**
|
|
22
|
+
* Net perceived value for the KPI
|
|
23
|
+
*/
|
|
24
|
+
'net_perceived_value'?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Year used for the KPIs
|
|
27
|
+
*/
|
|
28
|
+
'year'?: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
export {};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export * from './objective-update';
|
|
|
23
23
|
export * from './objective-weight-create';
|
|
24
24
|
export * from './objective-weight-response';
|
|
25
25
|
export * from './objective-weight-update';
|
|
26
|
+
export * from './option-chart-kpi';
|
|
27
|
+
export * from './option-chart-kpis-yearly';
|
|
26
28
|
export * from './option-create';
|
|
27
29
|
export * from './option-response';
|
|
28
30
|
export * from './option-update';
|
package/dist/models/index.js
CHANGED
|
@@ -39,6 +39,8 @@ __exportStar(require("./objective-update"), exports);
|
|
|
39
39
|
__exportStar(require("./objective-weight-create"), exports);
|
|
40
40
|
__exportStar(require("./objective-weight-response"), exports);
|
|
41
41
|
__exportStar(require("./objective-weight-update"), exports);
|
|
42
|
+
__exportStar(require("./option-chart-kpi"), exports);
|
|
43
|
+
__exportStar(require("./option-chart-kpis-yearly"), exports);
|
|
42
44
|
__exportStar(require("./option-create"), exports);
|
|
43
45
|
__exportStar(require("./option-response"), exports);
|
|
44
46
|
__exportStar(require("./option-update"), exports);
|