feat(admin): add ban user to admin panel (#10780)

This commit is contained in:
JimmFly
2025-03-13 18:37:21 +08:00
committed by forehalo
parent d24ced3dbd
commit e96302ccb2
12 changed files with 354 additions and 23 deletions
+29
View File
@@ -2597,6 +2597,15 @@ export type DeleteWorkspaceMutation = {
deleteWorkspace: boolean;
};
export type DisableUserMutationVariables = Exact<{
id: Scalars['String']['input'];
}>;
export type DisableUserMutation = {
__typename?: 'Mutation';
banUser: { __typename?: 'UserType'; email: string; disabled: boolean };
};
export type GetDocRolePermissionsQueryVariables = Exact<{
workspaceId: Scalars['String']['input'];
docId: Scalars['String']['input'];
@@ -2628,6 +2637,15 @@ export type GetDocRolePermissionsQuery = {
};
};
export type EnableUserMutationVariables = Exact<{
id: Scalars['String']['input'];
}>;
export type EnableUserMutation = {
__typename?: 'Mutation';
enableUser: { __typename?: 'UserType'; email: string; disabled: boolean };
};
export type CredentialsRequirementsFragment = {
__typename?: 'CredentialsRequirementType';
password: {
@@ -3195,6 +3213,7 @@ export type ListUsersQuery = {
id: string;
name: string;
email: string;
disabled: boolean;
features: Array<FeatureType>;
hasPassword: boolean | null;
emailVerified: boolean;
@@ -4152,6 +4171,16 @@ export type Mutations =
variables: DeleteWorkspaceMutationVariables;
response: DeleteWorkspaceMutation;
}
| {
name: 'disableUserMutation';
variables: DisableUserMutationVariables;
response: DisableUserMutation;
}
| {
name: 'enableUserMutation';
variables: EnableUserMutationVariables;
response: EnableUserMutation;
}
| {
name: 'generateLicenseKeyMutation';
variables: GenerateLicenseKeyMutationVariables;