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

useSetShiftForeman

@mineflow/client-react


@mineflow/client-react / useSetShiftForeman

Function: useSetShiftForeman()

function useSetShiftForeman(): UseMutationResult<{
createdAt: string;
createdBy: string;
durationHours: number;
foremanId: string | null;
id: string;
objectId: string;
shiftDate: string;
shiftType: ShiftResponse_OutputShiftType;
substitutions: object[];
watchId: string | null;
}, Error, {
body: {
foremanId: string;
};
id: string;
}>;

Defined in: client-react/src/domain-hooks/hr.ts:441

Назначение/смена бригадира смены (PUT). Инвалидирует раздел смен.

Returns

UseMutationResult<{ createdAt: string; createdBy: string; durationHours: number; foremanId: string | null; id: string; objectId: string; shiftDate: string; shiftType: ShiftResponse_OutputShiftType; substitutions: object[]; watchId: string | null; }, Error, { body: { foremanId: string; }; id: string; }>