2019-03-08 15:58:44 +01:00
|
|
|
// tslint:disable
|
|
|
|
// graphql typescript definitions
|
|
|
|
|
2019-03-11 13:39:16 +01:00
|
|
|
export namespace GQL {
|
2019-03-08 15:58:44 +01:00
|
|
|
interface IGraphQLResponseRoot {
|
|
|
|
data?: IQuery | IMutation;
|
|
|
|
errors?: Array<IGraphQLResponseError>;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGraphQLResponseError {
|
|
|
|
/** Required for all errors */
|
|
|
|
message: string;
|
|
|
|
locations?: Array<IGraphQLResponseErrorLocation>;
|
|
|
|
/** 7.2.2 says 'GraphQL servers may provide additional entries to error' */
|
|
|
|
[propName: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGraphQLResponseErrorLocation {
|
|
|
|
line: number;
|
|
|
|
column: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IQuery {
|
|
|
|
__typename: 'Query';
|
|
|
|
me: IUser | null;
|
|
|
|
events: Array<ICalendarEvent | null> | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventsOnQueryArguments {
|
|
|
|
filter?: IEventsQueryFilter | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IUser {
|
|
|
|
__typename: 'User';
|
2019-03-11 13:39:16 +01:00
|
|
|
name: string;
|
2019-03-08 15:58:44 +01:00
|
|
|
username: string;
|
|
|
|
email: string;
|
|
|
|
id: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventsQueryFilter {
|
|
|
|
limit?: number | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ICalendarEvent {
|
|
|
|
__typename: 'CalendarEvent';
|
|
|
|
id: string;
|
|
|
|
owner: IUser;
|
|
|
|
info: Array<IEventInformation | null>;
|
|
|
|
time: IEventTime;
|
|
|
|
status: any;
|
|
|
|
contact: Array<IEventContactPerson>;
|
|
|
|
location: ILocation;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventInformation {
|
|
|
|
__typename: 'EventInformation';
|
|
|
|
language: string;
|
|
|
|
title: string;
|
|
|
|
description: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventTime {
|
|
|
|
__typename: 'EventTime';
|
|
|
|
timeZone: any | null;
|
|
|
|
start: any | null;
|
|
|
|
end: any | null;
|
|
|
|
recurrence: string | null;
|
|
|
|
exceptions: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventContactPerson {
|
|
|
|
__typename: 'EventContactPerson';
|
|
|
|
name: string;
|
|
|
|
languages: Array<any> | null;
|
|
|
|
contact: IContact | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IContact {
|
|
|
|
__typename: 'Contact';
|
|
|
|
email: string | null;
|
|
|
|
phone: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ILocation {
|
|
|
|
__typename: 'Location';
|
|
|
|
address: string | null;
|
|
|
|
name: string | null;
|
|
|
|
coordinate: IGeoCoordinate | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGeoCoordinate {
|
|
|
|
__typename: 'GeoCoordinate';
|
|
|
|
lat: number | null;
|
|
|
|
lng: number | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IMutation {
|
|
|
|
__typename: 'Mutation';
|
|
|
|
signup: boolean;
|
|
|
|
signin: IUserSession;
|
|
|
|
requestInvite: boolean;
|
|
|
|
createEvent: ICalendarEvent | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ISignupOnMutationArguments {
|
|
|
|
input?: ISignupInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ISigninOnMutationArguments {
|
|
|
|
input?: ISigninInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IRequestInviteOnMutationArguments {
|
|
|
|
input?: IRequestInviteInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ICreateEventOnMutationArguments {
|
|
|
|
input?: ICreateEventInput | null;
|
|
|
|
foo?: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ISignupInput {
|
|
|
|
email: string;
|
|
|
|
username: string;
|
2019-03-11 13:39:16 +01:00
|
|
|
name: string;
|
2019-03-08 15:58:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
interface ISigninInput {
|
|
|
|
hash: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IUserSession {
|
|
|
|
__typename: 'UserSession';
|
|
|
|
hash: string;
|
|
|
|
user: IUser;
|
|
|
|
ctime: any;
|
|
|
|
isValid: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IRequestInviteInput {
|
|
|
|
email: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface ICreateEventInput {
|
|
|
|
owner: string;
|
|
|
|
time?: IEventTimeInput | null;
|
|
|
|
info?: Array<IEventInformationInput | null> | null;
|
|
|
|
location?: IEventLocationInput | null;
|
|
|
|
meta?: IEventMetaInput | null;
|
|
|
|
status: string;
|
|
|
|
contact: Array<IEventContactPersonInput>;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventTimeInput {
|
|
|
|
timeZone?: any | null;
|
|
|
|
status?: any | null;
|
|
|
|
start?: any | null;
|
|
|
|
end?: any | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventInformationInput {
|
|
|
|
language: string;
|
|
|
|
title: string;
|
|
|
|
description?: string | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventLocationInput {
|
|
|
|
address?: string | null;
|
|
|
|
name?: string | null;
|
|
|
|
coordinate?: IGeoCoordinateInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IGeoCoordinateInput {
|
|
|
|
lat?: number | null;
|
|
|
|
lng?: number | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventMetaInput {
|
|
|
|
tags?: Array<string | null> | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventContactPersonInput {
|
|
|
|
name: string;
|
|
|
|
languages?: Array<any> | null;
|
|
|
|
contact?: IEventContactInput | null;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface IEventContactInput {
|
|
|
|
email?: string | null;
|
|
|
|
phone?: string | null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// tslint:enable
|