feat(types): add IndexJobData for Meilisearch indexing
This commit is contained in:
@@ -77,3 +77,14 @@ export interface ForwardJobData {
|
||||
toGroupJid: string;
|
||||
fromAccountId: string; // which bot account to send the forward from
|
||||
}
|
||||
|
||||
export interface IndexJobData {
|
||||
messageId: string; // DB Message.id (cuid)
|
||||
content: string;
|
||||
senderName: string | null;
|
||||
sourceGroupId: string; // DB Group.id
|
||||
sourceGroupName: string;
|
||||
tags: string[];
|
||||
platform: string;
|
||||
approvedAt: string; // ISO 8601 — converted to Unix ms in the index processor
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user