Lead / Worker DTO
Описание сущностей и типов из src/dto/lead/worker/.
Обогащено snapshot-данными бэкенд-DTO (0 из 4 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
PaginatedWorkerLeadsResponseDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
pagination | PaginationResult<WorkerLeadDto> | да | — |
Пример
json
{
"pagination": "<PaginationResult<WorkerLeadDto>>"
}WorkerLeadAddressDto
Worker lead address. Mirrors WorkerLeadAddressModel JSON shape; location is WKT ("POINT (lng lat)") per PointJsonConverter.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
createDateTime | string | да | — |
updateDateTime | string | null | нет | — |
deleteDateTime | string | null | нет | — |
workerLeadId | number | да | — |
googlePlaceId | string | да | — |
country | string | да | — |
region | string | да | — |
regionCodeId | number | null | нет | — |
city | string | да | — |
street | string | да | — |
house | string | да | — |
flat | string | null | нет | — |
postalCode | string | да | — |
location | string | null | нет | — |
Пример
json
{
"id": 0,
"createDateTime": "2026-05-05T08:00:00Z",
"updateDateTime": "2026-05-05T08:00:00Z",
"deleteDateTime": "2026-05-05T08:00:00Z",
"workerLeadId": 0,
"googlePlaceId": "uuid",
"country": "string",
"region": "string",
"regionCodeId": 0,
"city": "string",
"street": "string",
"house": "string",
"flat": "2026-05-05T08:00:00Z",
"postalCode": "string",
"location": "string"
}WorkerLeadDto
Worker lead — landing-page application. Mirrors WorkerLeadModel JSON shape.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
createDateTime | string | да | — |
updateDateTime | string | null | нет | — |
deleteDateTime | string | null | нет | — |
firstName | string | да | — |
lastName | string | да | — |
gender | GenderParam | да | — |
nationality | string | null | нет | — |
birthDate | string | null | нет | — |
phoneContactId | number | да | — |
phoneContact | PhoneContactDto | да | — |
emailContactId | number | да | — |
emailContact | EmailContactDto | да | — |
employmentType | EmploymentTypeParam | да | — |
paidVacationPerYearCount | number | null | нет | — |
hasExperience | boolean | null | нет | — |
hasCertificate | boolean | null | нет | — |
goToWorkDate | string | null | нет | — |
hasAllergy | boolean | null | нет | — |
allergyComment | string | null | нет | — |
transportTypes | TransportTypeParam[] | да | — |
workWithMen | boolean | null | нет | — |
workWithWomen | boolean | null | нет | — |
childs | boolean | null | нет | — |
religion | string | null | нет | — |
comment | string | null | нет | — |
maxClientsCount | number | null | нет | — |
addresses | WorkerLeadAddressDto[] | да | — |
utmSource | string | null | нет | — |
utmMedium | string | null | нет | — |
utmCampaign | string | null | нет | — |
utmTerm | string | null | нет | — |
utmContent | string | null | нет | — |
workerCreated | boolean | да | Outcome of the parallel Worker creation triggered by the landing-page POST. |
workerNotCreatedReason | WorkerLeadFailReason | null | нет | Short failure code when workerCreated === false; null on success. |
linkedWorkerId | number | null | нет | Id of the Worker created from this lead; null when workerCreated === false. |
Пример
json
{
"id": 0,
"createDateTime": "2026-05-05T08:00:00Z",
"updateDateTime": "2026-05-05T08:00:00Z",
"deleteDateTime": "2026-05-05T08:00:00Z",
"firstName": "string",
"lastName": "string",
"gender": "<GenderParam>",
"nationality": "string",
"birthDate": "2026-05-05T08:00:00Z",
"phoneContactId": 0,
"phoneContact": "<PhoneContactDto>",
"emailContactId": 0,
"emailContact": "<EmailContactDto>",
"employmentType": "<EmploymentTypeParam>",
"paidVacationPerYearCount": 0,
"hasExperience": false,
"hasCertificate": false,
"goToWorkDate": "2026-05-05T08:00:00Z",
"hasAllergy": false,
"allergyComment": "string",
"transportTypes": [],
"workWithMen": false,
"workWithWomen": false,
"childs": false,
"religion": "string",
"comment": "string",
"maxClientsCount": 0,
"addresses": [],
"utmSource": "string",
"utmMedium": "string",
"utmCampaign": "string",
"utmTerm": "string",
"utmContent": "string",
"workerCreated": false,
"workerNotCreatedReason": "<workerleadfailreason>",
"linkedWorkerId": 0
}WorkerLeadFailReason
"user-exists" | "internal-error"