@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,14 +25,44 @@ const common_1 = require("../common");
25
25
  const base_1 = require("../base");
26
26
  /**
27
27
  * VaultsApi - axios parameter creator
28
+ * @export
28
29
  */
29
30
  const VaultsApiAxiosParamCreator = function (configuration) {
30
31
  return {
32
+ /**
33
+ *
34
+ * @summary Get the price of the coins
35
+ * @param {string} [coinTypes] The coin types of the coins
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ getCoinsPrice: async (coinTypes, options = {}) => {
40
+ const localVarPath = `/api/v1/vaults/coins/price`;
41
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
42
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
43
+ let baseOptions;
44
+ if (configuration) {
45
+ baseOptions = configuration.baseOptions;
46
+ }
47
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
48
+ const localVarHeaderParameter = {};
49
+ const localVarQueryParameter = {};
50
+ if (coinTypes !== undefined) {
51
+ localVarQueryParameter['coinTypes'] = coinTypes;
52
+ }
53
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
54
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
55
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
56
+ return {
57
+ url: (0, common_1.toPathString)(localVarUrlObj),
58
+ options: localVarRequestOptions,
59
+ };
60
+ },
31
61
  /**
32
62
  *
33
63
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
34
64
  * @param {number} [limit] The limit of the rows
35
- * @param {HistoryInterval} [interval] The interval of the rows
65
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
36
66
  * @param {*} [options] Override http request option.
37
67
  * @throws {RequiredError}
38
68
  */
@@ -44,25 +74,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
44
74
  if (configuration) {
45
75
  baseOptions = configuration.baseOptions;
46
76
  }
47
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
77
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
48
78
  const localVarHeaderParameter = {};
49
79
  const localVarQueryParameter = {};
50
80
  if (limit !== undefined) {
51
- localVarQueryParameter["limit"] = limit;
81
+ localVarQueryParameter['limit'] = limit;
52
82
  }
53
83
  if (interval !== undefined) {
54
- localVarQueryParameter["interval"] = interval;
84
+ localVarQueryParameter['interval'] = interval;
55
85
  }
56
86
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
87
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
- localVarRequestOptions.headers = {
59
- ...localVarHeaderParameter,
60
- ...headersFromBaseOptions,
61
- ...options.headers
62
- };
88
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
63
89
  return {
64
90
  url: (0, common_1.toPathString)(localVarUrlObj),
65
- options: localVarRequestOptions
91
+ options: localVarRequestOptions,
66
92
  };
67
93
  },
68
94
  /**
@@ -81,25 +107,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
81
107
  if (configuration) {
82
108
  baseOptions = configuration.baseOptions;
83
109
  }
84
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
110
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
85
111
  const localVarHeaderParameter = {};
86
112
  const localVarQueryParameter = {};
87
113
  if (limit !== undefined) {
88
- localVarQueryParameter["limit"] = limit;
114
+ localVarQueryParameter['limit'] = limit;
89
115
  }
90
116
  if (interval !== undefined) {
91
- localVarQueryParameter["interval"] = interval;
117
+ localVarQueryParameter['interval'] = interval;
92
118
  }
93
119
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
94
120
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
- localVarRequestOptions.headers = {
96
- ...localVarHeaderParameter,
97
- ...headersFromBaseOptions,
98
- ...options.headers
99
- };
121
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
100
122
  return {
101
123
  url: (0, common_1.toPathString)(localVarUrlObj),
102
- options: localVarRequestOptions
124
+ options: localVarRequestOptions,
103
125
  };
104
126
  },
105
127
  /**
@@ -114,7 +136,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
114
136
  */
115
137
  getRawEvents: async (startTimeInMs, endTimeInMs, limit, page, options = {}) => {
116
138
  // verify required parameter 'startTimeInMs' is not null or undefined
117
- (0, common_1.assertParamExists)("getRawEvents", "startTimeInMs", startTimeInMs);
139
+ (0, common_1.assertParamExists)('getRawEvents', 'startTimeInMs', startTimeInMs);
118
140
  const localVarPath = `/api/v1/vaults/raw-events`;
119
141
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
142
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -122,31 +144,64 @@ const VaultsApiAxiosParamCreator = function (configuration) {
122
144
  if (configuration) {
123
145
  baseOptions = configuration.baseOptions;
124
146
  }
125
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
147
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
126
148
  const localVarHeaderParameter = {};
127
149
  const localVarQueryParameter = {};
128
150
  if (startTimeInMs !== undefined) {
129
- localVarQueryParameter["startTimeInMs"] = startTimeInMs;
151
+ localVarQueryParameter['startTimeInMs'] = startTimeInMs;
130
152
  }
131
153
  if (endTimeInMs !== undefined) {
132
- localVarQueryParameter["endTimeInMs"] = endTimeInMs;
154
+ localVarQueryParameter['endTimeInMs'] = endTimeInMs;
133
155
  }
134
156
  if (limit !== undefined) {
135
- localVarQueryParameter["limit"] = limit;
157
+ localVarQueryParameter['limit'] = limit;
136
158
  }
137
159
  if (page !== undefined) {
138
- localVarQueryParameter["page"] = page;
160
+ localVarQueryParameter['page'] = page;
139
161
  }
140
162
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
163
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
- localVarRequestOptions.headers = {
143
- ...localVarHeaderParameter,
144
- ...headersFromBaseOptions,
145
- ...options.headers
164
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
165
+ return {
166
+ url: (0, common_1.toPathString)(localVarUrlObj),
167
+ options: localVarRequestOptions,
146
168
  };
169
+ },
170
+ /**
171
+ *
172
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
173
+ * @param {string} vaultId The id of the vault
174
+ * @param {number} [limit] The limit of the rows
175
+ * @param {HistoryInterval} [interval] The interval of the rows
176
+ * @param {*} [options] Override http request option.
177
+ * @throws {RequiredError}
178
+ */
179
+ getVaultApyHistory: async (vaultId, limit, interval, options = {}) => {
180
+ // verify required parameter 'vaultId' is not null or undefined
181
+ (0, common_1.assertParamExists)('getVaultApyHistory', 'vaultId', vaultId);
182
+ const localVarPath = `/api/v1/vaults/apy-history/{vaultId}`
183
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ if (limit !== undefined) {
194
+ localVarQueryParameter['limit'] = limit;
195
+ }
196
+ if (interval !== undefined) {
197
+ localVarQueryParameter['interval'] = interval;
198
+ }
199
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
147
202
  return {
148
203
  url: (0, common_1.toPathString)(localVarUrlObj),
149
- options: localVarRequestOptions
204
+ options: localVarRequestOptions,
150
205
  };
151
206
  },
152
207
  /**
@@ -158,27 +213,24 @@ const VaultsApiAxiosParamCreator = function (configuration) {
158
213
  */
159
214
  getVaultExposure: async (vaultId, options = {}) => {
160
215
  // verify required parameter 'vaultId' is not null or undefined
161
- (0, common_1.assertParamExists)("getVaultExposure", "vaultId", vaultId);
162
- const localVarPath = `/api/v1/vaults/exposure/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
216
+ (0, common_1.assertParamExists)('getVaultExposure', 'vaultId', vaultId);
217
+ const localVarPath = `/api/v1/vaults/exposure/{vaultId}`
218
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
163
219
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
220
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
221
  let baseOptions;
166
222
  if (configuration) {
167
223
  baseOptions = configuration.baseOptions;
168
224
  }
169
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
225
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
170
226
  const localVarHeaderParameter = {};
171
227
  const localVarQueryParameter = {};
172
228
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
229
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
- localVarRequestOptions.headers = {
175
- ...localVarHeaderParameter,
176
- ...headersFromBaseOptions,
177
- ...options.headers
178
- };
230
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
179
231
  return {
180
232
  url: (0, common_1.toPathString)(localVarUrlObj),
181
- options: localVarRequestOptions
233
+ options: localVarRequestOptions,
182
234
  };
183
235
  },
184
236
  /**
@@ -186,39 +238,36 @@ const VaultsApiAxiosParamCreator = function (configuration) {
186
238
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
187
239
  * @param {string} vaultId The id of the vault
188
240
  * @param {number} [limit] The limit of the rows
189
- * @param {HistoryInterval} [interval] The interval of the rows
241
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
190
242
  * @param {*} [options] Override http request option.
191
243
  * @throws {RequiredError}
192
244
  */
193
245
  getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
194
246
  // verify required parameter 'vaultId' is not null or undefined
195
- (0, common_1.assertParamExists)("getVaultPnlHistory", "vaultId", vaultId);
196
- const localVarPath = `/api/v1/vaults/pnl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
247
+ (0, common_1.assertParamExists)('getVaultPnlHistory', 'vaultId', vaultId);
248
+ const localVarPath = `/api/v1/vaults/pnl-history/{vaultId}`
249
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
197
250
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
251
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
252
  let baseOptions;
200
253
  if (configuration) {
201
254
  baseOptions = configuration.baseOptions;
202
255
  }
203
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
256
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
204
257
  const localVarHeaderParameter = {};
205
258
  const localVarQueryParameter = {};
206
259
  if (limit !== undefined) {
207
- localVarQueryParameter["limit"] = limit;
260
+ localVarQueryParameter['limit'] = limit;
208
261
  }
209
262
  if (interval !== undefined) {
210
- localVarQueryParameter["interval"] = interval;
263
+ localVarQueryParameter['interval'] = interval;
211
264
  }
212
265
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
266
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
- localVarRequestOptions.headers = {
215
- ...localVarHeaderParameter,
216
- ...headersFromBaseOptions,
217
- ...options.headers
218
- };
267
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
219
268
  return {
220
269
  url: (0, common_1.toPathString)(localVarUrlObj),
221
- options: localVarRequestOptions
270
+ options: localVarRequestOptions,
222
271
  };
223
272
  },
224
273
  /**
@@ -232,33 +281,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
232
281
  */
233
282
  getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
234
283
  // verify required parameter 'vaultId' is not null or undefined
235
- (0, common_1.assertParamExists)("getVaultSharePriceHistory", "vaultId", vaultId);
236
- const localVarPath = `/api/v1/vaults/share-price-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
284
+ (0, common_1.assertParamExists)('getVaultSharePriceHistory', 'vaultId', vaultId);
285
+ const localVarPath = `/api/v1/vaults/share-price-history/{vaultId}`
286
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
237
287
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
288
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
289
  let baseOptions;
240
290
  if (configuration) {
241
291
  baseOptions = configuration.baseOptions;
242
292
  }
243
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
293
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
244
294
  const localVarHeaderParameter = {};
245
295
  const localVarQueryParameter = {};
246
296
  if (limit !== undefined) {
247
- localVarQueryParameter["limit"] = limit;
297
+ localVarQueryParameter['limit'] = limit;
248
298
  }
249
299
  if (interval !== undefined) {
250
- localVarQueryParameter["interval"] = interval;
300
+ localVarQueryParameter['interval'] = interval;
251
301
  }
252
302
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
253
303
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
- localVarRequestOptions.headers = {
255
- ...localVarHeaderParameter,
256
- ...headersFromBaseOptions,
257
- ...options.headers
258
- };
304
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
259
305
  return {
260
306
  url: (0, common_1.toPathString)(localVarUrlObj),
261
- options: localVarRequestOptions
307
+ options: localVarRequestOptions,
262
308
  };
263
309
  },
264
310
  /**
@@ -270,27 +316,24 @@ const VaultsApiAxiosParamCreator = function (configuration) {
270
316
  */
271
317
  getVaultStrategy: async (vaultId, options = {}) => {
272
318
  // verify required parameter 'vaultId' is not null or undefined
273
- (0, common_1.assertParamExists)("getVaultStrategy", "vaultId", vaultId);
274
- const localVarPath = `/api/v1/vaults/strategy/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
319
+ (0, common_1.assertParamExists)('getVaultStrategy', 'vaultId', vaultId);
320
+ const localVarPath = `/api/v1/vaults/strategy/{vaultId}`
321
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
275
322
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
323
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
277
324
  let baseOptions;
278
325
  if (configuration) {
279
326
  baseOptions = configuration.baseOptions;
280
327
  }
281
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
328
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
282
329
  const localVarHeaderParameter = {};
283
330
  const localVarQueryParameter = {};
284
331
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
285
332
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
286
- localVarRequestOptions.headers = {
287
- ...localVarHeaderParameter,
288
- ...headersFromBaseOptions,
289
- ...options.headers
290
- };
333
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
291
334
  return {
292
335
  url: (0, common_1.toPathString)(localVarUrlObj),
293
- options: localVarRequestOptions
336
+ options: localVarRequestOptions,
294
337
  };
295
338
  },
296
339
  /**
@@ -304,33 +347,30 @@ const VaultsApiAxiosParamCreator = function (configuration) {
304
347
  */
305
348
  getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
306
349
  // verify required parameter 'vaultId' is not null or undefined
307
- (0, common_1.assertParamExists)("getVaultTvlHistory", "vaultId", vaultId);
308
- const localVarPath = `/api/v1/vaults/tvl-history/{vaultId}`.replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
350
+ (0, common_1.assertParamExists)('getVaultTvlHistory', 'vaultId', vaultId);
351
+ const localVarPath = `/api/v1/vaults/tvl-history/{vaultId}`
352
+ .replace(`{${"vaultId"}}`, encodeURIComponent(String(vaultId)));
309
353
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
310
354
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
355
  let baseOptions;
312
356
  if (configuration) {
313
357
  baseOptions = configuration.baseOptions;
314
358
  }
315
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
316
360
  const localVarHeaderParameter = {};
317
361
  const localVarQueryParameter = {};
318
362
  if (limit !== undefined) {
319
- localVarQueryParameter["limit"] = limit;
363
+ localVarQueryParameter['limit'] = limit;
320
364
  }
321
365
  if (interval !== undefined) {
322
- localVarQueryParameter["interval"] = interval;
366
+ localVarQueryParameter['interval'] = interval;
323
367
  }
324
368
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
325
369
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
- localVarRequestOptions.headers = {
327
- ...localVarHeaderParameter,
328
- ...headersFromBaseOptions,
329
- ...options.headers
330
- };
370
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
331
371
  return {
332
372
  url: (0, common_1.toPathString)(localVarUrlObj),
333
- options: localVarRequestOptions
373
+ options: localVarRequestOptions,
334
374
  };
335
375
  },
336
376
  /**
@@ -349,25 +389,21 @@ const VaultsApiAxiosParamCreator = function (configuration) {
349
389
  if (configuration) {
350
390
  baseOptions = configuration.baseOptions;
351
391
  }
352
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
392
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
353
393
  const localVarHeaderParameter = {};
354
394
  const localVarQueryParameter = {};
355
395
  if (vaultId !== undefined) {
356
- localVarQueryParameter["vaultId"] = vaultId;
396
+ localVarQueryParameter['vaultId'] = vaultId;
357
397
  }
358
398
  if (receiptCoinSymbol !== undefined) {
359
- localVarQueryParameter["receiptCoinSymbol"] = receiptCoinSymbol;
399
+ localVarQueryParameter['receiptCoinSymbol'] = receiptCoinSymbol;
360
400
  }
361
401
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
402
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
- localVarRequestOptions.headers = {
364
- ...localVarHeaderParameter,
365
- ...headersFromBaseOptions,
366
- ...options.headers
367
- };
403
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
368
404
  return {
369
405
  url: (0, common_1.toPathString)(localVarUrlObj),
370
- options: localVarRequestOptions
406
+ options: localVarRequestOptions,
371
407
  };
372
408
  },
373
409
  /**
@@ -384,19 +420,15 @@ const VaultsApiAxiosParamCreator = function (configuration) {
384
420
  if (configuration) {
385
421
  baseOptions = configuration.baseOptions;
386
422
  }
387
- const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
423
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
388
424
  const localVarHeaderParameter = {};
389
425
  const localVarQueryParameter = {};
390
426
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
391
427
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
- localVarRequestOptions.headers = {
393
- ...localVarHeaderParameter,
394
- ...headersFromBaseOptions,
395
- ...options.headers
396
- };
428
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
397
429
  return {
398
430
  url: (0, common_1.toPathString)(localVarUrlObj),
399
- options: localVarRequestOptions
431
+ options: localVarRequestOptions,
400
432
  };
401
433
  },
402
434
  /**
@@ -408,7 +440,7 @@ const VaultsApiAxiosParamCreator = function (configuration) {
408
440
  */
409
441
  updateVaultStrategy: async (updateVaultStrategies, options = {}) => {
410
442
  // verify required parameter 'updateVaultStrategies' is not null or undefined
411
- (0, common_1.assertParamExists)("updateVaultStrategy", "updateVaultStrategies", updateVaultStrategies);
443
+ (0, common_1.assertParamExists)('updateVaultStrategy', 'updateVaultStrategies', updateVaultStrategies);
412
444
  const localVarPath = `/api/v1/vaults/strategy`;
413
445
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
446
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -416,44 +448,54 @@ const VaultsApiAxiosParamCreator = function (configuration) {
416
448
  if (configuration) {
417
449
  baseOptions = configuration.baseOptions;
418
450
  }
419
- const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
451
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
420
452
  const localVarHeaderParameter = {};
421
453
  const localVarQueryParameter = {};
422
- localVarHeaderParameter["Content-Type"] = "application/json";
454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
423
455
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
456
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
- localVarRequestOptions.headers = {
426
- ...localVarHeaderParameter,
427
- ...headersFromBaseOptions,
428
- ...options.headers
429
- };
457
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
430
458
  localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVaultStrategies, localVarRequestOptions, configuration);
431
459
  return {
432
460
  url: (0, common_1.toPathString)(localVarUrlObj),
433
- options: localVarRequestOptions
461
+ options: localVarRequestOptions,
434
462
  };
435
- }
463
+ },
436
464
  };
