UNPKG

@openinc/parse-server-opendash

Version:
14 lines (13 loc) 553 B
import { RegisteredPermission } from ".."; /** * Returns all permissions defined in types/Permissions.ts as an array of Permission objects. * @returns all permissions */ export declare function getAllPermissions(): RegisteredPermission[]; /** * Entry point for the permission registration process. * It retrieves all tenants and registers the permissions for each tenant. * It also ensures that the default admin access permissions are set for each tenant. * @returns {Promise<void>} */ export default function initPermissions(): Promise<void>;