Monday DTO
Описание сущностей и типов из src/dto/monday/.
Обогащено snapshot-данными бэкенд-DTO (0 из 11 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
- BootstrapPreviewReportDto
- PreviewCollisionDto
- SyncChangeDto
- SyncChangeOperationTypeDto
- SyncChangeStatusDto
- SyncEntityTypeDto
- SyncRequestDetailDto
- SyncRequestListPageDto
- SyncRequestStatusDto
- SyncRequestSummaryDto
- SyncSideDto
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": []
}PreviewCollisionDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
entityType | string | да | — |
kind | string | да | — |
entityDisplayName | string | null | нет | — |
mondayItemId | string | null | нет | — |
businessEntityId | number | null | нет | — |
details | string | null | нет | — |
Пример
json
{
"entityType": "string",
"kind": "string",
"entityDisplayName": "string",
"mondayItemId": "uuid",
"businessEntityId": 0,
"details": "string"
}SyncChangeDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
syncRequestId | number | да | — |
entityType | SyncEntityTypeDto | да | — |
entityDisplayName | string | да | — |
businessEntityId | number | null | нет | — |
mondayItemId | string | null | нет | — |
sourceSide | SyncSideDto | да | — |
operationType | SyncChangeOperationTypeDto | да | — |
sourcePropertyName | string | null | нет | — |
targetPropertyName | string | null | нет | — |
beforeValue | string | null | нет | — |
afterValue | string | null | нет | — |
status | SyncChangeStatusDto | да | — |
errorMessage | string | null | нет | — |
resolvedWinner | SyncSideDto | null | нет | — |
resolvedByUserId | number | null | нет | — |
resolvedDateTime | string | null | нет | — |
Пример
json
{
"id": 0,
"syncRequestId": 0,
"entityType": "<SyncEntityTypeDto>",
"entityDisplayName": "string",
"businessEntityId": 0,
"mondayItemId": "uuid",
"sourceSide": "<SyncSideDto>",
"operationType": "<SyncChangeOperationTypeDto>",
"sourcePropertyName": "string",
"targetPropertyName": "string",
"beforeValue": "string",
"afterValue": "string",
"status": "<SyncChangeStatusDto>",
"errorMessage": "string",
"resolvedWinner": "<syncsidedto>",
"resolvedByUserId": 0,
"resolvedDateTime": "2026-05-05T08:00:00Z"
}SyncChangeOperationTypeDto
Operation carried out by the change (entity-level create vs per-property update).
Значения
| Имя | Значение | Описание |
|---|---|---|
NotFound | 0 | — |
Create | 1 | — |
Update | 2 | — |
Пример
json
0SyncChangeStatusDto
Execution status of an individual change row.
Значения
| Имя | Значение | Описание |
|---|---|---|
NotFound | 0 | — |
InPending | 1 | — |
Syncing | 2 | — |
Synced | 3 | — |
Conflict | 4 | — |
Error | 5 | — |
Пример
json
0SyncEntityTypeDto
Type of the entity a change refers to.
Значения
| Имя | Значение | Описание |
|---|---|---|
NotFound | 0 | — |
Worker | 1 | — |
Client | 2 | — |
Пример
json
0SyncRequestDetailDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
summary | SyncRequestSummaryDto | да | — |
changes | SyncChangeDto[] | да | — |
Пример
json
{
"summary": "<SyncRequestSummaryDto>",
"changes": []
}SyncRequestListPageDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
total | number | да | — |
page | number | да | — |
rowsPerPage | number | да | — |
items | SyncRequestSummaryDto[] | да | — |
Пример
json
{
"total": 0,
"page": 0,
"rowsPerPage": 0,
"items": []
}SyncRequestStatusDto
Status of a full Monday ↔ Business sync request.
Значения
| Имя | Значение | Описание |
|---|---|---|
NotFound | 0 | — |
Syncing | 1 | — |
Synced | 2 | — |
PartiallySynced | 3 | — |
PreviewPending | 4 | Bootstrap import: background worker has not yet built the preview. |
PreviewReady | 5 | Bootstrap import: preview built, waiting for the user to approve. |
Пример
json
0SyncRequestSummaryDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
status | SyncRequestStatusDto | да | — |
assignedUserId | number | да | — |
assignedUserFullName | string | да | — |
workersXlsxFileName | string | null | нет | — |
clientsXlsxFileName | string | null | нет | — |
createDateTime | string | да | — |
processedDateTime | string | null | нет | — |
totalChanges | number | да | — |
conflictCount | number | да | — |
errorCount | number | да | — |
pendingCount | number | да | — |
processedCount | number | нет | — |
totalCount | number | нет | — |
requiresApproval | boolean | нет | Bootstrap-import preview/approve flow — true when the request was uploaded with requiresApproval. |
previewBuiltDateTime | string | null | нет | ISO-8601 UTC timestamp (e.g. "2026-05-18T12:34:56.789Z") set when the preview build completed. |
approvedDateTime | string | null | нет | ISO-8601 UTC timestamp set when an admin approved the preview and unblocked the apply phase. |
approvedByUserFullName | string | null | нет | — |
previewReport | BootstrapPreviewReportDto | null | нет | Computed report attached while status is PreviewPending or PreviewReady. |
Пример
json
{
"id": 0,
"status": "<SyncRequestStatusDto>",
"assignedUserId": 0,
"assignedUserFullName": "string",
"workersXlsxFileName": "string",
"clientsXlsxFileName": "string",
"createDateTime": "2026-05-05T08:00:00Z",
"processedDateTime": "2026-05-05T08:00:00Z",
"totalChanges": 0,
"conflictCount": 0,
"errorCount": 0,
"pendingCount": 0,
"processedCount": 0,
"totalCount": 0,
"requiresApproval": false,
"previewBuiltDateTime": "2026-05-05T08:00:00Z",
"approvedDateTime": "2026-05-05T08:00:00Z",
"approvedByUserFullName": "string",
"previewReport": "<bootstrappreviewreportdto>"
}SyncSideDto
Origin of a detected change or a snapshot row.
Значения
| Имя | Значение | Описание |
|---|---|---|
NotFound | 0 | — |
Business | 1 | — |
Monday | 2 | — |
Пример
json
0