437
465
  };
438
466
  exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
439
467
  /**
440
468
  * VaultsApi - functional programming interface
469
+ * @export
441
470
  */
442
471
  const VaultsApiFp = function (configuration) {
443
472
  const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
444
473
  return {
474
+ /**
475
+ *
476
+ * @summary Get the price of the coins
477
+ * @param {string} [coinTypes] The coin types of the coins
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ async getCoinsPrice(coinTypes, options) {
482
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCoinsPrice(coinTypes, options);
483
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
484
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getCoinsPrice']?.[localVarOperationServerIndex]?.url;
485
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
486
+ },
445
487
  /**
446
488
  *
447
489
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
448
490
  * @param {number} [limit] The limit of the rows
449
- * @param {HistoryInterval} [interval] The interval of the rows
491
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
450
492
  * @param {*} [options] Override http request option.
451
493
  * @throws {RequiredError}
452
494
  */
453
495
  async getProtocolPnlHistory(limit, interval, options) {
454
496
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
455
497
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
456
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
498
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getProtocolPnlHistory']?.[localVarOperationServerIndex]?.url;
457
499
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
458
500
  },
459
501
  /**
@@ -467,7 +509,7 @@ const VaultsApiFp = function (configuration) {
467
509
  async getProtocolTvlHistory(limit, interval, options) {
468
510
  const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, options);
469
511
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
470
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
512
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getProtocolTvlHistory']?.[localVarOperationServerIndex]?.url;
471
513
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
472
514
  },
473
515
  /**
@@ -483,7 +525,22 @@ const VaultsApiFp = function (configuration) {
483
525
  async getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
484
526
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options);
485
527
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
486
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getRawEvents"]?.[localVarOperationServerIndex]?.url;
528
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getRawEvents']?.[localVarOperationServerIndex]?.url;
529
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
530
+ },
531
+ /**
532
+ *
533
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
534
+ * @param {string} vaultId The id of the vault
535
+ * @param {number} [limit] The limit of the rows
536
+ * @param {HistoryInterval} [interval] The interval of the rows
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ async getVaultApyHistory(vaultId, limit, interval, options) {
541
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultApyHistory(vaultId, limit, interval, options);
542
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
543
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultApyHistory']?.[localVarOperationServerIndex]?.url;
487
544
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
488
545
  },
489
546
  /**
@@ -496,7 +553,7 @@ const VaultsApiFp = function (configuration) {
496
553
  async getVaultExposure(vaultId, options) {
497
554
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultExposure(vaultId, options);
498
555
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
499
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultExposure"]?.[localVarOperationServerIndex]?.url;
556
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultExposure']?.[localVarOperationServerIndex]?.url;
500
557
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
501
558
  },
502
559
  /**
@@ -504,14 +561,14 @@ const VaultsApiFp = function (configuration) {
504
561
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
505
562
  * @param {string} vaultId The id of the vault
506
563
  * @param {number} [limit] The limit of the rows
507
- * @param {HistoryInterval} [interval] The interval of the rows
564
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
508
565
  * @param {*} [options] Override http request option.
509
566
  * @throws {RequiredError}
510
567
  */
511
568
  async getVaultPnlHistory(vaultId, limit, interval, options) {
512
569
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
513
570
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
514
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
571
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultPnlHistory']?.[localVarOperationServerIndex]?.url;
515
572
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
516
573
  },
517
574
  /**
@@ -526,7 +583,7 @@ const VaultsApiFp = function (configuration) {
526
583
  async getVaultSharePriceHistory(vaultId, limit, interval, options) {
527
584
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
528
585
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
529
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
586
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultSharePriceHistory']?.[localVarOperationServerIndex]?.url;
530
587
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
531
588
  },
532
589
  /**
@@ -539,7 +596,7 @@ const VaultsApiFp = function (configuration) {
539
596
  async getVaultStrategy(vaultId, options) {
540
597
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultStrategy(vaultId, options);
541
598
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
542
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultStrategy"]?.[localVarOperationServerIndex]?.url;
599
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultStrategy']?.[localVarOperationServerIndex]?.url;
543
600
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
544
601
  },
545
602
  /**
@@ -554,7 +611,7 @@ const VaultsApiFp = function (configuration) {
554
611
  async getVaultTvlHistory(vaultId, limit, interval, options) {
555
612
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
556
613
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
557
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
614
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultTvlHistory']?.[localVarOperationServerIndex]?.url;
558
615
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
616
  },
560
617
  /**
@@ -568,8 +625,7 @@ const VaultsApiFp = function (configuration) {
568
625
  async getVaults(vaultId, receiptCoinSymbol, options) {
569
626
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, options);
570
627
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
571
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
572
- ?.url;
628
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaults']?.[localVarOperationServerIndex]?.url;
573
629
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
574
630
  },
575
631
  /**
@@ -581,7 +637,7 @@ const VaultsApiFp = function (configuration) {
581
637
  async getVaultsProtocolInfo(options) {
582
638
  const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
583
639
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
584
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
640
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.getVaultsProtocolInfo']?.[localVarOperationServerIndex]?.url;
585
641
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
586
642
  },
587
643
  /**
@@ -594,30 +650,39 @@ const VaultsApiFp = function (configuration) {
594
650
  async updateVaultStrategy(updateVaultStrategies, options) {
595
651
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultStrategy(updateVaultStrategies, options);
596
652
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
597
- const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.updateVaultStrategy"]?.[localVarOperationServerIndex]?.url;
653
+ const localVarOperationServerBasePath = base_1.operationServerMap['VaultsApi.updateVaultStrategy']?.[localVarOperationServerIndex]?.url;
598
654
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
599
- }
655
+ },
600
656
  };
601
657
  };
602
658
  exports.VaultsApiFp = VaultsApiFp;
603
659
  /**
604
660
  * VaultsApi - factory interface
661
+ * @export
605
662
  */
606
663
  const VaultsApiFactory = function (configuration, basePath, axios) {
607
664
  const localVarFp = (0, exports.VaultsApiFp)(configuration);
608
665
  return {
666
+ /**
667
+ *
668
+ * @summary Get the price of the coins
669
+ * @param {string} [coinTypes] The coin types of the coins
670
+ * @param {*} [options] Override http request option.
671
+ * @throws {RequiredError}
672
+ */
673
+ getCoinsPrice(coinTypes, options) {
674
+ return localVarFp.getCoinsPrice(coinTypes, options).then((request) => request(axios, basePath));
675
+ },
609
676
  /**
610
677
  *
611
678
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
612
679
  * @param {number} [limit] The limit of the rows
613
- * @param {HistoryInterval} [interval] The interval of the rows
680
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
614
681
  * @param {*} [options] Override http request option.
615
682
  * @throws {RequiredError}
616
683
  */
617
684
  getProtocolPnlHistory(limit, interval, options) {
618
- return localVarFp
619
- .getProtocolPnlHistory(limit, interval, options)
620
- .then(request => request(axios, basePath));
685
+ return localVarFp.getProtocolPnlHistory(limit, interval, options).then((request) => request(axios, basePath));
621
686
  },
622
687
  /**
623
688
  *
@@ -628,9 +693,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
628
693
  * @throws {RequiredError}
629
694
  */
630
695
  getProtocolTvlHistory(limit, interval, options) {
631
- return localVarFp
632
- .getProtocolTvlHistory(limit, interval, options)
633
- .then(request => request(axios, basePath));
696
+ return localVarFp.getProtocolTvlHistory(limit, interval, options).then((request) => request(axios, basePath));
634
697
  },
635
698
  /**
636
699
  *
@@ -643,9 +706,19 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
643
706
  * @throws {RequiredError}
644
707
  */
645
708
  getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
646
- return localVarFp
647
- .getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
648
- .then(request => request(axios, basePath));
709
+ return localVarFp.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options).then((request) => request(axios, basePath));
710
+ },
711
+ /**
712
+ *
713
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
714
+ * @param {string} vaultId The id of the vault
715
+ * @param {number} [limit] The limit of the rows
716
+ * @param {HistoryInterval} [interval] The interval of the rows
717
+ * @param {*} [options] Override http request option.
718
+ * @throws {RequiredError}
719
+ */
720
+ getVaultApyHistory(vaultId, limit, interval, options) {
721
+ return localVarFp.getVaultApyHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
649
722
  },
650
723
  /**
651
724
  *
@@ -655,23 +728,19 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
655
728
  * @throws {RequiredError}
656
729
  */
657
730
  getVaultExposure(vaultId, options) {
658
- return localVarFp
659
- .getVaultExposure(vaultId, options)
660
- .then(request => request(axios, basePath));
731
+ return localVarFp.getVaultExposure(vaultId, options).then((request) => request(axios, basePath));
661
732
  },
662
733
  /**
663
734
  *
664
735
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
665
736
  * @param {string} vaultId The id of the vault
666
737
  * @param {number} [limit] The limit of the rows
667
- * @param {HistoryInterval} [interval] The interval of the rows
738
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
668
739
  * @param {*} [options] Override http request option.
669
740
  * @throws {RequiredError}
670
741
  */
671
742
  getVaultPnlHistory(vaultId, limit, interval, options) {
672
- return localVarFp
673
- .getVaultPnlHistory(vaultId, limit, interval, options)
674
- .then(request => request(axios, basePath));
743
+ return localVarFp.getVaultPnlHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
675
744
  },
676
745
  /**
677
746
  *
@@ -683,9 +752,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
683
752
  * @throws {RequiredError}
684
753
  */
685
754
  getVaultSharePriceHistory(vaultId, limit, interval, options) {
686
- return localVarFp
687
- .getVaultSharePriceHistory(vaultId, limit, interval, options)
688
- .then(request => request(axios, basePath));
755
+ return localVarFp.getVaultSharePriceHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
689
756
  },
690
757
  /**
691
758
  *
@@ -695,9 +762,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
695
762
  * @throws {RequiredError}
696
763
  */
697
764
  getVaultStrategy(vaultId, options) {
698
- return localVarFp
699
- .getVaultStrategy(vaultId, options)
700
- .then(request => request(axios, basePath));
765
+ return localVarFp.getVaultStrategy(vaultId, options).then((request) => request(axios, basePath));
701
766
  },
702
767
  /**
703
768
  *
@@ -709,9 +774,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
709
774
  * @throws {RequiredError}
710
775
  */
711
776
  getVaultTvlHistory(vaultId, limit, interval, options) {
712
- return localVarFp
713
- .getVaultTvlHistory(vaultId, limit, interval, options)
714
- .then(request => request(axios, basePath));
777
+ return localVarFp.getVaultTvlHistory(vaultId, limit, interval, options).then((request) => request(axios, basePath));
715
778
  },
716
779
  /**
717
780
  *
@@ -722,9 +785,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
722
785
  * @throws {RequiredError}
723
786
  */
724
787
  getVaults(vaultId, receiptCoinSymbol, options) {
725
- return localVarFp
726
- .getVaults(vaultId, receiptCoinSymbol, options)
727
- .then(request => request(axios, basePath));
788
+ return localVarFp.getVaults(vaultId, receiptCoinSymbol, options).then((request) => request(axios, basePath));
728
789
  },
729
790
  /**
730
791
  *
@@ -733,9 +794,7 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
733
794
  * @throws {RequiredError}
734
795
  */
735
796
  getVaultsProtocolInfo(options) {
736
- return localVarFp
737
- .getVaultsProtocolInfo(options)
738
- .then(request => request(axios, basePath));
797
+ return localVarFp.getVaultsProtocolInfo(options).then((request) => request(axios, basePath));
739
798
  },
740
799
  /**
741
800
  *
@@ -745,29 +804,40 @@ const VaultsApiFactory = function (configuration, basePath, axios) {
745
804
  * @throws {RequiredError}
746
805
  */
747
806
  updateVaultStrategy(updateVaultStrategies, options) {
748
- return localVarFp
749
- .updateVaultStrategy(updateVaultStrategies, options)
750
- .then(request => request(axios, basePath));
751
- }
807
+ return localVarFp.updateVaultStrategy(updateVaultStrategies, options).then((request) => request(axios, basePath));
808
+ },
752
809
  };
