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

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

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

export default new GraphQLInputObjectType({
  name: PAYLOAD_NAME,
  fields: {
    copyId: {
      type: GraphQLInt,
    },
    id: {
      type: GraphQLInt,
    },
    name: {
      type: GraphQLString,
    },
    publisherId: {
      type: GraphQLInt,
    },
    title: {
      type: GraphQLString,
    },
    image: {
      type: GraphQLString,
    },
    buttonLabel1: {
      type: GraphQLString,
    },
    buttonUrl1: {
      type: GraphQLString,
    },
    buttonLabel2: {
      type: GraphQLString,
    },
    buttonUrl2: {
      type: GraphQLString,
    },
    impressionTracker: {
      type: GraphQLString,
    },
    clickTracker1: {
      type: GraphQLString,
    },
    clickTracker2: {
      type: GraphQLString,
    },
  },
});
