mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
chore(typings): Moved common typings to root dir
This commit is contained in:
1 parent
378830245d
commit
f0c5e5101e
47 files changed
+41
-46
No files matched your search
@@ -0,0 +1,43 @@
|
||||
export interface Message {
|
||||
id: number;
|
||||
message: string;
|
||||
user_identifier: string;
|
||||
phone_number: string;
|
||||
groupId?: string;
|
||||
display?: string;
|
||||
avatar?: string;
|
||||
isRead: boolean;
|
||||
isMine: boolean;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface MessageGroup {
|
||||
groupId: string;
|
||||
groupDisplay: string;
|
||||
isGroupChat: boolean;
|
||||
avatar?: string;
|
||||
label?: string;
|
||||
updatedAt: string;
|
||||
unreadCount: number;
|
||||
phoneNumbers: string[];
|
||||
participants: string[];
|
||||
}
|
||||
|
||||
export interface CreateMessageGroupResult {
|
||||
error?: boolean;
|
||||
phoneNumber?: string;
|
||||
duplicate?: boolean;
|
||||
groupId?: string;
|
||||
mine?: boolean;
|
||||
identifiers?: string[];
|
||||
}
|
||||
|
||||
export interface CreateMessageBroadcast {
|
||||
message: string;
|
||||
groupName: string;
|
||||
groupId: string;
|
||||
}
|
||||
|
||||
export interface SetMessageRead {
|
||||
groupId: string;
|
||||
}
|
||||
Reference in new issue
Block a user