@fabriktor/fx 0.0.132 → 0.0.133

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.
@@ -69,6 +69,7 @@ export type PayableEntityBalance = EntityPayments & {
69
69
  export type SearchPayableEntitiesOptions = SearchOptions & {
70
70
  owner_id: string;
71
71
  type: PayableEntityType;
72
+ include_pending?: boolean;
72
73
  };
73
74
  export type ResolvePayableEntityOptions = {
74
75
  owner_id: string;
@@ -285,7 +285,8 @@ export class PaymentsFX {
285
285
  entities,
286
286
  signal: opts.signal,
287
287
  });
288
- const results = balances.flatMap((balance, index) => balance.remaining_amount > 0 && !balance.has_pending
288
+ const results = balances.flatMap((balance, index) => balance.remaining_amount > 0 &&
289
+ (opts.include_pending || !balance.has_pending)
289
290
  ? [{ ...balance, entity: entities[index] }]
290
291
  : []);
291
292
  if (results.length || source.done) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabriktor/fx",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "description": "![Fabriktor Logo](./img/fabriktor-character.gif)",
5
5
  "type": "module",
6
6
  "exports": {