mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
14 lines
313 B
TypeScript
14 lines
313 B
TypeScript
import { registerEnumType } from 'type-graphql'
|
|
|
|
export enum RoleNames {
|
|
UNAUTHORIZED = 'UNAUTHORIZED',
|
|
USER = 'USER',
|
|
MODERATOR = 'MODERATOR',
|
|
ADMIN = 'ADMIN',
|
|
}
|
|
|
|
registerEnumType(RoleNames, {
|
|
name: 'RoleNames', // this one is mandatory
|
|
description: 'Possible role names', // this one is optional
|
|
})
|