@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.mjs
CHANGED
|
@@ -39586,8 +39586,11 @@ class VortexAPI {
|
|
|
39586
39586
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39587
39587
|
return response;
|
|
39588
39588
|
}
|
|
39589
|
-
async getAccounts(
|
|
39590
|
-
const params = new URLSearchParams({ hashed_secret: hashedSecret });
|
|
39589
|
+
async getAccounts(args) {
|
|
39590
|
+
const params = new URLSearchParams({ hashed_secret: args.hashedSecret });
|
|
39591
|
+
if (args.excludeHidden !== undefined) {
|
|
39592
|
+
params.set('exclude_hidden', args.excludeHidden.toString());
|
|
39593
|
+
}
|
|
39591
39594
|
const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_get).call(this, `/api/v1/accounts?${params.toString()}`);
|
|
39592
39595
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39593
39596
|
return response;
|
|
@@ -39600,6 +39603,18 @@ class VortexAPI {
|
|
|
39600
39603
|
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39601
39604
|
return response;
|
|
39602
39605
|
}
|
|
39606
|
+
async hideAccounts(args) {
|
|
39607
|
+
const body = {};
|
|
39608
|
+
if (args.accountObjectIds) {
|
|
39609
|
+
body.accountObjectIds = args.accountObjectIds;
|
|
39610
|
+
}
|
|
39611
|
+
if (args.hashedSecret) {
|
|
39612
|
+
body.hashedSecret = args.hashedSecret;
|
|
39613
|
+
}
|
|
39614
|
+
const response = await __classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_post).call(this, '/api/v1/accounts/hide', body, args.apiKey);
|
|
39615
|
+
__classPrivateFieldGet(this, _VortexAPI_instances, "m", _VortexAPI_assertSuccess).call(this, response);
|
|
39616
|
+
return response;
|
|
39617
|
+
}
|
|
39603
39618
|
async getPools(args = {}) {
|
|
39604
39619
|
const params = new URLSearchParams();
|
|
39605
39620
|
if (args.page) {
|