UNPKG

@mamoorali295/rbac

Version:

Complete RBAC (Role-Based Access Control) system for Node.js with Express middleware, NestJS integration, GraphQL support, MongoDB & PostgreSQL support, modern admin dashboard, TypeScript support, and dynamic permission management

25 lines (24 loc) 834 B
/** * Feature controller providing CRUD operations for RBAC features. * Features represent application modules or functionalities that can be assigned to roles. * * @namespace featureController * * @example * ```typescript * import { RBAC } from '@sheikh295/rbac'; * const { featureController } = RBAC.controllers; * * // Get all features * const { features } = await featureController.getAllFeatures(); * * // Create a new feature * await featureController.createFeature('reports', 'Reporting system'); * ``` */ export declare const featureController: { getAllFeatures: () => Promise<any>; createFeature: (name: string, description: string) => Promise<any>; updateFeature: (featureId: string, name: string, description: string) => Promise<any>; deleteFeature: (featureId: string) => Promise<any>; };