cecon-interfaces
Version:
Interfaces de Projetos Cecon
48 lines (47 loc) • 1.3 kB
TypeScript
import { IN8nChatTrigger } from '../interfaces/i-chat-trigger';
export declare class N8nChatTriggerEntity implements IN8nChatTrigger {
messageId: string;
sessionId: string;
userId: string;
message: string;
messageType: 'text' | 'image' | 'audio' | 'video' | 'document' | 'location' | 'contact' | 'sticker' | 'emoji';
timestamp: Date;
platform: string;
user: {
id: string;
name: string;
phone?: string;
email?: string;
avatar?: string;
language?: string;
};
conversation: {
id: string;
title?: string;
isGroup: boolean;
participantCount?: number;
};
metadata: {
isForwarded?: boolean;
isReply?: boolean;
replyToMessageId?: string;
hasMedia?: boolean;
mediaUrl?: string;
mediaType?: string;
location?: {
latitude: number;
longitude: number;
address?: string;
};
};
webhook: {
id: string;
url: string;
headers?: Record<string, string>;
};
rawData?: any;
tags?: string[];
customData?: Record<string, any>;
status: 'pending' | 'processing' | 'completed' | 'error';
constructor(data?: Partial<N8nChatTriggerEntity>);
}