skailan-conversations
Version:
Servicio de conversaciones y mensajería para Skailan
21 lines • 883 B
TypeScript
export declare class Message {
readonly id: string;
organizationId: string;
conversationId: string;
senderType: string;
senderId: string;
type: string;
content: string | null;
mediaUrl: string | null;
externalMessageId: string | null;
status: string;
timestamp: Date;
createdAt: Date;
constructor(id: string, organizationId: string, conversationId: string, senderType: string, // 'contact', 'user', 'system'
senderId: string, // Contact ID (from contacts service) or User ID (from core service)
type: string, // 'text', 'image', 'video', 'audio', 'document'
content: string | null, mediaUrl: string | null, externalMessageId: string | null, status: string, // 'sent', 'delivered', 'read', 'failed'
timestamp: Date, createdAt: Date);
updateStatus(newStatus: string): void;
}
//# sourceMappingURL=Message.d.ts.map