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

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

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

const CreateInputType = new GraphQLInputObjectType({
  name: PAYLOAD_NAME,
  description: 'Module CustomReportPCN Create Input Type',
  fields: {
    id: {
      type: GraphQLInt,
    },
    accountId: {
      type: GraphQLInt,
    },
    allSites: {
      type: GraphQLInt,
    },
    description: {
      type: GraphQLString,
    },
    enabled: {
      type: GraphQLInt,
    },
    icon: {
      type: GraphQLString,
    },
    lookerReportId: {
      type: GraphQLString,
    },
    publisherIds: {
      type: new GraphQLList(GraphQLInt),
    },
    uiName: {
      type: GraphQLString,
    },
  },
});

export default CreateInputType;
