dolphins7.skeleton/server/share/twenty-server/schema.graphql
0x1eef 2e8cf6e333 Drop 'twenty-' prefix from toplevel directories
The directories twenty-{server,client,cli} have been renamed to
not include 'twenty-'. The gems are still published with the twenty-
prefix, otherwise a collision is impossible to avoid. This commit makes
it slightly easier to generalize twenty.
2024-04-21 20:11:25 -03:00

91 lines
1.6 KiB
GraphQL

"""
Autogenerated return type of CompleteTask.
"""
type CompleteTaskPayload {
errors: [String!]
ok: Boolean
}
"""
Autogenerated return type of CreateTask.
"""
type CreateTaskPayload {
errors: [String!]!
}
"""
Autogenerated return type of DestroyTask.
"""
type DestroyTaskPayload {
errors: [String!]
ok: Boolean
}
"""
An ISO 8601-encoded datetime
"""
scalar ISO8601DateTime @specifiedBy(url: "https://tools.ietf.org/html/rfc3339")
type Mutation {
completeTask(taskId: Int!): CompleteTaskPayload
createTask(input: TaskInput!): CreateTaskPayload
destroyTask(taskId: Int!): DestroyTaskPayload
setRandomProjectColor(projectId: Int!): SetRandomProjectColorPayload
updateTask(input: TaskInput!, taskId: Int!): UpdateTaskPayload
}
type Project {
color: String!
id: Int!
name: String!
path: String!
tasks: [Task!]!
}
type Query {
findTask(taskId: Int!): Task
projects: [Project!]!
tasks(projectId: Int, status: TaskStatus!): [Task!]!
}
"""
Autogenerated return type of SetRandomProjectColor.
"""
type SetRandomProjectColorPayload {
errors: [String!]!
project: Project
}
type Task {
content: String!
id: Int!
inProgress: Boolean!
isBacklogged: Boolean!
isComplete: Boolean!
isReady: Boolean!
project: Project!
status: TaskStatus!
title: String!
updatedAt: ISO8601DateTime!
}
input TaskInput {
content: String
projectId: Int
status: TaskStatus
title: String
}
enum TaskStatus {
backlog
complete
in_progress
ready
}
"""
Autogenerated return type of UpdateTask.
"""
type UpdateTaskPayload {
errors: [String!]!
}