2019-10-06 11:30:10 +02:00
|
|
|
# This file was generated based on ".graphqlconfig". Do not edit manually.
|
2019-08-16 10:30:29 +02:00
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
schema {
|
|
|
|
query: Query
|
|
|
|
mutation: Mutation
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type CalendarEvent {
|
|
|
|
id: ID!
|
2019-10-06 11:30:10 +02:00
|
|
|
info(lang: String!): EventInformation
|
|
|
|
infos: [EventInformation]!
|
2019-08-16 10:30:29 +02:00
|
|
|
location: Location!
|
|
|
|
meta: EventMeta
|
2019-10-06 11:30:10 +02:00
|
|
|
occurrences: [EventOccurrence]
|
|
|
|
owner: User!
|
|
|
|
status: EventStatus!
|
|
|
|
time: EventTime!
|
|
|
|
}
|
|
|
|
|
|
|
|
type Error {
|
|
|
|
message: String!
|
|
|
|
path: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type EventInformation {
|
|
|
|
description: String
|
|
|
|
language: String!
|
|
|
|
title: String!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type EventMeta {
|
|
|
|
tags: [String]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type EventOccurrence {
|
2019-10-06 11:30:10 +02:00
|
|
|
end: String!
|
2019-08-16 10:30:29 +02:00
|
|
|
event: CalendarEvent!
|
2019-10-06 11:30:10 +02:00
|
|
|
id: ID!
|
2019-08-16 10:30:29 +02:00
|
|
|
start: String!
|
2019-10-06 11:30:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type EventTime {
|
|
|
|
end: Timestamp
|
|
|
|
exceptions: String
|
|
|
|
recurrence: String
|
|
|
|
start: Timestamp
|
|
|
|
timeZone: TimeZone
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Location {
|
|
|
|
address: String
|
|
|
|
name: String
|
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
type Mutation {
|
|
|
|
createEvent(input: CreateEventInput!): CalendarEvent
|
|
|
|
grantRole(input: GrantRoleInput!): User!
|
|
|
|
requestInvite(input: RequestInviteInput!): Boolean!
|
|
|
|
revokeRole(input: GrantRoleInput!): User!
|
|
|
|
signin(input: SigninInput!): UserSession!
|
|
|
|
signup(input: SignupInput!): [Error]
|
|
|
|
updateEvent(input: UpdateEventInput!): CalendarEvent
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
type Query {
|
|
|
|
event(id: ID!): CalendarEvent
|
|
|
|
events(filter: EventsQueryFilter!): [CalendarEvent]
|
|
|
|
me: User
|
|
|
|
occurrence(id: ID!): EventOccurrence
|
|
|
|
occurrences(filter: OccurrencesQueryFilter!): [EventOccurrence]
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
type User {
|
|
|
|
email: String!
|
|
|
|
events: [CalendarEvent]!
|
|
|
|
id: ID!
|
|
|
|
name: String!
|
|
|
|
roles: [UserRole!]
|
|
|
|
username: String
|
|
|
|
}
|
2019-08-16 10:30:29 +02:00
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
type UserRole {
|
|
|
|
type: RoleType!
|
|
|
|
user: User!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
type UserSession {
|
|
|
|
ctime: Date!
|
|
|
|
hash: String!
|
|
|
|
isValid: Boolean!
|
|
|
|
user: User!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input CreateEventInput {
|
|
|
|
infos: [EventInformationInput]!
|
|
|
|
location: EventLocationInput!
|
|
|
|
meta: EventMetaInput!
|
|
|
|
status: String!
|
|
|
|
time: EventTimeInput!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input EventInformationInput {
|
2019-10-06 11:30:10 +02:00
|
|
|
description: String
|
2019-08-16 10:30:29 +02:00
|
|
|
language: String!
|
|
|
|
title: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input EventLocationInput {
|
|
|
|
address: String
|
|
|
|
name: String
|
|
|
|
}
|
|
|
|
|
|
|
|
input EventMetaInput {
|
|
|
|
tags: [String]!
|
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input EventTimeInput {
|
|
|
|
end: Timestamp!
|
|
|
|
exceptions: String
|
|
|
|
recurrence: String
|
|
|
|
start: Timestamp!
|
|
|
|
timeZone: TimeZone!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input EventsQueryFilter {
|
|
|
|
categories: [Category]
|
|
|
|
from: Timestamp
|
|
|
|
limit: Int
|
|
|
|
owner: ID
|
|
|
|
to: Timestamp
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input GrantRoleInput {
|
|
|
|
roleType: RoleType!
|
2019-10-06 11:30:10 +02:00
|
|
|
userId: ID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input OccurrencesQueryFilter {
|
|
|
|
categories: [Category]
|
|
|
|
from: Timestamp
|
|
|
|
limit: Int
|
|
|
|
timeZone: TimeZone
|
|
|
|
to: Timestamp
|
|
|
|
}
|
|
|
|
|
|
|
|
input RequestInviteInput {
|
|
|
|
email: String!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input RevokeRoleInput {
|
|
|
|
roleType: RoleType!
|
2019-10-06 11:30:10 +02:00
|
|
|
userId: ID!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input SigninInput {
|
|
|
|
hash: String!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input SignupInput {
|
|
|
|
email: String!
|
|
|
|
name: String!
|
|
|
|
username: String!
|
2019-08-16 10:30:29 +02:00
|
|
|
}
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
input UpdateEventInput {
|
|
|
|
id: ID!
|
|
|
|
infos: [EventInformationInput!]
|
|
|
|
location: EventLocationInput
|
|
|
|
meta: EventMetaInput
|
|
|
|
status: String
|
|
|
|
time: EventTimeInput
|
|
|
|
}
|
2019-08-16 10:30:29 +02:00
|
|
|
|
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
scalar TimeZone
|
2019-08-16 10:30:29 +02:00
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
scalar Timestamp
|
2019-08-16 10:30:29 +02:00
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
scalar EventStatus
|
2019-08-16 10:30:29 +02:00
|
|
|
|
2019-10-06 11:30:10 +02:00
|
|
|
scalar RoleType
|
|
|
|
|
|
|
|
scalar Category
|
|
|
|
|
|
|
|
scalar Date
|
|
|
|
|
|
|
|
scalar Language
|