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

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

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

export default new GraphQLInputObjectType({
  name: PAYLOAD_GET_XRAY_LINE_ITEMS,
  fields: {
    sortBy: {
      type: GraphQLString,
    },
    sortOrder: {
      type: GraphQLString,
    },
    page: {
      type: GraphQLInt,
    },
    pageSize: {
      type: GraphQLInt,
    },
    status: {
      type: GraphQLInt,
    },
    searchText: {
      type: GraphQLString,
    },
    publisherId: {
      type: GraphQLInt,
    },
    xrayCampaignId: {
      type: GraphQLInt,
    },
  },
});
