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

    The products an entity can use, per the route engine and independent of any one request: a live product with a route whose matchers accept the entity and whose winning activation rule approves. quote() still has the final say.

    Hierarchy (View Summary)

    Index
    db: B2bDatabase
    routeService: ProductRouteService
    instance: (...args: []) => ProductService = ...

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

    • One statement. Always paginated (pageSize defaults to 50); page with searchIterator. Resolved as ledger-account sourced, as every CFX product flow is. An entity that is not the customer's yields no products.

      Parameters

      • __namedParameters: ProductFilters & {
            customerId: string;
            entityId: string;
            page?: number;
            pageSize?: number;
            regionCode?: string;
        }
        • customerId: string
        • entityId: string
        • Optionalpage?: number
        • OptionalpageSize?: number
        • OptionalregionCode?: string

          Route criterion for products gated by region.

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