@ember-finance/sdk 1.0.10 → 1.0.12

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 (84) hide show
  1. package/dist/src/vaults/api/api.d.ts +2 -2
  2. package/dist/src/vaults/api/apis/accounts-api.d.ts +112 -89
  3. package/dist/src/vaults/api/apis/accounts-api.js +288 -82
  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 +62 -60
  28. package/dist/src/vaults/api/models/index.js +2 -0
  29. package/dist/src/vaults/api/models/lp.d.ts +13 -13
  30. package/dist/src/vaults/api/models/manager.d.ts +4 -4
  31. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +4 -4
  32. package/dist/src/vaults/api/models/perps.d.ts +3 -3
  33. package/dist/src/vaults/api/models/pnl-history-interval.d.ts +6 -5
  34. package/dist/src/vaults/api/models/pnl-history-interval.js +5 -6
  35. package/dist/src/vaults/api/models/pnl-history.d.ts +3 -3
  36. package/dist/src/vaults/api/models/position-history-interval.d.ts +22 -0
  37. package/dist/src/vaults/api/models/position-history-interval.js +26 -0
  38. package/dist/src/vaults/api/models/position-history.d.ts +65 -0
  39. package/dist/src/vaults/api/models/position-history.js +20 -0
  40. package/dist/src/vaults/api/models/position-value.d.ts +17 -6
  41. package/dist/src/vaults/api/models/position-value.js +5 -0
  42. package/dist/src/vaults/api/models/position.d.ts +4 -4
  43. package/dist/src/vaults/api/models/process-requests-summary-event.d.ts +10 -10
  44. package/dist/src/vaults/api/models/protocol-fee-collected-event.d.ts +7 -7
  45. package/dist/src/vaults/api/models/protocol-info.d.ts +6 -6
  46. package/dist/src/vaults/api/models/protocol.d.ts +4 -4
  47. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +17 -17
  48. package/dist/src/vaults/api/models/raw-event.d.ts +25 -28
  49. package/dist/src/vaults/api/models/raw-event.js +19 -24
  50. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +8 -8
  51. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +10 -10
  52. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +8 -8
  53. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +8 -8
  54. package/dist/src/vaults/api/models/reported-apy.d.ts +2 -2
  55. package/dist/src/vaults/api/models/request-processed-event.d.ts +10 -10
  56. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +9 -9
  57. package/dist/src/vaults/api/models/reward-token.d.ts +5 -5
  58. package/dist/src/vaults/api/models/reward.d.ts +4 -4
  59. package/dist/src/vaults/api/models/share-price-history.d.ts +2 -2
  60. package/dist/src/vaults/api/models/strategy.d.ts +7 -7
  61. package/dist/src/vaults/api/models/sub-account.d.ts +3 -3
  62. package/dist/src/vaults/api/models/supplied.d.ts +5 -5
  63. package/dist/src/vaults/api/models/tvl-history.d.ts +2 -2
  64. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +6 -6
  65. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +6 -6
  66. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +4 -4
  67. package/dist/src/vaults/api/models/vault-created-event.d.ts +7 -7
  68. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +9 -9
  69. package/dist/src/vaults/api/models/vault-deposit-without-minting-shares-event.d.ts +7 -7
  70. package/dist/src/vaults/api/models/vault-detail.d.ts +37 -40
  71. package/dist/src/vaults/api/models/vault-detail.js +6 -11
  72. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +4 -4
  73. package/dist/src/vaults/api/models/vault-info.d.ts +11 -11
  74. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +4 -4
  75. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +4 -4
  76. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +3 -3
  77. package/dist/src/vaults/api/models/vault-platform-fee-charged-event.d.ts +5 -5
  78. package/dist/src/vaults/api/models/vault-protocol.d.ts +4 -4
  79. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +4 -4
  80. package/dist/src/vaults/api/models/vault-slice.d.ts +5 -5
  81. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +6 -6
  82. package/dist/src/vaults/api/models/vault-withdrawal-without-redeeming-shares-event.d.ts +7 -7
  83. package/dist/src/vaults/api/models/yield-aggregate-value.d.ts +10 -4
  84. package/package.json +1 -1
