mirror of
https://github.com/bitwarden/server.git
synced 2025-04-29 16:52:16 -05:00

* Mock out provider models and service * Implement CreateAsync, CompleteSetupAsync, UpdateAsync, InviteUserAsync and ResendInvitesAsync * Implement AcceptUserAsync and ConfirmUsersAsync * Implement SaveUserAsync and DeleteUserAsync * Add email templates * Add admin operations for providers * Fix mail template names * Rename roles * Verify provider has provideradmin * Add self hosted check to admin controller * Resolve review comments * Update sql queries * Change create provider to use email instead of userId
17 lines
624 B
C#
17 lines
624 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Enums.Provider;
|
|
using Bit.Core.Models.Table.Provider;
|
|
|
|
namespace Bit.Core.Repositories
|
|
{
|
|
public interface IProviderUserRepository : IRepository<ProviderUser, Guid>
|
|
{
|
|
Task<int> GetCountByProviderAsync(Guid providerId, string email, bool onlyRegisteredUsers);
|
|
Task<ICollection<ProviderUser>> GetManyAsync(IEnumerable<Guid> ids);
|
|
Task<ICollection<ProviderUser>> GetManyByProviderAsync(Guid providerId, ProviderUserType? type = null);
|
|
Task DeleteManyAsync(IEnumerable<Guid> userIds);
|
|
}
|
|
}
|