Add custom role management to the DNS platform

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/fb5aa655-f629-4c37-866e-94e4a13345a1.jpg
This commit is contained in:
alphaeusmote
2025-04-11 16:33:46 +00:00
+8
View File
@@ -87,6 +87,14 @@ export interface IStorage {
getDnsMetricsByRecord(recordId: string, metricType?: string, startDate?: Date, endDate?: Date): Promise<DnsMetric[]>;
getDnsMetricsByType(metricType: string, startDate?: Date, endDate?: Date): Promise<DnsMetric[]>;
// Custom Roles management
getCustomRole(id: string): Promise<CustomRole | undefined>;
getCustomRoles(): Promise<CustomRole[]>;
getCustomRoleByName(name: string): Promise<CustomRole | undefined>;
createCustomRole(role: InsertCustomRole): Promise<CustomRole>;
updateCustomRole(id: string, role: Partial<InsertCustomRole>): Promise<CustomRole | undefined>;
deleteCustomRole(id: string): Promise<boolean>;
// Session store
sessionStore: any;
}