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

    Admin-only reads + rename for the virtual_account_provider reference table.

    The table is a small, fixed reference set: the seeded integrated providers (victor / bivo / route_fusion) plus the canonical manual provider. Rows are never minted or deleted here — only the display label (name) is mutable. type is the route-matcher discriminator and externalId is referenced across routes, audits, and account rows, so neither is editable.

    Index
    • Searches providers with the count of live (non-deleted) virtual accounts each backs, ordered by name. The soft-delete filter sits in the join's ON clause so providers backing zero accounts still appear with accountCount = 0. count(*) OVER () counts the grouped rows, so total is the number of matching providers. The table is a small fixed reference set with no timestamps, so the default page size returns every row.

      Parameters

      • args: {
            ids?: string[];
            page?: number;
            pageSize?: number;
            types?: ("ROUTE_FUSION" | "VICTOR" | "BIVO" | "MANUAL")[];
        } = {}
        • Optionalids?: string[]
        • Optionalpage?: number

          Defaults to 1

        • OptionalpageSize?: number

          Defaults to 50

        • Optionaltypes?: ("ROUTE_FUSION" | "VICTOR" | "BIVO" | "MANUAL")[]

      Returns Promise<
          {
              ok: true;
              value: {
                  hasNext: boolean;
                  items: (VirtualAccountProvider & { accountCount: number })[];
                  total: number;
              };
          },
      >