diff --git a/server/services/imapService/index.ts b/server/services/imapService/index.ts index 5ff011e1..937ee91c 100644 --- a/server/services/imapService/index.ts +++ b/server/services/imapService/index.ts @@ -109,6 +109,7 @@ const run = async () => { parsed ); + console.log(data) // createWriteStream(parsed.attachments[2].filename ?? '').write(parsed.attachments[2].content) } } diff --git a/shared/referential/Laboratory.ts b/shared/referential/Laboratory.ts index 2eeebcee..c29c1885 100644 --- a/shared/referential/Laboratory.ts +++ b/shared/referential/Laboratory.ts @@ -1,5 +1,14 @@ import { z } from 'zod'; -export const laboratoryNames = ['LDA 72', 'GIR 49'] as const satisfies string[] -export const laboratoryNameValidator = z.enum(laboratoryNames) -export type LaboratoryName = z.infer +export const laboratoryNames = [ + 'SCL 34', + 'LDA 66', + 'LDA 72', + 'SCL 91', + 'GIR 49', + 'CAP 29', + 'CER 30', + 'FYT', +] as const satisfies string[]; +export const laboratoryNameValidator = z.enum(laboratoryNames); +export type LaboratoryName = z.infer; diff --git a/shared/test/laboratoryFixtures.ts b/shared/test/laboratoryFixtures.ts index 7fb00059..4364b5d6 100644 --- a/shared/test/laboratoryFixtures.ts +++ b/shared/test/laboratoryFixtures.ts @@ -1,11 +1,10 @@ import { fakerFR } from '@faker-js/faker'; -import randomstring from 'randomstring'; import { v4 as uuidv4 } from 'uuid'; import { Laboratory } from '../schema/Laboratory/Laboratory'; export const genLaboratory = (data?: Partial): Laboratory => ({ id: uuidv4(), - name: randomstring.generate(), + name: 'GIR 49', email: fakerFR.internet.email(), ...data, });