mirror of
https://github.com/bitwarden/server.git
synced 2026-02-01 06:33:17 +08:00
- Added sproc to check if org admin for free org create - Removed old proeprties not in user from org and subvault - Added more cascade deletes
22 lines
1.0 KiB
C#
22 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Models.Table;
|
|
using Bit.Core.Models.Data;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Repositories
|
|
{
|
|
public interface IOrganizationUserRepository : IRepository<OrganizationUser, Guid>
|
|
{
|
|
Task<int> GetCountByFreeOrganizationAdminUserAsync(Guid userId);
|
|
Task<ICollection<OrganizationUser>> GetManyByUserAsync(Guid userId);
|
|
Task<ICollection<OrganizationUser>> GetManyByOrganizationAsync(Guid organizationId, OrganizationUserType? type);
|
|
Task<OrganizationUser> GetByOrganizationAsync(Guid organizationId, string email);
|
|
Task<Tuple<OrganizationUserUserDetails, ICollection<SubvaultUserSubvaultDetails>>> GetDetailsByIdAsync(Guid id);
|
|
Task<ICollection<OrganizationUserUserDetails>> GetManyDetailsByOrganizationAsync(Guid organizationId);
|
|
Task<ICollection<OrganizationUserOrganizationDetails>> GetManyDetailsByUserAsync(Guid userId,
|
|
OrganizationUserStatusType? status = null);
|
|
}
|
|
}
|