mirror of
https://github.com/immich-app/immich.git
synced 2025-11-02 09:07:42 +09:00
15 lines
616 B
TypeScript
15 lines
616 B
TypeScript
import { MemoryEntity } from 'src/entities/memory.entity';
|
|
|
|
export const IMemoryRepository = 'IMemoryRepository';
|
|
|
|
export interface IMemoryRepository {
|
|
search(ownerId: string): Promise<MemoryEntity[]>;
|
|
get(id: string): Promise<MemoryEntity | null>;
|
|
create(memory: Partial<MemoryEntity>): Promise<MemoryEntity>;
|
|
update(memory: Partial<MemoryEntity>): Promise<MemoryEntity>;
|
|
delete(id: string): Promise<void>;
|
|
getAssetIds(id: string, assetIds: string[]): Promise<Set<string>>;
|
|
addAssetIds(id: string, assetIds: string[]): Promise<void>;
|
|
removeAssetIds(id: string, assetIds: string[]): Promise<void>;
|
|
}
|