@ember-finance/sdk 1.0.0 → 1.0.1

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 (107) hide show
  1. package/README.md +3 -3
  2. package/dist/src/vaults/api/api.d.ts +13 -0
  3. package/dist/src/vaults/api/api.js +31 -0
  4. package/dist/src/vaults/api/apis/accounts-api.d.ts +198 -0
  5. package/dist/src/vaults/api/apis/accounts-api.js +366 -0
  6. package/dist/src/vaults/api/apis/vaults-api.d.ts +441 -0
  7. package/dist/src/vaults/api/apis/vaults-api.js +903 -0
  8. package/dist/src/vaults/api/base.d.ts +42 -0
  9. package/dist/src/vaults/api/base.js +47 -0
  10. package/dist/src/vaults/api/common.d.ts +28 -0
  11. package/dist/src/vaults/api/common.js +115 -0
  12. package/dist/src/vaults/api/configuration.d.ts +74 -0
  13. package/dist/src/vaults/api/configuration.js +49 -0
  14. package/dist/src/vaults/api/index.d.ts +14 -0
  15. package/dist/src/vaults/api/index.js +32 -0
  16. package/dist/src/vaults/api/models/account-transaction-transaction-data.d.ts +21 -0
  17. package/dist/src/vaults/api/models/account-transaction-transaction-data.js +15 -0
  18. package/dist/src/vaults/api/models/account-transaction.d.ts +27 -0
  19. package/dist/src/vaults/api/models/account-transaction.js +23 -0
  20. package/dist/src/vaults/api/models/account-withdrawal-request.d.ts +63 -0
  21. package/dist/src/vaults/api/models/account-withdrawal-request.js +24 -0
  22. package/dist/src/vaults/api/models/asset.d.ts +41 -0
  23. package/dist/src/vaults/api/models/asset.js +15 -0
  24. package/dist/src/vaults/api/models/deposit-transaction.d.ts +38 -0
  25. package/dist/src/vaults/api/models/deposit-transaction.js +15 -0
  26. package/dist/src/vaults/api/models/exposure-coin.d.ts +23 -0
  27. package/dist/src/vaults/api/models/exposure-coin.js +15 -0
  28. package/dist/src/vaults/api/models/exposure-protocol.d.ts +19 -0
  29. package/dist/src/vaults/api/models/exposure-protocol.js +15 -0
  30. package/dist/src/vaults/api/models/exposure.d.ts +27 -0
  31. package/dist/src/vaults/api/models/exposure.js +15 -0
  32. package/dist/src/vaults/api/models/history-interval.d.ts +18 -0
  33. package/dist/src/vaults/api/models/history-interval.js +22 -0
  34. package/dist/src/vaults/api/models/index.d.ts +43 -0
  35. package/dist/src/vaults/api/models/index.js +59 -0
  36. package/dist/src/vaults/api/models/manager.d.ts +20 -0
  37. package/dist/src/vaults/api/models/manager.js +15 -0
  38. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.d.ts +29 -0
  39. package/dist/src/vaults/api/models/min-withdrawal-shares-updated-event.js +15 -0
  40. package/dist/src/vaults/api/models/pnl-history.d.ts +21 -0
  41. package/dist/src/vaults/api/models/pnl-history.js +15 -0
  42. package/dist/src/vaults/api/models/protocol-info.d.ts +27 -0
  43. package/dist/src/vaults/api/models/protocol-info.js +15 -0
  44. package/dist/src/vaults/api/models/protocol.d.ts +38 -0
  45. package/dist/src/vaults/api/models/protocol.js +23 -0
  46. package/dist/src/vaults/api/models/raw-event-event-data.d.ts +28 -0
  47. package/dist/src/vaults/api/models/raw-event-event-data.js +15 -0
  48. package/dist/src/vaults/api/models/raw-event.d.ts +42 -0
  49. package/dist/src/vaults/api/models/raw-event.js +30 -0
  50. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.d.ts +33 -0
  51. package/dist/src/vaults/api/models/redeem-request-cancelled-transaction.js +15 -0
  52. package/dist/src/vaults/api/models/redeem-request-processed-transaction.d.ts +38 -0
  53. package/dist/src/vaults/api/models/redeem-request-processed-transaction.js +15 -0
  54. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.d.ts +33 -0
  55. package/dist/src/vaults/api/models/redeem-request-skipped-transaction.js +15 -0
  56. package/dist/src/vaults/api/models/redeem-request-transaction.d.ts +33 -0
  57. package/dist/src/vaults/api/models/redeem-request-transaction.js +15 -0
  58. package/dist/src/vaults/api/models/reported-apy.d.ts +15 -0
  59. package/dist/src/vaults/api/models/reported-apy.js +15 -0
  60. package/dist/src/vaults/api/models/request-processed-event.d.ts +53 -0
  61. package/dist/src/vaults/api/models/request-processed-event.js +15 -0
  62. package/dist/src/vaults/api/models/request-redeemed-event.d.ts +49 -0
  63. package/dist/src/vaults/api/models/request-redeemed-event.js +15 -0
  64. package/dist/src/vaults/api/models/reward-token.d.ts +27 -0
  65. package/dist/src/vaults/api/models/reward-token.js +15 -0
  66. package/dist/src/vaults/api/models/share-price-history.d.ts +21 -0
  67. package/dist/src/vaults/api/models/share-price-history.js +15 -0
  68. package/dist/src/vaults/api/models/strategy.d.ts +41 -0
  69. package/dist/src/vaults/api/models/strategy.js +15 -0
  70. package/dist/src/vaults/api/models/sub-account.d.ts +19 -0
  71. package/dist/src/vaults/api/models/sub-account.js +15 -0
  72. package/dist/src/vaults/api/models/tvl-history.d.ts +21 -0
  73. package/dist/src/vaults/api/models/tvl-history.js +15 -0
  74. package/dist/src/vaults/api/models/ultra-coin-info.d.ts +37 -0
  75. package/dist/src/vaults/api/models/ultra-coin-info.js +15 -0
  76. package/dist/src/vaults/api/models/update-vault-strategies.d.ts +31 -0
  77. package/dist/src/vaults/api/models/update-vault-strategies.js +15 -0
  78. package/dist/src/vaults/api/models/vault-admin-changed-event.d.ts +29 -0
  79. package/dist/src/vaults/api/models/vault-admin-changed-event.js +15 -0
  80. package/dist/src/vaults/api/models/vault-created-event.d.ts +38 -0
  81. package/dist/src/vaults/api/models/vault-created-event.js +15 -0
  82. package/dist/src/vaults/api/models/vault-deposit-event.d.ts +49 -0
  83. package/dist/src/vaults/api/models/vault-deposit-event.js +15 -0
  84. package/dist/src/vaults/api/models/vault-detail.d.ts +95 -0
  85. package/dist/src/vaults/api/models/vault-detail.js +22 -0
  86. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.d.ts +29 -0
  87. package/dist/src/vaults/api/models/vault-fee-percentage-updated-event.js +15 -0
  88. package/dist/src/vaults/api/models/vault-info.d.ts +57 -0
  89. package/dist/src/vaults/api/models/vault-info.js +15 -0
  90. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.d.ts +29 -0
  91. package/dist/src/vaults/api/models/vault-max-tvl-updated-event.js +15 -0
  92. package/dist/src/vaults/api/models/vault-operator-changed-event.d.ts +29 -0
  93. package/dist/src/vaults/api/models/vault-operator-changed-event.js +15 -0
  94. package/dist/src/vaults/api/models/vault-paused-status-updated-event.d.ts +25 -0
  95. package/dist/src/vaults/api/models/vault-paused-status-updated-event.js +15 -0
  96. package/dist/src/vaults/api/models/vault-protocol.d.ts +29 -0
  97. package/dist/src/vaults/api/models/vault-protocol.js +15 -0
  98. package/dist/src/vaults/api/models/vault-rate-updated-event.d.ts +29 -0
  99. package/dist/src/vaults/api/models/vault-rate-updated-event.js +15 -0
  100. package/dist/src/vaults/api/models/vault-slice.d.ts +33 -0
  101. package/dist/src/vaults/api/models/vault-slice.js +15 -0
  102. package/dist/src/vaults/api/models/vault-sub-account-updated-event.d.ts +37 -0
  103. package/dist/src/vaults/api/models/vault-sub-account-updated-event.js +15 -0
  104. package/dist/src/vaults/{bluefin-vaults.d.ts → ember-vaults.d.ts} +5 -1
  105. package/dist/src/vaults/{bluefin-vaults.js → ember-vaults.js} +19 -4
  106. package/dist/src/vaults/on-chain-calls/onchain-calls.js +1 -1
  107. package/package.json +7 -3
