mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01:00
16 lines
756 B
TypeScript
16 lines
756 B
TypeScript
import { LibraryStatsResponseDto } from 'src/dtos/library.dto';
|
|
import { LibraryEntity } from 'src/entities/library.entity';
|
|
|
|
export const ILibraryRepository = 'ILibraryRepository';
|
|
|
|
export interface ILibraryRepository {
|
|
getAll(withDeleted?: boolean): Promise<LibraryEntity[]>;
|
|
getAllDeleted(): Promise<LibraryEntity[]>;
|
|
get(id: string, withDeleted?: boolean): Promise<LibraryEntity | null>;
|
|
create(library: Partial<LibraryEntity>): Promise<LibraryEntity>;
|
|
delete(id: string): Promise<void>;
|
|
softDelete(id: string): Promise<void>;
|
|
update(library: Partial<LibraryEntity>): Promise<LibraryEntity>;
|
|
getStatistics(id: string): Promise<LibraryStatsResponseDto | undefined>;
|
|
getAssetIds(id: string, withDeleted?: boolean): Promise<string[]>;
|
|
}
|