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