2026-05-14 11:00:12 -05:00
|
|
|
using Data.SeaHavenIndustries;
|
2026-07-24 11:03:43 -03:00
|
|
|
using SeaHaven.DataServices.Dto;
|
2026-05-14 11:00:12 -05:00
|
|
|
|
|
|
|
|
namespace SeaHaven.DataServices.Interfaces
|
|
|
|
|
{
|
|
|
|
|
public interface IUserDataService
|
|
|
|
|
{
|
|
|
|
|
Task<ApplicationUser?> GetByIdAsync(string id);
|
|
|
|
|
Task<IEnumerable<ApplicationUser>> GetAllAsync();
|
|
|
|
|
Task<ApplicationUser?> GetByEmailAsync(string email);
|
|
|
|
|
Task<bool> ExistsAsync(string id);
|
2026-07-24 11:03:43 -03:00
|
|
|
|
|
|
|
|
Task<IReadOnlyList<UserListRowData>> GetAllForListAsync(CancellationToken cancellationToken);
|
|
|
|
|
Task<UserProfileData?> GetProfileAsync(string id, CancellationToken cancellationToken);
|
|
|
|
|
Task<bool> UpdateProfileAsync(string id, string? name, string? email, string? contact, CancellationToken cancellationToken);
|
|
|
|
|
Task<ApplicationUser?> GetForEditAsync(string id, CancellationToken cancellationToken);
|
|
|
|
|
Task<ApplicationUser?> GetByEmailNormalizedAsync(string email, CancellationToken cancellationToken);
|
|
|
|
|
Task UpdateUserAsync(ApplicationUser user, CancellationToken cancellationToken);
|
|
|
|
|
Task DeleteUserWithCascadeAsync(ApplicationUser user, CancellationToken cancellationToken);
|
2026-07-24 11:12:00 -03:00
|
|
|
Task<string?> GetEmailByIdAsync(string userId, CancellationToken cancellationToken);
|
2026-05-14 11:00:12 -05:00
|
|
|
}
|
|
|
|
|
}
|