gatelineAPI reference

How a portfolio gets its parts. A caller holding a cache passes its own readers, so a run whose refs have not moved is not summarized again (#461).

interface PortfolioReaders {
    listRuns?: (source: RunSource) => Promise<RunRef[]>;
    summarize?: (
        source: RunSource,
        ref: RunRef,
    ) => Promise<{ items: InboxItem[]; summary: RunSummary }>;
}

Properties

listRuns?: (source: RunSource) => Promise<RunRef[]>
summarize?: (
    source: RunSource,
    ref: RunRef,
) => Promise<{ items: InboxItem[]; summary: RunSummary }>