text: const Joi = require('joi');
  const { password, objectId } = require('./custom.validation');
  
  
  const saveKycInfo = {
      // body: Joi.object().keys({
      //     // docTypeId: Joi.required().custom(objectId),
      //     // docInfo: Joi.object().required()
      //  })
  };
  
  const submitKyc = {
      body: Joi.object().keys({
          userPhoto: Joi.string(),
          idPhoto: Joi.string(),
          backIdPhoto: Joi.string(),
          firstName: Joi.string(),
          lastName: Joi.string(),
          dob: Joi.date(),
          email :Joi.string().email(),
          phone :Joi.string(),
       })
  };
  
  const getDocById = {
      params: Joi.object().keys({
          docId: Joi.required().custom(objectId),
        })
  };
  
  const updateDocById = {
      params: Joi.object().keys({
          docId: Joi.required().custom(objectId),
        })
  };
  
  const disableDocById = {
  params: Joi.object().keys({
      docId: Joi.required().custom(objectId),
    })
  };
  
  module.exports = {
      submitKyc,
      saveKycInfo,
      getDocById,
      updateDocById,
      disableDocById,
      
  };
  