2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2018-08-14 15:30:04 -04:00
|
|
|
|
using Bit.Core.Models.Data;
|
2015-12-08 22:57:38 -05:00
|
|
|
|
|
2022-08-29 15:53:48 -04:00
|
|
|
|
namespace Bit.Core.Repositories
|
2015-12-08 22:57:38 -05:00
|
|
|
|
{
|
2022-08-29 15:53:48 -04:00
|
|
|
|
public interface IUserRepository : IRepository<User, Guid>
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<User> GetByEmailAsync(string email);
|
|
|
|
|
|
Task<User> GetBySsoUserAsync(string externalId, Guid? organizationId);
|
|
|
|
|
|
Task<UserKdfInformation> GetKdfInformationByEmailAsync(string email);
|
|
|
|
|
|
Task<ICollection<User>> SearchAsync(string email, int skip, int take);
|
|
|
|
|
|
Task<ICollection<User>> GetManyByPremiumAsync(bool premium);
|
|
|
|
|
|
Task<string> GetPublicKeyAsync(Guid id);
|
|
|
|
|
|
Task<DateTime> GetAccountRevisionDateAsync(Guid id);
|
|
|
|
|
|
Task UpdateStorageAsync(Guid id);
|
|
|
|
|
|
Task UpdateRenewalReminderDateAsync(Guid id, DateTime renewalReminderDate);
|
|
|
|
|
|
Task<IEnumerable<User>> GetManyAsync(IEnumerable<Guid> ids);
|
|
|
|
|
|
}
|
2015-12-08 22:57:38 -05:00
|
|
|
|
}
|