import { AnyJson, DataProviderArgs, Processor } from '~/types/interfaces'
import BaseProcessor from '~/services/data/processor/baseProcessor'
import { QUERY_TYPE } from '~/types/enums'

class FileProcessor extends BaseProcessor implements Processor {
  /**
   * Is the given argument a supported model
   * @param args
   */
  public static support (args: DataProviderArgs): boolean {
    return args.type === QUERY_TYPE.FILE
  }

  /**
   *
   * @param data
   */
  // eslint-disable-next-line require-await
  async process (data: AnyJson): Promise<any> {
    return data
  }
}

export default FileProcessor
