All files / src constants.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 218x                 8x                 8x 8x  
export const PERMISSIONS = {
  // Wildcard permissions
  ALL: '*',                    // Super Admin - can do everything
  ALL_READ: '*.read',          // All read permissions
  ALL_CREATE: '*.create',      // All create permissions
  ALL_UPDATE: '*.update',      // All update permissions
  ALL_DELETE: '*.delete',      // All delete permissions
} as const
 
export const DEFAULT_SUPER_ADMIN_ROLE = {
  name: 'super_admin',
  label: 'Super Administrator',
  permissions: [PERMISSIONS.ALL],
  active: true,
  protected: true, // Cannot be deleted
  description: 'Full system access - automatically assigned to first user',
}
 
export const CRUD_OPERATIONS = ['create', 'read', 'update', 'delete'] as const
export const EXTENDED_OPERATIONS = ['manage', 'publish', 'archive'] as const