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

timesheetConfirmRequestedRevertedDataSchema

@mineflow/contracts


@mineflow/contracts / timesheetConfirmRequestedRevertedDataSchema

Variable: timesheetConfirmRequestedRevertedDataSchema

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

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

hr.timesheet.confirm-requested-reverted — counter-event для сторно (шаг 1 reject-after-approve саги). HR-handler переводит подтверждённый timesheet в reverted и публикует hr.timesheet.reverted.