feat: team module added

This commit is contained in:
Mir Arif Hasan
2023-02-07 21:15:54 +06:00
parent 420359066e
commit 9bee62ada9
12 changed files with 1937 additions and 2 deletions

View 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>
}