"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.passwordResetGQL = exports.requestPasswordResetGQL = exports.verifyEmailGQL = exports.meGQL = exports.userUpdateGQL = exports.userUpdatePasswordMutationGQL = exports.userAddMutationGQL = exports.userEditMutationGQL = exports.userTokenRefreshMutationGQL = exports.userAuthenticateMutationGQL = exports.userRegisterMutationGQL = void 0;
exports.userRegisterMutationGQL = `
  mutation userRegister($data: RegisterInput!) {
    userRegister(data: $data) {
      id
      email
    }
  }
`;
exports.userAuthenticateMutationGQL = `
  mutation userAuthenticate($email: String!, $password: String!) {
    userAuthenticate(email: $email, password: $password) {
      token
      user {
        id
        email
      }
    }
  }
`;
exports.userTokenRefreshMutationGQL = `
  mutation userTokenRefresh {
    userTokenRefresh {
      token
      user {
        id
        email
      }
    }
  }
`;
exports.userEditMutationGQL = `
  mutation userEdit($id: ID!, $userInput: UserInput!) {
    userEdit(id: $id, userInput: $userInput) {
      id
      email
      active
    }
  }
`;
exports.userAddMutationGQL = `
  mutation UserAdd($userCreateInput: UserCreateInput!) {
    userCreate(userCreateInput: $userCreateInput) {
      id
      email
      role
      active
    }
  }
`;
exports.userUpdatePasswordMutationGQL = `
  mutation UserUpdatePassword($userPasswordInput: UpdatePasswordInput!) {
    userUpdatePassword(passwordInput: $userPasswordInput)
  }
`;
exports.userUpdateGQL = `
  mutation userUpdate($userInput: UserUpdateInput!) {
    userUpdate(userUpdateInput: $userInput) {
      id
      email
    }
  }
`;
exports.meGQL = `
    mutation {
        me {
            email
        }
    }
`;
exports.verifyEmailGQL = `
  mutation UserVerify($email: String!, $token: String!) {
    userVerify(email: $email, token: $token ) {
      id
      email
      role
      status
      active
    }
  } 
`;
exports.requestPasswordResetGQL = `
  mutation RequestPasswordReset($email: String!) {
    userRequestPasswordReset(email: $email)
  } 
`;
exports.passwordResetGQL = `
  mutation PasswordReset($token: String!, $resetInput: ResetPasswordInput!) {
    userResetPassword(token: $token, resetInput: $resetInput)
  } 
`;
