BootstrapPreviewReportDto
Snapshot of what a bootstrap import would do, computed before any mutation.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
workersTotal | number | да | — |
clientsTotal | number | да | — |
workersToInsert | number | да | — |
workersToSkip | number | да | — |
clientsToInsert | number | да | — |
clientsToSkip | number | да | — |
matchedSingle | number | да | — |
matchedAmbiguous | number | да | — |
matchedSoftDeleted | number | да | — |
missingRequiredField | number | да | — |
loginCollisions | number | да | — |
loginDuplicatesInBatch | number | да | — |
addressesRequested | number | да | — |
addressesResolved | number | да | — |
addressMisses | number | да | — |
estimatedDistancePairs | number | да | Estimated client↔worker distance pairs this import would compute (dry-run, before approve). |
estimatedDistanceCacheHits | number | да | Of estimatedDistancePairs, how many are already cached. |
estimatedDistanceGoogleApiCalls | number | да | Of estimatedDistancePairs, how many would need a fresh (paid) Google Routes call. |
distanceEstimateReliable | boolean | да | False when the estimate could not be trusted (failed, or 0 pairs despite create/update work). The UI must not show the numbers as a reliable "0 Google calls" in that case. |
collisions | PreviewCollisionDto[] | да | — |
Пример
json
{
"workersTotal": 0,
"clientsTotal": 0,
"workersToInsert": 0,
"workersToSkip": 0,
"clientsToInsert": 0,
"clientsToSkip": 0,
"matchedSingle": 0,
"matchedAmbiguous": 0,
"matchedSoftDeleted": 0,
"missingRequiredField": 0,
"loginCollisions": 0,
"loginDuplicatesInBatch": 0,
"addressesRequested": 0,
"addressesResolved": 0,
"addressMisses": 0,
"estimatedDistancePairs": 0,
"estimatedDistanceCacheHits": 0,
"estimatedDistanceGoogleApiCalls": 0,
"distanceEstimateReliable": false,
"collisions": []
}