-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Jsonmap objects to connectors
- Loading branch information
1 parent
22c6678
commit 23d16a2
Showing
50 changed files
with
2,492 additions
and
48 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
35 changes: 35 additions & 0 deletions
35
src/hrflow_connectors/connectors/adzuna/mappings/format/pull_job_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "?.title", | ||
"reference": "?.id | $string", | ||
"created_at": "?.created", | ||
"location": { | ||
"lat": "?.latitude != null ?? .latitude | $float : null", | ||
"lng": "?.longitude != null ?? .longitude | $float : null", | ||
"text": "?.location.display_name" | ||
}, | ||
"url": "?.redirect_url", | ||
"summary": "?.description", | ||
"sections": [], | ||
"tags": [ | ||
{ | ||
"name": "salary_min", | ||
"value": "?.salary_min" | ||
}, | ||
{ | ||
"name": "salary_max", | ||
"value": "?.salary_max" | ||
}, | ||
{ | ||
"name": "salaries_are_predicted", | ||
"value": "?.salary_is_predicted == '1' ?? true : false" | ||
}, | ||
{ | ||
"name": "category", | ||
"value": "?.category?.label" | ||
}, | ||
{ | ||
"name": "company", | ||
"value": "?.company?.display_name" | ||
} | ||
] | ||
} |
Empty file.
57 changes: 57 additions & 0 deletions
57
src/hrflow_connectors/connectors/breezyhr/mappings/format/pull_job_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"name": "?.name", | ||
"reference": "?.friendly_id", | ||
"summary": null, | ||
"location": { | ||
"text": "?.location?.name", | ||
"geojson": { | ||
"country": "?.location?.country?.name", | ||
"city": "?.location?.city" | ||
}, | ||
"lat": null, | ||
"lng": null | ||
}, | ||
"sections": [ | ||
{ | ||
"name": "breezy_hr_description", | ||
"title": "Breezy_hr_description", | ||
"description": "?.description | $sub('<[^<]+?>', '') | $sub(' ', ' ')" | ||
} | ||
], | ||
"tags": [ | ||
{ | ||
"name": "breezy_hr_type", | ||
"value": ".type?.name ?? .type.name: .type" | ||
}, | ||
{ | ||
"name": "breezy_hr_experience", | ||
"value": ".experience?.name ?? .experience.name: .experience" | ||
}, | ||
{ | ||
"name": "breezy_hr_education", | ||
"value": ".education?.name ?? .education.name: .education" | ||
}, | ||
{ | ||
"name": "breezy_hr_department", | ||
"value": ".department?.name ?? .department.name: .department" | ||
}, | ||
{ | ||
"name": "breezy_hr_requisition_id", | ||
"value": ".requisition_id" | ||
}, | ||
{ | ||
"name": "breezy_hr_category", | ||
"value": ".category?.name ?? .category.name: .category" | ||
}, | ||
{ | ||
"name": "breezy_hr_candidate_type", | ||
"value": ".candidate_type?.name ?? .candidate_type.name: .candidate_type" | ||
}, | ||
{ | ||
"name": "breezy_hr_remote", | ||
"value": "?.location?.is_remote" | ||
} | ||
], | ||
"created_at": "?.creation_date", | ||
"updated_at": "?.updated_date" | ||
} |
Empty file.
40 changes: 40 additions & 0 deletions
40
src/hrflow_connectors/connectors/bullhorn/mappings/format/pull_job_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "?.title", | ||
"reference": "?.id", | ||
"location": { | ||
"text": "?.address.address1", | ||
"fields": { | ||
"city": "?.address.city", | ||
"country": "?.address.countryCode", | ||
"postal_code": "?.address.zip" | ||
} | ||
}, | ||
"sections": [ | ||
{ | ||
"name": "Bullhorn_description", | ||
"title": "Bullhorn_description", | ||
"description": ".publicDescription" | ||
} | ||
], | ||
"skills": "?.skillList != null ?? .skillList | $split(',')| $map({name: ., type: 'undefined', value: null}) : []", | ||
"tags": [ | ||
{ "name": "durationWeeks", "value": "?.durationWeeks" }, | ||
{ | ||
"name": "degreeList", | ||
"value": "?.degreeList != null ?? .degreeList | $join(',') : null" | ||
}, | ||
{ "name": "employmentType", "value": "?.employmentType" }, | ||
{ "name": "numOpenings", "value": "?.numOpenings" }, | ||
{ "name": "onSite", "value": "?.onSite" }, | ||
{ "name": "salaryUnit", "value": "?.salaryUnit" }, | ||
{ "name": "startDate", "value": "?.startDate" }, | ||
{ "name": "status", "value": "?.status" }, | ||
{ "name": "type", "value": "?.type" }, | ||
{ "name": "willRelocate", "value": "?.willRelocate" }, | ||
{ "name": "salary", "value": "?.salary" }, | ||
{ "name": "isWorkFromHome", "value": "?.isWorkFromHome" }, | ||
{ "name": "hoursPerWeek", "value": "?.hoursPerWeek" }, | ||
{ "name": "hoursOfOperation", "value": "?.hoursOfOperation" }, | ||
{ "name": "dateAdded", "value": "?.dateAdded" } | ||
] | ||
} |
22 changes: 22 additions & 0 deletions
22
src/hrflow_connectors/connectors/bullhorn/mappings/format/pull_profile_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"info": { | ||
"full_name": ".name", | ||
"first_name": ".firstName", | ||
"last_name": ".lastName", | ||
"email": ".email", | ||
"phone": ".mobile", | ||
"date_birth": ".dateOfBirth", | ||
"location": { "text": ".address.address1" }, | ||
"gender": ".gender" | ||
}, | ||
"skills": ".skillSet.[0] ?? .skillSet | $split(',') | . >> [] | $map({ name: ., type: hard, value: null })", | ||
"experiences": ".workHistories | $map({ title: .title, location: { text: '', lng: null, lat: null }, company: .companyName, date_start: .startDate, date_end: .endDate, title: .title, description: .comments })", | ||
"tags": [ | ||
{ "name": "dateAvailable", "value": "?.dateAvailable" }, | ||
{ "name": "status", "value": "?.status" }, | ||
{ "name": "employeeType", "value": "?.employeeType" }, | ||
{ "name": "activePlacements", "value": "?.activePlacements?.total" } | ||
], | ||
"educations": ".educations | $map({ location: { text: .city, lng: null, lat: null }, school: .school, date_start: .startDate, date_end: .endDate, title: .degree, certifications: [ .certification ], description: .comments })", | ||
"reference": "?.id | $string" | ||
} |
15 changes: 15 additions & 0 deletions
15
src/hrflow_connectors/connectors/bullhorn/mappings/format/pull_resume_attachment_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"reference": "?.id | $string", | ||
"tags": [ | ||
{ "name": "dateAvailable", "value": "?.dateAvailable" }, | ||
{ "name": "status", "value": "?.status" }, | ||
{ "name": "employeeType", "value": "?.employeeType" }, | ||
{ "name": "activePlacements", "value": "?.activePlacements?.total" } | ||
], | ||
"metadatas": [], | ||
"created_at": null, | ||
"resume": { | ||
"raw": ".cvFile", | ||
"content_type": "application/pdf" | ||
} | ||
} |
Empty file.
59 changes: 59 additions & 0 deletions
59
src/hrflow_connectors/connectors/carrevolutis/mappings/format/catch_profile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"reference": null, | ||
"resume": { | ||
"raw": ".cv", | ||
"content_type": ".content_type" | ||
}, | ||
"tags": [ | ||
{ | ||
"name": "job-number", | ||
"value": "?.jobkey != null ?? .jobkey | $slice(0,10) : null" | ||
}, | ||
{ | ||
"name": "first_name", | ||
"value": "?.firstName" | ||
}, | ||
{ | ||
"name": "last_name", | ||
"value": "?.lastName" | ||
}, | ||
{ | ||
"name": "phone", | ||
"value": "?.phone" | ||
}, | ||
{ | ||
"name": "email", | ||
"value": "?.email" | ||
}, | ||
{ | ||
"name": "coverText", | ||
"value": "?.coverText" | ||
}, | ||
{ | ||
"name": "profile-country", | ||
"value": "?.profilecountry" | ||
}, | ||
{ | ||
"name": "profile-regions", | ||
"value": "?.profileregions" | ||
}, | ||
{ | ||
"name": "profile-domains", | ||
"value": "?.profiledomains" | ||
}, | ||
{ | ||
"name": "job-lien_annonce_site_carriere", | ||
"value": "?.joblien_annonce_site_carriere" | ||
}, | ||
{ | ||
"name": "statistic-source", | ||
"value": "?.statisticsource" | ||
}, | ||
{ | ||
"name": "statistic-jbsource", | ||
"value": "?.statisticjbsource" | ||
} | ||
], | ||
"metadatas": [], | ||
"created_at": null | ||
} |
Empty file.
47 changes: 47 additions & 0 deletions
47
src/hrflow_connectors/connectors/ceridian/mappings/format/pull_job_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "?.Title", | ||
"summary": null, | ||
"reference": "$concat(?.ReferenceNumber,?.ParentRequisitionCode) | $string", | ||
"url": "?.JobDetailsUrl", | ||
"location": { | ||
"text": "?.City", | ||
"lat": null, | ||
"lng": null, | ||
"geojson": { | ||
"state": "?.State", | ||
"country": "?.Country", | ||
"postal_code": "?.PostalCode" | ||
} | ||
}, | ||
"sections": [ | ||
{ | ||
"name": "dayforce_description", | ||
"title": "dayforce_description", | ||
"description": "?.Description" | ||
} | ||
], | ||
"created_at": "?.DatePosted", | ||
"updated_at": "?.LastUpdated", | ||
"tags": [ | ||
{ | ||
"name": "dayforce_apply_url", | ||
"value": "?.ApplyUrl | $string" | ||
}, | ||
{ | ||
"name": "dayforce_client-site-name", | ||
"value": "?.ClientSiteName | $string" | ||
}, | ||
{ | ||
"name": "dayforce_client-site-ref-code", | ||
"value": "?.ClientSiteXRefCode | $string" | ||
}, | ||
{ | ||
"name": "dayforce_company_name", | ||
"value": "?.CompanyName | $string" | ||
}, | ||
{ | ||
"name": "dayforce_remote", | ||
"value": "?.IsVirtualLocation | $string" | ||
} | ||
] | ||
} |
Empty file.
40 changes: 40 additions & 0 deletions
40
src/hrflow_connectors/connectors/greenhouse/mappings/format/pull_job_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"name": "?.title", | ||
"summary": null, | ||
"reference": "?.id | $string", | ||
"url": "?.absolute_url", | ||
"location": { | ||
"text": "?.location.name", | ||
"lat": null, | ||
"lng": null | ||
}, | ||
"sections": [ | ||
{ | ||
"name": "greenhouse_description", | ||
"title": "greenhouse_description", | ||
"description": "?.content | $sub('<.*?>', '') | $sub(' ', ' ') | $sub('&', '&') | $sub('"', '\"') | $sub(''', '\"') | $sub('<', '<') | $sub('>', '>') | $sub('\\s+', ' ') | $strip" | ||
} | ||
], | ||
"metadatas": "?.metadata", | ||
"tags": [ | ||
{ | ||
"name": "greenhouse_department-name", | ||
"value": "?.departments.[0]?.name != null ?? .departments.[0]?.name : 'Undefined'" | ||
}, | ||
{ | ||
"name": "greenhouse_department-id", | ||
"value": "?.departments.[0]?.id != null ?? .departments.[0]?.id | $string : 'Undefined'" | ||
}, | ||
{ | ||
"name": "greenhouse_office-location", | ||
"value": "?.offices.[0]?.name != null ?? .offices.[0]?.name : 'Undefined'" | ||
}, | ||
{ | ||
"name": "greenhouse_office-id", | ||
"value": "?.offices.[0]?.id != null ?? .offices.[0]?.id | $string : 'Undefined'" | ||
}, | ||
{ "name": "greenhouse_education", "value": "?.education" }, | ||
{ "name": "greenhouse_employment", "value": "?.employment" } | ||
], | ||
"updated_at": "?.updated_at" | ||
} |
18 changes: 18 additions & 0 deletions
18
src/hrflow_connectors/connectors/greenhouse/mappings/format/pull_profile_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"reference": "?.id", | ||
"info": { | ||
"first_name": "?.first_name", | ||
"last_name": "?.last_name", | ||
"email": "?.email_addresses.[0] ?? .email_addresses.[0].value : null", | ||
"phone": "?.phone_numbers.[0] ?? .phone_numbers.[0].value : null", | ||
"location": { | ||
"text": "?.addresses | $map(.type == 'home' ?? .) | .[0].value", | ||
"lat": null, | ||
"lng": null | ||
} | ||
}, | ||
"text": "?.notes", | ||
"attachments": "?.attachments | $map({public_url: .url, type: .type})", | ||
"experiences": "?.employments | $map({title: .title, company: .company_name, date_start: .start_date, date_end: .end_date})", | ||
"educations": "?.educations | $map({school: .school_name, title: $concat(.degree, ' ', .discipline), date_start: .start_date, date_end: .end_date})" | ||
} |
15 changes: 15 additions & 0 deletions
15
src/hrflow_connectors/connectors/greenhouse/mappings/format/push_profile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"applications": "?.tags | $map(.name == 'application_boardKey_jobReference'?? .) | $map(.value | $split('_') | .[1] | $int)", | ||
"first_name": "?.info?.first_name", | ||
"last_name": "?.info?.last_name", | ||
"external_id": "?.reference", | ||
"resume": "?.attachments.[0].public_url", | ||
"phone_numbers": [{ "value": "?.info?.phone", "type": "mobile" }], | ||
"email_addresses": [{ "value": "?.info?.email", "type": "personal" }], | ||
"addresses": [{ "value": "?.info?.location?.text", "type": "home" }], | ||
"notes": "?.text", | ||
"social_media_addresses": ".info?.urls | $map({value: ?.url})", | ||
"company": "?.experiences.[0].company", | ||
"title": "?.experiences.[0].title", | ||
"employments": "?.experiences | $map({company_name: ?.company, title: ?.title, start_date: ?.date_start, end_date: ?.date_end})" | ||
} |
Empty file.
22 changes: 22 additions & 0 deletions
22
src/hrflow_connectors/connectors/hubspot/mappings/format/pull_profile_list.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"reference": ".id", | ||
"info": { | ||
"email": ".properties.email", | ||
"first_name": ".properties.firstname", | ||
"last_name": ".properties.lastname", | ||
"full_name": "$concat(.properties.firstname, ' ', .properties.lastname)", | ||
"date_birth": ".properties.date_of_birth", | ||
"phone": ".properties.phone", | ||
"location": { | ||
"text": ".properties.address", | ||
"fields": { | ||
"postcode": ".properties.zip", | ||
"city": ".properties.city", | ||
"state": ".properties.state", | ||
"country": ".properties.country" | ||
} | ||
} | ||
}, | ||
"experiences": [], | ||
"educations": [] | ||
} |
15 changes: 15 additions & 0 deletions
15
src/hrflow_connectors/connectors/hubspot/mappings/format/push_profile.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"properties": { | ||
"email": ".info.email", | ||
"firstname": ".info.first_name", | ||
"lastname": ".info.last_name", | ||
"date_of_birth": ".info.date_birth", | ||
"phone": ".info.phone", | ||
"address": ".location.text", | ||
"zip": ".fields >> {} | ?.postcode >> Undefined", | ||
"city": ".fields >> {} | ?.city >> Undefined", | ||
"state": ".fields >> {} | ?.state >> Undefined", | ||
"country": ".fields >> {} | ?.country >> Undefined", | ||
"company": "''" | ||
} | ||
} |
Empty file.
Oops, something went wrong.