@gbozee/ultimate 0.0.2-178 → 0.0.2-179

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.cjs CHANGED
@@ -54705,14 +54705,14 @@ class AppDatabase {
54705
54705
  return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
54706
54706
  }
54707
54707
  async fetchCentralPositions(payload) {
54708
- const { asset: assetName, symbol } = payload;
54708
+ const { asset: assetName, symbol, customFilter = "" } = payload;
54709
54709
  const pb = this.pb;
54710
54710
  let symbolFilter = assetName ? `symbol ~ "${assetName}"` : `symbol = "${symbol}"`;
54711
54711
  if (this.email) {
54712
54712
  symbolFilter = `${symbolFilter} && p_account.user.email="${this.email}"`;
54713
54713
  }
54714
54714
  let positionsWithAssetName = await pb.collection("positions_view").getFullList({
54715
- filter: symbolFilter,
54715
+ filter: `${symbolFilter}${customFilter}`,
54716
54716
  expand: this.positionExpand
54717
54717
  });
54718
54718
  return positionsWithAssetName;
package/dist/index.d.ts CHANGED
@@ -668,6 +668,7 @@ export declare class AppDatabase {
668
668
  fetchCentralPositions(payload: {
669
669
  asset?: string;
670
670
  symbol?: string;
671
+ customFilter?: string;
671
672
  }): Promise<import("pocketbase").RecordModel[]>;
672
673
  getPositions(options: {
673
674
  account?: ExchangeType;
package/dist/index.js CHANGED
@@ -54643,14 +54643,14 @@ class AppDatabase {
54643
54643
  return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
54644
54644
  }
54645
54645
  async fetchCentralPositions(payload) {
54646
- const { asset: assetName, symbol } = payload;
54646
+ const { asset: assetName, symbol, customFilter = "" } = payload;
54647
54647
  const pb = this.pb;
54648
54648
  let symbolFilter = assetName ? `symbol ~ "${assetName}"` : `symbol = "${symbol}"`;
54649
54649
  if (this.email) {
54650
54650
  symbolFilter = `${symbolFilter} && p_account.user.email="${this.email}"`;
54651
54651
  }
54652
54652
  let positionsWithAssetName = await pb.collection("positions_view").getFullList({
54653
- filter: symbolFilter,
54653
+ filter: `${symbolFilter}${customFilter}`,
54654
54654
  expand: this.positionExpand
54655
54655
  });
54656
54656
  return positionsWithAssetName;
@@ -61399,14 +61399,14 @@ class AppDatabase {
61399
61399
  return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
61400
61400
  }
61401
61401
  async fetchCentralPositions(payload) {
61402
- const { asset: assetName, symbol } = payload;
61402
+ const { asset: assetName, symbol, customFilter = "" } = payload;
61403
61403
  const pb = this.pb;
61404
61404
  let symbolFilter = assetName ? `symbol ~ "${assetName}"` : `symbol = "${symbol}"`;
61405
61405
  if (this.email) {
61406
61406
  symbolFilter = `${symbolFilter} && p_account.user.email="${this.email}"`;
61407
61407
  }
61408
61408
  let positionsWithAssetName = await pb.collection("positions_view").getFullList({
61409
- filter: symbolFilter,
61409
+ filter: `${symbolFilter}${customFilter}`,
61410
61410
  expand: this.positionExpand
61411
61411
  });
61412
61412
  return positionsWithAssetName;
@@ -61372,14 +61372,14 @@ class AppDatabase {
61372
61372
  return "b_config, account_strategy, p_account, proxy, compound_instance.ref,support";
61373
61373
  }
61374
61374
  async fetchCentralPositions(payload) {
61375
- const { asset: assetName, symbol } = payload;
61375
+ const { asset: assetName, symbol, customFilter = "" } = payload;
61376
61376
  const pb = this.pb;
61377
61377
  let symbolFilter = assetName ? `symbol ~ "${assetName}"` : `symbol = "${symbol}"`;
61378
61378
  if (this.email) {
61379
61379
  symbolFilter = `${symbolFilter} && p_account.user.email="${this.email}"`;
61380
61380
  }
61381
61381
  let positionsWithAssetName = await pb.collection("positions_view").getFullList({
61382
- filter: symbolFilter,
61382
+ filter: `${symbolFilter}${customFilter}`,
61383
61383
  expand: this.positionExpand
61384
61384
  });
61385
61385
  return positionsWithAssetName;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-178",
4
+ "version": "0.0.2-179",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",