using OmsorgCore.Domain.Entities;

namespace OmsorgCore.Application.Services;

public interface IContractService
{
    Task<IReadOnlyList<Contract>> GetAllAsync(CancellationToken cancellationToken = default);
    Task<(IReadOnlyList<Contract> Items, int TotalCount)> GetPagedAsync(
        string? search,
        string? status,
        Guid? employeeId,
        Guid? facilityId,
        int page,
        int pageSize,
        CancellationToken cancellationToken = default);
    Task<Contract?> GetByIdAsync(Guid id, CancellationToken cancellationToken = default);
    Task<Contract> CreateAsync(Contract contract, CancellationToken cancellationToken = default);
    Task<Contract?> UpdateAsync(Guid id, Contract updates, CancellationToken cancellationToken = default);
    Task<bool> DeleteAsync(Guid id, CancellationToken cancellationToken = default);
    Task<IReadOnlyList<Contract>> GetDeletedAsync(string? search, CancellationToken cancellationToken = default);
    Task<bool> RestoreAsync(Guid id, CancellationToken cancellationToken = default);
}
