guesstimate/internal/graph/mutation.graphql

41 lines
993 B
GraphQL
Raw Normal View History

2020-08-08 15:04:59 +02:00
input UserChanges {
name: String
}
input CreateProjectChanges {
title: String!
}
input ProjectTaskChanges {
label: String
categoryId: ID
estimations: ProjectTaskEstimationsChanges
}
input ProjectTaskEstimationsChanges {
optimistic: Float
likely: Float
pessimistic: Float
}
input ProjectParamsChanges {
timeUnit: TimeUnitChanges
currency: String
roundUpEstimations: Boolean
hideFinancialPreviewOnPrint: Boolean
}
input TimeUnitChanges {
label: String
acronym: String
}
2020-08-08 15:04:59 +02:00
type Mutation {
updateUser(id: ID!, changes: UserChanges!): User!
createProject(changes: CreateProjectChanges!): Project!
updateProjectTitle(projectId: ID!, title: String!): Project!
2020-09-11 11:55:22 +02:00
addProjectTask(projectId: ID!, changes: ProjectTaskChanges!): Task!
removeProjectTask(projectId: ID!, taskId: ID!): Boolean!
2020-09-11 11:55:22 +02:00
updateProjectTask(projectId: ID!, taskId: ID!, changes: ProjectTaskChanges!): Task!
updateProjectParams(projectId: ID!, changes: ProjectParamsChanges!): ProjectParams!
2020-08-08 15:04:59 +02:00
}