Add application workflow and lead analytics
This commit is contained in:
@@ -33,7 +33,11 @@ Return ONLY a JSON object with these exact keys:
|
||||
- "jobTitle": string - the role advertised, as the posting words it, without the company or location. "" if the page is not a job posting.
|
||||
- "company": string - the company that is hiring, not the job board hosting the advert. "" if it is not stated.
|
||||
- "location": string or null - where the job is based, e.g. "London, UK".
|
||||
- "notes": string or null - one short line giving salary, contract type and working arrangement where the posting states them, e.g. "£70-85k, permanent, hybrid 2 days". null if it states none of them.
|
||||
- "salaryRange": string or null - stated salary or range, without inventing currency. null if absent.
|
||||
- "workArrangement": string or null - remote, hybrid or onsite, including useful detail. null if absent.
|
||||
- "applicationSource": string or null - the board or source named by the page, e.g. LinkedIn or Greenhouse. null if absent.
|
||||
- "requisitionId": string or null - the job/requisition/reference ID if stated. null if absent.
|
||||
- "notes": string or null - one short line for contract type or other useful detail not covered above. null if absent.
|
||||
|
||||
No text, no markdown, no explanation. Just the JSON object.`
|
||||
|
||||
@@ -42,10 +46,14 @@ No text, no markdown, no explanation. Just the JSON object.`
|
||||
// filled in by hand, which is a better outcome than an error. The JSON tags
|
||||
// are also what the capture endpoint returns to the userscript.
|
||||
type JobPosting struct {
|
||||
JobTitle string `json:"jobTitle"`
|
||||
Company string `json:"company"`
|
||||
Location *string `json:"location"`
|
||||
Notes *string `json:"notes"`
|
||||
JobTitle string `json:"jobTitle"`
|
||||
Company string `json:"company"`
|
||||
Location *string `json:"location"`
|
||||
Notes *string `json:"notes"`
|
||||
SalaryRange *string `json:"salaryRange,omitempty"`
|
||||
WorkArrangement *string `json:"workArrangement,omitempty"`
|
||||
ApplicationSource *string `json:"applicationSource,omitempty"`
|
||||
RequisitionID *string `json:"requisitionId,omitempty"`
|
||||
}
|
||||
|
||||
// tidy trims every field and turns a blank optional one into nil. A null
|
||||
@@ -55,6 +63,10 @@ func (p *JobPosting) tidy() error {
|
||||
p.Company = strings.TrimSpace(p.Company)
|
||||
p.Location = blankIsNil(p.Location)
|
||||
p.Notes = blankIsNil(p.Notes)
|
||||
p.SalaryRange = blankIsNil(p.SalaryRange)
|
||||
p.WorkArrangement = blankIsNil(p.WorkArrangement)
|
||||
p.ApplicationSource = blankIsNil(p.ApplicationSource)
|
||||
p.RequisitionID = blankIsNil(p.RequisitionID)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user