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

useImportMaintenanceNormsPreview

@mineflow/client-react


@mineflow/client-react / Справочники / useImportMaintenanceNormsPreview

Function: useImportMaintenanceNormsPreview()

function useImportMaintenanceNormsPreview(): UseMutationResult<{
batchId: string;
diff: {
errors: object[];
willCreate: unknown[];
willDeactivate: unknown[];
willUpdate: object[];
};
entity: string;
expiresAt: string;
mode: RefImportPreviewResponse_OutputMode;
module: string;
totalRows: number;
}, Error, {
mode?: BulkImportPreviewDtoMode;
rows: object[];
}>;

Defined in: client-react/src/domain-hooks/refs.ts:527

Предпросмотр импорта норм ТО (dry-run): возвращает diff + batchId. НЕ мутирует.

Returns​

UseMutationResult<{ batchId: string; diff: { errors: object[]; willCreate: unknown[]; willDeactivate: unknown[]; willUpdate: object[]; }; entity: string; expiresAt: string; mode: RefImportPreviewResponse_OutputMode; module: string; totalRows: number; }, Error, { mode?: BulkImportPreviewDtoMode; rows: object[]; }>

UseMutationResult — mutateAsync(body) => preview { batchId, diff, … }.