mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 05:46:46 +01:00
12 lines
541 B
TypeScript
12 lines
541 B
TypeScript
import { SharedLinkEntity } from '@app/infra/entities';
|
|
|
|
export const ISharedLinkRepository = 'ISharedLinkRepository';
|
|
|
|
export interface ISharedLinkRepository {
|
|
getAll(userId: string): Promise<SharedLinkEntity[]>;
|
|
get(userId: string, id: string): Promise<SharedLinkEntity | null>;
|
|
getByKey(key: Buffer): Promise<SharedLinkEntity | null>;
|
|
create(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
|
|
update(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
|
|
remove(entity: SharedLinkEntity): Promise<void>;
|
|
}
|