Skip to content

Commit

Permalink
fix: apply_phone field (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevbarns authored Sep 24, 2024
1 parent f91216e commit 463a1a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/models/jobsPartners.model.ts
Original file line number Diff line number Diff line change
@@ -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) => {

0 comments on commit 463a1a7

Please sign in to comment.