Make companies employees type a number (#130)

Make companies employees type a number to be consistent with api
This commit is contained in:
Charles Bochet
2023-05-19 11:53:50 +02:00
committed by GitHub
parent 20bf89ab1e
commit 192b89a7b7
13 changed files with 368 additions and 45 deletions

View File

@ -15,7 +15,7 @@ describe('Company mappers', () => {
name: 'ACME',
domain_name: 'exmaple.com',
created_at: now.toUTCString(),
employees: '10',
employees: 10,
address: '1 Infinite Loop, 95014 Cupertino, California, USA',
account_owner: {
id: '7af20dea-0412-4c4c-8b13-d6f0e6e09e87',
@ -61,7 +61,7 @@ describe('Company mappers', () => {
id: '7dfbc3f7-6e5e-4128-957e-8d86808cdf6b',
name: 'ACME',
domainName: 'example.com',
employees: '10',
employees: 10,
address: '1 Infinite Loop, 95014 Cupertino, California, USA',
pipes: [],
accountOwner: {

View File

@ -7,7 +7,7 @@ export type Company = {
id: string;
name?: string;
domainName?: string;
employees?: string;
employees?: number | null;
address?: string;
creationDate?: Date;
@ -20,7 +20,7 @@ export type GraphqlQueryCompany = {
id: string;
name?: string;
domain_name?: string;
employees?: string;
employees?: number | null;
address?: string;
created_at?: string;
@ -34,7 +34,7 @@ export type GraphqlMutationCompany = {
id: string;
name?: string;
domain_name?: string;
employees?: string;
employees?: number | null;
address?: string;
created_at?: string;