Type Alias AdminSiteAnnouncement

AdminSiteAnnouncement: {
    announcementId: string;
    body: string;
    createdAt: string;
    createdBy: string;
    dismissible: boolean;
    endsAt: string | null;
    isActive: boolean;
    isPublished: boolean;
    linkLabel: string | null;
    linkUrl: string | null;
    pinned: boolean;
    postToDiscord: boolean;
    postedToDiscordAt: string | null;
    severity: SiteAnnouncementSeverity;
    showAsBanner: boolean;
    showInFeed: boolean;
    startsAt: string | null;
    title: string;
    updatedAt: string;
}

The developers' view of an announcement: every field, dates as ISO.

Type declaration

  • announcementId: string
  • body: string
  • createdAt: string
  • createdBy: string
  • dismissible: boolean
  • endsAt: string | null
  • isActive: boolean

    Published and inside its window right now.

  • isPublished: boolean
  • linkLabel: string | null
  • linkUrl: string | null
  • pinned: boolean
  • postToDiscord: boolean
  • postedToDiscordAt: string | null
  • severity: SiteAnnouncementSeverity
  • showAsBanner: boolean
  • showInFeed: boolean
  • startsAt: string | null
  • title: string
  • updatedAt: string