verdnatura-chat/app/definitions/IThread.ts

46 lines
927 B
TypeScript

import Model from '@nozbe/watermelondb/Model';
import { IAttachment } from './IAttachment';
import { IMention } from './IMention';
import { IReaction } from './IReaction';
import { RoomType } from './IRoom';
import { IUrl } from './IUrl';
export interface IThread {
id: string;
msg: string;
t: RoomType;
rid: string;
_updatedAt: Date;
ts: Date;
u: { _id: string; username: string; name: string };
alias: any;
parseUrls: any;
groupable: boolean;
avatar: string;
emoji: any;
attachments: IAttachment[];
urls: IUrl[];
status: number;
pinned: boolean;
starred: boolean;
editedBy: { username: string };
reactions: IReaction[];
role: string;
drid: string;
dcount: number;
dlm: number;
tmid: string;
tcount: number;
tlm: Date;
replies: string[];
mentions: IMention[];
channels: [];
unread: boolean;
autoTranslate: boolean;
translations: any;
e2e: any;
}
export type TThreadModel = IThread & Model;