@@ -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,87 @@ 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
120
+ };
121
+ },
122
+ /**
123
+ *
124
+ * @summary Get the positions history of the account
125
+ * @param {string} accountAddress The address of the account
126
+ * @param {number} [limit] The limit of the rows
127
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ getAccountPositionsHistory: async (accountAddress, limit, interval, options = {}) => {
132
+ // verify required parameter 'accountAddress' is not null or undefined
133
+ (0, common_1.assertParamExists)("getAccountPositionsHistory", "accountAddress", accountAddress);
134
+ const localVarPath = `/api/v1/vaults/positions-history/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
135
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
136
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
137
+ let baseOptions;
138
+ if (configuration) {
139
+ baseOptions = configuration.baseOptions;
140
+ }
141
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
142
+ const localVarHeaderParameter = {};
143
+ const localVarQueryParameter = {};
144
+ if (limit !== undefined) {
145
+ localVarQueryParameter["limit"] = limit;
146
+ }
147
+ if (interval !== undefined) {
148
+ localVarQueryParameter["interval"] = interval;
149
+ }
150
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
151
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
152
+ localVarRequestOptions.headers = {
153
+ ...localVarHeaderParameter,
154
+ ...headersFromBaseOptions,
155
+ ...options.headers
156
+ };
157
+ return {
158
+ url: (0, common_1.toPathString)(localVarUrlObj),
159
+ options: localVarRequestOptions
114
160
  };
115
161
  },
116
162
  /**
@@ -123,27 +169,30 @@ const AccountsApiAxiosParamCreator = function (configuration) {
123
169
  */
124
170
  getAccountPositionsValue: async (accountAddress, vaultId, options = {}) => {
125
171
  // 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)));
172
+ (0, common_1.assertParamExists)("getAccountPositionsValue", "accountAddress", accountAddress);
173
+ const localVarPath = `/api/v1/vaults/positions/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
129
174
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
130
175
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
131
176
  let baseOptions;
132
177
  if (configuration) {
133
178
  baseOptions = configuration.baseOptions;
134
179
  }
135
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
180
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
136
181
  const localVarHeaderParameter = {};
137
182
  const localVarQueryParameter = {};
138
183
  if (vaultId !== undefined) {
139
- localVarQueryParameter['vaultId'] = vaultId;
184
+ localVarQueryParameter["vaultId"] = vaultId;
140
185
  }
141
186
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
142
187
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
188
+ localVarRequestOptions.headers = {
189
+ ...localVarHeaderParameter,
190
+ ...headersFromBaseOptions,
191
+ ...options.headers
192
+ };
144
193
  return {
145
194
  url: (0, common_1.toPathString)(localVarUrlObj),
146
- options: localVarRequestOptions,
195
+ options: localVarRequestOptions
147
196
  };
148
197
  },
149
198
  /**
@@ -161,44 +210,47 @@ const AccountsApiAxiosParamCreator = function (configuration) {
161
210
  */
162
211
  getAccountWithdrawalRequests: async (accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options = {}) => {
163
212
  // verify required parameter 'accountAddress' is not null or undefined
164
- (0, common_1.assertParamExists)('getAccountWithdrawalRequests', 'accountAddress', accountAddress);
213
+ (0, common_1.assertParamExists)("getAccountWithdrawalRequests", "accountAddress", accountAddress);
165
214
  // 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)));
215
+ (0, common_1.assertParamExists)("getAccountWithdrawalRequests", "startTimeInMs", startTimeInMs);
216
+ const localVarPath = `/api/v1/vaults/withdrawal-requests/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
169
217
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
218
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
219
  let baseOptions;
172
220
  if (configuration) {
173
221
  baseOptions = configuration.baseOptions;
174
222
  }
175
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
223
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
176
224
  const localVarHeaderParameter = {};
177
225
  const localVarQueryParameter = {};
178
226
  if (startTimeInMs !== undefined) {
179
- localVarQueryParameter['startTimeInMs'] = startTimeInMs;
227
+ localVarQueryParameter["startTimeInMs"] = startTimeInMs;
180
228
  }
181
229
  if (endTimeInMs !== undefined) {
182
- localVarQueryParameter['endTimeInMs'] = endTimeInMs;
230
+ localVarQueryParameter["endTimeInMs"] = endTimeInMs;
183
231
  }
184
232
  if (limit !== undefined) {
185
- localVarQueryParameter['limit'] = limit;
233
+ localVarQueryParameter["limit"] = limit;
186
234
  }
187
235
  if (page !== undefined) {
188
- localVarQueryParameter['page'] = page;
236
+ localVarQueryParameter["page"] = page;
189
237
  }
190
238
  if (vaultId !== undefined) {
191
- localVarQueryParameter['vaultId'] = vaultId;
239
+ localVarQueryParameter["vaultId"] = vaultId;
192
240
  }
193
241
  if (status !== undefined) {
194
- localVarQueryParameter['status'] = status;
242
+ localVarQueryParameter["status"] = status;
195
243
  }
196
244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
197
245
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
198
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
246
+ localVarRequestOptions.headers = {
247
+ ...localVarHeaderParameter,
248
+ ...headersFromBaseOptions,
249
+ ...options.headers
250
+ };
199
251
  return {
200
252
  url: (0, common_1.toPathString)(localVarUrlObj),
201
- options: localVarRequestOptions,
253
+ options: localVarRequestOptions
202
254
  };
203
255
  },
