refactor: move person types in interface

This commit is contained in:
Sammy Teillet
2023-04-20 15:39:56 +02:00
parent 7ade04b79e
commit b8032e9605
5 changed files with 6 additions and 6 deletions

View File

@ -0,0 +1,30 @@
import { Company } from './company.interface';
import { Pipe } from './pipe.interface';
export type Person = {
fullName: string;
picture?: string;
email: string;
company: Company;
phone: string;
creationDate: Date;
pipe: Pipe;
city: string;
countryCode: string;
};
export type GraphqlPerson = {
city: string;
company: {
__typename: string;
company_name: string;
company_domain: string;
};
created_at: string;
email: string;
firstname: string;
id: number;
lastname: string;
phone: string;
__typename: string;
};