31 lines
968 B
TypeScript
31 lines
968 B
TypeScript
export type SupportConversationStatus = 'open' | 'pending' | 'resolved' | 'closed';
|
|
export type SupportSenderType = 'user' | 'visitor' | 'staff';
|
|
export type SupportConversationRow = {
|
|
id: string;
|
|
user_id: string | null;
|
|
visitor_token: string | null;
|
|
subject: string | null;
|
|
status: SupportConversationStatus;
|
|
assigned_to: string | null;
|
|
last_message_at: Date | null;
|
|
last_message_preview: string | null;
|
|
unread_user: number;
|
|
unread_staff: number;
|
|
created_at: Date;
|
|
updated_at: Date;
|
|
};
|
|
export type SupportMessageRow = {
|
|
id: string;
|
|
conversation_id: string;
|
|
sender_type: SupportSenderType;
|
|
sender_user_id: string | null;
|
|
body: string | null;
|
|
attachment_url: string | null;
|
|
attachment_name: string | null;
|
|
attachment_mime: string | null;
|
|
read_at: Date | null;
|
|
edited_at: Date | null;
|
|
deleted_at: Date | null;
|
|
created_at: Date;
|
|
};
|
|
//# sourceMappingURL=support.model.d.ts.map
|