type'employee' | 'contractor' required
status'onboarding' | 'active' | 'offboarding' | 'inactive' required
startDatestring required
A date string in the form YYYY-MM-DD
endDatestring nullable required
A date string in the form YYYY-MM-DD
isBusinessboolean nullable required
businessNamestring nullable required
emailstring required
An email with a reasonably valid regex (shamelessly taken from zod)
workEmailstring nullable required
An email with a reasonably valid regex (shamelessly taken from zod)
preferredNamestring nullable required
displayNamestring required
The "ui" name of a worker. If it's a business contractor business name is used. Otherwise we default to preferred name, then first-last.