Sammy/t refactor services use generated code (#194)

* refactor: use generated queries for Companies

* refactor: remove useQuery from service, use generated code

* refactor: rename to ts file instead of tsx

* bugfix: use generatd queries, and fix non existing id in workspace member query
This commit is contained in:
Sammy Teillet
2023-06-05 17:36:14 +02:00
committed by GitHub
parent fe70f30a29
commit 063ef8a4eb
11 changed files with 27 additions and 31 deletions

View File

@ -33,7 +33,7 @@ export type GraphqlQueryCompany = {
accountOwner?: GraphqlQueryUser | null;
pipes?: GraphqlQueryPipeline[] | null;
__typename: string;
__typename?: string;
};
export type GraphqlMutationCompany = {
@ -46,7 +46,7 @@ export type GraphqlMutationCompany = {
createdAt?: string;
accountOwnerId?: string;
__typename: string;
__typename?: string;
};
export const mapToCompany = (company: GraphqlQueryCompany): Company => ({