@cfxlabsinc/b2b-services
    Preparing search index...

    Hierarchy (View Summary)

    Index
    bankAdminService: BankAdminService
    cache: ServiceCache<{ hasNext: boolean; items: DepositBankMemoSearchItem[] }>
    db: B2bDatabase
    instance: (...args: []) => DepositBankMemoQueryService = ...

    The process default: built from each dependency's own instance().

    • Parameters

      • __namedParameters: {
            customerId: string;
            includeDeleted?: boolean;
            memo: string;
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
        }

      Returns Promise<
          {
              ok: true;
              value: | (
                  DepositBankMemo & { entityId: string; entityName: string; entityReferenceId: string | null; ledgerAccountName: string | null; }
              )
              | null;
          },
      >

    • Busts one customer's cached searches by their membership tag, and the memo's folded get keys, the one bust a null client honours. Called by the writers after create and delete: DepositBankMemoService and DepositBankMemoAdminService.delete.

      Parameters

      • __namedParameters: { customerId: string; memo: string }

      Returns Promise<void>

    • Parameters

      • __namedParameters: DepositBankMemoSearchArgs & {
            tx?: PgAsyncTransaction<NodePgQueryResultHKT, EmptyRelations>;
        }

      Returns Promise<
          {
              ok: true;
              value: { hasNext: boolean; items: DepositBankMemoSearchItem[] };
          },
      >