Fetch workspace and user from database (#94)
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -1,6 +1,15 @@
|
||||
import { GraphqlQueryAccountOwner } from './company.interface';
|
||||
import { Workspace } from './workspace.interface';
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
displayName: string;
|
||||
workspace_member?: {
|
||||
workspace: Workspace;
|
||||
};
|
||||
}
|
||||
|
||||
export const mapUser = (user: GraphqlQueryAccountOwner): User => ({
|
||||
...user,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user