mirror of
https://github.com/bitwarden/server
synced 2025-12-24 20:23:21 +00:00
* Add support for bulk confirm * Add missing sproc to migration * Change ConfirmUserAsync to internally use ConfirmUsersAsync * Refactor to be a bit more readable * Change BulkReinvite and BulkRemove to return a list of errors/success * Refactor * Fix removing owner preventing removing non owners * Add another unit test * Use fixtures for OrganizationUser and Policies * Fix spelling
23 lines
910 B
C#
23 lines
910 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Models.Table;
|
|
|
|
namespace Bit.Core.Repositories
|
|
{
|
|
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);
|
|
}
|
|
}
|