mirror of
https://github.com/immich-app/immich.git
synced 2026-01-04 00:57:08 -08:00
* feat: libraries Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: Alex <alex.tran1502@gmail.com>
30 lines
1006 B
TypeScript
30 lines
1006 B
TypeScript
export const IAccessRepository = 'IAccessRepository';
|
|
|
|
export interface IAccessRepository {
|
|
asset: {
|
|
hasOwnerAccess(userId: string, assetId: string): Promise<boolean>;
|
|
hasAlbumAccess(userId: string, assetId: string): Promise<boolean>;
|
|
hasPartnerAccess(userId: string, assetId: string): Promise<boolean>;
|
|
hasSharedLinkAccess(sharedLinkId: string, assetId: string): Promise<boolean>;
|
|
};
|
|
|
|
album: {
|
|
hasOwnerAccess(userId: string, albumId: string): Promise<boolean>;
|
|
hasSharedAlbumAccess(userId: string, albumId: string): Promise<boolean>;
|
|
hasSharedLinkAccess(sharedLinkId: string, albumId: string): Promise<boolean>;
|
|
};
|
|
|
|
library: {
|
|
hasOwnerAccess(userId: string, libraryId: string): Promise<boolean>;
|
|
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
|
|
};
|
|
|
|
timeline: {
|
|
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
|
|
};
|
|
|
|
person: {
|
|
hasOwnerAccess(userId: string, personId: string): Promise<boolean>;
|
|
};
|
|
}
|