using OmsorgCore.Domain.Entities;

namespace OmsorgCore.Application.Services;

public interface IFacilityService
{
    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<Facility?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
    Task<Facility> CreateAsync(Facility facility, CancellationToken cancellationToken = default);
    Task<Facility?> UpdateAsync(Guid id, Facility updates, CancellationToken cancellationToken = default);
    Task<bool> DeleteAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<Facility>> GetDeletedAsync(string? search, CancellationToken cancellationToken = default);
    Task<bool> RestoreAsync(Guid id, CancellationToken cancellationToken = default);
}
