feat: team module added
This commit is contained in:
11
packages/hoppscotch-backend/src/user/user.data.handler.ts
Normal file
11
packages/hoppscotch-backend/src/user/user.data.handler.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as T from "fp-ts/Task"
|
||||
import * as TO from "fp-ts/TaskOption"
|
||||
import { User } from "src/user/user.model"
|
||||
|
||||
/**
|
||||
* Defines how external services should handle User Data and User data related operations and actions.
|
||||
*/
|
||||
export interface UserDataHandler {
|
||||
canAllowUserDeletion: (user: User) => TO.TaskOption<string>
|
||||
onUserDelete: (user: User) => T.Task<void>
|
||||
}
|
||||
Reference in New Issue
Block a user