diff --git a/shared/models/jobsPartners.model.ts b/shared/models/jobsPartners.model.ts index 27fd48338b..aac696993d 100644 --- a/shared/models/jobsPartners.model.ts +++ b/shared/models/jobsPartners.model.ts @@ -36,7 +36,7 @@ export const ZJobsPartnersRecruiterApi = z.object({ workplace_naf_label: z.string().nullable().describe("Libelle NAF"), apply_url: z.string().url().describe("URL pour candidater"), - apply_phone: extensions.telephone.nullable().describe("Téléphone de contact").default(null), + apply_phone: z.string().nullable().describe("Téléphone de contact").default(null), }) export const zDiplomaEuropeanLevel = z.enum(["3", "4", "5", "6", "7"]) @@ -124,7 +124,6 @@ const ZJobsPartnersPostApiBodyBase = ZJobsPartnersOfferPrivate.pick({ offer_multicast: true, apply_email: true, - apply_phone: true, workplace_description: true, workplace_website: true, @@ -164,6 +163,7 @@ const ZJobsPartnersPostApiBodyBase = ZJobsPartnersOfferPrivate.pick({ workplace_address_label: z.string().nullable().default(null), apply_url: ZJobsPartnersOfferApi.shape.apply_url.nullable().default(null), + apply_phone: extensions.telephone.nullable().describe("Téléphone de contact").default(null), }) export const ZJobsPartnersWritableApi = ZJobsPartnersPostApiBodyBase.superRefine((data, ctx) => {