753
810
  };
754
811
  exports.VaultsApiFactory = VaultsApiFactory;
755
812
  /**
756
813
  * VaultsApi - object-oriented interface
814
+ * @export
815
+ * @class VaultsApi
816
+ * @extends {BaseAPI}
757
817
  */
758
818
  class VaultsApi extends base_1.BaseAPI {
819
+ /**
820
+ *
821
+ * @summary Get the price of the coins
822
+ * @param {string} [coinTypes] The coin types of the coins
823
+ * @param {*} [options] Override http request option.
824
+ * @throws {RequiredError}
825
+ * @memberof VaultsApi
826
+ */
827
+ getCoinsPrice(coinTypes, options) {
828
+ return (0, exports.VaultsApiFp)(this.configuration).getCoinsPrice(coinTypes, options).then((request) => request(this.axios, this.basePath));
829
+ }
759
830
  /**
760
831
  *
761
832
  * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
762
833
  * @param {number} [limit] The limit of the rows
763
- * @param {HistoryInterval} [interval] The interval of the rows
834
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
764
835
  * @param {*} [options] Override http request option.
765
836
  * @throws {RequiredError}
837
+ * @memberof VaultsApi
766
838
  */
767
839
  getProtocolPnlHistory(limit, interval, options) {
768
- return (0, exports.VaultsApiFp)(this.configuration)
769
- .getProtocolPnlHistory(limit, interval, options)
770
- .then(request => request(this.axios, this.basePath));
840
+ return (0, exports.VaultsApiFp)(this.configuration).getProtocolPnlHistory(limit, interval, options).then((request) => request(this.axios, this.basePath));
771
841
  }
772
842
  /**
773
843
  *
@@ -776,11 +846,10 @@ class VaultsApi extends base_1.BaseAPI {
776
846
  * @param {HistoryInterval} [interval] The interval of the rows
777
847
  * @param {*} [options] Override http request option.
778
848
  * @throws {RequiredError}
849
+ * @memberof VaultsApi
779
850
  */
780
851
  getProtocolTvlHistory(limit, interval, options) {
781
- return (0, exports.VaultsApiFp)(this.configuration)
782
- .getProtocolTvlHistory(limit, interval, options)
783
- .then(request => request(this.axios, this.basePath));
852
+ return (0, exports.VaultsApiFp)(this.configuration).getProtocolTvlHistory(limit, interval, options).then((request) => request(this.axios, this.basePath));
784
853
  }
785
854
  /**
786
855
  *
@@ -791,11 +860,23 @@ class VaultsApi extends base_1.BaseAPI {
791
860
  * @param {number} [page] Use when provided time range and limit exceed max page size
792
861
  * @param {*} [options] Override http request option.
793
862
  * @throws {RequiredError}
863
+ * @memberof VaultsApi
794
864
  */
795
865
  getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
796
- return (0, exports.VaultsApiFp)(this.configuration)
797
- .getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
798
- .then(request => request(this.axios, this.basePath));
866
+ return (0, exports.VaultsApiFp)(this.configuration).getRawEvents(startTimeInMs, endTimeInMs, limit, page, options).then((request) => request(this.axios, this.basePath));
867
+ }
868
+ /**
869
+ *
870
+ * @summary Get the apy history of the vault (1h, 1d, 1w, 1mon) descending by time
871
+ * @param {string} vaultId The id of the vault
872
+ * @param {number} [limit] The limit of the rows
873
+ * @param {HistoryInterval} [interval] The interval of the rows
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ * @memberof VaultsApi
877
+ */
878
+ getVaultApyHistory(vaultId, limit, interval, options) {
879
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultApyHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
799
880
  }
