import { registeredAccountSelector } from '../../selectors/accounts/registeredAccountSelector';
import { $, Selector, type GraphQLTypes, type InputType, type ModelTypes } from '../../zeus/index';

export const name = 'login'

export const mutation = Selector('Mutation')({
  [name]: [{data: $('data', 'LoginInput!')}, registeredAccountSelector]
});

export interface IInput {
  /**
   * @private
   */
  [key: string]: unknown;

  data: ModelTypes['LoginInput'],
}

export type IOutput = InputType<GraphQLTypes['Mutation'], typeof mutation>;
