feat(crm): add deal create/update controls with status and payment

This commit is contained in:
Ruslan Bakiev
2026-02-27 09:44:15 +07:00
parent 881a8c6d39
commit 12af9979ab
13 changed files with 907 additions and 94 deletions

View File

@@ -28,6 +28,8 @@ type Mutation {
createCalendarEvent(input: CreateCalendarEventInput!): CalendarEvent!
archiveCalendarEvent(input: ArchiveCalendarEventInput!): CalendarEvent!
createCommunication(input: CreateCommunicationInput!): MutationWithIdResult!
createDeal(input: CreateDealInput!): Deal!
updateDeal(input: UpdateDealInput!): Deal!
createWorkspaceDocument(input: CreateWorkspaceDocumentInput!): WorkspaceDocument!
deleteWorkspaceDocument(id: ID!): MutationWithIdResult!
updateCommunicationTranscript(id: ID!, transcript: [String!]!): MutationWithIdResult!
@@ -90,6 +92,23 @@ input CreateWorkspaceDocumentInput {
body: String
}
input CreateDealInput {
contactId: ID!
title: String!
stage: String
amount: Int
paidAmount: Int
nextStep: String
summary: String
}
input UpdateDealInput {
id: ID!
stage: String
amount: Int
paidAmount: Int
}
type MePayload {
user: MeUser!
team: MeTeam!
@@ -228,6 +247,7 @@ type Deal {
title: String!
stage: String!
amount: String!
paidAmount: String!
nextStep: String!
summary: String!
currentStepId: String!