@cosmotech/aip-client 0.2.0-dev7 → 0.3.0-dev1
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 +20 -2
- package/api/budget-api.ts +835 -0
- package/api/default-api.ts +1 -1
- package/api/impact-api.ts +1 -1
- package/api/investment-api.ts +1 -1
- 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 +1 -1
- package/api/preferred-option-api.ts +1 -1
- 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 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/budget-api.d.ts +382 -0
- package/dist/api/budget-api.js +794 -0
- 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 +1 -1
- package/dist/api/investment-api.js +1 -1
- 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 +1 -1
- package/dist/api/option-api.js +1 -1
- package/dist/api/preferred-option-api.d.ts +1 -1
- package/dist/api/preferred-option-api.js +1 -1
- package/dist/api/value-framework-api.d.ts +1 -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 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api/budget-api.d.ts +382 -0
- package/dist/esm/api/budget-api.js +787 -0
- 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 +1 -1
- package/dist/esm/api/investment-api.js +1 -1
- 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 +1 -1
- package/dist/esm/api/option-api.js +1 -1
- package/dist/esm/api/preferred-option-api.d.ts +1 -1
- package/dist/esm/api/preferred-option-api.js +1 -1
- package/dist/esm/api/value-framework-api.d.ts +1 -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 -1
- package/dist/esm/api.js +2 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/models/budget-bulk-delete-request.d.ts +20 -0
- package/dist/esm/models/budget-bulk-delete-request.js +14 -0
- package/dist/esm/models/budget-create.d.ts +22 -0
- package/dist/esm/models/budget-create.js +14 -0
- package/dist/esm/models/budget-investment-response.d.ts +34 -0
- package/dist/esm/models/budget-investment-response.js +14 -0
- package/dist/esm/models/budget-link-options-request.d.ts +20 -0
- package/dist/esm/models/budget-link-options-request.js +14 -0
- package/dist/esm/models/budget-option-response.d.ts +50 -0
- package/dist/esm/models/budget-option-response.js +14 -0
- package/dist/esm/models/budget-overview-response.d.ts +25 -0
- package/dist/esm/models/budget-overview-response.js +14 -0
- package/dist/esm/models/budget-response.d.ts +26 -0
- package/dist/esm/models/budget-response.js +14 -0
- package/dist/esm/models/budget-update.d.ts +19 -0
- package/dist/esm/models/budget-update.js +14 -0
- 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 +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/esm/models/investment-create.d.ts +1 -1
- package/dist/esm/models/investment-create.js +1 -1
- package/dist/esm/models/investment-overview-response.d.ts +1 -1
- package/dist/esm/models/investment-overview-response.js +1 -1
- package/dist/esm/models/investment-response.d.ts +1 -1
- package/dist/esm/models/investment-response.js +1 -1
- package/dist/esm/models/investment-update.d.ts +1 -1
- package/dist/esm/models/investment-update.js +1 -1
- package/dist/esm/models/location-inner.d.ts +1 -1
- package/dist/esm/models/location-inner.js +1 -1
- package/dist/esm/models/measurement-type.d.ts +1 -1
- package/dist/esm/models/measurement-type.js +1 -1
- package/dist/esm/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-create.js +1 -1
- package/dist/esm/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-response.js +1 -1
- package/dist/esm/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/esm/models/metric-costs-per-year-update.js +1 -1
- package/dist/esm/models/metric-create.d.ts +1 -1
- package/dist/esm/models/metric-create.js +1 -1
- package/dist/esm/models/metric-response.d.ts +1 -1
- package/dist/esm/models/metric-response.js +1 -1
- package/dist/esm/models/metric-type.d.ts +1 -1
- package/dist/esm/models/metric-type.js +1 -1
- package/dist/esm/models/metric-update.d.ts +1 -1
- package/dist/esm/models/metric-update.js +1 -1
- package/dist/esm/models/objective-create.d.ts +1 -1
- package/dist/esm/models/objective-create.js +1 -1
- package/dist/esm/models/objective-response.d.ts +1 -1
- package/dist/esm/models/objective-response.js +1 -1
- package/dist/esm/models/objective-update.d.ts +1 -1
- package/dist/esm/models/objective-update.js +1 -1
- package/dist/esm/models/objective-weight-create.d.ts +1 -1
- package/dist/esm/models/objective-weight-create.js +1 -1
- package/dist/esm/models/objective-weight-response.d.ts +1 -1
- package/dist/esm/models/objective-weight-response.js +1 -1
- package/dist/esm/models/objective-weight-update.d.ts +1 -1
- package/dist/esm/models/objective-weight-update.js +1 -1
- package/dist/esm/models/option-chart-kpi.d.ts +1 -1
- package/dist/esm/models/option-chart-kpi.js +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/esm/models/option-chart-kpis-yearly.js +1 -1
- package/dist/esm/models/option-create.d.ts +2 -1
- package/dist/esm/models/option-create.js +1 -1
- package/dist/esm/models/option-overview-response.d.ts +2 -1
- package/dist/esm/models/option-overview-response.js +1 -1
- package/dist/esm/models/option-response.d.ts +2 -1
- package/dist/esm/models/option-response.js +1 -1
- package/dist/esm/models/option-update.d.ts +2 -1
- package/dist/esm/models/option-update.js +1 -1
- package/dist/esm/models/preferred-option-request.d.ts +1 -1
- package/dist/esm/models/preferred-option-request.js +1 -1
- package/dist/esm/models/preferred-option-response.d.ts +1 -1
- package/dist/esm/models/preferred-option-response.js +1 -1
- package/dist/esm/models/validation-error.d.ts +1 -1
- package/dist/esm/models/validation-error.js +1 -1
- package/dist/esm/models/value-framework-create.d.ts +1 -1
- package/dist/esm/models/value-framework-create.js +1 -1
- package/dist/esm/models/value-framework-response.d.ts +1 -1
- package/dist/esm/models/value-framework-response.js +1 -1
- package/dist/esm/models/value-framework-update.d.ts +1 -1
- package/dist/esm/models/value-framework-update.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/budget-bulk-delete-request.d.ts +20 -0
- package/dist/models/budget-bulk-delete-request.js +15 -0
- package/dist/models/budget-create.d.ts +22 -0
- package/dist/models/budget-create.js +15 -0
- package/dist/models/budget-investment-response.d.ts +34 -0
- package/dist/models/budget-investment-response.js +15 -0
- package/dist/models/budget-link-options-request.d.ts +20 -0
- package/dist/models/budget-link-options-request.js +15 -0
- package/dist/models/budget-option-response.d.ts +50 -0
- package/dist/models/budget-option-response.js +15 -0
- package/dist/models/budget-overview-response.d.ts +25 -0
- package/dist/models/budget-overview-response.js +15 -0
- package/dist/models/budget-response.d.ts +26 -0
- package/dist/models/budget-response.js +15 -0
- package/dist/models/budget-update.d.ts +19 -0
- package/dist/models/budget-update.js +15 -0
- 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 +8 -0
- package/dist/models/index.js +8 -0
- package/dist/models/investment-create.d.ts +1 -1
- package/dist/models/investment-create.js +1 -1
- package/dist/models/investment-overview-response.d.ts +1 -1
- package/dist/models/investment-overview-response.js +1 -1
- package/dist/models/investment-response.d.ts +1 -1
- package/dist/models/investment-response.js +1 -1
- package/dist/models/investment-update.d.ts +1 -1
- package/dist/models/investment-update.js +1 -1
- package/dist/models/location-inner.d.ts +1 -1
- package/dist/models/location-inner.js +1 -1
- package/dist/models/measurement-type.d.ts +1 -1
- package/dist/models/measurement-type.js +1 -1
- package/dist/models/metric-costs-per-year-create.d.ts +1 -1
- package/dist/models/metric-costs-per-year-create.js +1 -1
- package/dist/models/metric-costs-per-year-response.d.ts +1 -1
- package/dist/models/metric-costs-per-year-response.js +1 -1
- package/dist/models/metric-costs-per-year-update.d.ts +1 -1
- package/dist/models/metric-costs-per-year-update.js +1 -1
- package/dist/models/metric-create.d.ts +1 -1
- package/dist/models/metric-create.js +1 -1
- package/dist/models/metric-response.d.ts +1 -1
- package/dist/models/metric-response.js +1 -1
- package/dist/models/metric-type.d.ts +1 -1
- package/dist/models/metric-type.js +1 -1
- package/dist/models/metric-update.d.ts +1 -1
- package/dist/models/metric-update.js +1 -1
- package/dist/models/objective-create.d.ts +1 -1
- package/dist/models/objective-create.js +1 -1
- package/dist/models/objective-response.d.ts +1 -1
- package/dist/models/objective-response.js +1 -1
- package/dist/models/objective-update.d.ts +1 -1
- package/dist/models/objective-update.js +1 -1
- package/dist/models/objective-weight-create.d.ts +1 -1
- package/dist/models/objective-weight-create.js +1 -1
- package/dist/models/objective-weight-response.d.ts +1 -1
- package/dist/models/objective-weight-response.js +1 -1
- package/dist/models/objective-weight-update.d.ts +1 -1
- package/dist/models/objective-weight-update.js +1 -1
- package/dist/models/option-chart-kpi.d.ts +1 -1
- package/dist/models/option-chart-kpi.js +1 -1
- package/dist/models/option-chart-kpis-yearly.d.ts +1 -1
- package/dist/models/option-chart-kpis-yearly.js +1 -1
- package/dist/models/option-create.d.ts +2 -1
- package/dist/models/option-create.js +1 -1
- package/dist/models/option-overview-response.d.ts +2 -1
- package/dist/models/option-overview-response.js +1 -1
- package/dist/models/option-response.d.ts +2 -1
- package/dist/models/option-response.js +1 -1
- package/dist/models/option-update.d.ts +2 -1
- package/dist/models/option-update.js +1 -1
- package/dist/models/preferred-option-request.d.ts +1 -1
- package/dist/models/preferred-option-request.js +1 -1
- package/dist/models/preferred-option-response.d.ts +1 -1
- package/dist/models/preferred-option-response.js +1 -1
- package/dist/models/validation-error.d.ts +1 -1
- package/dist/models/validation-error.js +1 -1
- package/dist/models/value-framework-create.d.ts +1 -1
- package/dist/models/value-framework-create.js +1 -1
- package/dist/models/value-framework-response.d.ts +1 -1
- package/dist/models/value-framework-response.js +1 -1
- package/dist/models/value-framework-update.d.ts +1 -1
- package/dist/models/value-framework-update.js +1 -1
- package/docs/BudgetApi.md +559 -0
- package/docs/BudgetBulkDeleteRequest.md +21 -0
- package/docs/BudgetCreate.md +25 -0
- package/docs/BudgetInvestmentResponse.md +37 -0
- package/docs/BudgetLinkOptionsRequest.md +21 -0
- package/docs/BudgetOptionResponse.md +39 -0
- package/docs/BudgetOverviewResponse.md +25 -0
- package/docs/BudgetResponse.md +33 -0
- package/docs/BudgetUpdate.md +25 -0
- package/docs/OptionCreate.md +2 -0
- package/docs/OptionOverviewResponse.md +2 -0
- package/docs/OptionResponse.md +2 -0
- package/docs/OptionUpdate.md +2 -0
- package/index.ts +1 -1
- package/models/budget-bulk-delete-request.ts +26 -0
- package/models/budget-create.ts +28 -0
- package/models/budget-investment-response.ts +40 -0
- package/models/budget-link-options-request.ts +26 -0
- package/models/budget-option-response.ts +56 -0
- package/models/budget-overview-response.ts +31 -0
- package/models/budget-response.ts +32 -0
- package/models/budget-update.ts +25 -0
- 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 +8 -0
- package/models/investment-create.ts +1 -1
- package/models/investment-overview-response.ts +1 -1
- package/models/investment-response.ts +1 -1
- package/models/investment-update.ts +1 -1
- package/models/location-inner.ts +1 -1
- package/models/measurement-type.ts +1 -1
- package/models/metric-costs-per-year-create.ts +1 -1
- package/models/metric-costs-per-year-response.ts +1 -1
- package/models/metric-costs-per-year-update.ts +1 -1
- package/models/metric-create.ts +1 -1
- package/models/metric-response.ts +1 -1
- package/models/metric-type.ts +1 -1
- package/models/metric-update.ts +1 -1
- package/models/objective-create.ts +1 -1
- package/models/objective-response.ts +1 -1
- package/models/objective-update.ts +1 -1
- package/models/objective-weight-create.ts +1 -1
- package/models/objective-weight-response.ts +1 -1
- package/models/objective-weight-update.ts +1 -1
- package/models/option-chart-kpi.ts +1 -1
- package/models/option-chart-kpis-yearly.ts +1 -1
- package/models/option-create.ts +2 -1
- package/models/option-overview-response.ts +2 -1
- package/models/option-response.ts +2 -1
- package/models/option-update.ts +2 -1
- package/models/preferred-option-request.ts +1 -1
- package/models/preferred-option-response.ts +1 -1
- package/models/validation-error.ts +1 -1
- package/models/value-framework-create.ts +1 -1
- package/models/value-framework-response.ts +1 -1
- package/models/value-framework-update.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,835 @@
|
|
|
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.3.0-dev1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { BudgetBulkDeleteRequest } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { BudgetCreate } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { BudgetInvestmentResponse } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { BudgetLinkOptionsRequest } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { BudgetOptionResponse } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { BudgetOverviewResponse } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import type { BudgetResponse } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { BudgetUpdate } from '../models';
|
|
40
|
+
/**
|
|
41
|
+
* BudgetApi - axios parameter creator
|
|
42
|
+
*/
|
|
43
|
+
export const BudgetApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
|
|
47
|
+
* @summary Bulk delete budgets
|
|
48
|
+
* @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
bulkDeleteBudgets: async (budgetBulkDeleteRequest: BudgetBulkDeleteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'budgetBulkDeleteRequest' is not null or undefined
|
|
54
|
+
assertParamExists('bulkDeleteBudgets', 'budgetBulkDeleteRequest', budgetBulkDeleteRequest)
|
|
55
|
+
const localVarPath = `/budget/bulk`;
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
64
|
+
const localVarHeaderParameter = {} as any;
|
|
65
|
+
const localVarQueryParameter = {} as any;
|
|
66
|
+
|
|
67
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
68
|
+
// oauth required
|
|
69
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(budgetBulkDeleteRequest, localVarRequestOptions, configuration)
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
|
|
85
|
+
* @summary Delete a budget
|
|
86
|
+
* @param {string} budgetId UUID of the budget
|
|
87
|
+
* @param {*} [options] Override http request option.
|
|
88
|
+
* @throws {RequiredError}
|
|
89
|
+
*/
|
|
90
|
+
deleteBudget: async (budgetId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
92
|
+
assertParamExists('deleteBudget', 'budgetId', budgetId)
|
|
93
|
+
const localVarPath = `/budget/{budget_id}`
|
|
94
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
95
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
96
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
97
|
+
let baseOptions;
|
|
98
|
+
if (configuration) {
|
|
99
|
+
baseOptions = configuration.baseOptions;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
103
|
+
const localVarHeaderParameter = {} as any;
|
|
104
|
+
const localVarQueryParameter = {} as any;
|
|
105
|
+
|
|
106
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
107
|
+
// oauth required
|
|
108
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
url: toPathString(localVarUrlObj),
|
|
117
|
+
options: localVarRequestOptions,
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
/**
|
|
121
|
+
* Retrieve a single budget by its ID.
|
|
122
|
+
* @summary Get a budget by ID
|
|
123
|
+
* @param {string} budgetId UUID of the budget
|
|
124
|
+
* @param {*} [options] Override http request option.
|
|
125
|
+
* @throws {RequiredError}
|
|
126
|
+
*/
|
|
127
|
+
getBudgetById: async (budgetId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
128
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
129
|
+
assertParamExists('getBudgetById', 'budgetId', budgetId)
|
|
130
|
+
const localVarPath = `/budget/{budget_id}`
|
|
131
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
if (configuration) {
|
|
136
|
+
baseOptions = configuration.baseOptions;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
140
|
+
const localVarHeaderParameter = {} as any;
|
|
141
|
+
const localVarQueryParameter = {} as any;
|
|
142
|
+
|
|
143
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
144
|
+
// oauth required
|
|
145
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
146
|
+
|
|
147
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
148
|
+
|
|
149
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
150
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
151
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
152
|
+
|
|
153
|
+
return {
|
|
154
|
+
url: toPathString(localVarUrlObj),
|
|
155
|
+
options: localVarRequestOptions,
|
|
156
|
+
};
|
|
157
|
+
},
|
|
158
|
+
/**
|
|
159
|
+
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
160
|
+
* @summary List investments linked to this budget via options
|
|
161
|
+
* @param {string} budgetId UUID of the budget
|
|
162
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
getBudgetInvestments: async (budgetId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
168
|
+
assertParamExists('getBudgetInvestments', 'budgetId', budgetId)
|
|
169
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
170
|
+
assertParamExists('getBudgetInvestments', 'valueFrameworkId', valueFrameworkId)
|
|
171
|
+
const localVarPath = `/budget/{budget_id}/investments`
|
|
172
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
173
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
174
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
175
|
+
let baseOptions;
|
|
176
|
+
if (configuration) {
|
|
177
|
+
baseOptions = configuration.baseOptions;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
181
|
+
const localVarHeaderParameter = {} as any;
|
|
182
|
+
const localVarQueryParameter = {} as any;
|
|
183
|
+
|
|
184
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
185
|
+
// oauth required
|
|
186
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
187
|
+
|
|
188
|
+
if (valueFrameworkId !== undefined) {
|
|
189
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
193
|
+
|
|
194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
196
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
197
|
+
|
|
198
|
+
return {
|
|
199
|
+
url: toPathString(localVarUrlObj),
|
|
200
|
+
options: localVarRequestOptions,
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
/**
|
|
204
|
+
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
205
|
+
* @summary List options linked to this budget
|
|
206
|
+
* @param {string} budgetId UUID of the budget
|
|
207
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
208
|
+
* @param {*} [options] Override http request option.
|
|
209
|
+
* @throws {RequiredError}
|
|
210
|
+
*/
|
|
211
|
+
getBudgetOptions: async (budgetId: string, valueFrameworkId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
212
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
213
|
+
assertParamExists('getBudgetOptions', 'budgetId', budgetId)
|
|
214
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
215
|
+
assertParamExists('getBudgetOptions', 'valueFrameworkId', valueFrameworkId)
|
|
216
|
+
const localVarPath = `/budget/{budget_id}/options`
|
|
217
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
226
|
+
const localVarHeaderParameter = {} as any;
|
|
227
|
+
const localVarQueryParameter = {} as any;
|
|
228
|
+
|
|
229
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
230
|
+
// oauth required
|
|
231
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
232
|
+
|
|
233
|
+
if (valueFrameworkId !== undefined) {
|
|
234
|
+
localVarQueryParameter['value_framework_id'] = valueFrameworkId;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
238
|
+
|
|
239
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
240
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
241
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
242
|
+
|
|
243
|
+
return {
|
|
244
|
+
url: toPathString(localVarUrlObj),
|
|
245
|
+
options: localVarRequestOptions,
|
|
246
|
+
};
|
|
247
|
+
},
|
|
248
|
+
/**
|
|
249
|
+
* Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
|
|
250
|
+
* @summary Get budget overview
|
|
251
|
+
* @param {string} budgetId UUID of the budget
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
getBudgetOverview: async (budgetId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
256
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
257
|
+
assertParamExists('getBudgetOverview', 'budgetId', budgetId)
|
|
258
|
+
const localVarPath = `/budget/{budget_id}/overview`
|
|
259
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
268
|
+
const localVarHeaderParameter = {} as any;
|
|
269
|
+
const localVarQueryParameter = {} as any;
|
|
270
|
+
|
|
271
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
272
|
+
// oauth required
|
|
273
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
274
|
+
|
|
275
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
276
|
+
|
|
277
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
278
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
279
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
280
|
+
|
|
281
|
+
return {
|
|
282
|
+
url: toPathString(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
* Retrieve a paginated list of all budgets, ordered by name.
|
|
288
|
+
* @summary List all budgets
|
|
289
|
+
* @param {number} [offset] Number of records to skip
|
|
290
|
+
* @param {number} [limit] Max number of records to return
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
getBudgets: async (offset?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
295
|
+
const localVarPath = `/budget/`;
|
|
296
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
297
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
298
|
+
let baseOptions;
|
|
299
|
+
if (configuration) {
|
|
300
|
+
baseOptions = configuration.baseOptions;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
304
|
+
const localVarHeaderParameter = {} as any;
|
|
305
|
+
const localVarQueryParameter = {} as any;
|
|
306
|
+
|
|
307
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
308
|
+
// oauth required
|
|
309
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
310
|
+
|
|
311
|
+
if (offset !== undefined) {
|
|
312
|
+
localVarQueryParameter['offset'] = offset;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
if (limit !== undefined) {
|
|
316
|
+
localVarQueryParameter['limit'] = limit;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
320
|
+
|
|
321
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
323
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
324
|
+
|
|
325
|
+
return {
|
|
326
|
+
url: toPathString(localVarUrlObj),
|
|
327
|
+
options: localVarRequestOptions,
|
|
328
|
+
};
|
|
329
|
+
},
|
|
330
|
+
/**
|
|
331
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
332
|
+
* @summary Bulk-link options to this budget
|
|
333
|
+
* @param {string} budgetId UUID of the budget
|
|
334
|
+
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
linkOptionsToBudget: async (budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
339
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
340
|
+
assertParamExists('linkOptionsToBudget', 'budgetId', budgetId)
|
|
341
|
+
// verify required parameter 'budgetLinkOptionsRequest' is not null or undefined
|
|
342
|
+
assertParamExists('linkOptionsToBudget', 'budgetLinkOptionsRequest', budgetLinkOptionsRequest)
|
|
343
|
+
const localVarPath = `/budget/{budget_id}/link-options`
|
|
344
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
346
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
347
|
+
let baseOptions;
|
|
348
|
+
if (configuration) {
|
|
349
|
+
baseOptions = configuration.baseOptions;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
353
|
+
const localVarHeaderParameter = {} as any;
|
|
354
|
+
const localVarQueryParameter = {} as any;
|
|
355
|
+
|
|
356
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
357
|
+
// oauth required
|
|
358
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
359
|
+
|
|
360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
361
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
362
|
+
|
|
363
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
364
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
366
|
+
localVarRequestOptions.data = serializeDataIfNeeded(budgetLinkOptionsRequest, localVarRequestOptions, configuration)
|
|
367
|
+
|
|
368
|
+
return {
|
|
369
|
+
url: toPathString(localVarUrlObj),
|
|
370
|
+
options: localVarRequestOptions,
|
|
371
|
+
};
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
375
|
+
* @summary Partially update a budget
|
|
376
|
+
* @param {string} budgetId UUID of the budget
|
|
377
|
+
* @param {BudgetUpdate} budgetUpdate
|
|
378
|
+
* @param {*} [options] Override http request option.
|
|
379
|
+
* @throws {RequiredError}
|
|
380
|
+
*/
|
|
381
|
+
patchBudget: async (budgetId: string, budgetUpdate: BudgetUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
382
|
+
// verify required parameter 'budgetId' is not null or undefined
|
|
383
|
+
assertParamExists('patchBudget', 'budgetId', budgetId)
|
|
384
|
+
// verify required parameter 'budgetUpdate' is not null or undefined
|
|
385
|
+
assertParamExists('patchBudget', 'budgetUpdate', budgetUpdate)
|
|
386
|
+
const localVarPath = `/budget/{budget_id}`
|
|
387
|
+
.replace(`{${"budget_id"}}`, encodeURIComponent(String(budgetId)));
|
|
388
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
389
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
390
|
+
let baseOptions;
|
|
391
|
+
if (configuration) {
|
|
392
|
+
baseOptions = configuration.baseOptions;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
396
|
+
const localVarHeaderParameter = {} as any;
|
|
397
|
+
const localVarQueryParameter = {} as any;
|
|
398
|
+
|
|
399
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
400
|
+
// oauth required
|
|
401
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
402
|
+
|
|
403
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
404
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
405
|
+
|
|
406
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
407
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
408
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
409
|
+
localVarRequestOptions.data = serializeDataIfNeeded(budgetUpdate, localVarRequestOptions, configuration)
|
|
410
|
+
|
|
411
|
+
return {
|
|
412
|
+
url: toPathString(localVarUrlObj),
|
|
413
|
+
options: localVarRequestOptions,
|
|
414
|
+
};
|
|
415
|
+
},
|
|
416
|
+
/**
|
|
417
|
+
* Create a new budget.
|
|
418
|
+
* @summary Create a budget
|
|
419
|
+
* @param {BudgetCreate} budgetCreate
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
postBudget: async (budgetCreate: BudgetCreate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
424
|
+
// verify required parameter 'budgetCreate' is not null or undefined
|
|
425
|
+
assertParamExists('postBudget', 'budgetCreate', budgetCreate)
|
|
426
|
+
const localVarPath = `/budget/`;
|
|
427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
428
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
429
|
+
let baseOptions;
|
|
430
|
+
if (configuration) {
|
|
431
|
+
baseOptions = configuration.baseOptions;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
435
|
+
const localVarHeaderParameter = {} as any;
|
|
436
|
+
const localVarQueryParameter = {} as any;
|
|
437
|
+
|
|
438
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
439
|
+
// oauth required
|
|
440
|
+
await setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration)
|
|
441
|
+
|
|
442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
443
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
444
|
+
|
|
445
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
446
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(budgetCreate, localVarRequestOptions, configuration)
|
|
449
|
+
|
|
450
|
+
return {
|
|
451
|
+
url: toPathString(localVarUrlObj),
|
|
452
|
+
options: localVarRequestOptions,
|
|
453
|
+
};
|
|
454
|
+
},
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* BudgetApi - functional programming interface
|
|
460
|
+
*/
|
|
461
|
+
export const BudgetApiFp = function(configuration?: Configuration) {
|
|
462
|
+
const localVarAxiosParamCreator = BudgetApiAxiosParamCreator(configuration)
|
|
463
|
+
return {
|
|
464
|
+
/**
|
|
465
|
+
* Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
|
|
466
|
+
* @summary Bulk delete budgets
|
|
467
|
+
* @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
|
|
468
|
+
* @param {*} [options] Override http request option.
|
|
469
|
+
* @throws {RequiredError}
|
|
470
|
+
*/
|
|
471
|
+
async bulkDeleteBudgets(budgetBulkDeleteRequest: BudgetBulkDeleteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
472
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.bulkDeleteBudgets(budgetBulkDeleteRequest, options);
|
|
473
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
474
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.bulkDeleteBudgets']?.[localVarOperationServerIndex]?.url;
|
|
475
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
476
|
+
},
|
|
477
|
+
/**
|
|
478
|
+
* Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
|
|
479
|
+
* @summary Delete a budget
|
|
480
|
+
* @param {string} budgetId UUID of the budget
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
async deleteBudget(budgetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
485
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBudget(budgetId, options);
|
|
486
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
487
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.deleteBudget']?.[localVarOperationServerIndex]?.url;
|
|
488
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
* Retrieve a single budget by its ID.
|
|
492
|
+
* @summary Get a budget by ID
|
|
493
|
+
* @param {string} budgetId UUID of the budget
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
async getBudgetById(budgetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BudgetResponse>> {
|
|
498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetById(budgetId, options);
|
|
499
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
500
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetById']?.[localVarOperationServerIndex]?.url;
|
|
501
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
505
|
+
* @summary List investments linked to this budget via options
|
|
506
|
+
* @param {string} budgetId UUID of the budget
|
|
507
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
async getBudgetInvestments(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetInvestmentResponse>>> {
|
|
512
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetInvestments(budgetId, valueFrameworkId, options);
|
|
513
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
514
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetInvestments']?.[localVarOperationServerIndex]?.url;
|
|
515
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
516
|
+
},
|
|
517
|
+
/**
|
|
518
|
+
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
519
|
+
* @summary List options linked to this budget
|
|
520
|
+
* @param {string} budgetId UUID of the budget
|
|
521
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
async getBudgetOptions(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetOptionResponse>>> {
|
|
526
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetOptions(budgetId, valueFrameworkId, options);
|
|
527
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
528
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetOptions']?.[localVarOperationServerIndex]?.url;
|
|
529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
530
|
+
},
|
|
531
|
+
/**
|
|
532
|
+
* Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
|
|
533
|
+
* @summary Get budget overview
|
|
534
|
+
* @param {string} budgetId UUID of the budget
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
async getBudgetOverview(budgetId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BudgetOverviewResponse>> {
|
|
539
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgetOverview(budgetId, options);
|
|
540
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
541
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgetOverview']?.[localVarOperationServerIndex]?.url;
|
|
542
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
543
|
+
},
|
|
544
|
+
/**
|
|
545
|
+
* Retrieve a paginated list of all budgets, ordered by name.
|
|
546
|
+
* @summary List all budgets
|
|
547
|
+
* @param {number} [offset] Number of records to skip
|
|
548
|
+
* @param {number} [limit] Max number of records to return
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @throws {RequiredError}
|
|
551
|
+
*/
|
|
552
|
+
async getBudgets(offset?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BudgetResponse>>> {
|
|
553
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBudgets(offset, limit, options);
|
|
554
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
555
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.getBudgets']?.[localVarOperationServerIndex]?.url;
|
|
556
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
557
|
+
},
|
|
558
|
+
/**
|
|
559
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
560
|
+
* @summary Bulk-link options to this budget
|
|
561
|
+
* @param {string} budgetId UUID of the budget
|
|
562
|
+
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
async linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options);
|
|
568
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
569
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.linkOptionsToBudget']?.[localVarOperationServerIndex]?.url;
|
|
570
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
571
|
+
},
|
|
572
|
+
/**
|
|
573
|
+
* Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
574
|
+
* @summary Partially update a budget
|
|
575
|
+
* @param {string} budgetId UUID of the budget
|
|
576
|
+
* @param {BudgetUpdate} budgetUpdate
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
async patchBudget(budgetId: string, budgetUpdate: BudgetUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BudgetResponse>> {
|
|
581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchBudget(budgetId, budgetUpdate, options);
|
|
582
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
583
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.patchBudget']?.[localVarOperationServerIndex]?.url;
|
|
584
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
585
|
+
},
|
|
586
|
+
/**
|
|
587
|
+
* Create a new budget.
|
|
588
|
+
* @summary Create a budget
|
|
589
|
+
* @param {BudgetCreate} budgetCreate
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
async postBudget(budgetCreate: BudgetCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BudgetResponse>> {
|
|
594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postBudget(budgetCreate, options);
|
|
595
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
596
|
+
const localVarOperationServerBasePath = operationServerMap['BudgetApi.postBudget']?.[localVarOperationServerIndex]?.url;
|
|
597
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
598
|
+
},
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* BudgetApi - factory interface
|
|
604
|
+
*/
|
|
605
|
+
export const BudgetApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
606
|
+
const localVarFp = BudgetApiFp(configuration)
|
|
607
|
+
return {
|
|
608
|
+
/**
|
|
609
|
+
* Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
|
|
610
|
+
* @summary Bulk delete budgets
|
|
611
|
+
* @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
bulkDeleteBudgets(budgetBulkDeleteRequest: BudgetBulkDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
616
|
+
return localVarFp.bulkDeleteBudgets(budgetBulkDeleteRequest, options).then((request) => request(axios, basePath));
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
* Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
|
|
620
|
+
* @summary Delete a budget
|
|
621
|
+
* @param {string} budgetId UUID of the budget
|
|
622
|
+
* @param {*} [options] Override http request option.
|
|
623
|
+
* @throws {RequiredError}
|
|
624
|
+
*/
|
|
625
|
+
deleteBudget(budgetId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
626
|
+
return localVarFp.deleteBudget(budgetId, options).then((request) => request(axios, basePath));
|
|
627
|
+
},
|
|
628
|
+
/**
|
|
629
|
+
* Retrieve a single budget by its ID.
|
|
630
|
+
* @summary Get a budget by ID
|
|
631
|
+
* @param {string} budgetId UUID of the budget
|
|
632
|
+
* @param {*} [options] Override http request option.
|
|
633
|
+
* @throws {RequiredError}
|
|
634
|
+
*/
|
|
635
|
+
getBudgetById(budgetId: string, options?: RawAxiosRequestConfig): AxiosPromise<BudgetResponse> {
|
|
636
|
+
return localVarFp.getBudgetById(budgetId, options).then((request) => request(axios, basePath));
|
|
637
|
+
},
|
|
638
|
+
/**
|
|
639
|
+
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
640
|
+
* @summary List investments linked to this budget via options
|
|
641
|
+
* @param {string} budgetId UUID of the budget
|
|
642
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
643
|
+
* @param {*} [options] Override http request option.
|
|
644
|
+
* @throws {RequiredError}
|
|
645
|
+
*/
|
|
646
|
+
getBudgetInvestments(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetInvestmentResponse>> {
|
|
647
|
+
return localVarFp.getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
648
|
+
},
|
|
649
|
+
/**
|
|
650
|
+
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
651
|
+
* @summary List options linked to this budget
|
|
652
|
+
* @param {string} budgetId UUID of the budget
|
|
653
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
*/
|
|
657
|
+
getBudgetOptions(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetOptionResponse>> {
|
|
658
|
+
return localVarFp.getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
659
|
+
},
|
|
660
|
+
/**
|
|
661
|
+
* Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
|
|
662
|
+
* @summary Get budget overview
|
|
663
|
+
* @param {string} budgetId UUID of the budget
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
getBudgetOverview(budgetId: string, options?: RawAxiosRequestConfig): AxiosPromise<BudgetOverviewResponse> {
|
|
668
|
+
return localVarFp.getBudgetOverview(budgetId, options).then((request) => request(axios, basePath));
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
* Retrieve a paginated list of all budgets, ordered by name.
|
|
672
|
+
* @summary List all budgets
|
|
673
|
+
* @param {number} [offset] Number of records to skip
|
|
674
|
+
* @param {number} [limit] Max number of records to return
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
getBudgets(offset?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<BudgetResponse>> {
|
|
679
|
+
return localVarFp.getBudgets(offset, limit, options).then((request) => request(axios, basePath));
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
683
|
+
* @summary Bulk-link options to this budget
|
|
684
|
+
* @param {string} budgetId UUID of the budget
|
|
685
|
+
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
690
|
+
return localVarFp.linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
* Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
694
|
+
* @summary Partially update a budget
|
|
695
|
+
* @param {string} budgetId UUID of the budget
|
|
696
|
+
* @param {BudgetUpdate} budgetUpdate
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
patchBudget(budgetId: string, budgetUpdate: BudgetUpdate, options?: RawAxiosRequestConfig): AxiosPromise<BudgetResponse> {
|
|
701
|
+
return localVarFp.patchBudget(budgetId, budgetUpdate, options).then((request) => request(axios, basePath));
|
|
702
|
+
},
|
|
703
|
+
/**
|
|
704
|
+
* Create a new budget.
|
|
705
|
+
* @summary Create a budget
|
|
706
|
+
* @param {BudgetCreate} budgetCreate
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
postBudget(budgetCreate: BudgetCreate, options?: RawAxiosRequestConfig): AxiosPromise<BudgetResponse> {
|
|
711
|
+
return localVarFp.postBudget(budgetCreate, options).then((request) => request(axios, basePath));
|
|
712
|
+
},
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* BudgetApi - object-oriented interface
|
|
718
|
+
*/
|
|
719
|
+
export class BudgetApi extends BaseAPI {
|
|
720
|
+
/**
|
|
721
|
+
* Delete multiple budgets at once. Options linked to deleted budgets will have their budget link removed (set to null).
|
|
722
|
+
* @summary Bulk delete budgets
|
|
723
|
+
* @param {BudgetBulkDeleteRequest} budgetBulkDeleteRequest
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
public bulkDeleteBudgets(budgetBulkDeleteRequest: BudgetBulkDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
728
|
+
return BudgetApiFp(this.configuration).bulkDeleteBudgets(budgetBulkDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/**
|
|
732
|
+
* Delete an existing budget by its ID. Options linked to this budget will have their budget link removed (set to null).
|
|
733
|
+
* @summary Delete a budget
|
|
734
|
+
* @param {string} budgetId UUID of the budget
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
*/
|
|
738
|
+
public deleteBudget(budgetId: string, options?: RawAxiosRequestConfig) {
|
|
739
|
+
return BudgetApiFp(this.configuration).deleteBudget(budgetId, options).then((request) => request(this.axios, this.basePath));
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Retrieve a single budget by its ID.
|
|
744
|
+
* @summary Get a budget by ID
|
|
745
|
+
* @param {string} budgetId UUID of the budget
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
public getBudgetById(budgetId: string, options?: RawAxiosRequestConfig) {
|
|
750
|
+
return BudgetApiFp(this.configuration).getBudgetById(budgetId, options).then((request) => request(this.axios, this.basePath));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* Return all distinct investments that have at least one option linked to this budget. Each row shows the investment\'s current preferred option data and a flag indicating whether the preferred option is the one linked to the budget. NPV is computed for the preferred option from the v_option_npv view.
|
|
755
|
+
* @summary List investments linked to this budget via options
|
|
756
|
+
* @param {string} budgetId UUID of the budget
|
|
757
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
758
|
+
* @param {*} [options] Override http request option.
|
|
759
|
+
* @throws {RequiredError}
|
|
760
|
+
*/
|
|
761
|
+
public getBudgetInvestments(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
762
|
+
return BudgetApiFp(this.configuration).getBudgetInvestments(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Return all options linked to this budget. Rows are ordered by investment name then option name. NPV is computed from the v_option_npv view for the given value framework.
|
|
767
|
+
* @summary List options linked to this budget
|
|
768
|
+
* @param {string} budgetId UUID of the budget
|
|
769
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
770
|
+
* @param {*} [options] Override http request option.
|
|
771
|
+
* @throws {RequiredError}
|
|
772
|
+
*/
|
|
773
|
+
public getBudgetOptions(budgetId: string, valueFrameworkId: string, options?: RawAxiosRequestConfig) {
|
|
774
|
+
return BudgetApiFp(this.configuration).getBudgetOptions(budgetId, valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Return aggregated overview data for a budget: annual capacity, number of options linked to it, and number of distinct investments that have at least one option linked to it.
|
|
779
|
+
* @summary Get budget overview
|
|
780
|
+
* @param {string} budgetId UUID of the budget
|
|
781
|
+
* @param {*} [options] Override http request option.
|
|
782
|
+
* @throws {RequiredError}
|
|
783
|
+
*/
|
|
784
|
+
public getBudgetOverview(budgetId: string, options?: RawAxiosRequestConfig) {
|
|
785
|
+
return BudgetApiFp(this.configuration).getBudgetOverview(budgetId, options).then((request) => request(this.axios, this.basePath));
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* Retrieve a paginated list of all budgets, ordered by name.
|
|
790
|
+
* @summary List all budgets
|
|
791
|
+
* @param {number} [offset] Number of records to skip
|
|
792
|
+
* @param {number} [limit] Max number of records to return
|
|
793
|
+
* @param {*} [options] Override http request option.
|
|
794
|
+
* @throws {RequiredError}
|
|
795
|
+
*/
|
|
796
|
+
public getBudgets(offset?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
797
|
+
return BudgetApiFp(this.configuration).getBudgets(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Link all specified options to this budget. Any previous budget assignment on these options is overwritten. Returns the list of option IDs that were successfully linked.
|
|
802
|
+
* @summary Bulk-link options to this budget
|
|
803
|
+
* @param {string} budgetId UUID of the budget
|
|
804
|
+
* @param {BudgetLinkOptionsRequest} budgetLinkOptionsRequest
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
public linkOptionsToBudget(budgetId: string, budgetLinkOptionsRequest: BudgetLinkOptionsRequest, options?: RawAxiosRequestConfig) {
|
|
809
|
+
return BudgetApiFp(this.configuration).linkOptionsToBudget(budgetId, budgetLinkOptionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Update one or more fields of an existing budget. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
814
|
+
* @summary Partially update a budget
|
|
815
|
+
* @param {string} budgetId UUID of the budget
|
|
816
|
+
* @param {BudgetUpdate} budgetUpdate
|
|
817
|
+
* @param {*} [options] Override http request option.
|
|
818
|
+
* @throws {RequiredError}
|
|
819
|
+
*/
|
|
820
|
+
public patchBudget(budgetId: string, budgetUpdate: BudgetUpdate, options?: RawAxiosRequestConfig) {
|
|
821
|
+
return BudgetApiFp(this.configuration).patchBudget(budgetId, budgetUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Create a new budget.
|
|
826
|
+
* @summary Create a budget
|
|
827
|
+
* @param {BudgetCreate} budgetCreate
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
public postBudget(budgetCreate: BudgetCreate, options?: RawAxiosRequestConfig) {
|
|
832
|
+
return BudgetApiFp(this.configuration).postBudget(budgetCreate, options).then((request) => request(this.axios, this.basePath));
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|