204
256
  /**
@@ -210,26 +262,73 @@ const AccountsApiAxiosParamCreator = function (configuration) {
210
262
  */
211
263
  getAccountYieldValue: async (accountAddress, options = {}) => {
212
264
  // 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)));
265
+ (0, common_1.assertParamExists)("getAccountYieldValue", "accountAddress", accountAddress);
266
+ const localVarPath = `/api/v1/vaults/yield/account/{accountAddress}`.replace(`{${"accountAddress"}}`, encodeURIComponent(String(accountAddress)));
216
267
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
268
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
269
  let baseOptions;
219
270
  if (configuration) {
220
271
  baseOptions = configuration.baseOptions;
221
272
  }
222
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
273
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
223
274
  const localVarHeaderParameter = {};
224
275
  const localVarQueryParameter = {};
225
276
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
226
277
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
227
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
278
+ localVarRequestOptions.headers = {
279
+ ...localVarHeaderParameter,
280
+ ...headersFromBaseOptions,
281
+ ...options.headers
282
+ };
228
283
  return {
229
284
  url: (0, common_1.toPathString)(localVarUrlObj),
230
- options: localVarRequestOptions,
285
+ options: localVarRequestOptions
231
286
  };
232
287
  },
288
+ /**
289
+ *
290
+ * @summary Get the positions history of the account for a given vault
291
+ * @param {string} vaultId The id of the vault
292
+ * @param {string} [accountAddress] The address of the account
293
+ * @param {number} [limit] The limit of the rows
294
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ getVaultAccountPositionsHistory: async (vaultId, accountAddress, limit, interval, options = {}) => {
299
+ // verify required parameter 'vaultId' is not null or undefined
300
+ (0, common_1.assertParamExists)("getVaultAccountPositionsHistory", "vaultId", vaultId);
301
+ const localVarPath = `/api/v1/vaults/position-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
309
+ const localVarHeaderParameter = {};
310
+ const localVarQueryParameter = {};
311
+ if (accountAddress !== undefined) {
312
+ localVarQueryParameter["accountAddress"] = accountAddress;
313
+ }
314
+ if (limit !== undefined) {
315
+ localVarQueryParameter["limit"] = limit;
316
+ }
317
+ if (interval !== undefined) {
318
+ localVarQueryParameter["interval"] = interval;
319
+ }
320
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
+ localVarRequestOptions.headers = {
323
+ ...localVarHeaderParameter,
324
+ ...headersFromBaseOptions,
325
+ ...options.headers
326
+ };
327
+ return {
328
+ url: (0, common_1.toPathString)(localVarUrlObj),
329
+ options: localVarRequestOptions
330
+ };
331
+ }
233
332
  };
234
333
  };
235
334
  exports.AccountsApiAxiosParamCreator = AccountsApiAxiosParamCreator;
@@ -250,7 +349,7 @@ const AccountsApiFp = function (configuration) {
250
349
  async getAccountExposure(accountAddress, options) {
251
350
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountExposure(accountAddress, options);
252
351
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
253
- const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountExposure']?.[localVarOperationServerIndex]?.url;
352
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountExposure"]?.[localVarOperationServerIndex]?.url;
254
353
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
255
354
  },
256
355
  /**
@@ -269,7 +368,22 @@ const AccountsApiFp = function (configuration) {
269
368
  async getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options) {
270
369
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options);
271
370
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
272
- const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountHistory']?.[localVarOperationServerIndex]?.url;
371
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountHistory"]?.[localVarOperationServerIndex]?.url;
372
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
373
+ },
374
+ /**
375
+ *
376
+ * @summary Get the positions history of the account
377
+ * @param {string} accountAddress The address of the account
378
+ * @param {number} [limit] The limit of the rows
379
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ */
383
+ async getAccountPositionsHistory(accountAddress, limit, interval, options) {
384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsHistory(accountAddress, limit, interval, options);
385
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
386
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
273
387
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
274
388
  },
