From b71181a4e9c9e6760a9e5aae573fcf4502de362f Mon Sep 17 00:00:00 2001 From: "Leon.Schmidt" Date: Thu, 6 Aug 2026 18:31:03 +0200 Subject: [PATCH] ENH - type numeric message timestamps --- frontend/src/types/messages.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/types/messages.ts b/frontend/src/types/messages.ts index 12962b2..02748d8 100644 --- a/frontend/src/types/messages.ts +++ b/frontend/src/types/messages.ts @@ -1,3 +1,5 @@ +import type { DatabaseDateValue } from '@/utils/date' + export type SmsDirection = 'sent' | 'received' export type SmsAttachmentType = 'image' | 'gif' | 'video' export type SmsMessageType = 'text' | 'voice' | SmsAttachmentType @@ -5,7 +7,7 @@ export type SmsDeliveryStatus = 'sending' | 'delivered' | 'failed' export type SmsConversation = { lastMessage: string - lastMessageAt: string + lastMessageAt: DatabaseDateValue lastMessageType: SmsMessageType phoneNumber: string unread: number @@ -14,7 +16,7 @@ export type SmsConversation = { export type SmsMessage = { body: string client_id?: string - created_at: string + created_at: DatabaseDateValue delivery_status?: SmsDeliveryStatus direction: SmsDirection id: string