refactor: move person types in interface
This commit is contained in:
30
front/src/interfaces/person.interface.ts
Normal file
30
front/src/interfaces/person.interface.ts
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user