import gql from 'graphql-tag';

export const oAuthCreateToken = gql`
  mutation oAuthCreateToken($payload: OAuthCreateTokenInput!) {
    oAuthCreateToken(payload: $payload) {
      accessToken
      refreshToken
    }
  }
`;

export const oAuthRevokeToken = gql`
  mutation oAuthRevokeToken($payload: OAuthRevokeTokenInput!) {
    oAuthRevokeToken(payload: $payload)
  }
`;

export const oAuthCreateImpersonalizeCredentials = gql`
  mutation oAuthCreateImpersonalizeCredentials($accountId: ID!) {
    oAuthCreateImpersonalizeCredentials(accountId: $accountId) {
      accessToken
      refreshToken
    }
  }
`;

export const iamForgotPasswordUserMutation = gql`
  mutation IamForgotPasswordUser($payload: IamForgotPasswordUserInput!) {
    iamForgotPasswordUser(payload: $payload)
  }
`;

export const iamResetPasswordUserMutation = gql`
  mutation IamResetPasswordUser($payload: IamResetPasswordUserInput!) {
    iamResetPasswordUser(payload: $payload)
  }
`;
