import Appointment from '../infra/typeorm/entities/Appointment' ; import ICreateAppointmentDTO from '../dtos/ICreateAppointmentDTO' ; import IFindAllInMonthFromProviderDTO from '../dtos/IFindAllInMonthFromProviderDTO' ; import IFindAllInDayFromProviderDTO from '../dtos/IFindAllInDayFromProviderDTO' ; export default interface IAppointmentsRepository { create ( data ) : Promise < Appointment > ; findByDate ( date ) : Promise < Appointment | undefined > ; findAllInMonthFromProvider ( data ) : Promise < Appointment [ ] > ; findAllInDayFromProvider ( data ) : Promise < Appointment [ ] > ; }