interface DigestContent

Passed to renderDigestEmail by digest-service.ts. Each section is null when it has nothing to show, and is left out; the service sends nothing when all of them are.

Properties

from: Date

The period covered, from from to to.

to: Date
reader: string
activity:
{ counts: Partial<Record<ActivityKind, number>>; highlights: DigestHighlight[]; total: number; }
| null

Weekly only.

network: { dumps: DigestDump[]; more: number; } | null

Weekly only.

community:
{ members: { username: string; invitedBy: string | null; }[]; membersMore: number; playlists: { title: string; url: string; owner: string; dumps: number; }[]; playlistsMore: number; chatMessages: number; totals: { dumps: number; upvotes: number; comments: number; }; }
| null

Usage

import { type DigestContent } from "api/mail/digest.ts";