Skip to content

Interface: MessageDocument ​

Defined in: types/firestore.ts:178

Message Document Schema (inside /groups/{groupId}/messages)

Properties ​

chapter? ​

optional chapter?: string

Defined in: types/firestore.ts:194


clientTimestamp? ​

optional clientTimestamp?: number

Defined in: types/firestore.ts:214


comment? ​

optional comment?: string

Defined in: types/firestore.ts:195


createdAt ​

createdAt: FirestoreTimestamp

Defined in: types/firestore.ts:184


editedAt? ​

optional editedAt?: FirestoreTimestamp

Defined in: types/firestore.ts:199


expireAt? ​

optional expireAt?: FirestoreTimestamp

Defined in: types/firestore.ts:215


id? ​

optional id?: string

Defined in: types/firestore.ts:179


isEdited? ​

optional isEdited?: boolean

Defined in: types/firestore.ts:200


isEntry? ​

optional isEntry?: boolean

Defined in: types/firestore.ts:192


isNote? ​

optional isNote?: boolean

Defined in: types/firestore.ts:191


isSystemMessage? ​

optional isSystemMessage?: boolean

Defined in: types/firestore.ts:187


messageData? ​

optional messageData?: Record<string, string | number>

Defined in: types/firestore.ts:212


messageType? ​

optional messageType?: "text" | "streakAnnouncement" | "notePostedAnnouncement" | "aiNotePostedAnnouncement" | "studyNote" | "system" | "userJoined" | "userLeft" | "userKicked" | "unityAnnouncement" | "inactivityRemoval"

Defined in: types/firestore.ts:188


optimisticId? ​

optional optimisticId?: string

Defined in: types/firestore.ts:213


originalNoteId? ​

optional originalNoteId?: string

Defined in: types/firestore.ts:196


reactionPreviews? ​

optional reactionPreviews?: Record<string, ReactionPreview[]>

Defined in: types/firestore.ts:210


reactions? ​

optional reactions?: Record<string, string[]>

Defined in: types/firestore.ts:209


replyTo? ​

optional replyTo?: string | { id: string; isNote: boolean; senderNickname: string; text: string; } | null

Defined in: types/firestore.ts:201


scripture? ​

optional scripture?: string

Defined in: types/firestore.ts:193


senderId ​

senderId: string

Defined in: types/firestore.ts:181


senderNickname? ​

optional senderNickname?: string

Defined in: types/firestore.ts:182


senderPhotoURL? ​

optional senderPhotoURL?: string | null

Defined in: types/firestore.ts:183


text ​

text: string

Defined in: types/firestore.ts:180


translations? ​

optional translations?: Record<string, string>

Defined in: types/firestore.ts:211

Released under the MIT License.