mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
30 lines
539 B
Text
30 lines
539 B
Text
// @flow
|
|
import type { Category } from './category'
|
|
import type { PresentableRole, Permissions } from './role'
|
|
|
|
export type ServerSlug = {
|
|
id: string,
|
|
name: string,
|
|
ownerID: string,
|
|
icon: string
|
|
}
|
|
|
|
export type ServerModel = {
|
|
id: string,
|
|
categories: {
|
|
[uuid: string]: Category
|
|
},
|
|
message: string
|
|
}
|
|
|
|
export type PresentableServer = ServerModel & {
|
|
id: string,
|
|
gm?: {
|
|
color: number | string,
|
|
nickname: string,
|
|
roles: string[]
|
|
},
|
|
server: ServerSlug,
|
|
roles: ?PresentableRole[],
|
|
perms: Permissions
|
|
}
|