Fixed TS Errors

This commit is contained in:
2025-10-31 16:45:27 +01:00
parent 55c101df12
commit 61835c3f26
5 changed files with 22 additions and 8 deletions

View File

@@ -11,7 +11,7 @@ export async function createConversation(
channel_instance_id,
subject,
customer_id = null,
contact_person_id = null
contact_person_id = null,
}: {
tenant_id: number
contact: { email?: string; phone?: string; display_name?: string }

View File

@@ -10,6 +10,7 @@ export async function addMessage(
direction = 'incoming',
payload,
raw_meta = null,
external_message_id = null,
}: {
tenant_id: number
conversation_id: string
@@ -17,6 +18,7 @@ export async function addMessage(
direction?: 'incoming' | 'outgoing' | 'internal' | 'system'
payload: any
raw_meta?: any
external_message_id?: string
}
) {
if (!payload?.text) throw new Error('Message payload requires text content')