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:
@ -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 => ({
|
||||
|
||||
Reference in New Issue
Block a user