Перейти к основному содержимому

timesheetConfirmRequestedDataSchema

@mineflow/contracts


@mineflow/contracts / timesheetConfirmRequestedDataSchema

Variable: timesheetConfirmRequestedDataSchema

const timesheetConfirmRequestedDataSchema: ZodObject<{
downtimeHours: ZodNumber;
hoursWorked: ZodNumber;
personnelId: ZodUUID;
positionId: ZodUUID;
productionObjectId: ZodUUID;
sagaId: ZodUUID;
shiftDate: ZodString;
shiftPersonnelId: ZodUUID;
shiftReportId: ZodUUID;
}, $strip>;

Defined in: events/hr/timesheet.ts:83

hr.timesheet.confirm-requested — публикуется из шага 6 (record-timesheet) approve-саги по каждому ShiftPersonnel отчёта. HR-handler ловит событие, находит/создаёт TimesheetEntry в draft и переводит в confirmed, после чего публикует hr.timesheet.confirmed.

Q (open-questions) — финальный shape зависит от HR/Timesheet модуля. Сейчас несёт минимум для идемпотентного применения.