800
881
  /**
801
882
  *
@@ -803,25 +884,23 @@ class VaultsApi extends base_1.BaseAPI {
803
884
  * @param {string} vaultId The id of the vault
804
885
  * @param {*} [options] Override http request option.
805
886
  * @throws {RequiredError}
887
+ * @memberof VaultsApi
806
888
  */
807
889
  getVaultExposure(vaultId, options) {
808
- return (0, exports.VaultsApiFp)(this.configuration)
809
- .getVaultExposure(vaultId, options)
810
- .then(request => request(this.axios, this.basePath));
890
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultExposure(vaultId, options).then((request) => request(this.axios, this.basePath));
811
891
  }
812
892
  /**
813
893
  *
814
894
  * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
815
895
  * @param {string} vaultId The id of the vault
816
896
  * @param {number} [limit] The limit of the rows
817
- * @param {HistoryInterval} [interval] The interval of the rows
897
+ * @param {PnlHistoryInterval} [interval] The interval of the rows
818
898
  * @param {*} [options] Override http request option.
819
899
  * @throws {RequiredError}
900
+ * @memberof VaultsApi
820
901
  */
821
902
  getVaultPnlHistory(vaultId, limit, interval, options) {
822
- return (0, exports.VaultsApiFp)(this.configuration)
823
- .getVaultPnlHistory(vaultId, limit, interval, options)
824
- .then(request => request(this.axios, this.basePath));
903
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultPnlHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
825
904
  }
