refactor: team permission manager (#3535)
* perf: classify org, group and member * refactor: team per manager * fix: missing functions
This commit is contained in:
@@ -33,3 +33,27 @@ export type UpdatePermissionBody = {
|
||||
groupId: string;
|
||||
orgId: string;
|
||||
}>;
|
||||
|
||||
export type CreatePermissionBody = {
|
||||
tmbId: string[];
|
||||
groupId: string[];
|
||||
orgId: string[];
|
||||
};
|
||||
|
||||
export type DeletePermissionQuery = RequireOnlyOne<{
|
||||
tmbId?: string;
|
||||
groupId?: string;
|
||||
orgId?: string;
|
||||
}>;
|
||||
|
||||
export type TeamClbsListType = {
|
||||
permission: number;
|
||||
name: string;
|
||||
avatar: string;
|
||||
};
|
||||
|
||||
export type ListPermissionResponse = {
|
||||
tmb: (TeamClbsListType & { tmbId: string })[];
|
||||
group: (TeamClbsListType & { groupId: string })[];
|
||||
org: (TeamClbsListType & { orgId: string })[];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user