using OmsorgCore.Domain.Entities;

namespace OmsorgCore.Application.Abstractions;

public interface IFacilityContactRepository
{
    Task<FacilityContact?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<FacilityContact>> GetByFacilityIdAsync(Guid facilityId, CancellationToken cancellationToken = default);
    Task AddAsync(FacilityContact contact, CancellationToken cancellationToken = default);
    Task UpdateAsync(FacilityContact contact, CancellationToken cancellationToken = default);
    Task<bool> SoftDeleteAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<FacilityContact>> GetDeletedAsync(string? search, CancellationToken cancellationToken = default);
    Task<bool> RestoreAsync(Guid id, CancellationToken cancellationToken = default);
    Task SaveChangesAsync(CancellationToken cancellationToken = default);
}
