mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
10 lines
391 B
TypeScript
10 lines
391 B
TypeScript
|
|
import { VersionHistoryEntity } from 'src/entities/version-history.entity';
|
||
|
|
|
||
|
|
export const IVersionHistoryRepository = 'IVersionHistoryRepository';
|
||
|
|
|
||
|
|
export interface IVersionHistoryRepository {
|
||
|
|
create(version: Omit<VersionHistoryEntity, 'id' | 'createdAt'>): Promise<VersionHistoryEntity>;
|
||
|
|
getAll(): Promise<VersionHistoryEntity[]>;
|
||
|
|
getLatest(): Promise<VersionHistoryEntity | null>;
|
||
|
|
}
|