UNPKG

@availity/authorize

Version:

Check user permissions to see if the current user is authorized to see your content.

19 lines (18 loc) 650 B
import { UseQueryOptions } from 'react-query'; export declare type Resource = { id: string; }; export declare type Organization = { id: string; customerId: string; name: string; resources: Resource[]; }; export declare type Permission = { id: string; description: string; organizations: Organization[]; }; export declare type RequestedPermissions = (string | string[])[]; export declare type RequestedResources = (string | string[])[]; export declare type QueryOptions = Omit<UseQueryOptions<boolean, unknown, boolean, (string | boolean | RequestedResources | undefined)[]>, 'queryKey' | 'queryFn'>;