@playlive/react-pipeline
    Preparing search index...

    Interface PipelineDonationSumResult

    Return shape of usePipelineDonationSum. Mirrors the GET /schedules/campaigns/{id}/raised REST response so overlay code can trivially combine baseline + delta without shape juggling.

    interface PipelineDonationSumResult {
        byCurrency: PipelineDonationSumByCurrency[];
        currency: string | null;
        donationCount: number;
        raised: number | null;
    }
    Index

    Per-currency breakdown sorted by summed amount desc.

    currency: string | null

    Currency of the scalar raised when single-currency. null for empty windows or multi-currency windows.

    donationCount: number

    Total number of donations counted across all currencies.

    raised: number | null

    Scalar total when the window resolves to a single currency (either because options.currency is set, or because only one currency showed up in the WS stream). null when the window spans multiple currencies — read byCurrency in that case.