mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
14 lines
395 B
TypeScript
14 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>;
|
|
}
|