Update dependencies and enhance admin account page
This commit updates various dependencies in pnpm-lock file and introduces enhancements to the admin account page. This includes adding several new functionality like 'Delete User', 'Ban User', 'Impersonate User' and 'Delete Account'. Various UI components are also added for these features.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const confirmationSchema = z.object({
|
||||
confirmation: z.custom((value) => value === 'CONFIRM'),
|
||||
});
|
||||
|
||||
const UserIdSchema = confirmationSchema.extend({
|
||||
userId: z.string().uuid(),
|
||||
});
|
||||
|
||||
export const BanUserSchema = UserIdSchema;
|
||||
export const ReactivateUserSchema = UserIdSchema;
|
||||
export const ImpersonateUserSchema = UserIdSchema;
|
||||
export const DeleteUserSchema = UserIdSchema;
|
||||
|
||||
export const DeleteAccountSchema = confirmationSchema.extend({
|
||||
accountId: z.string().uuid(),
|
||||
});
|
||||
Reference in New Issue
Block a user