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

    Owns deposit-quote-search. A quote write also busts deposit-search, held as a writer-only instance because single inheritance rules out extending both.

    Hierarchy (View Summary)

    Index
    cache: ServiceCache<CachedSearchPage<DepositQuote>>
    • Clear each customer's membership tag and each record tag wherever cached, and always this namespace's collection tag. keys are exact deletes in this instance's key space: the only bust a null client honours.

      Parameters

      • __namedParameters: {
            customerIds: readonly string[];
            keys?: readonly CacheKey[];
            records?: readonly string[];
        }

      Returns Promise<void>

    • Bust after a write to an existing quote: its pages and its deposit's.

      Parameters

      • __namedParameters: { customerId: string; keys: readonly CacheKey[] }

      Returns Promise<void>

    • Tags for a page: the scope its query searched (each customer's membership tag, else the collection tag), so an empty page is bustable too, plus the records it projects and the fields that chose or ordered its rows.

      Parameters

      • __namedParameters: {
            customerIds: readonly string[] | undefined;
            fields?: readonly string[];
            records?: readonly string[];
        }

      Returns string[]

    • The key DepositQuoteService.get reads through (search's page default included).

      Parameters

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

      Returns CacheKey