The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { gql } from '@apollo/client';
export const GET_ADMIN_CHAT_THREAD_MESSAGES = gql`
query GetAdminChatThreadMessages($workspaceId: UUID!, $threadId: UUID!) {
getAdminChatThreadMessages(workspaceId: $workspaceId, threadId: $threadId) {
thread {
id
title
totalInputTokens
totalOutputTokens
conversationSize
messageCount
createdAt
updatedAt
}
messages {
id
role
parts {
type
orderIndex
textContent
reasoningContent
toolName
toolCallId
toolInput
toolOutput
state
errorMessage
}
createdAt
}
}
}
`;