275
389
  /**
@@ -283,7 +397,7 @@ const AccountsApiFp = function (configuration) {
283
397
  async getAccountPositionsValue(accountAddress, vaultId, options) {
284
398
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountPositionsValue(accountAddress, vaultId, options);
285
399
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
286
- const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountPositionsValue']?.[localVarOperationServerIndex]?.url;
400
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountPositionsValue"]?.[localVarOperationServerIndex]?.url;
287
401
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
288
402
  },
289
403
  /**
@@ -302,7 +416,7 @@ const AccountsApiFp = function (configuration) {
302
416
  async getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options) {
303
417
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options);
304
418
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
305
- const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountWithdrawalRequests']?.[localVarOperationServerIndex]?.url;
419
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountWithdrawalRequests"]?.[localVarOperationServerIndex]?.url;
306
420
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
307
421
  },
308
422
  /**
@@ -315,9 +429,25 @@ const AccountsApiFp = function (configuration) {
315
429
  async getAccountYieldValue(accountAddress, options) {
316
430
  const localVarAxiosArgs = await localVarAxiosParamCreator.getAccountYieldValue(accountAddress, options);
317
431
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
318
- const localVarOperationServerBasePath = base_1.operationServerMap['AccountsApi.getAccountYieldValue']?.[localVarOperationServerIndex]?.url;
432
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getAccountYieldValue"]?.[localVarOperationServerIndex]?.url;
319
433
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
320
434
  },
435
+ /**
436
+ *
437
+ * @summary Get the positions history of the account for a given vault
438
+ * @param {string} vaultId The id of the vault
439
+ * @param {string} [accountAddress] The address of the account
440
+ * @param {number} [limit] The limit of the rows
441
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
442
+ * @param {*} [options] Override http request option.
443
+ * @throws {RequiredError}
444
+ */
445
+ async getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options);
447
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
448
+ const localVarOperationServerBasePath = base_1.operationServerMap["AccountsApi.getVaultAccountPositionsHistory"]?.[localVarOperationServerIndex]?.url;
449
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
450
+ }
321
451
  };
322
452
  };
