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

useCreateShift

@mineflow/client-react


@mineflow/client-react / useCreateShift

Function: useCreateShift()

function useCreateShift(): 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, {
foremanId?: string;
objectId: string;
shiftDate: string;
shiftType: CreateShiftDtoShiftType;
watchId?: string;
}>;

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

Создание смены. Инвалидирует список смен.

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, { foremanId?: string; objectId: string; shiftDate: string; shiftType: CreateShiftDtoShiftType; watchId?: string; }>