Generic handler now accepts options (transformUrl, formDetector, submitSelector, resumeSelector, beforeSubmit, verifySelector, etc.). Each ATS handler passes its overrides instead of reimplementing. Registry resolves handlers by: apply_type -> URL domain -> generic fallback. New ATS handlers only need to export SUPPORTED_TYPES and an apply() that calls genericApply with platform-specific options. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
398 B
JavaScript
14 lines
398 B
JavaScript
/**
|
|
* lever.mjs — Lever ATS handler (extends generic)
|
|
*/
|
|
import { apply as genericApply } from './generic.mjs';
|
|
|
|
export const SUPPORTED_TYPES = ['lever'];
|
|
|
|
export async function apply(page, job, formFiller) {
|
|
return genericApply(page, job, formFiller, {
|
|
// Lever apply URLs already end in /apply
|
|
submitSelector: 'button:has-text("Submit application"), button[type="submit"]',
|
|
});
|
|
}
|