summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 22:38:21 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-26 22:38:21 +0200
commita3fbe6ba7def406719f4a8569eb33a35f9253bd1 (patch)
treeeba479e833df26970f26f8d82cad109711aa2e3c
parent:sparkles: add Application (diff)
downloadserver-a3fbe6ba7def406719f4a8569eb33a35f9253bd1.tar.xz
:sparkles: add Team
-rw-r--r--src/models/Team.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/models/Team.ts b/src/models/Team.ts
new file mode 100644

index 00000000..795c82d2 --- /dev/null +++ b/src/models/Team.ts
@@ -0,0 +1,17 @@ +export interface Team { + icon: string | null; + id: string; + members: { + membership_state: number; + permissions: string[]; + team_id: string; + user_id: string; + }[]; + name: string; + owner_user_id: string; +} + +export enum TeamMemberState { + INVITED = 1, + ACCEPTED = 2, +}