323
453
  exports.AccountsApiFp = AccountsApiFp;
@@ -336,7 +466,9 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
336
466
  * @throws {RequiredError}
337
467
  */
338
468
  getAccountExposure(accountAddress, options) {
339
- return localVarFp.getAccountExposure(accountAddress, options).then((request) => request(axios, basePath));
469
+ return localVarFp
470
+ .getAccountExposure(accountAddress, options)
471
+ .then(request => request(axios, basePath));
340
472
  },
341
473
  /**
342
474
  *
@@ -352,7 +484,23 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
352
484
  * @throws {RequiredError}
353
485
  */
354
486
  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));
487
+ return localVarFp
488
+ .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
489
+ .then(request => request(axios, basePath));
490
+ },
491
+ /**
492
+ *
493
+ * @summary Get the positions history of the account
494
+ * @param {string} accountAddress The address of the account
495
+ * @param {number} [limit] The limit of the rows
496
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
497
+ * @param {*} [options] Override http request option.
498
+ * @throws {RequiredError}
499
+ */
500
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
501
+ return localVarFp
502
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
503
+ .then(request => request(axios, basePath));
356
504
  },
357
505
  /**
358
506
  *
@@ -363,7 +511,9 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
363
511
  * @throws {RequiredError}
364
512
  */
365
513
  getAccountPositionsValue(accountAddress, vaultId, options) {
366
- return localVarFp.getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(axios, basePath));
514
+ return localVarFp
515
+ .getAccountPositionsValue(accountAddress, vaultId, options)
516
+ .then(request => request(axios, basePath));
367
517
  },
368
518
  /**
369
519
  *
@@ -379,7 +529,9 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
379
529
  * @throws {RequiredError}
380
530
  */
381
531
  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));
532
+ return localVarFp
533
+ .getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
534
+ .then(request => request(axios, basePath));
383
535
  },
384
536
  /**
385
537
  *
@@ -389,8 +541,25 @@ const AccountsApiFactory = function (configuration, basePath, axios) {
389
541
  * @throws {RequiredError}
390
542
  */
391
543
  getAccountYieldValue(accountAddress, options) {
392
- return localVarFp.getAccountYieldValue(accountAddress, options).then((request) => request(axios, basePath));
544
+ return localVarFp
545
+ .getAccountYieldValue(accountAddress, options)
546
+ .then(request => request(axios, basePath));
393
547
  },
548
+ /**
549
+ *
550
+ * @summary Get the positions history of the account for a given vault
551
+ * @param {string} vaultId The id of the vault
552
+ * @param {string} [accountAddress] The address of the account
553
+ * @param {number} [limit] The limit of the rows
554
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
555
+ * @param {*} [options] Override http request option.
556
+ * @throws {RequiredError}
557
+ */
558
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
559
+ return localVarFp
560
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
561
+ .then(request => request(axios, basePath));
562
+ }
394
563
  };
395
564
  };
396
565
  exports.AccountsApiFactory = AccountsApiFactory;
@@ -410,7 +579,9 @@ class AccountsApi extends base_1.BaseAPI {
410
579
  * @memberof AccountsApi
411
580
  */
412
581
  getAccountExposure(accountAddress, options) {
413
- return (0, exports.AccountsApiFp)(this.configuration).getAccountExposure(accountAddress, options).then((request) => request(this.axios, this.basePath));
582
+ return (0, exports.AccountsApiFp)(this.configuration)
583
+ .getAccountExposure(accountAddress, options)
584
+ .then(request => request(this.axios, this.basePath));
414
585
  }
415
586
  /**
416
587
  *
@@ -427,7 +598,24 @@ class AccountsApi extends base_1.BaseAPI {
427
598
  * @memberof AccountsApi
428
599
  */
429
600
  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));
