Skip to content

Commit

Permalink
feat(lba-2298): ajout salaire de base et ajustements adresse jobposti…
Browse files Browse the repository at this point in the history
…ngschema (#1724)

* feat: null plutôt qu'undefined + baseSalary

* feat: vraie valeur

* feat: minvalue

* fix: valeur correcte
  • Loading branch information
alanlr authored Dec 19, 2024
1 parent bf76171 commit c74c7dc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
17 changes: 13 additions & 4 deletions ui/components/ItemDetail/ItemDetailServices/getJobPostingSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const getJobPostingSchema = ({
name: "Google",
value: id,
},
datePosted: job?.job?.jobStartDate,
datePosted: job?.job?.creationDate,
validThrough: job?.job?.jobExpirationDate,
employmentType: "FULL_TIME",
hiringOrganization: {
Expand All @@ -36,12 +36,21 @@ export const getJobPostingSchema = ({
"@type": "Place",
address: {
"@type": "PostalAddress",
streetAddress: job?.place?.numberAndStreet,
addressLocality: job?.place?.city,
streetAddress: job?.place?.numberAndStreet ?? null,
addressLocality: job?.place?.city ?? null,
addressRegion: null,
postalCode: job?.place?.zipCode,
postalCode: job?.place?.zipCode ?? null,
addressCountry: "France",
},
},
baseSalary: {
"@type": "MonetaryAmount",
currency: "EUR",
value: {
"@type": "QuantitativeValue",
minValue: 486.49,
unitText: "MONTH",
},
},
}
}
11 changes: 11 additions & 0 deletions ui/components/ItemDetail/JobPostingSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,15 @@ export type JobPostingSchema = {
addressCountry: string
}
}
baseSalary: {
"@type": "MonetaryAmount"
currency: string
value: {
"@type": "QuantitativeValue"
value?: number
minValue?: number
maxValue?: number
unitText: string
}
}
}

0 comments on commit c74c7dc

Please sign in to comment.