refactor(graphql): replace dashboard query with resource queries

This commit is contained in:
Ruslan Bakiev
2026-02-23 12:46:29 +07:00
parent aa465f65bd
commit d3b751db65
11 changed files with 333 additions and 281 deletions

View File

@@ -0,0 +1,14 @@
query CalendarQuery {
calendar {
id
title
start
end
contact
note
isArchived
createdAt
archiveNote
archivedAt
}
}

View File

@@ -0,0 +1,19 @@
query CommunicationsQuery {
communications {
id
at
contactId
contact
contactInboxId
sourceExternalId
sourceTitle
channel
kind
direction
text
audioUrl
duration
transcript
deliveryStatus
}
}

View File

@@ -0,0 +1,13 @@
query ContactInboxesQuery {
contactInboxes {
id
contactId
contactName
channel
sourceExternalId
title
isHidden
lastMessageAt
updatedAt
}
}

View File

@@ -0,0 +1,13 @@
query ContactsQuery {
contacts {
id
name
avatar
company
country
location
channels
lastContactAt
description
}
}

View File

@@ -1,103 +0,0 @@
query DashboardQuery {
dashboard {
contacts {
id
name
avatar
company
country
location
channels
lastContactAt
description
}
communications {
id
at
contactId
contact
contactInboxId
sourceExternalId
sourceTitle
channel
kind
direction
text
audioUrl
duration
transcript
deliveryStatus
}
contactInboxes {
id
contactId
contactName
channel
sourceExternalId
title
isHidden
lastMessageAt
updatedAt
}
calendar {
id
title
start
end
contact
note
isArchived
createdAt
archiveNote
archivedAt
}
deals {
id
contact
title
company
stage
amount
nextStep
summary
currentStepId
steps {
id
title
description
status
dueAt
order
completedAt
}
}
feed {
id
at
contact
text
proposal {
title
details
key
}
decision
decisionNote
}
pins {
id
contact
text
}
documents {
id
title
type
owner
scope
updatedAt
summary
body
}
}
}

View File

@@ -0,0 +1,22 @@
query DealsQuery {
deals {
id
contact
title
company
stage
amount
nextStep
summary
currentStepId
steps {
id
title
description
status
dueAt
order
completedAt
}
}
}

View File

@@ -0,0 +1,12 @@
query DocumentsQuery {
documents {
id
title
type
owner
scope
updatedAt
summary
body
}
}

View File

@@ -0,0 +1,15 @@
query FeedQuery {
feed {
id
at
contact
text
proposal {
title
details
key
}
decision
decisionNote
}
}

View File

@@ -0,0 +1,7 @@
query PinsQuery {
pins {
id
contact
text
}
}