@brandazm/dynamic-permissions
Version:
A flexible and powerful permissions management system for NestJS applications with built-in security features
26 lines (25 loc) • 1.05 kB
TypeScript
import { HttpException } from '@nestjs/common';
export declare class PermissionDeniedException extends HttpException {
constructor(permission: string, userId: string, metadata?: Record<string, any>);
}
export declare class InvalidPermissionException extends HttpException {
constructor(permission: string, reason: string);
}
export declare class RoleNotFoundException extends HttpException {
constructor(role: string);
}
export declare class ConfigurationException extends HttpException {
constructor(errors: string[]);
}
export declare class DatabaseException extends HttpException {
constructor(operation: string, error: Error);
}
export declare class MigrationException extends HttpException {
constructor(type: 'MIGRATION_FAILED' | 'SCHEMA_MISMATCH' | 'ROLLBACK_FAILED', details: string);
}
export declare class CacheException extends HttpException {
constructor(operation: string, error: Error);
}
export declare class ValidationException extends HttpException {
constructor(field: string, reason: string);
}