/** ------------------------------------------------------
 * THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
 * -------------------------------------------------------
 */ export interface CreateCommentInput { text : string ; post : string ; } export interface UpdateCommentInput { text ? : string ; } export interface CreatePostInput { title : string ; body : string ; published : boolean ; } export interface UpdatePostInput { title ? : string ; body ? : string ; published ? : boolean ; } export interface SignupUserInput { name : string ; email : EmailAddress ; password : string ; age ? : UnsignedInt ; } export interface LoginUserInput { email : EmailAddress ; password : string ; } export interface UpdateProfileInput { name ? : string ; age ? : UnsignedInt ; } export interface UpdateEmailInput { email : EmailAddress ; currentPassword : string ; } export interface UpdatePasswordInput { currentPassword : string ; newPassword : string ; confirmPassword : string ; } export interface IMutation { signup ( data ) : UserPayload | Promise < UserPayload > ; login ( data ) : UserPayload | Promise < UserPayload > ; refreshToken ( ) : UserPayload | Promise < UserPayload > ; logout ( ) : boolean | Promise < boolean > ; createComment ( data ) : CommentPayload | Promise < CommentPayload > ; updateComment ( id , data ) : CommentPayload | Promise < CommentPayload > ; deleteComment ( id ) : DeleteCommentPayload | Promise < DeleteCommentPayload > ; createPost ( data ) : PostPayload | Promise < PostPayload > ; updatePost ( id , data ) : PostPayload | Promise < PostPayload > ; deletePost ( id ) : DeletePostPayload | Promise < DeletePostPayload > ; updateProfile ( data ) : UserPayload | Promise < UserPayload > ; updateEmail ( data ? ) : UserPayload | Promise < UserPayload > ; updatePassword ( data ? ) : UserPayload | Promise < UserPayload > ; deleteAccount ( ) : DeleteAccountPayload | Promise < DeleteAccountPayload > ; } export interface IQuery { comments ( q ? , first ? , last ? , before ? , after ? , filterBy ? , orderBy ? ) : CommentsConnection | Promise < CommentsConnection > ; commentCount ( q ? , filterBy ? ) : number | Promise < number > ; post ( id ) : Post | Promise < Post > ; posts ( q ? , first ? , last ? , before ? , after ? , filterBy ? , orderBy ? ) : PostsConnection | Promise < PostsConnection > ; postCount ( q ? , filterBy ? ) : number | Promise < number > ; myPosts ( q ? , first ? , last ? , before ? , after ? , filterBy ? , orderBy ? ) : PostsConnection | Promise < PostsConnection > ; user ( id ) : User | Promise < User > ; users ( q ? , first ? , last ? , before ? , after ? , filterBy ? , orderBy ? ) : UsersConnection | Promise < UsersConnection > ; userCount ( q ? , filterBy ? ) : number | Promise < number > ; me ( ) : User | Promise < User > ; } export interface ISubscription { commentAdded ( post ) : Comment | Promise < Comment > ; postAdded ( ) : Post | Promise < Post > ; } export interface Comment { id : string ; text : string ; author : User ; post : Post ; createdAt : DateTime ; updatedAt : DateTime ; version : number ; } export interface CommentsConnection { edges : CommentEdge [ ] ; pageInfo : PageInfo ; } export interface CommentEdge { node : Comment ; cursor : string ; } export interface CommentPayload { errors ? : ErrorPayload [ ] ; comment ? : Comment ; } export interface DeleteCommentPayload { errors ? : ErrorPayload [ ] ; count ? : number ; } export interface ErrorPayload { field ? : string ; message ? : string [ ] ; } export interface PageInfo { startCursor : string ; endCursor : string ; hasNextPage : boolean ; hasPreviousPage : boolean ; } export interface Post { id : string ; title : string ; body : string ; published : boolean ; author : User ; comments ? : CommentsConnection ; createdAt : DateTime ; updatedAt : DateTime ; version : number ; } export interface PostsConnection { edges : PostEdge [ ] ; pageInfo : PageInfo ; } export interface PostEdge { node : Post ; cursor : string ; } export interface PostPayload { errors ? : ErrorPayload [ ] ; post ? : Post ; } export interface DeletePostPayload { errors ? : ErrorPayload [ ] ; count ? : number ; } export interface User { id : string ; name : string ; email : EmailAddress ; age ? : UnsignedInt ; posts ? : PostsConnection ; comments ? : CommentsConnection ; createdAt : DateTime ; updatedAt : DateTime ; version : number ; } export interface UsersConnection { edges : UserEdge [ ] ; pageInfo : PageInfo ; } export interface UserEdge { node : User ; cursor : string ; } export interface UserPayload { errors ? : ErrorPayload [ ] ; user ? : User ; } export interface DeleteAccountPayload { errors ? : ErrorPayload [ ] ; count ? : number ; } export type DateTime = any ; export type EmailAddress = any ; export type UnsignedInt = any ; export type JSONObject = any ;