@ember-finance/sdk 1.0.9 → 1.0.10
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/src/common/types.d.ts +0 -1
- package/dist/src/common/types.js +0 -1
- package/dist/src/vaults/api/api.d.ts +2 -2
- package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
- package/dist/src/vaults/api/apis/accounts-api.js +98 -112
- package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
- package/dist/src/vaults/api/apis/vaults-api.js +140 -220
- package/dist/src/vaults/api/base.d.ts +26 -2
- package/dist/src/vaults/api/base.js +21 -1
- package/dist/src/vaults/api/common.d.ts +38 -1
- package/dist/src/vaults/api/common.js +47 -17
- package/dist/src/vaults/api/configuration.d.ts +17 -0
- package/dist/src/vaults/api/configuration.js +4 -5
- package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
- package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
- package/dist/src/vaults/api/models/account-transaction.js +12 -7
- package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
- package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
- package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
- package/dist/src/vaults/api/models/asset.d.ts +26 -7
- package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
- package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
- package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
- package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
- package/dist/src/vaults/api/models/exposure.d.ts +16 -5
- package/dist/src/vaults/api/models/fee.d.ts +18 -4
- package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
- package/dist/src/vaults/api/models/history-interval.js +12 -6
- package/dist/src/vaults/api/models/index.d.ts +60 -60
- package/dist/src/vaults/api/models/lp.d.ts +44 -13
- package/dist/src/vaults/api/models/manager.d.ts +26 -4
- package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/perps.d.ts +12 -3
- package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
- package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
- package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
- package/dist/src/vaults/api/models/position-value.d.ts +23 -6
- package/dist/src/vaults/api/models/position.d.ts +17 -4
- package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
- package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
- package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
- package/dist/src/vaults/api/models/protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
- package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
- package/dist/src/vaults/api/models/raw-event.js +24 -19
- package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
- package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
- package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
- package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
- package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
- package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
- package/dist/src/vaults/api/models/reward.d.ts +18 -4
- package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
- package/dist/src/vaults/api/models/strategy.d.ts +26 -7
- package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
- package/dist/src/vaults/api/models/supplied.d.ts +21 -5
- package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
- package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
- package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
- package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
- package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
- package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
- package/dist/src/vaults/api/models/vault-detail.js +11 -6
- package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
- package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
- package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
- package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
- package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
- package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
- package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
- package/package.json +4 -3
|
@@ -25,6 +25,7 @@ const common_1 = require("../common");
|
|
|
25
25
|
const base_1 = require("../base");
|
|
26
26
|
/**
|
|
27
27
|
* AccountsApi - axios parameter creator
|
|
28
|
+
* @export
|
|
28
29
|
*/
|
|
29
30
|
const AccountsApiAxiosParamCreator = function (configuration) {
|
|
30
31
|
return {
|
|
@@ -37,27 +38,24 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
37
38
|
*/
|
|
38
39
|
getAccountExposure: async (accountAddress, options = {}) => {
|
|
39
40
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
40
|
-
(0, common_1.assertParamExists)(
|
|
41
|
-
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}
|
|
41
|
+
(0, common_1.assertParamExists)('getAccountExposure', 'accountAddress', accountAddress);
|
|
42
|
+
const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}`
|
|
43
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
42
44
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
45
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
44
46
|
let baseOptions;
|
|
45
47
|
if (configuration) {
|
|
46
48
|
baseOptions = configuration.baseOptions;
|
|
47
49
|
}
|
|
48
|
-
const localVarRequestOptions = { method:
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
49
51
|
const localVarHeaderParameter = {};
|
|
50
52
|
const localVarQueryParameter = {};
|
|
51
53
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
52
54
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
53
|
-
localVarRequestOptions.headers = {
|
|
54
|
-
...localVarHeaderParameter,
|
|
55
|
-
...headersFromBaseOptions,
|
|
56
|
-
...options.headers
|
|
57
|
-
};
|
|
55
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
58
56
|
return {
|
|
59
57
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
60
|
-
options: localVarRequestOptions
|
|
58
|
+
options: localVarRequestOptions,
|
|
61
59
|
};
|
|
62
60
|
},
|
|
63
61
|
/**
|
|
@@ -75,47 +73,44 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
75
73
|
*/
|
|
76
74
|
getAccountHistory: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options = {}) => {
|
|
77
75
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
78
|
-
(0, common_1.assertParamExists)(
|
|
76
|
+
(0, common_1.assertParamExists)('getAccountHistory', 'accountAddress', accountAddress);
|
|
79
77
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
80
|
-
(0, common_1.assertParamExists)(
|
|
81
|
-
const localVarPath = `/api/v1/vaults/history/{accountAddress}
|
|
78
|
+
(0, common_1.assertParamExists)('getAccountHistory', 'startTimeInMs', startTimeInMs);
|
|
79
|
+
const localVarPath = `/api/v1/vaults/history/{accountAddress}`
|
|
80
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
82
81
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83
82
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
84
83
|
let baseOptions;
|
|
85
84
|
if (configuration) {
|
|
86
85
|
baseOptions = configuration.baseOptions;
|
|
87
86
|
}
|
|
88
|
-
const localVarRequestOptions = { method:
|
|
87
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
89
88
|
const localVarHeaderParameter = {};
|
|
90
89
|
const localVarQueryParameter = {};
|
|
91
90
|
if (startTimeInMs !== undefined) {
|
|
92
|
-
localVarQueryParameter[
|
|
91
|
+
localVarQueryParameter['startTimeInMs'] = startTimeInMs;
|
|
93
92
|
}
|
|
94
93
|
if (endTimeInMs !== undefined) {
|
|
95
|
-
localVarQueryParameter[
|
|
94
|
+
localVarQueryParameter['endTimeInMs'] = endTimeInMs;
|
|
96
95
|
}
|
|
97
96
|
if (limit !== undefined) {
|
|
98
|
-
localVarQueryParameter[
|
|
97
|
+
localVarQueryParameter['limit'] = limit;
|
|
99
98
|
}
|
|
100
99
|
if (page !== undefined) {
|
|
101
|
-
localVarQueryParameter[
|
|
100
|
+
localVarQueryParameter['page'] = page;
|
|
102
101
|
}
|
|
103
102
|
if (vaultId !== undefined) {
|
|
104
|
-
localVarQueryParameter[
|
|
103
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
105
104
|
}
|
|
106
105
|
if (type !== undefined) {
|
|
107
|
-
localVarQueryParameter[
|
|
106
|
+
localVarQueryParameter['type'] = type;
|
|
108
107
|
}
|
|
109
108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
110
109
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
111
|
-
localVarRequestOptions.headers = {
|
|
112
|
-
...localVarHeaderParameter,
|
|
113
|
-
...headersFromBaseOptions,
|
|
114
|
-
...options.headers
|
|
115
|
-
};
|
|
110
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
116
111
|
return {
|
|
117
112
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
118
|
-
options: localVarRequestOptions
|
|
113
|
+
options: localVarRequestOptions,
|
|
119
114
|
};
|
|
120
115
|
},
|
|
121
116
|
/**
|
|
@@ -128,30 +123,27 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
128
123
|
*/
|
|
129
124
|
getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
|
|
130
125
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
131
|
-
(0, common_1.assertParamExists)(
|
|
132
|
-
const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}
|
|
126
|
+
(0, common_1.assertParamExists)('getAccountPositionsValue', 'accountAddress', accountAddress);
|
|
127
|
+
const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`
|
|
128
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
133
129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
134
130
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
135
131
|
let baseOptions;
|
|
136
132
|
if (configuration) {
|
|
137
133
|
baseOptions = configuration.baseOptions;
|
|
138
134
|
}
|
|
139
|
-
const localVarRequestOptions = { method:
|
|
135
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
140
136
|
const localVarHeaderParameter = {};
|
|
141
137
|
const localVarQueryParameter = {};
|
|
142
138
|
if (vaultId !== undefined) {
|
|
143
|
-
localVarQueryParameter[
|
|
139
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
144
140
|
}
|
|
145
141
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
146
142
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
147
|
-
localVarRequestOptions.headers = {
|
|
148
|
-
...localVarHeaderParameter,
|
|
149
|
-
...headersFromBaseOptions,
|
|
150
|
-
...options.headers
|
|
151
|
-
};
|
|
143
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
152
144
|
return {
|
|
153
145
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
154
|
-
options: localVarRequestOptions
|
|
146
|
+
options: localVarRequestOptions,
|
|
155
147
|
};
|
|
156
148
|
},
|
|
157
149
|
/**
|
|
@@ -169,47 +161,44 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
169
161
|
*/
|
|
170
162
|
getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options = {}) => {
|
|
171
163
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
172
|
-
(0, common_1.assertParamExists)(
|
|
164
|
+
(0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'accountAddress', accountAddress);
|
|
173
165
|
// verify required parameter 'startTimeInMs' is not null or undefined
|
|
174
|
-
(0, common_1.assertParamExists)(
|
|
175
|
-
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}
|
|
166
|
+
(0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'startTimeInMs', startTimeInMs);
|
|
167
|
+
const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`
|
|
168
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
176
169
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
177
170
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
178
171
|
let baseOptions;
|
|
179
172
|
if (configuration) {
|
|
180
173
|
baseOptions = configuration.baseOptions;
|
|
181
174
|
}
|
|
182
|
-
const localVarRequestOptions = { method:
|
|
175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
183
176
|
const localVarHeaderParameter = {};
|
|
184
177
|
const localVarQueryParameter = {};
|
|
185
178
|
if (startTimeInMs !== undefined) {
|
|
186
|
-
localVarQueryParameter[
|
|
179
|
+
localVarQueryParameter['startTimeInMs'] = startTimeInMs;
|
|
187
180
|
}
|
|
188
181
|
if (endTimeInMs !== undefined) {
|
|
189
|
-
localVarQueryParameter[
|
|
182
|
+
localVarQueryParameter['endTimeInMs'] = endTimeInMs;
|
|
190
183
|
}
|
|
191
184
|
if (limit !== undefined) {
|
|
192
|
-
localVarQueryParameter[
|
|
185
|
+
localVarQueryParameter['limit'] = limit;
|
|
193
186
|
}
|
|
194
187
|
if (page !== undefined) {
|
|
195
|
-
localVarQueryParameter[
|
|
188
|
+
localVarQueryParameter['page'] = page;
|
|
196
189
|
}
|
|
197
190
|
if (vaultId !== undefined) {
|
|
198
|
-
localVarQueryParameter[
|
|
191
|
+
localVarQueryParameter['vaultId'] = vaultId;
|
|
199
192
|
}
|
|
200
193
|
if (status !== undefined) {
|
|
201
|
-
localVarQueryParameter[
|
|
194
|
+
localVarQueryParameter['status'] = status;
|
|
202
195
|
}
|
|
203
196
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
204
197
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
|
-
localVarRequestOptions.headers = {
|
|
206
|
-
...localVarHeaderParameter,
|
|
207
|
-
...headersFromBaseOptions,
|
|
208
|
-
...options.headers
|
|
209
|
-
};
|
|
198
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
210
199
|
return {
|
|
211
200
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
|
-
options: localVarRequestOptions
|
|
201
|
+
options: localVarRequestOptions,
|
|
213
202
|
};
|
|
214
203
|
},
|
|
215
204
|
/**
|
|
@@ -221,34 +210,32 @@ const AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
221
210
|
*/
|
|
222
211
|
getAccountYieldValue: async (accountAddress, options = {}) => {
|
|
223
212
|
// verify required parameter 'accountAddress' is not null or undefined
|
|
224
|
-
(0, common_1.assertParamExists)(
|
|
225
|
-
const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}
|
|
213
|
+
(0, common_1.assertParamExists)('getAccountYieldValue', 'accountAddress', accountAddress);
|
|
214
|
+
const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`
|
|
215
|
+
.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
|
|
226
216
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
227
217
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
228
218
|
let baseOptions;
|
|
229
219
|
if (configuration) {
|
|
230
220
|
baseOptions = configuration.baseOptions;
|
|
231
221
|
}
|
|
232
|
-
const localVarRequestOptions = { method:
|
|
222
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
233
223
|
const localVarHeaderParameter = {};
|
|
234
224
|
const localVarQueryParameter = {};
|
|
235
225
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
236
226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
-
localVarRequestOptions.headers = {
|
|
238
|
-
...localVarHeaderParameter,
|
|
239
|
-
...headersFromBaseOptions,
|
|
240
|
-
...options.headers
|
|
241
|
-
};
|
|
227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
242
228
|
return {
|
|
243
229
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
244
|
-
options: localVarRequestOptions
|
|
230
|
+
options: localVarRequestOptions,
|
|
245
231
|
};
|
|
246
|
-
}
|
|
232
|
+
},
|
|
247
233
|
};
|
|
248
234
|
};
|
|
249
235
|
exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
|
|
250
236
|
/**
|
|
251
237
|
* AccountsApi - functional programming interface
|
|
238
|
+
* @export
|
|
252
239
|
*/
|
|
253
240
|
const AccountsApiFp = function (configuration) {
|
|
254
241
|
const localVarAxiosParamCreator = (0, exports.AccountsApiAxiosParamCreator)(configuration);
|
|
@@ -263,7 +250,7 @@ const AccountsApiFp = function (configuration) {
|
|
|
263
250
|
async getAccountExposure(accountAddress, options) {
|
|
264
251
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountExposure(accountAddress, options);
|
|
265
252
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
266
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
253
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountExposure']?.[localVarOperationServerIndex]?.url;
|
|
267
254
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
268
255
|
},
|
|
269
256
|
/**
|
|
@@ -282,7 +269,7 @@ const AccountsApiFp = function (configuration) {
|
|
|
282
269
|
async getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
283
270
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options);
|
|
284
271
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
285
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
272
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountHistory']?.[localVarOperationServerIndex]?.url;
|
|
286
273
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
287
274
|
},
|
|
288
275
|
/**
|
|
@@ -296,7 +283,7 @@ const AccountsApiFp = function (configuration) {
|
|
|
296
283
|
async getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
297
284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
|
|
298
285
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
299
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
286
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountPositionsValue']?.[localVarOperationServerIndex]?.url;
|
|
300
287
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
301
288
|
},
|
|
302
289
|
/**
|
|
@@ -315,7 +302,7 @@ const AccountsApiFp = function (configuration) {
|
|
|
315
302
|
async getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
316
303
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options);
|
|
317
304
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
318
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
305
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountWithdrawalRequests']?.[localVarOperationServerIndex]?.url;
|
|
319
306
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
320
307
|
},
|
|
321
308
|
/**
|
|
@@ -328,14 +315,15 @@ const AccountsApiFp = function (configuration) {
|
|
|
328
315
|
async getAccountYieldValue(accountAddress, options) {
|
|
329
316
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, options);
|
|
330
317
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
331
|
-
const localVarOperationServerBasePath = base_1.operationServerMap[
|
|
318
|
+
const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountYieldValue']?.[localVarOperationServerIndex]?.url;
|
|
332
319
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
333
|
-
}
|
|
320
|
+
},
|
|
334
321
|
};
|
|
335
322
|
};
|
|
336
323
|
exports.AccountsApiFp = AccountsApiFp;
|
|
337
324
|
/**
|
|
338
325
|
* AccountsApi - factory interface
|
|
326
|
+
* @export
|
|
339
327
|
*/
|
|
340
328
|
const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
341
329
|
const localVarFp = (0, exports.AccountsApiFp)(configuration);
|
|
@@ -348,9 +336,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
348
336
|
* @throws {RequiredError}
|
|
349
337
|
*/
|
|
350
338
|
getAccountExposure(accountAddress, options) {
|
|
351
|
-
return localVarFp
|
|
352
|
-
.getAccountExposure(accountAddress, options)
|
|
353
|
-
.then(request => request(axios, basePath));
|
|
339
|
+
return localVarFp.getAccountExposure(accountAddress, options).then((request) => request(axios, basePath));
|
|
354
340
|
},
|
|
355
341
|
/**
|
|
356
342
|
*
|
|
@@ -366,9 +352,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
366
352
|
* @throws {RequiredError}
|
|
367
353
|
*/
|
|
368
354
|
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
369
|
-
return localVarFp
|
|
370
|
-
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
371
|
-
.then(request => request(axios, basePath));
|
|
355
|
+
return localVarFp.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options).then((request) => request(axios, basePath));
|
|
372
356
|
},
|
|
373
357
|
/**
|
|
374
358
|
*
|
|
@@ -379,9 +363,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
379
363
|
* @throws {RequiredError}
|
|
380
364
|
*/
|
|
381
365
|
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
382
|
-
return localVarFp
|
|
383
|
-
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
384
|
-
.then(request => request(axios, basePath));
|
|
366
|
+
return localVarFp.getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(axios, basePath));
|
|
385
367
|
},
|
|
386
368
|
/**
|
|
387
369
|
*
|
|
@@ -397,9 +379,7 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
397
379
|
* @throws {RequiredError}
|
|
398
380
|
*/
|
|
399
381
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
400
|
-
return localVarFp
|
|
401
|
-
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
402
|
-
.then(request => request(axios, basePath));
|
|
382
|
+
return localVarFp.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options).then((request) => request(axios, basePath));
|
|
403
383
|
},
|
|
404
384
|
/**
|
|
405
385
|
*
|
|
@@ -409,15 +389,16 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
409
389
|
* @throws {RequiredError}
|
|
410
390
|
*/
|
|
411
391
|
getAccountYieldValue(accountAddress, options) {
|
|
412
|
-
return localVarFp
|
|
413
|
-
|
|
414
|
-
.then(request => request(axios, basePath));
|
|
415
|
-
}
|
|
392
|
+
return localVarFp.getAccountYieldValue(accountAddress, options).then((request) => request(axios, basePath));
|
|
393
|
+
},
|
|
416
394
|
};
|
|
417
395
|
};
|
|
418
396
|
exports.AccountsApiFactory = AccountsApiFactory;
|
|
419
397
|
/**
|
|
420
398
|
* AccountsApi - object-oriented interface
|
|
399
|
+
* @export
|
|
400
|
+
* @class AccountsApi
|
|
401
|
+
* @extends {BaseAPI}
|
|
421
402
|
*/
|
|
422
403
|
class AccountsApi extends base_1.BaseAPI {
|
|
423
404
|
/**
|
|
@@ -426,11 +407,10 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
426
407
|
* @param {string} accountAddress The address of the account
|
|
427
408
|
* @param {*} [options] Override http request option.
|
|
428
409
|
* @throws {RequiredError}
|
|
410
|
+
* @memberof AccountsApi
|
|
429
411
|
*/
|
|
430
412
|
getAccountExposure(accountAddress, options) {
|
|
431
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
432
|
-
.getAccountExposure(accountAddress, options)
|
|
433
|
-
.then(request => request(this.axios, this.basePath));
|
|
413
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountExposure(accountAddress, options).then((request) => request(this.axios, this.basePath));
|
|
434
414
|
}
|
|
435
415
|
/**
|
|
436
416
|
*
|
|
@@ -444,11 +424,10 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
444
424
|
* @param {GetAccountHistoryTypeEnum} [type] The type of the transaction
|
|
445
425
|
* @param {*} [options] Override http request option.
|
|
446
426
|
* @throws {RequiredError}
|
|
427
|
+
* @memberof AccountsApi
|
|
447
428
|
*/
|
|
448
429
|
getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
|
|
449
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
450
|
-
.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
|
|
451
|
-
.then(request => request(this.axios, this.basePath));
|
|
430
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options).then((request) => request(this.axios, this.basePath));
|
|
452
431
|
}
|
|
453
432
|
/**
|
|
454
433
|
*
|
|
@@ -457,11 +436,10 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
457
436
|
* @param {string} [vaultId] The id of the vault
|
|
458
437
|
* @param {*} [options] Override http request option.
|
|
459
438
|
* @throws {RequiredError}
|
|
439
|
+
* @memberof AccountsApi
|
|
460
440
|
*/
|
|
461
441
|
getAccountPositionsValue(accountAddress, vaultId, options) {
|
|
462
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
463
|
-
.getAccountPositionsValue(accountAddress, vaultId, options)
|
|
464
|
-
.then(request => request(this.axios, this.basePath));
|
|
442
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(this.axios, this.basePath));
|
|
465
443
|
}
|
|
466
444
|
/**
|
|
467
445
|
*
|
|
@@ -475,11 +453,10 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
475
453
|
* @param {GetAccountWithdrawalRequestsStatusEnum} [status] The status of the withdrawal requests
|
|
476
454
|
* @param {*} [options] Override http request option.
|
|
477
455
|
* @throws {RequiredError}
|
|
456
|
+
* @memberof AccountsApi
|
|
478
457
|
*/
|
|
479
458
|
getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
|
|
480
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
481
|
-
.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
|
|
482
|
-
.then(request => request(this.axios, this.basePath));
|
|
459
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options).then((request) => request(this.axios, this.basePath));
|
|
483
460
|
}
|
|
484
461
|
/**
|
|
485
462
|
*
|
|
@@ -487,25 +464,34 @@ class AccountsApi extends base_1.BaseAPI {
|
|
|
487
464
|
* @param {string} accountAddress The address of the account
|
|
488
465
|
* @param {*} [options] Override http request option.
|
|
489
466
|
* @throws {RequiredError}
|
|
467
|
+
* @memberof AccountsApi
|
|
490
468
|
*/
|
|
491
469
|
getAccountYieldValue(accountAddress, options) {
|
|
492
|
-
return (0, exports.AccountsApiFp)(this.configuration)
|
|
493
|
-
.getAccountYieldValue(accountAddress, options)
|
|
494
|
-
.then(request => request(this.axios, this.basePath));
|
|
470
|
+
return (0, exports.AccountsApiFp)(this.configuration).getAccountYieldValue(accountAddress, options).then((request) => request(this.axios, this.basePath));
|
|
495
471
|
}
|
|
496
472
|
}
|
|
497
473
|
exports.AccountsApi = AccountsApi;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
474
|
+
/**
|
|
475
|
+
* @export
|
|
476
|
+
* @enum {string}
|
|
477
|
+
*/
|
|
478
|
+
var GetAccountHistoryTypeEnum;
|
|
479
|
+
(function (GetAccountHistoryTypeEnum) {
|
|
480
|
+
GetAccountHistoryTypeEnum["Deposit"] = "Deposit";
|
|
481
|
+
GetAccountHistoryTypeEnum["RedeemRequest"] = "RedeemRequest";
|
|
482
|
+
GetAccountHistoryTypeEnum["RedeemRequestProcessed"] = "RedeemRequestProcessed";
|
|
483
|
+
GetAccountHistoryTypeEnum["RedeemRequestSkipped"] = "RedeemRequestSkipped";
|
|
484
|
+
GetAccountHistoryTypeEnum["RedeemRequestCancelled"] = "RedeemRequestCancelled";
|
|
485
|
+
})(GetAccountHistoryTypeEnum || (exports.GetAccountHistoryTypeEnum = GetAccountHistoryTypeEnum = {}));
|
|
486
|
+
/**
|
|
487
|
+
* @export
|
|
488
|
+
* @enum {string}
|
|
489
|
+
*/
|
|
490
|
+
var GetAccountWithdrawalRequestsStatusEnum;
|
|
491
|
+
(function (GetAccountWithdrawalRequestsStatusEnum) {
|
|
492
|
+
GetAccountWithdrawalRequestsStatusEnum["Pending"] = "Pending";
|
|
493
|
+
GetAccountWithdrawalRequestsStatusEnum["PendingCancelling"] = "PendingCancelling";
|
|
494
|
+
GetAccountWithdrawalRequestsStatusEnum["Cancelled"] = "Cancelled";
|
|
495
|
+
GetAccountWithdrawalRequestsStatusEnum["Skipped"] = "Skipped";
|
|
496
|
+
GetAccountWithdrawalRequestsStatusEnum["Processed"] = "Processed";
|
|
497
|
+
})(GetAccountWithdrawalRequestsStatusEnum || (exports.GetAccountWithdrawalRequestsStatusEnum = GetAccountWithdrawalRequestsStatusEnum = {}));
|