2020-08-08 15:04:59 +02:00
|
|
|
scalar Time
|
|
|
|
|
|
|
|
type User {
|
|
|
|
id: ID!
|
|
|
|
name: String
|
|
|
|
email: String!
|
|
|
|
connectedAt: Time!
|
|
|
|
createdAt: Time!
|
|
|
|
}
|
|
|
|
|
2020-09-11 09:19:18 +02:00
|
|
|
type Project {
|
|
|
|
id: ID!
|
|
|
|
title: String!
|
|
|
|
tasks: [Task]!
|
|
|
|
params: ProjectParams!
|
|
|
|
acl: [Access]!
|
|
|
|
taskCategories: [TaskCategory]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Task {
|
|
|
|
id: ID!
|
|
|
|
label: String
|
|
|
|
category: TaskCategory
|
|
|
|
estimations: Estimations
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskCategory {
|
|
|
|
id: ID!
|
|
|
|
label: String!
|
|
|
|
costPerTimeUnit: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Access {
|
|
|
|
id: ID!
|
|
|
|
user: User!
|
|
|
|
level: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ProjectParams {
|
|
|
|
timeUnit: TimeUnit
|
|
|
|
currency: String!
|
|
|
|
roundUpEstimations: Boolean!
|
|
|
|
hideFinancialPreviewOnPrint: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TimeUnit {
|
|
|
|
label: String!
|
|
|
|
acronym: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Estimations {
|
|
|
|
optimistic: Float!
|
|
|
|
likely: Float!
|
|
|
|
pessimistic: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input ProjectsFilter {
|
|
|
|
ids: [ID]
|
|
|
|
limit: Int
|
|
|
|
offset: Int
|
|
|
|
search: String
|
|
|
|
}
|
|
|
|
|
2020-08-08 15:04:59 +02:00
|
|
|
type Query {
|
|
|
|
currentUser: User
|
2020-09-11 09:19:18 +02:00
|
|
|
projects(filter: ProjectsFilter): [Project]
|
2020-08-08 15:04:59 +02:00
|
|
|
}
|