826
905
  /**
827
906
  *
@@ -831,11 +910,10 @@ class VaultsApi extends base_1.BaseAPI {
831
910
  * @param {HistoryInterval} [interval] The interval of the rows
832
911
  * @param {*} [options] Override http request option.
833
912
  * @throws {RequiredError}
913
+ * @memberof VaultsApi
834
914
  */
835
915
  getVaultSharePriceHistory(vaultId, limit, interval, options) {
836
- return (0, exports.VaultsApiFp)(this.configuration)
837
- .getVaultSharePriceHistory(vaultId, limit, interval, options)
838
- .then(request => request(this.axios, this.basePath));
916
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultSharePriceHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
839
917
  }
840
918
  /**
841
919
  *
@@ -843,11 +921,10 @@ class VaultsApi extends base_1.BaseAPI {
843
921
  * @param {string} vaultId The id of the vault
844
922
  * @param {*} [options] Override http request option.
845
923
  * @throws {RequiredError}
924
+ * @memberof VaultsApi
846
925
  */
847
926
  getVaultStrategy(vaultId, options) {
848
- return (0, exports.VaultsApiFp)(this.configuration)
849
- .getVaultStrategy(vaultId, options)
850
- .then(request => request(this.axios, this.basePath));
927
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultStrategy(vaultId, options).then((request) => request(this.axios, this.basePath));
851
928
  }
