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

export const ITEM_INPUT_TYPE_NAME = 'AdServersPCNInputType';

const CreateInputType = new GraphQLInputObjectType({
  name: ITEM_INPUT_TYPE_NAME,
  description: 'Module AdServersPCN Create Input Type',
  fields: {
    id: {
      type: GraphQLInt,
    },
    name: {
      type: GraphQLString,
    },
    status: {
      type: GraphQLInt,
    },
    url: {
      type: GraphQLString,
    },
    placementId: {
      type: GraphQLInt,
    },
    macro: {
      type: GraphQLString,
    },
    comments: {
      type: GraphQLString,
    },
    isDefaultForPlayerType: {
      type: GraphQLBoolean,
    },
    playerTypesIds: {
      type: new GraphQLList(GraphQLInt),
    },
  },
});

export default CreateInputType;
