From 480f748692986c82d2acb6b2c6641ae86ffff3de Mon Sep 17 00:00:00 2001 From: maaz519 Date: Wed, 27 May 2026 23:45:42 +0530 Subject: [PATCH] feat(types): add IndexJobData for Meilisearch indexing --- packages/types/src/message.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/types/src/message.ts b/packages/types/src/message.ts index e244660..a2b87e1 100644 --- a/packages/types/src/message.ts +++ b/packages/types/src/message.ts @@ -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 +}