scinote-web/flow-typed/teams_types.js
2017-11-06 15:14:17 +01:00

36 lines
575 B
JavaScript

// @flow
export type Teams$TeamMemberActions = {
currentRole: string,
teamUserId: number,
disable: boolean
}
export type Teams$TeamMember = {
actions: Teams$TeamMemberActions,
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,
can_be_left: boolean,
user_team_id: number
};
export type Teams$CurrentTeam = {
id: number,
name: string
}