feat(crm): add deal create/update controls with status and payment
This commit is contained in:
22
frontend/graphql/operations/create-deal.graphql
Normal file
22
frontend/graphql/operations/create-deal.graphql
Normal file
@@ -0,0 +1,22 @@
|
||||
mutation CreateDealMutation($input: CreateDealInput!) {
|
||||
createDeal(input: $input) {
|
||||
id
|
||||
contact
|
||||
title
|
||||
stage
|
||||
amount
|
||||
paidAmount
|
||||
nextStep
|
||||
summary
|
||||
currentStepId
|
||||
steps {
|
||||
id
|
||||
title
|
||||
description
|
||||
status
|
||||
dueAt
|
||||
order
|
||||
completedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ query DealsQuery {
|
||||
title
|
||||
stage
|
||||
amount
|
||||
paidAmount
|
||||
nextStep
|
||||
summary
|
||||
currentStepId
|
||||
|
||||
22
frontend/graphql/operations/update-deal.graphql
Normal file
22
frontend/graphql/operations/update-deal.graphql
Normal file
@@ -0,0 +1,22 @@
|
||||
mutation UpdateDealMutation($input: UpdateDealInput!) {
|
||||
updateDeal(input: $input) {
|
||||
id
|
||||
contact
|
||||
title
|
||||
stage
|
||||
amount
|
||||
paidAmount
|
||||
nextStep
|
||||
summary
|
||||
currentStepId
|
||||
steps {
|
||||
id
|
||||
title
|
||||
description
|
||||
status
|
||||
dueAt
|
||||
order
|
||||
completedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user