import { apiCallOrThrow } from "@open-mercato/ui/backend/utils/apiCall";
async function startTimerEntry(input) {
  const response = await apiCallOrThrow(
    "/api/staff/timesheets/time-entries/start-timer",
    {
      method: "POST",
      headers: { "Content-Type": "application/json" },
      body: JSON.stringify({
        staffMemberId: input.staffMemberId,
        timeProjectId: input.timeProjectId,
        date: input.date,
        notes: input.notes ?? null
      })
    }
  );
  const result = response.result;
  return { id: result?.id ?? null };
}
export {
  startTimerEntry
};
//# sourceMappingURL=startTimer.js.map
