@ember-finance/sdk 1.0.10 → 1.0.11

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