update schema with event tags

This commit is contained in:
Amit Jakubowicz 2019-11-08 12:18:49 +01:00
parent 1e75946db0
commit 2581642d60
1 changed files with 47 additions and 11 deletions

View File

@ -10,10 +10,10 @@ type CalendarEvent {
info(lang: String!): EventInformation
infos: [EventInformation]!
location: Location!
meta: EventMeta
occurrences: [EventOccurrence]
owner: User!
status: EventStatus!
tags: [EventTag]
time: EventTime!
}
@ -28,10 +28,6 @@ type EventInformation {
title: String!
}
type EventMeta {
tags: [String]!
}
type EventOccurrence {
end: String!
event: CalendarEvent!
@ -39,6 +35,18 @@ type EventOccurrence {
start: String!
}
type EventTag {
id: ID!
name: String!
translations: [EventTagTranslation!]!
}
type EventTagTranslation {
id: ID!
language: String!
text: String!
}
type EventTime {
end: Timestamp
exceptions: String
@ -54,8 +62,10 @@ type Location {
type Mutation {
createEvent(input: CreateEventInput!): CalendarEvent
createEventTag(input: CreateEventTagInput!): EventTag
deleteEvent(id: ID!): User!
grantRole(input: GrantRoleInput!): User!
modifyEventTag(input: ModifyEventTagInput!): EventTag
requestInvite(input: RequestInviteInput!): Boolean!
revokeRole(input: GrantRoleInput!): User!
signin(input: SigninInput!): UserSession!
@ -69,6 +79,18 @@ type Query {
me: User
occurrence(id: ID!): EventOccurrence
occurrences(filter: OccurrencesQueryFilter!): [EventOccurrence]
user(id: ID!): User
}
type Tag {
id: ID!
name: String!
translations: [Translations!]!
}
type TagTranslation {
language: String!
text: String!
}
type User {
@ -95,11 +117,21 @@ type UserSession {
input CreateEventInput {
infos: [EventInformationInput]!
location: EventLocationInput!
meta: EventMetaInput!
status: String!
tagNames: [String!]!
time: EventTimeInput!
}
input CreateEventTagInput {
name: String!
translations: [CreateModifyEventTagTranslationInput!]!
}
input CreateModifyEventTagTranslationInput {
language: String!
text: String!
}
input EventInformationInput {
description: String
language: String!
@ -111,10 +143,6 @@ input EventLocationInput {
name: String
}
input EventMetaInput {
tags: [String]!
}
input EventTimeInput {
end: Timestamp!
exceptions: String
@ -136,6 +164,12 @@ input GrantRoleInput {
userId: ID!
}
input ModifyEventTagInput {
id: ID!
name: String!
translations: [CreateModifyEventTagTranslationInput!]!
}
input OccurrencesQueryFilter {
categories: [Category]
from: Timestamp
@ -167,8 +201,8 @@ input UpdateEventInput {
id: ID!
infos: [EventInformationInput!]
location: EventLocationInput
meta: EventMetaInput
status: String
tagNames: [String!]!
time: EventTimeInput
}
@ -185,4 +219,6 @@ scalar Category
scalar Date
scalar Translations
scalar Language