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

useCreateSubstitution

@mineflow/client-react


@mineflow/client-react / useCreateSubstitution

Function: useCreateSubstitution()

function useCreateSubstitution(): 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: {
reason?: string;
replacedPersonnelId: string;
substitutePersonnelId: string;
};
id: string;
}>;

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

Подмена в смене. Инвалидирует раздел смен.

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: { reason?: string; replacedPersonnelId: string; substitutePersonnelId: string; }; id: string; }>