601
+ return (0, exports.AccountsApiFp)(this.configuration)
602
+ .getAccountHistory(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, type, options)
603
+ .then(request => request(this.axios, this.basePath));
604
+ }
605
+ /**
606
+ *
607
+ * @summary Get the positions history of the account
608
+ * @param {string} accountAddress The address of the account
609
+ * @param {number} [limit] The limit of the rows
610
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof AccountsApi
614
+ */
615
+ getAccountPositionsHistory(accountAddress, limit, interval, options) {
616
+ return (0, exports.AccountsApiFp)(this.configuration)
617
+ .getAccountPositionsHistory(accountAddress, limit, interval, options)
618
+ .then(request => request(this.axios, this.basePath));
431
619
  }
432
620
  /**
433
621
  *
@@ -439,7 +627,9 @@ class AccountsApi extends base_1.BaseAPI {
439
627
  * @memberof AccountsApi
440
628
  */
441
629
  getAccountPositionsValue(accountAddress, vaultId, options) {
442
- return (0, exports.AccountsApiFp)(this.configuration).getAccountPositionsValue(accountAddress, vaultId, options).then((request) => request(this.axios, this.basePath));
630
+ return (0, exports.AccountsApiFp)(this.configuration)
631
+ .getAccountPositionsValue(accountAddress, vaultId, options)
632
+ .then(request => request(this.axios, this.basePath));
443
633
  }
444
634
  /**
445
635
  *
@@ -456,7 +646,9 @@ class AccountsApi extends base_1.BaseAPI {
456
646
  * @memberof AccountsApi
457
647
  */
458
648
  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));
649
+ return (0, exports.AccountsApiFp)(this.configuration)
650
+ .getAccountWithdrawalRequests(accountAddress, startTimeInMs, endTimeInMs, limit, page, vaultId, status, options)
651
+ .then(request => request(this.axios, this.basePath));
460
652
  }
461
653
  /**
462
654
  *
@@ -467,31 +659,45 @@ class AccountsApi extends base_1.BaseAPI {
467
659
  * @memberof AccountsApi
468
660
  */
469
661
  getAccountYieldValue(accountAddress, options) {
470
- return (0, exports.AccountsApiFp)(this.configuration).getAccountYieldValue(accountAddress, options).then((request) => request(this.axios, this.basePath));
662
+ return (0, exports.AccountsApiFp)(this.configuration)
663
+ .getAccountYieldValue(accountAddress, options)
664
+ .then(request => request(this.axios, this.basePath));
665
+ }
666
+ /**
667
+ *
668
+ * @summary Get the positions history of the account for a given vault
669
+ * @param {string} vaultId The id of the vault
670
+ * @param {string} [accountAddress] The address of the account
671
+ * @param {number} [limit] The limit of the rows
672
+ * @param {PositionHistoryInterval} [interval] The interval of the rows
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ * @memberof AccountsApi
676
+ */
677
+ getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options) {
678
+ return (0, exports.AccountsApiFp)(this.configuration)
679
+ .getVaultAccountPositionsHistory(vaultId, accountAddress, limit, interval, options)
680
+ .then(request => request(this.axios, this.basePath));
471
681
  }
472
682
  }
473
683
  exports.AccountsApi = AccountsApi;
474
684
  /**
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 = {}));
685
+ * @export
686
+ */
687
+ exports.GetAccountHistoryTypeEnum = {
688
+ Deposit: "Deposit",
689
+ RedeemRequest: "RedeemRequest",
690
+ RedeemRequestProcessed: "RedeemRequestProcessed",
691
+ RedeemRequestSkipped: "RedeemRequestSkipped",
692
+ RedeemRequestCancelled: "RedeemRequestCancelled"
693
+ };
486
694
  /**
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 = {}));
695
+ * @export
696
+ */
697
+ exports.GetAccountWithdrawalRequestsStatusEnum = {
698
+ Pending: "Pending",
699
+ PendingCancelling: "PendingCancelling",
700
+ Cancelled: "Cancelled",
701
+ Skipped: "Skipped",
702
+ Processed: "Processed"
703
+ };