feat(chat): threads UI + graphql flow + qwen/gigachat integration
This commit is contained in:
10
Frontend/graphql/operations/chat-conversations.graphql
Normal file
10
Frontend/graphql/operations/chat-conversations.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
query ChatConversationsQuery {
|
||||
chatConversations {
|
||||
id
|
||||
title
|
||||
createdAt
|
||||
updatedAt
|
||||
lastMessageAt
|
||||
lastMessageText
|
||||
}
|
||||
}
|
||||
18
Frontend/graphql/operations/chat-messages.graphql
Normal file
18
Frontend/graphql/operations/chat-messages.graphql
Normal file
@@ -0,0 +1,18 @@
|
||||
query ChatMessagesQuery {
|
||||
chatMessages {
|
||||
id
|
||||
role
|
||||
text
|
||||
plan
|
||||
thinking
|
||||
tools
|
||||
toolRuns {
|
||||
name
|
||||
status
|
||||
input
|
||||
output
|
||||
at
|
||||
}
|
||||
createdAt
|
||||
}
|
||||
}
|
||||
10
Frontend/graphql/operations/create-calendar-event.graphql
Normal file
10
Frontend/graphql/operations/create-calendar-event.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation CreateCalendarEventMutation($input: CreateCalendarEventInput!) {
|
||||
createCalendarEvent(input: $input) {
|
||||
id
|
||||
title
|
||||
start
|
||||
end
|
||||
contact
|
||||
note
|
||||
}
|
||||
}
|
||||
10
Frontend/graphql/operations/create-chat-conversation.graphql
Normal file
10
Frontend/graphql/operations/create-chat-conversation.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation CreateChatConversationMutation($title: String) {
|
||||
createChatConversation(title: $title) {
|
||||
id
|
||||
title
|
||||
createdAt
|
||||
updatedAt
|
||||
lastMessageAt
|
||||
lastMessageText
|
||||
}
|
||||
}
|
||||
6
Frontend/graphql/operations/create-communication.graphql
Normal file
6
Frontend/graphql/operations/create-communication.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
mutation CreateCommunicationMutation($input: CreateCommunicationInput!) {
|
||||
createCommunication(input: $input) {
|
||||
ok
|
||||
id
|
||||
}
|
||||
}
|
||||
73
Frontend/graphql/operations/dashboard.graphql
Normal file
73
Frontend/graphql/operations/dashboard.graphql
Normal file
@@ -0,0 +1,73 @@
|
||||
query DashboardQuery {
|
||||
dashboard {
|
||||
contacts {
|
||||
id
|
||||
name
|
||||
avatar
|
||||
company
|
||||
country
|
||||
location
|
||||
channels
|
||||
lastContactAt
|
||||
description
|
||||
}
|
||||
communications {
|
||||
id
|
||||
at
|
||||
contactId
|
||||
contact
|
||||
channel
|
||||
kind
|
||||
direction
|
||||
text
|
||||
duration
|
||||
transcript
|
||||
}
|
||||
calendar {
|
||||
id
|
||||
title
|
||||
start
|
||||
end
|
||||
contact
|
||||
note
|
||||
}
|
||||
deals {
|
||||
id
|
||||
contact
|
||||
title
|
||||
company
|
||||
stage
|
||||
amount
|
||||
nextStep
|
||||
summary
|
||||
}
|
||||
feed {
|
||||
id
|
||||
at
|
||||
contact
|
||||
text
|
||||
proposal {
|
||||
title
|
||||
details
|
||||
key
|
||||
}
|
||||
decision
|
||||
decisionNote
|
||||
}
|
||||
pins {
|
||||
id
|
||||
contact
|
||||
text
|
||||
}
|
||||
documents {
|
||||
id
|
||||
title
|
||||
type
|
||||
owner
|
||||
scope
|
||||
updatedAt
|
||||
summary
|
||||
body
|
||||
}
|
||||
}
|
||||
}
|
||||
5
Frontend/graphql/operations/log-pilot-note.graphql
Normal file
5
Frontend/graphql/operations/log-pilot-note.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
mutation LogPilotNoteMutation($text: String!) {
|
||||
logPilotNote(text: $text) {
|
||||
ok
|
||||
}
|
||||
}
|
||||
5
Frontend/graphql/operations/login.graphql
Normal file
5
Frontend/graphql/operations/login.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
mutation LoginMutation($phone: String!, $password: String!) {
|
||||
login(phone: $phone, password: $password) {
|
||||
ok
|
||||
}
|
||||
}
|
||||
5
Frontend/graphql/operations/logout.graphql
Normal file
5
Frontend/graphql/operations/logout.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
mutation LogoutMutation {
|
||||
logout {
|
||||
ok
|
||||
}
|
||||
}
|
||||
17
Frontend/graphql/operations/me.graphql
Normal file
17
Frontend/graphql/operations/me.graphql
Normal file
@@ -0,0 +1,17 @@
|
||||
query MeQuery {
|
||||
me {
|
||||
user {
|
||||
id
|
||||
phone
|
||||
name
|
||||
}
|
||||
team {
|
||||
id
|
||||
name
|
||||
}
|
||||
conversation {
|
||||
id
|
||||
title
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation SelectChatConversationMutation($id: ID!) {
|
||||
selectChatConversation(id: $id) {
|
||||
ok
|
||||
}
|
||||
}
|
||||
5
Frontend/graphql/operations/send-pilot-message.graphql
Normal file
5
Frontend/graphql/operations/send-pilot-message.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
mutation SendPilotMessageMutation($text: String!) {
|
||||
sendPilotMessage(text: $text) {
|
||||
ok
|
||||
}
|
||||
}
|
||||
6
Frontend/graphql/operations/update-feed-decision.graphql
Normal file
6
Frontend/graphql/operations/update-feed-decision.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
mutation UpdateFeedDecisionMutation($id: ID!, $decision: String!, $decisionNote: String) {
|
||||
updateFeedDecision(id: $id, decision: $decision, decisionNote: $decisionNote) {
|
||||
ok
|
||||
id
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user