import { GraphQLInputObjectType, GraphQLInt, GraphQLString } from 'graphql';

import { createModuleNameFromMetaUrl } from '../../../_helpers/common';

export const PAYLOAD_GET_ROLE_LIST = createModuleNameFromMetaUrl(import.meta.url);

export default new GraphQLInputObjectType({
  name: PAYLOAD_GET_ROLE_LIST,
  fields: {
    sortBy: {
      type: GraphQLString,
    },
    sortOrder: {
      type: GraphQLString,
    },
    page: {
      type: GraphQLInt,
    },
    pageSize: {
      type: GraphQLInt,
    },
    type: {
      type: GraphQLString,
    },
    searchText: {
      type: GraphQLString,
    },
    accountId: {
      type: GraphQLInt,
    },
  },
});
