/* eslint-disable */
//@ts-nocheck
import type { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } 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; }
  UUID: { input: any; output: any; }
};

export type EmailDraftInput = {
  activateMilestone: InputMaybe<Scalars['String']['input']>;
  content: InputMaybe<Scalars['String']['input']>;
  deactivateMilestone: InputMaybe<Scalars['String']['input']>;
  emailThreadId: InputMaybe<Scalars['String']['input']>;
  fileId: InputMaybe<Scalars['UUID']['input']>;
  instructor: Scalars['Boolean']['input'];
  selectedContacts: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
  senderAddress: InputMaybe<Scalars['String']['input']>;
  subject: InputMaybe<Scalars['String']['input']>;
  teamId: Scalars['String']['input'];
  templateId: InputMaybe<Scalars['String']['input']>;
};

export type EmailDraftType = {
  activateMilestone: Maybe<Scalars['String']['output']>;
  content: Maybe<Scalars['String']['output']>;
  deactivateMilestone: Maybe<Scalars['String']['output']>;
  emailThreadId: Maybe<Scalars['String']['output']>;
  fileId: Maybe<Scalars['UUID']['output']>;
  instructor: Scalars['Boolean']['output'];
  selectedContacts: Maybe<Array<Maybe<Scalars['String']['output']>>>;
  senderAddress: Maybe<Scalars['String']['output']>;
  subject: Maybe<Scalars['String']['output']>;
  teamId: Scalars['String']['output'];
  templateId: Maybe<Scalars['String']['output']>;
};

export type Mutation = {
  deleteEmailDraft: Maybe<MutationResult>;
  setEmailDraft: Maybe<EmailDraftType>;
};


export type MutationDeleteEmailDraftArgs = {
  emailThreadId: InputMaybe<Scalars['ID']['input']>;
  instructor: Scalars['Boolean']['input'];
  teamId: Scalars['ID']['input'];
};


export type MutationSetEmailDraftArgs = {
  emailDraft: EmailDraftInput;
};

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

export type Query = {
  getEmailDraft: Maybe<EmailDraftType>;
  getEmailDrafts: Maybe<Array<Maybe<EmailDraftType>>>;
};


export type QueryGetEmailDraftArgs = {
  emailThreadId: InputMaybe<Scalars['ID']['input']>;
  instructor: Scalars['Boolean']['input'];
  teamId: Scalars['ID']['input'];
};


export type QueryGetEmailDraftsArgs = {
  instructor: Scalars['Boolean']['input'];
  teamId: Scalars['ID']['input'];
};



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 = {
  Boolean: ResolverTypeWrapper<Scalars['Boolean']['output']>;
  EmailDraftInput: EmailDraftInput;
  EmailDraftType: ResolverTypeWrapper<EmailDraftType>;
  ID: ResolverTypeWrapper<Scalars['ID']['output']>;
  Mutation: ResolverTypeWrapper<{}>;
  MutationResult: ResolverTypeWrapper<MutationResult>;
  Query: ResolverTypeWrapper<{}>;
  String: ResolverTypeWrapper<Scalars['String']['output']>;
  UUID: ResolverTypeWrapper<Scalars['UUID']['output']>;
};

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

export type EmailDraftTypeResolvers<ContextType = any, ParentType extends ResolversParentTypes['EmailDraftType'] = ResolversParentTypes['EmailDraftType']> = {
  activateMilestone: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  content: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  deactivateMilestone: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  emailThreadId: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  fileId: Resolver<Maybe<ResolversTypes['UUID']>, ParentType, ContextType>;
  instructor: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
  selectedContacts: Resolver<Maybe<Array<Maybe<ResolversTypes['String']>>>, ParentType, ContextType>;
  senderAddress: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  subject: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  teamId: Resolver<ResolversTypes['String'], ParentType, ContextType>;
  templateId: Resolver<Maybe<ResolversTypes['String']>, ParentType, ContextType>;
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type MutationResolvers<ContextType = any, ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation']> = {
  deleteEmailDraft: Resolver<Maybe<ResolversTypes['MutationResult']>, ParentType, ContextType, RequireFields<MutationDeleteEmailDraftArgs, 'instructor' | 'teamId'>>;
  setEmailDraft: Resolver<Maybe<ResolversTypes['EmailDraftType']>, ParentType, ContextType, RequireFields<MutationSetEmailDraftArgs, 'emailDraft'>>;
};

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']> = {
  getEmailDraft: Resolver<Maybe<ResolversTypes['EmailDraftType']>, ParentType, ContextType, RequireFields<QueryGetEmailDraftArgs, 'instructor' | 'teamId'>>;
  getEmailDrafts: Resolver<Maybe<Array<Maybe<ResolversTypes['EmailDraftType']>>>, ParentType, ContextType, RequireFields<QueryGetEmailDraftsArgs, 'instructor' | 'teamId'>>;
};

export interface UuidScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['UUID'], any> {
  name: 'UUID';
}

export type Resolvers<ContextType = any> = {
  EmailDraftType: EmailDraftTypeResolvers<ContextType>;
  Mutation: MutationResolvers<ContextType>;
  MutationResult: MutationResultResolvers<ContextType>;
  Query: QueryResolvers<ContextType>;
  UUID: GraphQLScalarType;
};

