/* eslint-disable */
//@ts-nocheck
import type { GraphQLResolveInfo } from 'graphql';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
  ID: { input: string; output: string; }
  String: { input: string; output: string; }
  Boolean: { input: boolean; output: boolean; }
  Int: { input: number; output: number; }
  Float: { input: number; output: number; }
};

export type ActionLogType = {
  id: Scalars['ID']['output'];
  todo: Scalars['Boolean']['output'];
};

export type EmailThreadType = {
  archived: Scalars['Boolean']['output'];
  id: Scalars['ID']['output'];
};

export type EmailType = {
  id: Scalars['ID']['output'];
  todo: Scalars['Boolean']['output'];
};

export type Mutation = {
  setArchiveEmail: Maybe<EmailThreadType>;
  setEmailTodo: Maybe<EmailType>;
  setTeamQuestionnaireTodo: Maybe<TeamQuestionnaireStateType>;
  /** @deprecated Field no longer supported */
  setTodoActionLog: Maybe<ActionLogType>;
};


export type MutationSetArchiveEmailArgs = {
  emailThreadId: Scalars['ID']['input'];
  state: Scalars['Boolean']['input'];
};


export type MutationSetEmailTodoArgs = {
  emailId: Scalars['ID']['input'];
  state: Scalars['Boolean']['input'];
};


export type MutationSetTeamQuestionnaireTodoArgs = {
  state: Scalars['Boolean']['input'];
  teamQuestionnaireId: Scalars['ID']['input'];
};


export type MutationSetTodoActionLogArgs = {
  actionLogId: Scalars['ID']['input'];
  state: Scalars['Boolean']['input'];
};

export type MutationResult = {
  operationDone: Maybe<Scalars['Boolean']['output']>;
};

export type Query = {
  archiveEmail: Maybe<EmailThreadType>;
  emailTodo: Maybe<EmailType>;
  teamQuestionnaireTodo: Maybe<TeamQuestionnaireStateType>;
  /** @deprecated Field no longer supported */
  todoActionLog: Maybe<ActionLogType>;
};


export type QueryArchiveEmailArgs = {
  id: Scalars['ID']['input'];
};


export type QueryEmailTodoArgs = {
  id: Scalars['ID']['input'];
};


export type QueryTeamQuestionnaireTodoArgs = {
  id: Scalars['ID']['input'];
};


export type QueryTodoActionLogArgs = {
  id: Scalars['ID']['input'];
};

export type TeamQuestionnaireStateType = {
  id: Scalars['ID']['output'];
  todo: Scalars['Boolean']['output'];
};



export type ResolverTypeWrapper<T> = Promise<T> | T;


export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
  resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
};
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;

export type ResolverFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => Promise<TResult> | TResult;

export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;

export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
  subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
  resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
}

export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
  subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
  resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
}

export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
  | SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
  | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;

export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
  | ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
  | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;

export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
  parent: TParent,
  context: TContext,
  info: GraphQLResolveInfo
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;

export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;

export type NextResolverFn<T> = () => Promise<T>;

export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
  next: NextResolverFn<TResult>,
  parent: TParent,
  args: TArgs,
  context: TContext,
  info: GraphQLResolveInfo
) => TResult | Promise<TResult>;



/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
  ActionLogType: ResolverTypeWrapper<ActionLogType>;
  Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
  EmailThreadType: ResolverTypeWrapper<EmailThreadType>;
  EmailType: ResolverTypeWrapper<EmailType>;
  ID: ResolverTypeWrapper<Scalars['ID']['output']>;
  Mutation: ResolverTypeWrapper<{}>;
  MutationResult: ResolverTypeWrapper<MutationResult>;
  Query: ResolverTypeWrapper<{}>;
  String: ResolverTypeWrapper<Scalars['String']['output']>;
  TeamQuestionnaireStateType: ResolverTypeWrapper<TeamQuestionnaireStateType>;
};

/** Mapping between all available schema types and the resolvers parents */
export type ResolversParentTypes = {
  ActionLogType: ActionLogType;
  Boolean: Scalars['Boolean']['output'];
  EmailThreadType: EmailThreadType;
  EmailType: EmailType;
  ID: Scalars['ID']['output'];
  Mutation: {};
  MutationResult: MutationResult;
  Query: {};
  String: Scalars['String']['output'];
  TeamQuestionnaireStateType: TeamQuestionnaireStateType;
};

export type ActionLogTypeResolvers<ContextType = any, ParentType extends ResolversParentTypes['ActionLogType'] = ResolversParentTypes['ActionLogType']> = {
  id: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
  todo: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type EmailThreadTypeResolvers<ContextType = any, ParentType extends ResolversParentTypes['EmailThreadType'] = ResolversParentTypes['EmailThreadType']> = {
  archived: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  id: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type EmailTypeResolvers<ContextType = any, ParentType extends ResolversParentTypes['EmailType'] = ResolversParentTypes['EmailType']> = {
  id: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
  todo: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type MutationResolvers<ContextType = any, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = {
  setArchiveEmail: Resolver<Maybe<ResolversTypes['EmailThreadType']>, ParentType, ContextType, RequireFields<MutationSetArchiveEmailArgs, 'emailThreadId' | 'state'>>;
  setEmailTodo: Resolver<Maybe<ResolversTypes['EmailType']>, ParentType, ContextType, RequireFields<MutationSetEmailTodoArgs, 'emailId' | 'state'>>;
  setTeamQuestionnaireTodo: Resolver<Maybe<ResolversTypes['TeamQuestionnaireStateType']>, ParentType, ContextType, RequireFields<MutationSetTeamQuestionnaireTodoArgs, 'state' | 'teamQuestionnaireId'>>;
  setTodoActionLog: Resolver<Maybe<ResolversTypes['ActionLogType']>, ParentType, ContextType, RequireFields<MutationSetTodoActionLogArgs, 'actionLogId' | 'state'>>;
};

export type MutationResultResolvers<ContextType = any, ParentType extends ResolversParentTypes['MutationResult'] = ResolversParentTypes['MutationResult']> = {
  operationDone: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type QueryResolvers<ContextType = any, ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query']> = {
  archiveEmail: Resolver<Maybe<ResolversTypes['EmailThreadType']>, ParentType, ContextType, RequireFields<QueryArchiveEmailArgs, 'id'>>;
  emailTodo: Resolver<Maybe<ResolversTypes['EmailType']>, ParentType, ContextType, RequireFields<QueryEmailTodoArgs, 'id'>>;
  teamQuestionnaireTodo: Resolver<Maybe<ResolversTypes['TeamQuestionnaireStateType']>, ParentType, ContextType, RequireFields<QueryTeamQuestionnaireTodoArgs, 'id'>>;
  todoActionLog: Resolver<Maybe<ResolversTypes['ActionLogType']>, ParentType, ContextType, RequireFields<QueryTodoActionLogArgs, 'id'>>;
};

export type TeamQuestionnaireStateTypeResolvers<ContextType = any, ParentType extends ResolversParentTypes['TeamQuestionnaireStateType'] = ResolversParentTypes['TeamQuestionnaireStateType']> = {
  id: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
  todo: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type Resolvers<ContextType = any> = {
  ActionLogType: ActionLogTypeResolvers<ContextType>;
  EmailThreadType: EmailThreadTypeResolvers<ContextType>;
  EmailType: EmailTypeResolvers<ContextType>;
  Mutation: MutationResolvers<ContextType>;
  MutationResult: MutationResultResolvers<ContextType>;
  Query: QueryResolvers<ContextType>;
  TeamQuestionnaireStateType: TeamQuestionnaireStateTypeResolvers<ContextType>;
};

