using System; using System.Threading.Tasks; using Bit.Core.Models.Table; using System.Collections.Generic; using Bit.Core.Models.Data; namespace Bit.Core.Repositories { public interface ICollectionRepository : IRepository { Task GetCountByOrganizationIdAsync(Guid organizationId); Task>> GetByIdWithGroupsAsync(Guid id); Task> GetManyByOrganizationIdAsync(Guid organizationId); Task> GetManyByUserIdAsync(Guid userId, bool writeOnly); Task> GetManyUserDetailsByIdAsync(Guid organizationId, Guid collectionId); Task CreateAsync(Collection obj, IEnumerable groups); Task ReplaceAsync(Collection obj, IEnumerable groups); Task DeleteUserAsync(Guid collectionId, Guid organizationUserId); } }