qpa-client/schema.graphql

315 lines
5.7 KiB
GraphQL
Raw Permalink Normal View History

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-11-21 17:45:01 +01:00
images: EventImages
2019-10-06 11:30:10 +02:00
info(lang: String!): EventInformation
infos: [EventInformation]!
2019-08-16 10:30:29 +02:00
location: Location!
2019-10-06 11:30:10 +02:00
occurrences: [EventOccurrence]
owner: User!
publishedState: EventPublishedState!
2019-12-02 17:25:50 +01:00
revisionState: EventEventRevisionState!
2019-12-02 18:49:25 +01:00
revisions: [EventRevision]
2019-10-06 11:30:10 +02:00
status: EventStatus!
2019-11-08 12:18:49 +01:00
tags: [EventTag]
2019-10-06 11:30:10 +02:00
time: EventTime!
}
type Error {
message: String!
path: String!
}
2019-11-25 10:05:18 +01:00
type EventImage {
url: String!
}
2019-11-21 17:45:01 +01:00
type EventImages {
2019-11-25 10:05:18 +01:00
cover: EventImage
event: CalendarEvent
2019-11-25 10:05:18 +01:00
gallery: [EventImage!]
poster: EventImage
thumb: EventImage
2019-11-21 17:45:01 +01:00
}
2019-10-06 11:30:10 +02:00
type EventInformation {
description: String
2019-12-02 18:49:25 +01:00
id: ID!
2019-10-06 11:30:10 +02:00
language: String!
title: String!
2019-08-16 10:30:29 +02:00
}
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 EventRevision {
author: User!
comment: String
conclusion: String
createdAt: Date!
dismissedBy: User
event: CalendarEvent!
id: ID!
lastChangedAt: Date!
submittedAt: Date
}
2019-11-08 12:18:49 +01:00
type EventTag {
id: ID!
name: String!
translation(language: String!): EventTagTranslation
2019-11-08 12:18:49 +01:00
translations: [EventTagTranslation!]!
}
type EventTagTranslation {
id: ID!
language: String!
text: 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 {
2019-11-21 17:45:01 +01:00
addEventGalleryImages(input: EventImagesUploadInput!): CalendarEvent
2019-10-06 11:30:10 +02:00
createEvent(input: CreateEventInput!): CalendarEvent
2019-11-08 12:18:49 +01:00
createEventTag(input: CreateEventTagInput!): EventTag
2019-10-10 17:50:23 +02:00
deleteEvent(id: ID!): User!
deleteEventTag(input: DeleteEventTagInput!): [EventTag]
2019-12-02 18:49:25 +01:00
dismissOpenEventRevision(input: EventRevisionInput!): CalendarEvent
2019-10-06 11:30:10 +02:00
grantRole(input: GrantRoleInput!): User!
2019-11-21 17:45:01 +01:00
removeEventGalleryImages(input: EventGalleryImagesInput!): CalendarEvent
requestEventRevision(input: RequestRevisionInput!): CalendarEvent
2019-10-06 11:30:10 +02:00
requestInvite(input: RequestInviteInput!): Boolean!
revokeRole(input: GrantRoleInput!): User!
2019-11-23 15:40:20 +01:00
setEventImage(input: EventImageUploadInput!): CalendarEvent
2019-10-06 11:30:10 +02:00
signin(input: SigninInput!): UserSession!
signup(input: SignupInput!): [Error]
2019-12-02 18:49:25 +01:00
startEventRevision(input: StartEventRevisionInput!): CalendarEvent
submitEventRevision(input: ReviseEventInput!): CalendarEvent
2019-11-23 15:40:20 +01:00
unsetEventImage(id: UnsetEventImageInput!): CalendarEvent
2019-10-06 11:30:10 +02:00
updateEvent(input: UpdateEventInput!): CalendarEvent
updateEventTag(input: UpdateEventTagInput!): EventTag
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]
revisions(filter: RevisionsQueryFilter!): [EventRevision]
tags: [EventTag]
2019-11-08 12:18:49 +01:00
user(id: ID!): User
}
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-11-23 15:40:20 +01:00
enum CacheControlScope {
PRIVATE
PUBLIC
}
2019-10-06 11:30:10 +02:00
input CreateEventInput {
infos: [EventInformationInput]!
location: EventLocationInput!
publishedState: EventPublishedState!
2019-11-08 12:18:49 +01:00
tagNames: [String!]!
2019-10-06 11:30:10 +02:00
time: EventTimeInput!
2019-08-16 10:30:29 +02:00
}
2019-11-08 12:18:49 +01:00
input CreateEventTagInput {
name: String!
translations: [CreateModifyEventTagTranslationInput!]!
}
input CreateModifyEventTagTranslationInput {
language: String!
text: String!
}
input DeleteEventTagInput {
id: ID!
}
2019-11-21 17:45:01 +01:00
input EventGalleryImagesInput {
eventId: ID!
imageIds: [ID!]!
}
input EventImageUploadInput {
2019-11-23 15:40:20 +01:00
eventId: ID!
2019-11-21 17:45:01 +01:00
file: Upload!
2019-11-23 15:40:20 +01:00
imageType: EventImageType
2019-11-21 17:45:01 +01:00
}
input EventImagesUploadInput {
files: [Upload!]!
id: ID!
}
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 EventRevisionInput {
revisionId: ID!
}
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 {
limit: Int
owner: ID
2019-12-02 17:25:50 +01:00
pendingRevision: Boolean
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 RequestRevisionInput {
eventId: ID!
}
input ReviseEventInput {
comment: String
conclusion: String!
revisionId: ID!
}
input RevisionsQueryFilter {
limit: Int
}
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
}
input StartEventRevisionInput {
eventId: ID!
}
2019-11-23 15:40:20 +01:00
input UnsetEventImageInput {
eventId: ID!
imageType: EventImageType
}
2019-10-06 11:30:10 +02:00
input UpdateEventInput {
id: ID!
infos: [EventInformationInput!]
location: EventLocationInput
publishedState: EventPublishedState!
2019-10-06 11:30:10 +02:00
status: String
2019-11-08 12:18:49 +01:00
tagNames: [String!]!
2019-10-06 11:30:10 +02:00
time: EventTimeInput
}
2019-08-16 10:30:29 +02:00
input UpdateEventTagInput {
id: ID!
name: String!
translations: [CreateModifyEventTagTranslationInput!]!
}
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
scalar EventPublishedState
2019-12-02 17:25:50 +01:00
scalar EventEventRevisionState
2019-12-02 18:49:25 +01:00
scalar Date
2019-10-06 11:30:10 +02:00
scalar RoleType
scalar Category
2019-11-23 15:40:20 +01:00
scalar EventImageType
"The `Upload` scalar type represents a file upload."
2019-11-21 17:45:01 +01:00
scalar Upload
2019-11-08 12:18:49 +01:00
scalar Translations
2019-10-06 11:30:10 +02:00
scalar Language