mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* feat: app/dataset support group (#2898) * pref: member-group (#2862) * feat: group list ordered by updateTime * fix: transfer ownership of group when deleting member * fix: i18n fix * feat: can not set member as admin/owner when user is not active * fix: GroupInfoModal hover input do not change color * fix(fe): searchinput do not scroll * feat: app collaborator with group, remove default permission * feat: dataset collaborator with group, remove default permission * chore(test): pref mock * chore: remove useless code * chore: adjust * fix: add self as collaborator when creating folder * fix(fe): folder manage menu do not show when user has write permission only * fix: dataset folder create * feat: Add code comment * Pref: app move (#2952) * perf: app schema * doc --------- Co-authored-by: Finley Ge <32237950+FinleyGe@users.noreply.github.com>
32 lines
700 B
TypeScript
32 lines
700 B
TypeScript
import { RequireAtLeastOne, RequireOnlyOne } from '../../common/type/utils';
|
|
import { Permission } from './controller';
|
|
import { PermissionValueType } from './type';
|
|
|
|
export type CollaboratorItemType = {
|
|
teamId: string;
|
|
permission: Permission;
|
|
name: string;
|
|
avatar: string;
|
|
} & RequireOnlyOne<{
|
|
tmbId: string;
|
|
groupId: string;
|
|
}>;
|
|
|
|
export type UpdateClbPermissionProps = {
|
|
members?: string[];
|
|
groups?: string[];
|
|
permission: PermissionValueType;
|
|
};
|
|
|
|
export type DeleteClbPermissionProps = RequireOnlyOne<{
|
|
tmbId: string;
|
|
groupId: string;
|
|
}>;
|
|
|
|
export type UpdatePermissionBody = {
|
|
permission: PermissionValueType;
|
|
} & RequireOnlyOne<{
|
|
memberId: string;
|
|
groupId: string;
|
|
}>;
|