mirror of
https://github.com/immich-app/immich.git
synced 2025-01-25 13:12:46 +01:00
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
|
import { AuditEntity, DatabaseAction, EntityType } from '@app/infra/entities';
|
||
|
|
||
|
export const IAuditRepository = 'IAuditRepository';
|
||
|
|
||
|
export interface AuditSearch {
|
||
|
action?: DatabaseAction;
|
||
|
entityType?: EntityType;
|
||
|
ownerId?: string;
|
||
|
}
|
||
|
|
||
|
export interface IAuditRepository {
|
||
|
getAfter(since: Date, options: AuditSearch): Promise<AuditEntity[]>;
|
||
|
removeBefore(before: Date): Promise<void>;
|
||
|
}
|