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