852
929
  /**
853
930
  *
@@ -857,11 +934,10 @@ class VaultsApi extends base_1.BaseAPI {
857
934
  * @param {HistoryInterval} [interval] The interval of the rows
858
935
  * @param {*} [options] Override http request option.
859
936
  * @throws {RequiredError}
937
+ * @memberof VaultsApi
860
938
  */
861
939
  getVaultTvlHistory(vaultId, limit, interval, options) {
862
- return (0, exports.VaultsApiFp)(this.configuration)
863
- .getVaultTvlHistory(vaultId, limit, interval, options)
864
- .then(request => request(this.axios, this.basePath));
940
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultTvlHistory(vaultId, limit, interval, options).then((request) => request(this.axios, this.basePath));
865
941
  }
866
942
  /**
867
943
  *
@@ -870,22 +946,20 @@ class VaultsApi extends base_1.BaseAPI {
870
946
  * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
871
947
  * @param {*} [options] Override http request option.
872
948
  * @throws {RequiredError}
949
+ * @memberof VaultsApi
873
950
  */
874
951
  getVaults(vaultId, receiptCoinSymbol, options) {
875
- return (0, exports.VaultsApiFp)(this.configuration)
876
- .getVaults(vaultId, receiptCoinSymbol, options)
877
- .then(request => request(this.axios, this.basePath));
952
+ return (0, exports.VaultsApiFp)(this.configuration).getVaults(vaultId, receiptCoinSymbol, options).then((request) => request(this.axios, this.basePath));
878
953
  }
