import { LeaveRequest , Status } from '../LeaveRequest.entity' ; import { User } from '../../User/User.entity' ; export interface ILeaveRequestRepository { save ( leaveRequest ) : Promise < LeaveRequest > ; remove ( leaveRequest ) : void ; findOneById ( id ) : Promise < LeaveRequest | undefined > ; findLeaveRequests ( page , status ? ) : Promise < [ LeaveRequest [ ] , number ] > ; findExistingLeaveRequestsByUserAndPeriod ( user , startDate , endDate ) : Promise < LeaveRequest | undefined > ; }