Skip to main content

Function: createHire()

createHire(values): Promise<HireState>

Defined in: src/server/actions/hire.ts:25

Owner-only: create a contractor + their first assignment in one step, set opt-in perks, and optionally issue a portal invite. Nothing is created until this runs; the contractor row is rolled back if a later step fails so a partial hire never lingers.

Parameters

values

infer

Returns

Promise<HireState>