@interest-protocol/vortex-sdk 10.0.0 → 11.0.0
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.
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -2
- package/dist/index.mjs.map +1 -1
- package/dist/vortex-api.d.ts +3 -2
- package/dist/vortex-api.d.ts.map +1 -1
- package/dist/vortex-api.types.d.ts +16 -0
- package/dist/vortex-api.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/vortex-api.ts +31 -2
- package/src/vortex-api.types.ts +19 -0
package/dist/index.js
CHANGED
|
@@ -39588,8 +39588,11 @@ class VortexAPI {
|
|
|
39588
39588
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39589
39589
|
return response;
|
|
39590
39590
|
}
|
|
39591
|
-
async getAccounts(
|
|
39592
|
-
const params = new URLSearchParams({ hashed_secret: hashedSecret });
|
|
39591
|
+
async getAccounts(args) {
|
|
39592
|
+
const params = new URLSearchParams({ hashed_secret: args.hashedSecret });
|
|
39593
|
+
if (args.excludeHidden !== undefined) {
|
|
39594
|
+
params.set('exclude_hidden', args.excludeHidden.toString());
|
|
39595
|
+
}
|
|
39593
39596
|
const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_get).call(this, `/api/v1/accounts?${params.toString()}`);
|
|
39594
39597
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39595
39598
|
return response;
|
|
@@ -39602,6 +39605,18 @@ class VortexAPI {
|
|
|
39602
39605
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39603
39606
|
return response;
|
|
39604
39607
|
}
|
|
39608
|
+
async hideAccounts(args) {
|
|
39609
|
+
const body = {};
|
|
39610
|
+
if (args.accountObjectIds) {
|
|
39611
|
+
body.accountObjectIds = args.accountObjectIds;
|
|
39612
|
+
}
|
|
39613
|
+
if (args.hashedSecret) {
|
|
39614
|
+
body.hashedSecret = args.hashedSecret;
|
|
39615
|
+
}
|
|
39616
|
+
const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_post).call(this, '/api/v1/accounts/hide', body, args.apiKey);
|
|
39617
|
+
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39618
|
+
return response;
|
|
39619
|
+
}
|
|
39605
39620
|
async getPools(args = {}) {
|
|
39606
39621
|
const params = new URLSearchParams();
|
|
39607
39622
|
if (args.page) {
|