@@ -0,0 +1,903 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Ember Protocol Vaults API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.VaultsApi = exports.VaultsApiFactory = exports.VaultsApiFp = exports.VaultsApiAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("../common");
24
+ // @ts-ignore
25
+ const base_1 = require("../base");
26
+ /**
27
+ * VaultsApi - axios parameter creator
28
+ */
29
+ const VaultsApiAxiosParamCreator = function (configuration) {
30
+ return {
31
+ /**
32
+ *
33
+ * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
34
+ * @param {number} [limit] The limit of the rows
35
+ * @param {HistoryInterval} [interval] The interval of the rows
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ getProtocolPnlHistory: async (limit, interval, options = {}) => {
40
+ const localVarPath = `/api/v1/vaults/pnl-history`;
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 (limit !== undefined) {
51
+ localVarQueryParameter["limit"] = limit;
52
+ }
53
+ if (interval !== undefined) {
54
+ localVarQueryParameter["interval"] = interval;
55
+ }
56
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = {
59
+ ...localVarHeaderParameter,
60
+ ...headersFromBaseOptions,
61
+ ...options.headers
62
+ };
63
+ return {
64
+ url: (0, common_1.toPathString)(localVarUrlObj),
65
+ options: localVarRequestOptions
66
+ };
67
+ },
68
+ /**
69
+ *
70
+ * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
71
+ * @param {number} [limit] The limit of the rows
72
+ * @param {HistoryInterval} [interval] The interval of the rows
73
+ * @param {*} [options] Override http request option.
74
+ * @throws {RequiredError}
75
+ */
76
+ getProtocolTvlHistory: async (limit, interval, options = {}) => {
77
+ const localVarPath = `/api/v1/vaults/tvl-history`;
78
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
79
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
80
+ let baseOptions;
81
+ if (configuration) {
82
+ baseOptions = configuration.baseOptions;
83
+ }
84
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
85
+ const localVarHeaderParameter = {};
86
+ const localVarQueryParameter = {};
87
+ if (limit !== undefined) {
88
+ localVarQueryParameter["limit"] = limit;
89
+ }
90
+ if (interval !== undefined) {
91
+ localVarQueryParameter["interval"] = interval;
92
+ }
93
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = {
96
+ ...localVarHeaderParameter,
97
+ ...headersFromBaseOptions,
98
+ ...options.headers
99
+ };
100
+ return {
101
+ url: (0, common_1.toPathString)(localVarUrlObj),
102
+ options: localVarRequestOptions
103
+ };
104
+ },
105
+ /**
106
+ *
107
+ * @summary Get raw events of the protocol
108
+ * @param {number} startTimeInMs The start time of the events
109
+ * @param {number} [endTimeInMs] The end time of the events
110
+ * @param {number} [limit] The limit of the events
111
+ * @param {number} [page] Use when provided time range and limit exceed max page size
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ */
115
+ getRawEvents: async (startTimeInMs, endTimeInMs, limit, page, options = {}) => {
116
+ // verify required parameter 'startTimeInMs' is not null or undefined
117
+ (0, common_1.assertParamExists)("getRawEvents", "startTimeInMs", startTimeInMs);
118
+ const localVarPath = `/api/v1/vaults/raw-events`;
119
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
120
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ let baseOptions;
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ }
125
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
126
+ const localVarHeaderParameter = {};
127
+ const localVarQueryParameter = {};
128
+ if (startTimeInMs !== undefined) {
129
+ localVarQueryParameter["startTimeInMs"] = startTimeInMs;
130
+ }
131
+ if (endTimeInMs !== undefined) {
132
+ localVarQueryParameter["endTimeInMs"] = endTimeInMs;
133
+ }
134
+ if (limit !== undefined) {
135
+ localVarQueryParameter["limit"] = limit;
136
+ }
137
+ if (page !== undefined) {
138
+ localVarQueryParameter["page"] = page;
139
+ }
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = {
143
+ ...localVarHeaderParameter,
144
+ ...headersFromBaseOptions,
145
+ ...options.headers
146
+ };
147
+ return {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions
150
+ };
151
+ },
152
+ /**
153
+ *
154
+ * @summary Get the exposure of the vault
155
+ * @param {string} vaultId The id of the vault
156
+ * @param {*} [options] Override http request option.
157
+ * @throws {RequiredError}
158
+ */
159
+ getVaultExposure: async (vaultId, options = {}) => {
160
+ // 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)));
163
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
+ let baseOptions;
166
+ if (configuration) {
167
+ baseOptions = configuration.baseOptions;
168
+ }
169
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
170
+ const localVarHeaderParameter = {};
171
+ const localVarQueryParameter = {};
172
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {
175
+ ...localVarHeaderParameter,
176
+ ...headersFromBaseOptions,
177
+ ...options.headers
178
+ };
179
+ return {
180
+ url: (0, common_1.toPathString)(localVarUrlObj),
181
+ options: localVarRequestOptions
182
+ };
183
+ },
184
+ /**
185
+ *
186
+ * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
187
+ * @param {string} vaultId The id of the vault
188
+ * @param {number} [limit] The limit of the rows
189
+ * @param {HistoryInterval} [interval] The interval of the rows
190
+ * @param {*} [options] Override http request option.
191
+ * @throws {RequiredError}
192
+ */
193
+ getVaultPnlHistory: async (vaultId, limit, interval, options = {}) => {
194
+ // 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)));
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
204
+ const localVarHeaderParameter = {};
205
+ const localVarQueryParameter = {};
206
+ if (limit !== undefined) {
207
+ localVarQueryParameter["limit"] = limit;
208
+ }
209
+ if (interval !== undefined) {
210
+ localVarQueryParameter["interval"] = interval;
211
+ }
212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = {
215
+ ...localVarHeaderParameter,
216
+ ...headersFromBaseOptions,
217
+ ...options.headers
218
+ };
219
+ return {
220
+ url: (0, common_1.toPathString)(localVarUrlObj),
221
+ options: localVarRequestOptions
222
+ };
223
+ },
224
+ /**
225
+ *
226
+ * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
227
+ * @param {string} vaultId The id of the vault
228
+ * @param {number} [limit] The limit of the rows
229
+ * @param {HistoryInterval} [interval] The interval of the rows
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ getVaultSharePriceHistory: async (vaultId, limit, interval, options = {}) => {
234
+ // 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)));
237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
238
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
+ let baseOptions;
240
+ if (configuration) {
241
+ baseOptions = configuration.baseOptions;
242
+ }
243
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
244
+ const localVarHeaderParameter = {};
245
+ const localVarQueryParameter = {};
246
+ if (limit !== undefined) {
247
+ localVarQueryParameter["limit"] = limit;
248
+ }
249
+ if (interval !== undefined) {
250
+ localVarQueryParameter["interval"] = interval;
251
+ }
252
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = {
255
+ ...localVarHeaderParameter,
256
+ ...headersFromBaseOptions,
257
+ ...options.headers
258
+ };
259
+ return {
260
+ url: (0, common_1.toPathString)(localVarUrlObj),
261
+ options: localVarRequestOptions
262
+ };
263
+ },
264
+ /**
265
+ *
266
+ * @summary Get the strategy of the vault
267
+ * @param {string} vaultId The id of the vault
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getVaultStrategy: async (vaultId, options = {}) => {
272
+ // 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)));
275
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
276
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
277
+ let baseOptions;
278
+ if (configuration) {
279
+ baseOptions = configuration.baseOptions;
280
+ }
281
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
282
+ const localVarHeaderParameter = {};
283
+ const localVarQueryParameter = {};
284
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
285
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
286
+ localVarRequestOptions.headers = {
287
+ ...localVarHeaderParameter,
288
+ ...headersFromBaseOptions,
289
+ ...options.headers
290
+ };
291
+ return {
292
+ url: (0, common_1.toPathString)(localVarUrlObj),
293
+ options: localVarRequestOptions
294
+ };
295
+ },
296
+ /**
297
+ *
298
+ * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
299
+ * @param {string} vaultId The id of the vault
300
+ * @param {number} [limit] The limit of the rows
301
+ * @param {HistoryInterval} [interval] The interval of the rows
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ getVaultTvlHistory: async (vaultId, limit, interval, options = {}) => {
306
+ // 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)));
309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
310
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
311
+ let baseOptions;
312
+ if (configuration) {
313
+ baseOptions = configuration.baseOptions;
314
+ }
315
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
316
+ const localVarHeaderParameter = {};
317
+ const localVarQueryParameter = {};
318
+ if (limit !== undefined) {
319
+ localVarQueryParameter["limit"] = limit;
320
+ }
321
+ if (interval !== undefined) {
322
+ localVarQueryParameter["interval"] = interval;
323
+ }
324
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = {
327
+ ...localVarHeaderParameter,
328
+ ...headersFromBaseOptions,
329
+ ...options.headers
330
+ };
331
+ return {
332
+ url: (0, common_1.toPathString)(localVarUrlObj),
333
+ options: localVarRequestOptions
334
+ };
335
+ },
336
+ /**
337
+ *
338
+ * @summary Get details for all vaults or a specific vault
339
+ * @param {string} [vaultId] The ID of the vault
340
+ * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
341
+ * @param {*} [options] Override http request option.
342
+ * @throws {RequiredError}
343
+ */
344
+ getVaults: async (vaultId, receiptCoinSymbol, options = {}) => {
345
+ const localVarPath = `/api/v1/vaults`;
346
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
347
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
348
+ let baseOptions;
349
+ if (configuration) {
350
+ baseOptions = configuration.baseOptions;
351
+ }
352
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
353
+ const localVarHeaderParameter = {};
354
+ const localVarQueryParameter = {};
355
+ if (vaultId !== undefined) {
356
+ localVarQueryParameter["vaultId"] = vaultId;
357
+ }
358
+ if (receiptCoinSymbol !== undefined) {
359
+ localVarQueryParameter["receiptCoinSymbol"] = receiptCoinSymbol;
360
+ }
361
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
+ localVarRequestOptions.headers = {
364
+ ...localVarHeaderParameter,
365
+ ...headersFromBaseOptions,
366
+ ...options.headers
367
+ };
368
+ return {
369
+ url: (0, common_1.toPathString)(localVarUrlObj),
370
+ options: localVarRequestOptions
371
+ };
372
+ },
373
+ /**
374
+ *
375
+ * @summary Get protocol info to initialize sdk
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ getVaultsProtocolInfo: async (options = {}) => {
380
+ const localVarPath = `/api/v1/vaults/info`;
381
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
382
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
383
+ let baseOptions;
384
+ if (configuration) {
385
+ baseOptions = configuration.baseOptions;
386
+ }
387
+ const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
388
+ const localVarHeaderParameter = {};
389
+ const localVarQueryParameter = {};
390
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
391
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
392
+ localVarRequestOptions.headers = {
393
+ ...localVarHeaderParameter,
394
+ ...headersFromBaseOptions,
395
+ ...options.headers
396
+ };
397
+ return {
398
+ url: (0, common_1.toPathString)(localVarUrlObj),
399
+ options: localVarRequestOptions
400
+ };
401
+ },
402
+ /**
403
+ *
404
+ * @summary Update the strategy of the vault
405
+ * @param {UpdateVaultStrategies} updateVaultStrategies
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ updateVaultStrategy: async (updateVaultStrategies, options = {}) => {
410
+ // verify required parameter 'updateVaultStrategies' is not null or undefined
411
+ (0, common_1.assertParamExists)("updateVaultStrategy", "updateVaultStrategies", updateVaultStrategies);
412
+ const localVarPath = `/api/v1/vaults/strategy`;
413
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
414
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
415
+ let baseOptions;
416
+ if (configuration) {
417
+ baseOptions = configuration.baseOptions;
418
+ }
419
+ const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
420
+ const localVarHeaderParameter = {};
421
+ const localVarQueryParameter = {};
422
+ localVarHeaderParameter["Content-Type"] = "application/json";
423
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
424
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
425
+ localVarRequestOptions.headers = {
426
+ ...localVarHeaderParameter,
427
+ ...headersFromBaseOptions,
428
+ ...options.headers
429
+ };
430
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVaultStrategies, localVarRequestOptions, configuration);
431
+ return {
432
+ url: (0, common_1.toPathString)(localVarUrlObj),
433
+ options: localVarRequestOptions
434
+ };
435
+ }
436
+ };
437
+ };
438
+ exports.VaultsApiAxiosParamCreator = VaultsApiAxiosParamCreator;
439
+ /**
440
+ * VaultsApi - functional programming interface
441
+ */
442
+ const VaultsApiFp = function (configuration) {
443
+ const localVarAxiosParamCreator = (0, exports.VaultsApiAxiosParamCreator)(configuration);
444
+ return {
445
+ /**
446
+ *
447
+ * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
448
+ * @param {number} [limit] The limit of the rows
449
+ * @param {HistoryInterval} [interval] The interval of the rows
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ async getProtocolPnlHistory(limit, interval, options) {
454
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolPnlHistory(limit, interval, options);
455
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
456
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolPnlHistory"]?.[localVarOperationServerIndex]?.url;
457
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
458
+ },
459
+ /**
460
+ *
461
+ * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
462
+ * @param {number} [limit] The limit of the rows
463
+ * @param {HistoryInterval} [interval] The interval of the rows
464
+ * @param {*} [options] Override http request option.
465
+ * @throws {RequiredError}
466
+ */
467
+ async getProtocolTvlHistory(limit, interval, options) {
468
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProtocolTvlHistory(limit, interval, options);
469
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
470
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getProtocolTvlHistory"]?.[localVarOperationServerIndex]?.url;
471
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
472
+ },
473
+ /**
474
+ *
475
+ * @summary Get raw events of the protocol
476
+ * @param {number} startTimeInMs The start time of the events
477
+ * @param {number} [endTimeInMs] The end time of the events
478
+ * @param {number} [limit] The limit of the events
479
+ * @param {number} [page] Use when provided time range and limit exceed max page size
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ async getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
484
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRawEvents(startTimeInMs, endTimeInMs, limit, page, options);
485
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
486
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getRawEvents"]?.[localVarOperationServerIndex]?.url;
487
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
488
+ },
489
+ /**
490
+ *
491
+ * @summary Get the exposure of the vault
492
+ * @param {string} vaultId The id of the vault
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ async getVaultExposure(vaultId, options) {
497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultExposure(vaultId, options);
498
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
499
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultExposure"]?.[localVarOperationServerIndex]?.url;
500
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
501
+ },
502
+ /**
503
+ *
504
+ * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
505
+ * @param {string} vaultId The id of the vault
506
+ * @param {number} [limit] The limit of the rows
507
+ * @param {HistoryInterval} [interval] The interval of the rows
508
+ * @param {*} [options] Override http request option.
509
+ * @throws {RequiredError}
510
+ */
511
+ async getVaultPnlHistory(vaultId, limit, interval, options) {
512
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultPnlHistory(vaultId, limit, interval, options);
513
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
514
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultPnlHistory"]?.[localVarOperationServerIndex]?.url;
515
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
516
+ },
517
+ /**
518
+ *
519
+ * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
520
+ * @param {string} vaultId The id of the vault
521
+ * @param {number} [limit] The limit of the rows
522
+ * @param {HistoryInterval} [interval] The interval of the rows
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ async getVaultSharePriceHistory(vaultId, limit, interval, options) {
527
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultSharePriceHistory(vaultId, limit, interval, options);
528
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
529
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultSharePriceHistory"]?.[localVarOperationServerIndex]?.url;
530
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
531
+ },
532
+ /**
533
+ *
534
+ * @summary Get the strategy of the vault
535
+ * @param {string} vaultId The id of the vault
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ async getVaultStrategy(vaultId, options) {
540
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultStrategy(vaultId, options);
541
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
542
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultStrategy"]?.[localVarOperationServerIndex]?.url;
543
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
544
+ },
545
+ /**
546
+ *
547
+ * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
548
+ * @param {string} vaultId The id of the vault
549
+ * @param {number} [limit] The limit of the rows
550
+ * @param {HistoryInterval} [interval] The interval of the rows
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ */
554
+ async getVaultTvlHistory(vaultId, limit, interval, options) {
555
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultTvlHistory(vaultId, limit, interval, options);
556
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
557
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultTvlHistory"]?.[localVarOperationServerIndex]?.url;
558
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
559
+ },
560
+ /**
561
+ *
562
+ * @summary Get details for all vaults or a specific vault
563
+ * @param {string} [vaultId] The ID of the vault
564
+ * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
565
+ * @param {*} [options] Override http request option.
566
+ * @throws {RequiredError}
567
+ */
568
+ async getVaults(vaultId, receiptCoinSymbol, options) {
569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaults(vaultId, receiptCoinSymbol, options);
570
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
571
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaults"]?.[localVarOperationServerIndex]
572
+ ?.url;
573
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
574
+ },
575
+ /**
576
+ *
577
+ * @summary Get protocol info to initialize sdk
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ async getVaultsProtocolInfo(options) {
582
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVaultsProtocolInfo(options);
583
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
584
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.getVaultsProtocolInfo"]?.[localVarOperationServerIndex]?.url;
585
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
586
+ },
587
+ /**
588
+ *
589
+ * @summary Update the strategy of the vault
590
+ * @param {UpdateVaultStrategies} updateVaultStrategies
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ async updateVaultStrategy(updateVaultStrategies, options) {
595
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVaultStrategy(updateVaultStrategies, options);
596
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
597
+ const localVarOperationServerBasePath = base_1.operationServerMap["VaultsApi.updateVaultStrategy"]?.[localVarOperationServerIndex]?.url;
598
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
599
+ }
600
+ };
601
+ };
602
+ exports.VaultsApiFp = VaultsApiFp;
603
+ /**
604
+ * VaultsApi - factory interface
605
+ */
606
+ const VaultsApiFactory = function (configuration, basePath, axios) {
607
+ const localVarFp = (0, exports.VaultsApiFp)(configuration);
608
+ return {
609
+ /**
610
+ *
611
+ * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
612
+ * @param {number} [limit] The limit of the rows
613
+ * @param {HistoryInterval} [interval] The interval of the rows
614
+ * @param {*} [options] Override http request option.
615
+ * @throws {RequiredError}
616
+ */
617
+ getProtocolPnlHistory(limit, interval, options) {
618
+ return localVarFp
619
+ .getProtocolPnlHistory(limit, interval, options)
620
+ .then(request => request(axios, basePath));
621
+ },
622
+ /**
623
+ *
624
+ * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
625
+ * @param {number} [limit] The limit of the rows
626
+ * @param {HistoryInterval} [interval] The interval of the rows
627
+ * @param {*} [options] Override http request option.
628
+ * @throws {RequiredError}
629
+ */
630
+ getProtocolTvlHistory(limit, interval, options) {
631
+ return localVarFp
632
+ .getProtocolTvlHistory(limit, interval, options)
633
+ .then(request => request(axios, basePath));
634
+ },
635
+ /**
636
+ *
637
+ * @summary Get raw events of the protocol
638
+ * @param {number} startTimeInMs The start time of the events
639
+ * @param {number} [endTimeInMs] The end time of the events
640
+ * @param {number} [limit] The limit of the events
641
+ * @param {number} [page] Use when provided time range and limit exceed max page size
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ getRawEvents(startTimeInMs, endTimeInMs, limit, page, options) {
646
+ return localVarFp
647
+ .getRawEvents(startTimeInMs, endTimeInMs, limit, page, options)
648
+ .then(request => request(axios, basePath));
649
+ },
650
+ /**
651
+ *
652
+ * @summary Get the exposure of the vault
653
+ * @param {string} vaultId The id of the vault
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ getVaultExposure(vaultId, options) {
658
+ return localVarFp
659
+ .getVaultExposure(vaultId, options)
660
+ .then(request => request(axios, basePath));
661
+ },
662
+ /**
663
+ *
664
+ * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
665
+ * @param {string} vaultId The id of the vault
666
+ * @param {number} [limit] The limit of the rows
667
+ * @param {HistoryInterval} [interval] The interval of the rows
668
+ * @param {*} [options] Override http request option.
669
+ * @throws {RequiredError}
670
+ */
671
+ getVaultPnlHistory(vaultId, limit, interval, options) {
672
+ return localVarFp
673
+ .getVaultPnlHistory(vaultId, limit, interval, options)
674
+ .then(request => request(axios, basePath));
675
+ },
676
+ /**
677
+ *
678
+ * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
679
+ * @param {string} vaultId The id of the vault
680
+ * @param {number} [limit] The limit of the rows
681
+ * @param {HistoryInterval} [interval] The interval of the rows
682
+ * @param {*} [options] Override http request option.
683
+ * @throws {RequiredError}
684
+ */
685
+ getVaultSharePriceHistory(vaultId, limit, interval, options) {
686
+ return localVarFp
687
+ .getVaultSharePriceHistory(vaultId, limit, interval, options)
688
+ .then(request => request(axios, basePath));
689
+ },
690
+ /**
691
+ *
692
+ * @summary Get the strategy of the vault
693
+ * @param {string} vaultId The id of the vault
694
+ * @param {*} [options] Override http request option.
695
+ * @throws {RequiredError}
696
+ */
697
+ getVaultStrategy(vaultId, options) {
698
+ return localVarFp
699
+ .getVaultStrategy(vaultId, options)
700
+ .then(request => request(axios, basePath));
701
+ },
702
+ /**
703
+ *
704
+ * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
705
+ * @param {string} vaultId The id of the vault
706
+ * @param {number} [limit] The limit of the rows
707
+ * @param {HistoryInterval} [interval] The interval of the rows
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ getVaultTvlHistory(vaultId, limit, interval, options) {
712
+ return localVarFp
713
+ .getVaultTvlHistory(vaultId, limit, interval, options)
714
+ .then(request => request(axios, basePath));
715
+ },
716
+ /**
717
+ *
718
+ * @summary Get details for all vaults or a specific vault
719
+ * @param {string} [vaultId] The ID of the vault
720
+ * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ getVaults(vaultId, receiptCoinSymbol, options) {
725
+ return localVarFp
726
+ .getVaults(vaultId, receiptCoinSymbol, options)
727
+ .then(request => request(axios, basePath));
728
+ },
729
+ /**
730
+ *
731
+ * @summary Get protocol info to initialize sdk
732
+ * @param {*} [options] Override http request option.
733
+ * @throws {RequiredError}
734
+ */
735
+ getVaultsProtocolInfo(options) {
736
+ return localVarFp
737
+ .getVaultsProtocolInfo(options)
738
+ .then(request => request(axios, basePath));
739
+ },
740
+ /**
741
+ *
742
+ * @summary Update the strategy of the vault
743
+ * @param {UpdateVaultStrategies} updateVaultStrategies
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ updateVaultStrategy(updateVaultStrategies, options) {
748
+ return localVarFp
749
+ .updateVaultStrategy(updateVaultStrategies, options)
750
+ .then(request => request(axios, basePath));
751
+ }
752
+ };
753
+ };
754
+ exports.VaultsApiFactory = VaultsApiFactory;
755
+ /**
756
+ * VaultsApi - object-oriented interface
757
+ */
758
+ class VaultsApi extends base_1.BaseAPI {
759
+ /**
760
+ *
761
+ * @summary Get the pnl history of the protocol (1h, 1d, 1w, 1mon) descending by time
762
+ * @param {number} [limit] The limit of the rows
763
+ * @param {HistoryInterval} [interval] The interval of the rows
764
+ * @param {*} [options] Override http request option.
765
+ * @throws {RequiredError}
766
+ */
767
+ getProtocolPnlHistory(limit, interval, options) {
768
+ return (0, exports.VaultsApiFp)(this.configuration)
769
+ .getProtocolPnlHistory(limit, interval, options)
770
+ .then(request => request(this.axios, this.basePath));
771
+ }
772
+ /**
773
+ *
774
+ * @summary Get the tvl history of the protocol (1h, 1d, 1w, 1mon) descending by time
775
+ * @param {number} [limit] The limit of the rows
776
+ * @param {HistoryInterval} [interval] The interval of the rows
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ getProtocolTvlHistory(limit, interval, options) {
781
+ return (0, exports.VaultsApiFp)(this.configuration)
782
+ .getProtocolTvlHistory(limit, interval, options)
783
+ .then(request => request(this.axios, this.basePath));
784
+ }
785
+ /**
786
+ *
787
+ * @summary Get raw events of the protocol
788
+ * @param {number} startTimeInMs The start time of the events
789
+ * @param {number} [endTimeInMs] The end time of the events
790
+ * @param {number} [limit] The limit of the events
791
+ * @param {number} [page] Use when provided time range and limit exceed max page size
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ */
795
+ 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));
799
+ }
800
+ /**
801
+ *
802
+ * @summary Get the exposure of the vault
803
+ * @param {string} vaultId The id of the vault
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ getVaultExposure(vaultId, options) {
808
+ return (0, exports.VaultsApiFp)(this.configuration)
809
+ .getVaultExposure(vaultId, options)
810
+ .then(request => request(this.axios, this.basePath));
811
+ }
812
+ /**
813
+ *
814
+ * @summary Get the pnl history of the vault (1h, 1d, 1w, 1mon) descending by time
815
+ * @param {string} vaultId The id of the vault
816
+ * @param {number} [limit] The limit of the rows
817
+ * @param {HistoryInterval} [interval] The interval of the rows
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ */
821
+ 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));
825
+ }
826
+ /**
827
+ *
828
+ * @summary Get the share price history of the vault (1h, 1d, 1w, 1mon) descending by time
829
+ * @param {string} vaultId The id of the vault
830
+ * @param {number} [limit] The limit of the rows
831
+ * @param {HistoryInterval} [interval] The interval of the rows
832
+ * @param {*} [options] Override http request option.
833
+ * @throws {RequiredError}
834
+ */
835
+ 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));
839
+ }
840
+ /**
841
+ *
842
+ * @summary Get the strategy of the vault
843
+ * @param {string} vaultId The id of the vault
844
+ * @param {*} [options] Override http request option.
845
+ * @throws {RequiredError}
846
+ */
847
+ getVaultStrategy(vaultId, options) {
848
+ return (0, exports.VaultsApiFp)(this.configuration)
849
+ .getVaultStrategy(vaultId, options)
850
+ .then(request => request(this.axios, this.basePath));
851
+ }
852
+ /**
853
+ *
854
+ * @summary Get the tvl history of the vault (1h, 1d, 1w, 1mon) descending by time
855
+ * @param {string} vaultId The id of the vault
856
+ * @param {number} [limit] The limit of the rows
857
+ * @param {HistoryInterval} [interval] The interval of the rows
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ */
861
+ 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));
865
+ }
866
+ /**
867
+ *
868
+ * @summary Get details for all vaults or a specific vault
869
+ * @param {string} [vaultId] The ID of the vault
870
+ * @param {string} [receiptCoinSymbol] The receipt coin symbol of the vault
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ getVaults(vaultId, receiptCoinSymbol, options) {
875
+ return (0, exports.VaultsApiFp)(this.configuration)
876
+ .getVaults(vaultId, receiptCoinSymbol, options)
877
+ .then(request => request(this.axios, this.basePath));
878
+ }
879
+ /**
880
+ *
881
+ * @summary Get protocol info to initialize sdk
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ */
885
+ getVaultsProtocolInfo(options) {
886
+ return (0, exports.VaultsApiFp)(this.configuration)
887
+ .getVaultsProtocolInfo(options)
888
+ .then(request => request(this.axios, this.basePath));
889
+ }
890
+ /**
891
+ *
892
+ * @summary Update the strategy of the vault
893
+ * @param {UpdateVaultStrategies} updateVaultStrategies
894
+ * @param {*} [options] Override http request option.
895
+ * @throws {RequiredError}
896
+ */
897
+ updateVaultStrategy(updateVaultStrategies, options) {
898
+ return (0, exports.VaultsApiFp)(this.configuration)
899
+ .updateVaultStrategy(updateVaultStrategies, options)
900
+ .then(request => request(this.axios, this.basePath));
901
+ }
902
+ }
903
+ exports.VaultsApi = VaultsApi;