import { DbEntity, MultilineText, Username } from "./shared.mjs"; export type ObvestiloSeverity = "info" | "important" | "critical"; export interface Obvestilo extends DbEntity { _id: string; key?: string; title?: string; text?: string; to?: string; /** text for navigation link */ cta?: string; icon?: string; sender: Username; date: Date; /** in specified, limit to the following users */ forUsers?: Username[]; /** list of users that have seen the news */ seenByUsers?: { user: Username; date: Date; }[]; /** list of users that don't wanto to see the news any more */ trashedByUsers?: { [user: Username]: Date; }[]; /** user responsed */ odgovori?: Record; /** don't show before this date */ validFrom?: Date; /** don't show after this date */ validUntil?: Date; severity: ObvestiloSeverity; log: MultilineText; removeCriteria?: "userPwdSet" | "7days" | "dayAfterSeen"; } //# sourceMappingURL=Obvestilo.d.mts.map