mirror of
https://github.com/bitwarden/server.git
synced 2025-06-15 15:30:49 -05:00

* [PM-14380] Add GetManyByOrganizationIdStatusAsync to SecurityTaskRepository * [PM-14380] Introduce IGetTasksForOrganizationQuery * [PM-14380] Add /tasks/organization endpoint * [PM-14380] Add unit tests * [PM-14380] Formatting * [PM-14380] Bump migration script date * [PM-14380] Bump migration script date
16 lines
598 B
C#
16 lines
598 B
C#
using Bit.Core.Vault.Entities;
|
|
using Bit.Core.Vault.Enums;
|
|
|
|
namespace Bit.Core.Vault.Queries;
|
|
|
|
public interface IGetTasksForOrganizationQuery
|
|
{
|
|
/// <summary>
|
|
/// Retrieves all security tasks for an organization.
|
|
/// </summary>
|
|
/// <param name="organizationId">The Id of the organization</param>
|
|
/// <param name="status">Optional filter for task status. If not provided, returns tasks of all statuses</param>
|
|
/// <returns>A collection of security tasks</returns>
|
|
Task<ICollection<SecurityTask>> GetTasksAsync(Guid organizationId, SecurityTaskStatus? status = null);
|
|
}
|