Add group management functionality. Includes creating, reading, updating, and deleting groups and their members.

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/3fe56e9d-2ec4-4180-9f3d-a256a9f15f1d.jpg
This commit is contained in:
alphaeusmote
2025-04-10 12:26:16 +00:00
parent d4ccfffeb2
commit 977fa37a68
2 changed files with 152 additions and 1 deletions
+10
View File
@@ -29,6 +29,16 @@ export interface IStorage {
updateOrganization(id: string, org: Partial<InsertOrganization>): Promise<Organization | undefined>;
deleteOrganization(id: string): Promise<boolean>;
// Group management
getGroup(id: string): Promise<Group | undefined>;
getGroups(): Promise<Group[]>;
getGroupMembers(groupId: string): Promise<GroupMember[]>;
createGroup(group: InsertGroup): Promise<Group>;
updateGroup(id: string, group: Partial<InsertGroup>): Promise<Group | undefined>;
deleteGroup(id: string): Promise<boolean>;
addGroupMember(member: InsertGroupMember): Promise<GroupMember>;
removeGroupMember(id: string): Promise<boolean>;
// Domain management
getDomain(id: string): Promise<Domain | undefined>;
getDomainsByOrganization(organizationId: string): Promise<Domain[]>;