import { registerEnumType } from 'type-graphql'; export enum UserRole { /** * System specific role. * Will be responsible for taking actions that the system can do. */ SYSTEM = 'SYSTEM', /** User is verified and can access the application. */ USER = 'USER', /** Special role, only allow access to admin. */ ADMIN = 'ADMIN', } registerEnumType(UserRole, { name: 'UserRole', }); export enum UserStatus { /** * Special role, require allowing access even if user is unverified. Never * assigned to a user. */ UNVERIFIED = 'UNVERIFIED', /** * Special role, require allowing access even if user is anonymous. Never * assigned to a user. */ ANONYMOUS = 'ANONYMOUS', }