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

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

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

export default new GraphQLInputObjectType({
  name: PAYLOAD_ITEM,
  fields: {
    overallFailure: {
      type: GraphQLInt,
    },
    popup: {
      type: GraphQLInt,
    },
    message: {
      type: GraphQLString,
    },
  },
});
