import { Event } from '../Event.entity' ; import { User } from 'src/Domain/HumanResource/User/User.entity' ; import { Project } from 'src/Domain/Project/Project.entity' ; export interface IEventRepository { save ( event ) : Promise < Event > ; delete ( event ) : void ; findOneById ( id ) : Promise < Event | undefined > ; findMonthlyEvents ( date , userId ) : Promise < Event [ ] > ; findBillableEventsByMonthAndProject ( date , project ) : Promise < any [ ] > ; sumOfTimeSpentByUserAndDate ( user , date ) : Promise < number > ; countEventsByUserAndPeriod ( user , startDate , endDate ) : Promise < number > ; }