refactor(graphql): replace dashboard query with resource queries
This commit is contained in:
14
frontend/graphql/operations/calendar.graphql
Normal file
14
frontend/graphql/operations/calendar.graphql
Normal file
@@ -0,0 +1,14 @@
|
||||
query CalendarQuery {
|
||||
calendar {
|
||||
id
|
||||
title
|
||||
start
|
||||
end
|
||||
contact
|
||||
note
|
||||
isArchived
|
||||
createdAt
|
||||
archiveNote
|
||||
archivedAt
|
||||
}
|
||||
}
|
||||
19
frontend/graphql/operations/communications.graphql
Normal file
19
frontend/graphql/operations/communications.graphql
Normal file
@@ -0,0 +1,19 @@
|
||||
query CommunicationsQuery {
|
||||
communications {
|
||||
id
|
||||
at
|
||||
contactId
|
||||
contact
|
||||
contactInboxId
|
||||
sourceExternalId
|
||||
sourceTitle
|
||||
channel
|
||||
kind
|
||||
direction
|
||||
text
|
||||
audioUrl
|
||||
duration
|
||||
transcript
|
||||
deliveryStatus
|
||||
}
|
||||
}
|
||||
13
frontend/graphql/operations/contact-inboxes.graphql
Normal file
13
frontend/graphql/operations/contact-inboxes.graphql
Normal file
@@ -0,0 +1,13 @@
|
||||
query ContactInboxesQuery {
|
||||
contactInboxes {
|
||||
id
|
||||
contactId
|
||||
contactName
|
||||
channel
|
||||
sourceExternalId
|
||||
title
|
||||
isHidden
|
||||
lastMessageAt
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
13
frontend/graphql/operations/contacts.graphql
Normal file
13
frontend/graphql/operations/contacts.graphql
Normal file
@@ -0,0 +1,13 @@
|
||||
query ContactsQuery {
|
||||
contacts {
|
||||
id
|
||||
name
|
||||
avatar
|
||||
company
|
||||
country
|
||||
location
|
||||
channels
|
||||
lastContactAt
|
||||
description
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
22
frontend/graphql/operations/deals.graphql
Normal file
22
frontend/graphql/operations/deals.graphql
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
12
frontend/graphql/operations/documents.graphql
Normal file
12
frontend/graphql/operations/documents.graphql
Normal file
@@ -0,0 +1,12 @@
|
||||
query DocumentsQuery {
|
||||
documents {
|
||||
id
|
||||
title
|
||||
type
|
||||
owner
|
||||
scope
|
||||
updatedAt
|
||||
summary
|
||||
body
|
||||
}
|
||||
}
|
||||
15
frontend/graphql/operations/feed.graphql
Normal file
15
frontend/graphql/operations/feed.graphql
Normal file
@@ -0,0 +1,15 @@
|
||||
query FeedQuery {
|
||||
feed {
|
||||
id
|
||||
at
|
||||
contact
|
||||
text
|
||||
proposal {
|
||||
title
|
||||
details
|
||||
key
|
||||
}
|
||||
decision
|
||||
decisionNote
|
||||
}
|
||||
}
|
||||
7
frontend/graphql/operations/pins.graphql
Normal file
7
frontend/graphql/operations/pins.graphql
Normal file
@@ -0,0 +1,7 @@
|
||||
query PinsQuery {
|
||||
pins {
|
||||
id
|
||||
contact
|
||||
text
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user