2020-07-13 14:44:05 +02:00
|
|
|
scalar Time
|
2020-08-26 14:51:53 +02:00
|
|
|
scalar Map
|
2020-07-13 14:44:05 +02:00
|
|
|
|
2020-07-13 09:20:14 +02:00
|
|
|
type User {
|
2020-07-21 18:10:03 +02:00
|
|
|
id: ID!
|
2020-07-13 09:20:14 +02:00
|
|
|
name: String
|
|
|
|
email: String!
|
2020-07-13 14:44:05 +02:00
|
|
|
connectedAt: Time!
|
|
|
|
createdAt: Time!
|
2020-07-21 18:10:03 +02:00
|
|
|
workgroups:[Workgroup]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Workgroup {
|
|
|
|
id: ID!
|
|
|
|
name: String
|
|
|
|
createdAt: Time!
|
|
|
|
closedAt: Time
|
|
|
|
members: [User]!
|
2020-07-13 09:20:14 +02:00
|
|
|
}
|
|
|
|
|
2020-07-22 22:25:03 +02:00
|
|
|
input WorkgroupsFilter {
|
|
|
|
ids: [ID]
|
|
|
|
}
|
|
|
|
|
2020-08-26 14:51:53 +02:00
|
|
|
type DecisionSupportFile {
|
|
|
|
id: ID!
|
|
|
|
title: String
|
|
|
|
sections: Map
|
|
|
|
status: String
|
|
|
|
workgroup: Workgroup
|
|
|
|
createdAt: Time
|
|
|
|
updatedAt: Time
|
|
|
|
votedAt: Time
|
|
|
|
closedAt: Time
|
|
|
|
}
|
|
|
|
|
|
|
|
input DecisionSupportFileFilter {
|
|
|
|
ids: [ID]
|
|
|
|
}
|
|
|
|
|
2020-09-04 11:19:24 +02:00
|
|
|
input AuthorizationObject {
|
|
|
|
workgroupId: ID
|
|
|
|
userId: ID
|
|
|
|
decisionSupportFileId: ID
|
|
|
|
}
|
|
|
|
|
2020-07-13 09:20:14 +02:00
|
|
|
type Query {
|
|
|
|
userProfile: User
|
2020-07-22 22:25:03 +02:00
|
|
|
workgroups(filter: WorkgroupsFilter): [Workgroup]!
|
2020-08-26 14:51:53 +02:00
|
|
|
decisionSupportFiles(filter: DecisionSupportFileFilter): [DecisionSupportFile]!
|
2020-09-04 11:19:24 +02:00
|
|
|
isAuthorized(action: String!, object: AuthorizationObject!): Boolean!
|
2020-07-16 09:28:27 +02:00
|
|
|
}
|