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: {
    accountId: {
      type: GraphQLString,
    },
    id: {
      type: GraphQLInt,
    },
    name: {
      type: GraphQLString,
    },
    status: {
      type: GraphQLInt,
    },
    type: {
      type: GraphQLInt,
    },
    comments: {
      type: GraphQLString,
    },
    salesforceId: {
      type: GraphQLString,
    },
    callToAction: {
      type: GraphQLInt,
    },
    isPublic: {
      type: GraphQLInt,
    },
  },
});
