UNPKG

@userfrosting/sprinkle-account

Version:
31 lines (29 loc) 791 B
/** * Permission Model * * By default, the frontend role object will have the same interface as the PHP user. * Note that any Sprinkle can (and should!) extend this interface. * * Example: * - id: 1 * - slug: "show_hippo" * - name: "Show Hippopotamus" * - conditions: "always()" * - description: "This permission let you display any hippopotamus." * - created_at: "2023-09-16T19:23:59.000000Z" * - updated_at: "2023-09-16T19:23:59.000000Z" * - deleted_at: null */ export interface PermissionInterface { id: number slug: string name: string conditions: string description: string created_at: Date | string updated_at: Date | string deleted_at: Date | string | null } export interface UserPermissionsMapInterface { [key: string]: string[] }