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

    The read model the 11 sending apps use to look up stored email-template copy (docs/proposals/EMAIL_TEMPLATES.md §4.5). One cached search surface, keyed by the filters a caller actually passes; EmailTemplateAdminService busts it after every write through the shared email-template-search tag vocabulary.

    This service exposes the send projection (ActiveEmailTemplate, pinned to the active version). EmailTemplateAdminService exposes the authoring projection over the same namespace but a separate key prefix, because an identical filter object means a different value under the two definitions (CACHING.md §6).

    Index
    instance: (...args: []) => EmailTemplateService = ...

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

    • Returns only variants with a live version. An empty items for a requested key means that variant is switched off, and the caller decides the fallback.

      Parameters

      • input: {
            keys?: readonly (
                | "IDENTITY"
                | "ORGANIZATION"
                | "LEDGER_ACCOUNT"
                | "PAYMENT_INSTRUMENT"
                | "DEPOSIT"
                | "WITHDRAW"
                | "TRANSFER"
                | "CARD_TRANSACTION"
                | "INVOICE"
                | "RECEIPT"
                | "AUTH"
                | "APPLICATION"
            )[];
            page?: number;
            pageSize?: number;
            statusVariants?: readonly string[];
        }

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