feat: add unified client timeline query

This commit is contained in:
Ruslan Bakiev
2026-02-23 10:48:21 +07:00
parent c9e4c3172e
commit 4b9682e447
5 changed files with 660 additions and 54 deletions

View File

@@ -0,0 +1,61 @@
query GetClientTimelineQuery($contactId: ID!, $limit: Int) {
getClientTimeline(contactId: $contactId, limit: $limit) {
id
contactId
contentType
contentId
datetime
message {
id
at
contactId
contact
contactInboxId
sourceExternalId
sourceTitle
channel
kind
direction
text
audioUrl
duration
transcript
deliveryStatus
}
calendarEvent {
id
title
start
end
contact
note
isArchived
createdAt
archiveNote
archivedAt
}
recommendation {
id
at
contact
text
proposal {
title
details
key
}
decision
decisionNote
}
document {
id
title
type
owner
scope
updatedAt
summary
body
}
}
}