scinote-web/flow-typed/teams_types.js

37 lines
575 B
JavaScript
Raw Normal View History

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,
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
};
2017-11-06 22:14:17 +08:00
export type Teams$CurrentTeam = {
id: number,
name: string
}