mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 15:42:48 -05:00
SM-281: Secrets Manager Trash (#2688)
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
namespace Bit.Core.SecretsManager.Commands.Trash.Interfaces;
|
||||
|
||||
public interface IEmptyTrashCommand
|
||||
{
|
||||
Task EmptyTrash(Guid organizationId, List<Guid> ids);
|
||||
}
|
||||
|
@ -0,0 +1,6 @@
|
||||
namespace Bit.Core.SecretsManager.Commands.Trash.Interfaces;
|
||||
|
||||
public interface IRestoreTrashCommand
|
||||
{
|
||||
Task RestoreTrash(Guid organizationId, List<Guid> ids);
|
||||
}
|
@ -6,6 +6,8 @@ namespace Bit.Core.SecretsManager.Repositories;
|
||||
public interface ISecretRepository
|
||||
{
|
||||
Task<IEnumerable<Secret>> GetManyByOrganizationIdAsync(Guid organizationId, Guid userId, AccessClientType accessType);
|
||||
Task<IEnumerable<Secret>> GetManyByOrganizationIdInTrashAsync(Guid organizationId);
|
||||
Task<IEnumerable<Secret>> GetManyByOrganizationIdInTrashByIdsAsync(Guid organizationId, IEnumerable<Guid> ids);
|
||||
Task<IEnumerable<Secret>> GetManyByIds(IEnumerable<Guid> ids);
|
||||
Task<IEnumerable<Secret>> GetManyByProjectIdAsync(Guid projectId, Guid userId, AccessClientType accessType);
|
||||
Task<Secret> GetByIdAsync(Guid id);
|
||||
@ -13,5 +15,6 @@ public interface ISecretRepository
|
||||
Task<Secret> UpdateAsync(Secret secret);
|
||||
Task SoftDeleteManyByIdAsync(IEnumerable<Guid> ids);
|
||||
Task HardDeleteManyByIdAsync(IEnumerable<Guid> ids);
|
||||
Task RestoreManyByIdAsync(IEnumerable<Guid> ids);
|
||||
Task<IEnumerable<Secret>> ImportAsync(IEnumerable<Secret> secrets);
|
||||
}
|
||||
|
Reference in New Issue
Block a user