using OmsorgCore.Domain.Entities;

namespace OmsorgCore.Application.Abstractions;

public interface IFacilityRepository
{
    Task<Facility?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<Facility>> GetAllAsync(CancellationToken cancellationToken = default);
    Task<(IReadOnlyList<Facility> Items, int TotalCount)> GetPagedAsync(
        string? search,
        string? crmStatus,
        bool followUpDueOnly,
        int page,
        int pageSize,
        CancellationToken cancellationToken = default);
    Task AddAsync(Facility facility, CancellationToken cancellationToken = default);
    Task UpdateAsync(Facility facility, CancellationToken cancellationToken = default);
    Task<bool> SoftDeleteAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<Facility>> GetDeletedAsync(string? search, CancellationToken cancellationToken = default);
    Task<bool> RestoreAsync(Guid id, CancellationToken cancellationToken = default);
    Task SaveChangesAsync(CancellationToken cancellationToken = default);
}
