feat(history): add multi-account and WhatsApp foundation
This commit is contained in:
@@ -41,7 +41,18 @@ export interface Message {
|
||||
productCard?: { name: string; sku: string; price: string }
|
||||
replyToId?: string
|
||||
replyPreview?: string
|
||||
editedAt?: string
|
||||
isDeleted?: boolean
|
||||
deletedAt?: string
|
||||
reactions?: Array<{
|
||||
actor: string
|
||||
emoji: string
|
||||
fromMe?: boolean
|
||||
updatedAt?: string
|
||||
}>
|
||||
telegramFileId?: number
|
||||
whatsappMessageId?: string
|
||||
whatsappContentType?: string
|
||||
attachmentMimeType?: string
|
||||
attachmentSize?: number
|
||||
stickerEmoji?: string
|
||||
@@ -74,12 +85,17 @@ export interface Conversation {
|
||||
channelId?: string
|
||||
telegramChatId?: string
|
||||
telegramChatType?: string
|
||||
whatsappJid?: string
|
||||
whatsappChatType?: string
|
||||
isPinned?: boolean
|
||||
archived?: boolean
|
||||
mutedUntil?: string | null
|
||||
markedUnread?: boolean
|
||||
isBlocked?: boolean
|
||||
leftAt?: string
|
||||
presence?: 'available' | 'unavailable' | 'composing' | 'recording' | 'paused'
|
||||
presenceUpdatedAt?: string
|
||||
lastSeenAt?: string
|
||||
}
|
||||
|
||||
export type ChannelStatus = 'connected' | 'disconnected' | 'error' | 'paused' | 'unconnected'
|
||||
@@ -106,6 +122,10 @@ export interface ChannelConnection {
|
||||
smtpSecure?: boolean
|
||||
syncDays?: number
|
||||
lastVerifiedAt?: string
|
||||
isDefault?: boolean
|
||||
provider?: string
|
||||
pairingCode?: string
|
||||
qrDataUrl?: string
|
||||
}
|
||||
|
||||
export interface ChannelSyncLog {
|
||||
|
||||
Reference in New Issue
Block a user