mirror of
https://github.com/bitwarden/server.git
synced 2025-05-11 06:32:22 -05:00

* [PM-3779] Added IOrganizationDomainRepository.GetDomainByIdAndOrganizationIdAsync and SQL stored procedure * [PM-3779] Changed GetOrganizationDomainByIdQuery to also take OrgId as a parameter. Updated existing unit tests and added new. Updated controller to match command changes * [PM-3779] Removed type from url routes * [PM-3779] Renamed IGetOrganizationDomainByIdAndOrganizationIdQuery to IGetOrganizationDomainByIdOrganizationIdQuery * [PM-3779] Renamed GetOrganizationDomainByIdOrganizationIdQueryTests file and added more tests
17 lines
885 B
C#
17 lines
885 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Models.Data.Organizations;
|
|
|
|
namespace Bit.Core.Repositories;
|
|
|
|
public interface IOrganizationDomainRepository : IRepository<OrganizationDomain, Guid>
|
|
{
|
|
Task<ICollection<OrganizationDomain>> GetClaimedDomainsByDomainNameAsync(string domainName);
|
|
Task<ICollection<OrganizationDomain>> GetDomainsByOrganizationIdAsync(Guid orgId);
|
|
Task<ICollection<OrganizationDomain>> GetManyByNextRunDateAsync(DateTime date);
|
|
Task<OrganizationDomainSsoDetailsData> GetOrganizationDomainSsoDetailsAsync(string email);
|
|
Task<OrganizationDomain> GetDomainByIdOrganizationIdAsync(Guid id, Guid organizationId);
|
|
Task<OrganizationDomain> GetDomainByOrgIdAndDomainNameAsync(Guid orgId, string domainName);
|
|
Task<ICollection<OrganizationDomain>> GetExpiredOrganizationDomainsAsync();
|
|
Task<bool> DeleteExpiredAsync(int expirationPeriod);
|
|
}
|