@cosmotech/aip-client 0.2.0-dev → 0.2.0-dev2
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 +2 -2
- package/api/default-api.ts +1 -1
- package/api/metric-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/value-framework-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api/default-api.d.ts +69 -0
- package/dist/api/default-api.js +128 -0
- package/dist/api/metric-api.d.ts +216 -0
- package/dist/api/metric-api.js +430 -0
- package/dist/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/api/metric-costs-per-year-api.js +472 -0
- package/dist/api/objective-api.d.ts +216 -0
- package/dist/api/objective-api.js +430 -0
- package/dist/api/objective-weight-api.d.ts +228 -0
- package/dist/api/objective-weight-api.js +451 -0
- package/dist/api/value-framework-api.d.ts +216 -0
- package/dist/api/value-framework-api.js +430 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +66 -0
- package/dist/base.js +65 -0
- package/dist/common.d.ts +65 -0
- package/dist/common.js +161 -0
- package/dist/configuration.d.ts +91 -0
- package/dist/configuration.js +43 -0
- package/dist/esm/api/default-api.d.ts +69 -0
- package/dist/esm/api/default-api.js +121 -0
- package/dist/esm/api/metric-api.d.ts +216 -0
- package/dist/esm/api/metric-api.js +423 -0
- package/dist/esm/api/metric-costs-per-year-api.d.ts +240 -0
- package/dist/esm/api/metric-costs-per-year-api.js +465 -0
- package/dist/esm/api/objective-api.d.ts +216 -0
- package/dist/esm/api/objective-api.js +423 -0
- package/dist/esm/api/objective-weight-api.d.ts +228 -0
- package/dist/esm/api/objective-weight-api.js +444 -0
- package/dist/esm/api/value-framework-api.d.ts +216 -0
- package/dist/esm/api/value-framework-api.js +423 -0
- package/dist/esm/api.d.ts +17 -0
- package/dist/esm/api.js +19 -0
- package/dist/esm/base.d.ts +66 -0
- package/dist/esm/base.js +60 -0
- package/dist/esm/common.d.ts +65 -0
- package/dist/esm/common.js +149 -0
- package/dist/esm/configuration.d.ts +91 -0
- package/dist/esm/configuration.js +39 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/httpvalidation-error.d.ts +25 -0
- package/dist/esm/models/httpvalidation-error.js +14 -0
- package/dist/esm/models/index.d.ts +20 -0
- package/dist/esm/models/index.js +20 -0
- package/dist/esm/models/measurement-type.d.ts +21 -0
- package/dist/esm/models/measurement-type.js +22 -0
- package/dist/esm/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/esm/models/metric-costs-per-year-create.js +14 -0
- package/dist/esm/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/esm/models/metric-costs-per-year-response.js +14 -0
- package/dist/esm/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/esm/models/metric-costs-per-year-update.js +14 -0
- package/dist/esm/models/metric-create.d.ts +68 -0
- package/dist/esm/models/metric-create.js +14 -0
- package/dist/esm/models/metric-response.d.ts +92 -0
- package/dist/esm/models/metric-response.js +14 -0
- package/dist/esm/models/metric-type.d.ts +22 -0
- package/dist/esm/models/metric-type.js +23 -0
- package/dist/esm/models/metric-update.d.ts +56 -0
- package/dist/esm/models/metric-update.js +14 -0
- package/dist/esm/models/objective-create.d.ts +30 -0
- package/dist/esm/models/objective-create.js +14 -0
- package/dist/esm/models/objective-response.d.ts +54 -0
- package/dist/esm/models/objective-response.js +14 -0
- package/dist/esm/models/objective-update.d.ts +30 -0
- package/dist/esm/models/objective-update.js +14 -0
- package/dist/esm/models/objective-weight-create.d.ts +36 -0
- package/dist/esm/models/objective-weight-create.js +14 -0
- package/dist/esm/models/objective-weight-response.d.ts +42 -0
- package/dist/esm/models/objective-weight-response.js +14 -0
- package/dist/esm/models/objective-weight-update.d.ts +24 -0
- package/dist/esm/models/objective-weight-update.js +14 -0
- package/dist/esm/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/esm/models/validation-error-loc-inner.js +14 -0
- package/dist/esm/models/validation-error.d.ts +49 -0
- package/dist/esm/models/validation-error.js +14 -0
- package/dist/esm/models/value-framework-create.d.ts +30 -0
- package/dist/esm/models/value-framework-create.js +14 -0
- package/dist/esm/models/value-framework-response.d.ts +54 -0
- package/dist/esm/models/value-framework-response.js +14 -0
- package/dist/esm/models/value-framework-update.d.ts +30 -0
- package/dist/esm/models/value-framework-update.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/httpvalidation-error.d.ts +25 -0
- package/dist/models/httpvalidation-error.js +15 -0
- package/dist/models/index.d.ts +20 -0
- package/dist/models/index.js +36 -0
- package/dist/models/measurement-type.d.ts +21 -0
- package/dist/models/measurement-type.js +25 -0
- package/dist/models/metric-costs-per-year-create.d.ts +48 -0
- package/dist/models/metric-costs-per-year-create.js +15 -0
- package/dist/models/metric-costs-per-year-response.d.ts +54 -0
- package/dist/models/metric-costs-per-year-response.js +15 -0
- package/dist/models/metric-costs-per-year-update.d.ts +30 -0
- package/dist/models/metric-costs-per-year-update.js +15 -0
- package/dist/models/metric-create.d.ts +68 -0
- package/dist/models/metric-create.js +15 -0
- package/dist/models/metric-response.d.ts +92 -0
- package/dist/models/metric-response.js +15 -0
- package/dist/models/metric-type.d.ts +22 -0
- package/dist/models/metric-type.js +26 -0
- package/dist/models/metric-update.d.ts +56 -0
- package/dist/models/metric-update.js +15 -0
- package/dist/models/objective-create.d.ts +30 -0
- package/dist/models/objective-create.js +15 -0
- package/dist/models/objective-response.d.ts +54 -0
- package/dist/models/objective-response.js +15 -0
- package/dist/models/objective-update.d.ts +30 -0
- package/dist/models/objective-update.js +15 -0
- package/dist/models/objective-weight-create.d.ts +36 -0
- package/dist/models/objective-weight-create.js +15 -0
- package/dist/models/objective-weight-response.d.ts +42 -0
- package/dist/models/objective-weight-response.js +15 -0
- package/dist/models/objective-weight-update.d.ts +24 -0
- package/dist/models/objective-weight-update.js +15 -0
- package/dist/models/validation-error-loc-inner.d.ts +18 -0
- package/dist/models/validation-error-loc-inner.js +15 -0
- package/dist/models/validation-error.d.ts +49 -0
- package/dist/models/validation-error.js +15 -0
- package/dist/models/value-framework-create.d.ts +30 -0
- package/dist/models/value-framework-create.js +15 -0
- package/dist/models/value-framework-response.d.ts +54 -0
- package/dist/models/value-framework-response.js +15 -0
- package/dist/models/value-framework-update.d.ts +30 -0
- package/dist/models/value-framework-update.js +15 -0
- package/index.ts +1 -1
- package/models/httpvalidation-error.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/validation-error-loc-inner.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,423 @@
|
|
|
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-dev2
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import globalAxios from 'axios';
|
|
24
|
+
// Some imports not used depending on template conditions
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { DUMMY_BASE_URL, assertParamExists, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
|
|
29
|
+
/**
|
|
30
|
+
* ValueFrameworkApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const ValueFrameworkApiAxiosParamCreator = function (configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
37
|
+
* @summary Delete a value framework
|
|
38
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
deleteValueFramework: (valueFrameworkId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
44
|
+
assertParamExists('deleteValueFramework', 'valueFrameworkId', valueFrameworkId);
|
|
45
|
+
const localVarPath = `/value_framework/{value_framework_id}`
|
|
46
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
}
|
|
53
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
54
|
+
const localVarHeaderParameter = {};
|
|
55
|
+
const localVarQueryParameter = {};
|
|
56
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
57
|
+
// oauth required
|
|
58
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
62
|
+
return {
|
|
63
|
+
url: toPathString(localVarUrlObj),
|
|
64
|
+
options: localVarRequestOptions,
|
|
65
|
+
};
|
|
66
|
+
}),
|
|
67
|
+
/**
|
|
68
|
+
* Retrieve a single value framework by its ID.
|
|
69
|
+
* @summary Get a value framework by ID
|
|
70
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
71
|
+
* @param {*} [options] Override http request option.
|
|
72
|
+
* @throws {RequiredError}
|
|
73
|
+
*/
|
|
74
|
+
getValueFrameworkById: (valueFrameworkId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
76
|
+
assertParamExists('getValueFrameworkById', 'valueFrameworkId', valueFrameworkId);
|
|
77
|
+
const localVarPath = `/value_framework/{value_framework_id}`
|
|
78
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
79
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
80
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
81
|
+
let baseOptions;
|
|
82
|
+
if (configuration) {
|
|
83
|
+
baseOptions = configuration.baseOptions;
|
|
84
|
+
}
|
|
85
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
86
|
+
const localVarHeaderParameter = {};
|
|
87
|
+
const localVarQueryParameter = {};
|
|
88
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
89
|
+
// oauth required
|
|
90
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
91
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
92
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
93
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
94
|
+
return {
|
|
95
|
+
url: toPathString(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
97
|
+
};
|
|
98
|
+
}),
|
|
99
|
+
/**
|
|
100
|
+
* Retrieve a paginated list of all value frameworks.
|
|
101
|
+
* @summary List value frameworks
|
|
102
|
+
* @param {number} [offset] Number of records to skip
|
|
103
|
+
* @param {number} [limit] Max number of records to return
|
|
104
|
+
* @param {*} [options] Override http request option.
|
|
105
|
+
* @throws {RequiredError}
|
|
106
|
+
*/
|
|
107
|
+
getValueFrameworks: (offset, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const localVarPath = `/value_framework/`;
|
|
109
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
110
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
111
|
+
let baseOptions;
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
}
|
|
115
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
116
|
+
const localVarHeaderParameter = {};
|
|
117
|
+
const localVarQueryParameter = {};
|
|
118
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
119
|
+
// oauth required
|
|
120
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
121
|
+
if (offset !== undefined) {
|
|
122
|
+
localVarQueryParameter['offset'] = offset;
|
|
123
|
+
}
|
|
124
|
+
if (limit !== undefined) {
|
|
125
|
+
localVarQueryParameter['limit'] = limit;
|
|
126
|
+
}
|
|
127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
}),
|
|
135
|
+
/**
|
|
136
|
+
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
137
|
+
* @summary Partially update a value framework
|
|
138
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
139
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
patchValueFramework: (valueFrameworkId, valueFrameworkUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
// verify required parameter 'valueFrameworkId' is not null or undefined
|
|
145
|
+
assertParamExists('patchValueFramework', 'valueFrameworkId', valueFrameworkId);
|
|
146
|
+
// verify required parameter 'valueFrameworkUpdate' is not null or undefined
|
|
147
|
+
assertParamExists('patchValueFramework', 'valueFrameworkUpdate', valueFrameworkUpdate);
|
|
148
|
+
const localVarPath = `/value_framework/{value_framework_id}`
|
|
149
|
+
.replace(`{${"value_framework_id"}}`, encodeURIComponent(String(valueFrameworkId)));
|
|
150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
151
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
152
|
+
let baseOptions;
|
|
153
|
+
if (configuration) {
|
|
154
|
+
baseOptions = configuration.baseOptions;
|
|
155
|
+
}
|
|
156
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
157
|
+
const localVarHeaderParameter = {};
|
|
158
|
+
const localVarQueryParameter = {};
|
|
159
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
160
|
+
// oauth required
|
|
161
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
162
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
166
|
+
localVarRequestOptions.data = serializeDataIfNeeded(valueFrameworkUpdate, localVarRequestOptions, configuration);
|
|
167
|
+
return {
|
|
168
|
+
url: toPathString(localVarUrlObj),
|
|
169
|
+
options: localVarRequestOptions,
|
|
170
|
+
};
|
|
171
|
+
}),
|
|
172
|
+
/**
|
|
173
|
+
* Create a new value framework. Name must be unique and non-empty.
|
|
174
|
+
* @summary Create a value framework
|
|
175
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
176
|
+
* @param {*} [options] Override http request option.
|
|
177
|
+
* @throws {RequiredError}
|
|
178
|
+
*/
|
|
179
|
+
postValueFramework: (valueFrameworkCreate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
// verify required parameter 'valueFrameworkCreate' is not null or undefined
|
|
181
|
+
assertParamExists('postValueFramework', 'valueFrameworkCreate', valueFrameworkCreate);
|
|
182
|
+
const localVarPath = `/value_framework/`;
|
|
183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
184
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
185
|
+
let baseOptions;
|
|
186
|
+
if (configuration) {
|
|
187
|
+
baseOptions = configuration.baseOptions;
|
|
188
|
+
}
|
|
189
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
190
|
+
const localVarHeaderParameter = {};
|
|
191
|
+
const localVarQueryParameter = {};
|
|
192
|
+
// authentication OAuth2AuthorizationCodeBearer required
|
|
193
|
+
// oauth required
|
|
194
|
+
yield setOAuthToObject(localVarHeaderParameter, "OAuth2AuthorizationCodeBearer", [], configuration);
|
|
195
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
196
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
198
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
199
|
+
localVarRequestOptions.data = serializeDataIfNeeded(valueFrameworkCreate, localVarRequestOptions, configuration);
|
|
200
|
+
return {
|
|
201
|
+
url: toPathString(localVarUrlObj),
|
|
202
|
+
options: localVarRequestOptions,
|
|
203
|
+
};
|
|
204
|
+
}),
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* ValueFrameworkApi - functional programming interface
|
|
209
|
+
* @export
|
|
210
|
+
*/
|
|
211
|
+
export const ValueFrameworkApiFp = function (configuration) {
|
|
212
|
+
const localVarAxiosParamCreator = ValueFrameworkApiAxiosParamCreator(configuration);
|
|
213
|
+
return {
|
|
214
|
+
/**
|
|
215
|
+
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
216
|
+
* @summary Delete a value framework
|
|
217
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
deleteValueFramework(valueFrameworkId, options) {
|
|
222
|
+
var _a, _b, _c;
|
|
223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
224
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteValueFramework(valueFrameworkId, options);
|
|
225
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
226
|
+
const operationBasePath = (_c = (_b = operationServerMap['ValueFrameworkApi.deleteValueFramework']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
227
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
228
|
+
});
|
|
229
|
+
},
|
|
230
|
+
/**
|
|
231
|
+
* Retrieve a single value framework by its ID.
|
|
232
|
+
* @summary Get a value framework by ID
|
|
233
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
getValueFrameworkById(valueFrameworkId, options) {
|
|
238
|
+
var _a, _b, _c;
|
|
239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
240
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getValueFrameworkById(valueFrameworkId, options);
|
|
241
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
242
|
+
const operationBasePath = (_c = (_b = operationServerMap['ValueFrameworkApi.getValueFrameworkById']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
243
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
244
|
+
});
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
* Retrieve a paginated list of all value frameworks.
|
|
248
|
+
* @summary List value frameworks
|
|
249
|
+
* @param {number} [offset] Number of records to skip
|
|
250
|
+
* @param {number} [limit] Max number of records to return
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
*/
|
|
254
|
+
getValueFrameworks(offset, limit, options) {
|
|
255
|
+
var _a, _b, _c;
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getValueFrameworks(offset, limit, options);
|
|
258
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
259
|
+
const operationBasePath = (_c = (_b = operationServerMap['ValueFrameworkApi.getValueFrameworks']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
260
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
261
|
+
});
|
|
262
|
+
},
|
|
263
|
+
/**
|
|
264
|
+
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
265
|
+
* @summary Partially update a value framework
|
|
266
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
267
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
268
|
+
* @param {*} [options] Override http request option.
|
|
269
|
+
* @throws {RequiredError}
|
|
270
|
+
*/
|
|
271
|
+
patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options) {
|
|
272
|
+
var _a, _b, _c;
|
|
273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
274
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options);
|
|
275
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
276
|
+
const operationBasePath = (_c = (_b = operationServerMap['ValueFrameworkApi.patchValueFramework']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
277
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* Create a new value framework. Name must be unique and non-empty.
|
|
282
|
+
* @summary Create a value framework
|
|
283
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
postValueFramework(valueFrameworkCreate, options) {
|
|
288
|
+
var _a, _b, _c;
|
|
289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
290
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postValueFramework(valueFrameworkCreate, options);
|
|
291
|
+
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
292
|
+
const operationBasePath = (_c = (_b = operationServerMap['ValueFrameworkApi.postValueFramework']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
|
|
293
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
294
|
+
});
|
|
295
|
+
},
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
/**
|
|
299
|
+
* ValueFrameworkApi - factory interface
|
|
300
|
+
* @export
|
|
301
|
+
*/
|
|
302
|
+
export const ValueFrameworkApiFactory = function (configuration, basePath, axios) {
|
|
303
|
+
const localVarFp = ValueFrameworkApiFp(configuration);
|
|
304
|
+
return {
|
|
305
|
+
/**
|
|
306
|
+
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
307
|
+
* @summary Delete a value framework
|
|
308
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
deleteValueFramework(valueFrameworkId, options) {
|
|
313
|
+
return localVarFp.deleteValueFramework(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
314
|
+
},
|
|
315
|
+
/**
|
|
316
|
+
* Retrieve a single value framework by its ID.
|
|
317
|
+
* @summary Get a value framework by ID
|
|
318
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
319
|
+
* @param {*} [options] Override http request option.
|
|
320
|
+
* @throws {RequiredError}
|
|
321
|
+
*/
|
|
322
|
+
getValueFrameworkById(valueFrameworkId, options) {
|
|
323
|
+
return localVarFp.getValueFrameworkById(valueFrameworkId, options).then((request) => request(axios, basePath));
|
|
324
|
+
},
|
|
325
|
+
/**
|
|
326
|
+
* Retrieve a paginated list of all value frameworks.
|
|
327
|
+
* @summary List value frameworks
|
|
328
|
+
* @param {number} [offset] Number of records to skip
|
|
329
|
+
* @param {number} [limit] Max number of records to return
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getValueFrameworks(offset, limit, options) {
|
|
334
|
+
return localVarFp.getValueFrameworks(offset, limit, options).then((request) => request(axios, basePath));
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
338
|
+
* @summary Partially update a value framework
|
|
339
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
340
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options) {
|
|
345
|
+
return localVarFp.patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options).then((request) => request(axios, basePath));
|
|
346
|
+
},
|
|
347
|
+
/**
|
|
348
|
+
* Create a new value framework. Name must be unique and non-empty.
|
|
349
|
+
* @summary Create a value framework
|
|
350
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
postValueFramework(valueFrameworkCreate, options) {
|
|
355
|
+
return localVarFp.postValueFramework(valueFrameworkCreate, options).then((request) => request(axios, basePath));
|
|
356
|
+
},
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
/**
|
|
360
|
+
* ValueFrameworkApi - object-oriented interface
|
|
361
|
+
* @export
|
|
362
|
+
* @class ValueFrameworkApi
|
|
363
|
+
* @extends {BaseAPI}
|
|
364
|
+
*/
|
|
365
|
+
export class ValueFrameworkApi extends BaseAPI {
|
|
366
|
+
/**
|
|
367
|
+
* Delete an existing value framework by its ID. Associated objective weights and metric costs per year are also deleted via cascade.
|
|
368
|
+
* @summary Delete a value framework
|
|
369
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
* @memberof ValueFrameworkApi
|
|
373
|
+
*/
|
|
374
|
+
deleteValueFramework(valueFrameworkId, options) {
|
|
375
|
+
return ValueFrameworkApiFp(this.configuration).deleteValueFramework(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Retrieve a single value framework by its ID.
|
|
379
|
+
* @summary Get a value framework by ID
|
|
380
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
* @memberof ValueFrameworkApi
|
|
384
|
+
*/
|
|
385
|
+
getValueFrameworkById(valueFrameworkId, options) {
|
|
386
|
+
return ValueFrameworkApiFp(this.configuration).getValueFrameworkById(valueFrameworkId, options).then((request) => request(this.axios, this.basePath));
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Retrieve a paginated list of all value frameworks.
|
|
390
|
+
* @summary List value frameworks
|
|
391
|
+
* @param {number} [offset] Number of records to skip
|
|
392
|
+
* @param {number} [limit] Max number of records to return
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
* @memberof ValueFrameworkApi
|
|
396
|
+
*/
|
|
397
|
+
getValueFrameworks(offset, limit, options) {
|
|
398
|
+
return ValueFrameworkApiFp(this.configuration).getValueFrameworks(offset, limit, options).then((request) => request(this.axios, this.basePath));
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Update one or more fields of an existing value framework. Only the fields included in the request body will be modified; omitted fields remain unchanged.
|
|
402
|
+
* @summary Partially update a value framework
|
|
403
|
+
* @param {string} valueFrameworkId UUID of the value framework
|
|
404
|
+
* @param {ValueFrameworkUpdate} valueFrameworkUpdate
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
* @memberof ValueFrameworkApi
|
|
408
|
+
*/
|
|
409
|
+
patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options) {
|
|
410
|
+
return ValueFrameworkApiFp(this.configuration).patchValueFramework(valueFrameworkId, valueFrameworkUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Create a new value framework. Name must be unique and non-empty.
|
|
414
|
+
* @summary Create a value framework
|
|
415
|
+
* @param {ValueFrameworkCreate} valueFrameworkCreate
|
|
416
|
+
* @param {*} [options] Override http request option.
|
|
417
|
+
* @throws {RequiredError}
|
|
418
|
+
* @memberof ValueFrameworkApi
|
|
419
|
+
*/
|
|
420
|
+
postValueFramework(valueFrameworkCreate, options) {
|
|
421
|
+
return ValueFrameworkApiFp(this.configuration).postValueFramework(valueFrameworkCreate, options).then((request) => request(this.axios, this.basePath));
|
|
422
|
+
}
|
|
423
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev2
|
|
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
|
+
export * from './api/default-api';
|
|
13
|
+
export * from './api/metric-api';
|
|
14
|
+
export * from './api/metric-costs-per-year-api';
|
|
15
|
+
export * from './api/objective-api';
|
|
16
|
+
export * from './api/objective-weight-api';
|
|
17
|
+
export * from './api/value-framework-api';
|
package/dist/esm/api.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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-dev2
|
|
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 * from './api/default-api';
|
|
15
|
+
export * from './api/metric-api';
|
|
16
|
+
export * from './api/metric-costs-per-year-api';
|
|
17
|
+
export * from './api/objective-api';
|
|
18
|
+
export * from './api/objective-weight-api';
|
|
19
|
+
export * from './api/value-framework-api';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev2
|
|
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 { Configuration } from './configuration';
|
|
13
|
+
import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
|
+
export declare const BASE_PATH: string;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const COLLECTION_FORMATS: {
|
|
20
|
+
csv: string;
|
|
21
|
+
ssv: string;
|
|
22
|
+
tsv: string;
|
|
23
|
+
pipes: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @interface RequestArgs
|
|
29
|
+
*/
|
|
30
|
+
export interface RequestArgs {
|
|
31
|
+
url: string;
|
|
32
|
+
options: RawAxiosRequestConfig;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @class BaseAPI
|
|
38
|
+
*/
|
|
39
|
+
export declare class BaseAPI {
|
|
40
|
+
protected basePath: string;
|
|
41
|
+
protected axios: AxiosInstance;
|
|
42
|
+
protected configuration: Configuration | undefined;
|
|
43
|
+
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @class RequiredError
|
|
49
|
+
* @extends {Error}
|
|
50
|
+
*/
|
|
51
|
+
export declare class RequiredError extends Error {
|
|
52
|
+
field: string;
|
|
53
|
+
constructor(field: string, msg?: string);
|
|
54
|
+
}
|
|
55
|
+
interface ServerMap {
|
|
56
|
+
[key: string]: {
|
|
57
|
+
url: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}[];
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const operationServerMap: ServerMap;
|
|
66
|
+
export {};
|
package/dist/esm/base.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
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-dev2
|
|
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
|
+
import globalAxios from 'axios';
|
|
15
|
+
export const BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const COLLECTION_FORMATS = {
|
|
21
|
+
csv: ",",
|
|
22
|
+
ssv: " ",
|
|
23
|
+
tsv: "\t",
|
|
24
|
+
pipes: "|",
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @class BaseAPI
|
|
30
|
+
*/
|
|
31
|
+
export class BaseAPI {
|
|
32
|
+
constructor(configuration, basePath = BASE_PATH, axios = globalAxios) {
|
|
33
|
+
var _a;
|
|
34
|
+
this.basePath = basePath;
|
|
35
|
+
this.axios = axios;
|
|
36
|
+
if (configuration) {
|
|
37
|
+
this.configuration = configuration;
|
|
38
|
+
this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @export
|
|
46
|
+
* @class RequiredError
|
|
47
|
+
* @extends {Error}
|
|
48
|
+
*/
|
|
49
|
+
export class RequiredError extends Error {
|
|
50
|
+
constructor(field, msg) {
|
|
51
|
+
super(msg);
|
|
52
|
+
this.field = field;
|
|
53
|
+
this.name = "RequiredError";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export const operationServerMap = {};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset Investment Planning
|
|
3
|
+
* API for Asset Investment Planning
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.2.0-dev2
|
|
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 { Configuration } from "./configuration";
|
|
13
|
+
import type { RequestArgs } from "./base";
|
|
14
|
+
import type { AxiosInstance, AxiosResponse } from 'axios';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export declare const DUMMY_BASE_URL = "https://example.com";
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @throws {RequiredError}
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
*/
|
|
45
|
+
export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
*/
|
|
55
|
+
export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const toPathString: (url: URL) => string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|