UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

15 lines 711 B
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