2017-10-18 22:14:45 +08:00
|
|
|
// @flow
|
|
|
|
|
2017-10-19 16:35:53 +08:00
|
|
|
export type Teams$TeamMemberActions = {
|
|
|
|
currentRole: string,
|
|
|
|
teamUserId: number,
|
|
|
|
disable: boolean
|
|
|
|
}
|
|
|
|
|
2017-10-18 22:14:45 +08:00
|
|
|
export type Teams$TeamMember = {
|
2017-10-19 16:35:53 +08:00
|
|
|
actions: Teams$TeamMemberActions,
|
2017-10-18 22:14:45 +08:00
|
|
|
created_at: string,
|
|
|
|
email: string,
|
|
|
|
id: number,
|
|
|
|
name: string,
|
|
|
|
role: string,
|
|
|
|
status: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type Teams$NewTeam = {
|
|
|
|
name: string,
|
|
|
|
description: string
|
|
|
|
};
|
|
|
|
|
|
|
|
export type Teams$Team = {
|
|
|
|
id: number,
|
|
|
|
name: string,
|
|
|
|
current_team: boolean,
|
|
|
|
role: string,
|
|
|
|
members: number,
|
2017-11-02 23:41:29 +08:00
|
|
|
can_be_left: boolean,
|
2017-10-23 21:48:12 +08:00
|
|
|
user_team_id: number
|
2017-10-18 22:14:45 +08:00
|
|
|
};
|