2023-06-06 16:18:38 -04:00
|
|
|
export const IAccessRepository = 'IAccessRepository';
|
|
|
|
|
|
|
|
|
|
export interface IAccessRepository {
|
2023-06-28 09:56:24 -04: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-20 21:08:43 -04:00
|
|
|
|
2023-06-28 09:56:24 -04: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-20 21:08:43 -04:00
|
|
|
|
2023-06-28 09:56:24 -04:00
|
|
|
library: {
|
|
|
|
|
hasPartnerAccess(userId: string, partnerId: string): Promise<boolean>;
|
|
|
|
|
};
|
2023-06-06 16:18:38 -04:00
|
|
|
}
|