Fetch workspace and user from database (#94)

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Charles Bochet
2023-05-04 11:09:06 +02:00
committed by GitHub
parent 1490f986f2
commit 27d5edc031
18 changed files with 353 additions and 50 deletions

View File

@ -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,
});