@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.
Files changed (83) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -1
  3. package/dist/src/common/types.d.ts +0 -1
  4. package/dist/src/common/types.js +0 -1
  5. package/dist/src/vaults/api/api.d.ts +2 -2
  6. package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -31
  7. package/dist/src/vaults/api/apis/accounts-api.js +98 -112
  8. package/dist/src/vaults/api/apis/vaults-api.d.ts +186 -31
  9. package/dist/src/vaults/api/apis/vaults-api.js +140 -220
  10. package/dist/src/vaults/api/base.d.ts +26 -2
  11. package/dist/src/vaults/api/base.js +21 -1
  12. package/dist/src/vaults/api/common.d.ts +38 -1
  13. package/dist/src/vaults/api/common.js +47 -17
  14. package/dist/src/vaults/api/configuration.d.ts +17 -0
  15. package/dist/src/vaults/api/configuration.js +4 -5
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +6 -5
  17. package/dist/src/vaults/api/models/account-transaction.d.ts +26 -11
  18. package/dist/src/vaults/api/models/account-transaction.js +12 -7
  19. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +64 -23
  20. package/dist/src/vaults/api/models/account-withdrawal-request.js +13 -8
  21. package/dist/src/vaults/api/models/apy-history.d.ts +17 -4
  22. package/dist/src/vaults/api/models/asset.d.ts +26 -7
  23. package/dist/src/vaults/api/models/borrowed.d.ts +21 -5
  24. package/dist/src/vaults/api/models/coin-price.d.ts +11 -2
  25. package/dist/src/vaults/api/models/deposit-transaction.d.ts +40 -10
  26. package/dist/src/vaults/api/models/exposure-coin.d.ts +18 -4
  27. package/dist/src/vaults/api/models/exposure-protocol.d.ts +38 -13
  28. package/dist/src/vaults/api/models/exposure.d.ts +16 -5
  29. package/dist/src/vaults/api/models/fee.d.ts +18 -4
  30. package/dist/src/vaults/api/models/history-interval.d.ts +11 -7
  31. package/dist/src/vaults/api/models/history-interval.js +12 -6
  32. package/dist/src/vaults/api/models/index.d.ts +60 -60
  33. package/dist/src/vaults/api/models/lp.d.ts +44 -13
  34. package/dist/src/vaults/api/models/manager.d.ts +26 -4
  35. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +17 -4
  36. package/dist/src/vaults/api/models/perps.d.ts +12 -3
  37. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +10 -6
  38. package/dist/src/vaults/api/models/pnl-history-interval.js +11 -5
  39. package/dist/src/vaults/api/models/pnl-history.d.ts +14 -3
  40. package/dist/src/vaults/api/models/position-value.d.ts +23 -6
  41. package/dist/src/vaults/api/models/position.d.ts +17 -4
  42. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +35 -10
  43. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +26 -7
  44. package/dist/src/vaults/api/models/protocol-info.d.ts +20 -6
  45. package/dist/src/vaults/api/models/protocol.d.ts +17 -4
  46. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +18 -17
  47. package/dist/src/vaults/api/models/raw-event.d.ts +44 -25
  48. package/dist/src/vaults/api/models/raw-event.js +24 -19
  49. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +31 -8
  50. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +40 -10
  51. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +31 -8
  52. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +31 -8
  53. package/dist/src/vaults/api/models/reported-apy.d.ts +17 -2
  54. package/dist/src/vaults/api/models/request-processed-event.d.ts +35 -10
  55. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +32 -9
  56. package/dist/src/vaults/api/models/reward-token.d.ts +26 -5
  57. package/dist/src/vaults/api/models/reward.d.ts +18 -4
  58. package/dist/src/vaults/api/models/share-price-history.d.ts +11 -2
  59. package/dist/src/vaults/api/models/strategy.d.ts +26 -7
  60. package/dist/src/vaults/api/models/sub-account.d.ts +15 -3
  61. package/dist/src/vaults/api/models/supplied.d.ts +21 -5
  62. package/dist/src/vaults/api/models/tvl-history.d.ts +11 -2
  63. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +23 -6
  64. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +24 -6
  65. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +17 -4
  66. package/dist/src/vaults/api/models/vault-created-event.d.ts +29 -7
  67. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +32 -9
  68. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +26 -7
  69. package/dist/src/vaults/api/models/vault-detail.d.ts +125 -37
  70. package/dist/src/vaults/api/models/vault-detail.js +11 -6
  71. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +17 -4
  72. package/dist/src/vaults/api/models/vault-info.d.ts +38 -11
  73. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +17 -4
  74. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +17 -4
  75. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +14 -3
  76. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +20 -5
  77. package/dist/src/vaults/api/models/vault-protocol.d.ts +17 -4
  78. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +17 -4
  79. package/dist/src/vaults/api/models/vault-slice.d.ts +20 -5
  80. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +23 -6
  81. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +26 -7
  82. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +17 -4
  83. 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)("getAccountExposure", "accountAddress", accountAddress);
