2023-06-06 22:18:38 +02:00
|
|
|
export const IAccessRepository = 'IAccessRepository';
|
|
|
|
|
|
|
|
export interface IAccessRepository {
|
2023-11-01 04:13:34 +01:00
|
|
|
activity: {
|
|
|
|
hasOwnerAccess(userId: string, albumId: string): Promise<boolean>;
|
|
|
|
hasAlbumOwnerAccess(userId: string, albumId: string): Promise<boolean>;
|
|
|
|
};
|
2023-06-28 15:56:24 +02:00
|
|
|
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>;
|
|
|
|
};
|
2023-06-21 03:08:43 +02:00
|
|
|
|
2023-10-30 16:48:38 +01:00
|
|
|
authDevice: {
|
|
|
|
hasOwnerAccess(userId: string, deviceId: string): Promise<boolean>;
|
|
|
|
};
|
|
|
|
|
2023-06-28 15:56:24 +02:00
|
|
|
album: {
|
|
|
|
hasOwnerAccess(userId: string, albumId: string): Promise<boolean>;
|
|
|
|
hasSharedAlbumAccess(userId: string, albumId: string): Promise<boolean>;
|
|
|
|
hasSharedLinkAccess(sharedLinkId: string, albumId: string): Promise<boolean>;
|
|
|
|
};
|
2023-06-21 03:08:43 +02:00
|
|
|
|
2023-06-28 15:56:24 +02:00
|
|
|
library: {
|
2023-09-20 13:16:33 +02:00
|
|
|
hasOwnerAccess(userId: string, libraryId: string): Promise<boolean>;
|
|
|
|
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
|
|
|
|
};
|
|
|
|
|
|
|
|
timeline: {
|
2023-06-28 15:56:24 +02:00
|
|
|
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
|
|
|
|
};
|
2023-09-18 23:22:44 +02:00
|
|
|
|
|
|
|
person: {
|
|
|
|
hasOwnerAccess(userId: string, personId: string): Promise<boolean>;
|
|
|
|
};
|
2023-06-06 22:18:38 +02:00
|
|
|
}
|