mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-26 14:57:42 +00:00
* refactor: auth guard * chore: move auth guard to middleware * chore: tests * chore: remove unused code * fix: migration to uuid without dataloss * chore: e2e tests * chore: removed unused guards
13 lines
631 B
TypeScript
13 lines
631 B
TypeScript
import { SharedLinkEntity } from '@app/infra/db/entities';
|
|
|
|
export const ISharedLinkRepository = 'ISharedLinkRepository';
|
|
|
|
export interface ISharedLinkRepository {
|
|
getAll(userId: string): Promise<SharedLinkEntity[]>;
|
|
get(userId: string, id: string): Promise<SharedLinkEntity | null>;
|
|
getByKey(key: string): Promise<SharedLinkEntity | null>;
|
|
create(entity: Omit<SharedLinkEntity, 'id' | 'user'>): Promise<SharedLinkEntity>;
|
|
remove(entity: SharedLinkEntity): Promise<SharedLinkEntity>;
|
|
save(entity: Partial<SharedLinkEntity>): Promise<SharedLinkEntity>;
|
|
hasAssetAccess(id: string, assetId: string): Promise<boolean>;
|
|
}
|