41
- const localVarPath = `/api/v1/vaults/exposure/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(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: "GET", ...baseOptions, ...options };
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)("getAccountHistory", "accountAddress", accountAddress);
76
+ (0, common_1.assertParamExists)('getAccountHistory', 'accountAddress', accountAddress);
79
77
  // verify required parameter 'startTimeInMs' is not null or undefined
80
- (0, common_1.assertParamExists)("getAccountHistory", "startTimeInMs", startTimeInMs);
81
- const localVarPath = `/api/v1/vaults/history/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(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: "GET", ...baseOptions, ...options };
87
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
89
88
  const localVarHeaderParameter = {};
90
89
  const localVarQueryParameter = {};
91
90
  if (startTimeInMs !== undefined) {
92
- localVarQueryParameter["startTimeInMs"] = startTimeInMs;
91
+ localVarQueryParameter['startTimeInMs'] = startTimeInMs;
93
92
  }
94
93
  if (endTimeInMs !== undefined) {
95
- localVarQueryParameter["endTimeInMs"] = endTimeInMs;
94
+ localVarQueryParameter['endTimeInMs'] = endTimeInMs;
96
95
  }
97
96
  if (limit !== undefined) {
98
- localVarQueryParameter["limit"] = limit;
97
+ localVarQueryParameter['limit'] = limit;
99
98
  }
100
99
  if (page !== undefined) {
101
- localVarQueryParameter["page"] = page;
100
+ localVarQueryParameter['page'] = page;
102
101
  }
103
102
  if (vaultId !== undefined) {
104
- localVarQueryParameter["vaultId"] = vaultId;
103
+ localVarQueryParameter['vaultId'] = vaultId;
105
104
  }
106
105
  if (type !== undefined) {
107
- localVarQueryParameter["type"] = type;
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)("getAccountPositionsValue", "accountAddress", accountAddress);
132
- const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(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: "GET", ...baseOptions, ...options };
135
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
140
136
  const localVarHeaderParameter = {};
141
137
  const localVarQueryParameter = {};
142
138
  if (vaultId !== undefined) {
143
- localVarQueryParameter["vaultId"] = vaultId;
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)("getAccountWithdrawalRequests", "accountAddress", accountAddress);
164
+ (0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'accountAddress', accountAddress);
173
165
  // verify required parameter 'startTimeInMs' is not null or undefined
174
- (0, common_1.assertParamExists)("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
175
- const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(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: "GET", ...baseOptions, ...options };
175
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
183
176
  const localVarHeaderParameter = {};
184
177
  const localVarQueryParameter = {};
185
178
  if (startTimeInMs !== undefined) {
186
- localVarQueryParameter["startTimeInMs"] = startTimeInMs;
179
+ localVarQueryParameter['startTimeInMs'] = startTimeInMs;
187
180
  }
188
181
  if (endTimeInMs !== undefined) {
189
- localVarQueryParameter["endTimeInMs"] = endTimeInMs;
182
+ localVarQueryParameter['endTimeInMs'] = endTimeInMs;
190
183
  }
191
184
  if (limit !== undefined) {
192
- localVarQueryParameter["limit"] = limit;
185
+ localVarQueryParameter['limit'] = limit;
193
186
  }
194
187
  if (page !== undefined) {
195
- localVarQueryParameter["page"] = page;
188
+ localVarQueryParameter['page'] = page;
196
189
  }
197
190
  if (vaultId !== undefined) {
198
- localVarQueryParameter["vaultId"] = vaultId;
191
+ localVarQueryParameter['vaultId'] = vaultId;
199
192
  }
200
193
  if (status !== undefined) {
201
- localVarQueryParameter["status"] = status;
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)("getAccountYieldValue", "accountAddress", accountAddress);
225
- const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(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: "GET", ...baseOptions, ...options };
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["AccountsApi.getAccountExposure"]?.[localVarOperationServerIndex]?.url;
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["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
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["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
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["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
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["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
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
- .getAccountYieldValue(accountAddress, options)
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
- exports.GetAccountHistoryTypeEnum = {
499
- Deposit: "Deposit",
500
- RedeemRequest: "RedeemRequest",
501
- RedeemRequestProcessed: "RedeemRequestProcessed",
502
- RedeemRequestSkipped: "RedeemRequestSkipped",
503
- RedeemRequestCancelled: "RedeemRequestCancelled"
504
- };
505
- exports.GetAccountWithdrawalRequestsStatusEnum = {
506
- Pending: "Pending",
507
- PendingCancelling: "PendingCancelling",
508
- Cancelled: "Cancelled",
509
- Skipped: "Skipped",
510
- Processed: "Processed"
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 = {}));