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

import { createModuleNameFromMetaUrl } from '@/graphql/services/_helpers/common';

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

export default new GraphQLInputObjectType({
  name: SET_AIW_THUMBNAIL_FROM_VIDEO_FRAME_PAYLOAD,
  fields: {
    videoId: {
      type: GraphQLString,
    },
    timestamp: {
      type: GraphQLInt,
    },
  },
});
