synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
15 lines • 711 B
TypeScript
import { ResourceAccess, UserGroupHeader } from '@sage-bionetworks/synapse-types';
type UseNotifyNewACLUsersOptions = {
subject: string;
body: string;
initialResourceAccessList: ResourceAccess[];
newResourceAccessList: ResourceAccess[];
};
export declare function shouldNotifyUserInNewResourceAccess(principalId: number, initialResourceAccessList: ResourceAccess[], userGroupHeader: UserGroupHeader, currentUserId: string, publicPrincipalIds: string[]): boolean;
export default function useNotifyNewACLUsers(options: UseNotifyNewACLUsersOptions): {
sendNotification: () => void;
isPending: boolean;
isLoading: boolean;
};
export {};
//# sourceMappingURL=useNotifyNewACLUsers.d.ts.map