UNPKG

dbaas

Version:

Database as a service. Expose db to REST and GraphQL.

17 lines (16 loc) 653 B
import type { Accountability } from "@directus/shared/types"; import type { Request } from "express"; import type { ActionHookContext } from "../types/RegisterHook/ActionHookHandler.js"; import type { FilterHookContext } from "../types/RegisterHook/FilterHookHandler.js"; export interface User { id: string; role: string; status: string; } export interface Role { id: string; admin_access: boolean; app_access: boolean; } declare function getUserAccountability(reqOrFilterCtxOrActionCtx: Request | FilterHookContext | ActionHookContext, userId: string): Promise<Accountability | undefined>; export default getUserAccountability;