879
954
  /**
880
955
  *
881
956
  * @summary Get protocol info to initialize sdk
882
957
  * @param {*} [options] Override http request option.
883
958
  * @throws {RequiredError}
959
+ * @memberof VaultsApi
884
960
  */
885
961
  getVaultsProtocolInfo(options) {
886
- return (0, exports.VaultsApiFp)(this.configuration)
887
- .getVaultsProtocolInfo(options)
888
- .then(request => request(this.axios, this.basePath));
962
+ return (0, exports.VaultsApiFp)(this.configuration).getVaultsProtocolInfo(options).then((request) => request(this.axios, this.basePath));
889
963
  }
890
964
  /**
891
965
  *
@@ -893,11 +967,10 @@ class VaultsApi extends base_1.BaseAPI {
893
967
  * @param {UpdateVaultStrategies} updateVaultStrategies
894
968
  * @param {*} [options] Override http request option.
895
969
  * @throws {RequiredError}
970
+ * @memberof VaultsApi
896
971
  */
897
972
  updateVaultStrategy(updateVaultStrategies, options) {
898
- return (0, exports.VaultsApiFp)(this.configuration)
899
- .updateVaultStrategy(updateVaultStrategies, options)
900
- .then(request => request(this.axios, this.basePath));
973
+ return (0, exports.VaultsApiFp)(this.configuration).updateVaultStrategy(updateVaultStrategies, options).then((request) => request(this.axios, this.basePath));
901
974
  }
902
975
  }
903
976
  exports.VaultsApi = VaultsApi;