Skip to content

Contact DTO ​

Описание сущностей и типов из src/dto/contact/.

Обогащено snapshot-данными бэкенд-DTO (17 из 19 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).

Содержание ​


CreateEmailContactRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/Requests/CreateEmailContactRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
emailstringда—string

Пример ​

json
{
  "email": "user@example.com"
}


CreateEmailLinkRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/CreateEmailLinkRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
ownerIdnumberда—int
ownerTypeOwnerTypeDtoда—OwnerTypeDto
emailContactIdnumberнет—int
emailstringнет——
relationRelationTypeDtoда—RelationTypeDto

Пример ​

json
{
  "ownerId": 0,
  "ownerType": "<OwnerTypeDto>",
  "emailContactId": 0,
  "email": "user@example.com",
  "relation": "<RelationTypeDto>"
}


CreatePhoneContactRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/Requests/CreatePhoneContactRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
phoneNumberstringда—string

Пример ​

json
{
  "phoneNumber": "+49123456789"
}


CreatePhoneLinkRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/CreatePhoneLinkRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
ownerIdnumberда—int
ownerTypeOwnerTypeDtoда—OwnerTypeDto
phoneContactIdnumberнет—int
phonestringнет——
relationRelationTypeDtoда—RelationTypeDto

Пример ​

json
{
  "ownerId": 0,
  "ownerType": "<OwnerTypeDto>",
  "phoneContactId": 0,
  "phone": "+49123456789",
  "relation": "<RelationTypeDto>"
}


EmailContactDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/EmailContactDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
emailstringда—string
linkEmailContactsEmailLinkContactDto[]да—List<EmailLinkContactDto>

Пример ​

json
{
  "id": 0,
  "email": "user@example.com",
  "linkEmailContacts": []
}


EmailLinkContactDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/EmailLinkContactDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberдаLink idint
emailContactIdnumberдаEmail contact idint
clientIdnumber | nullнетClient idint?
workerIdnumber | nullнетWorker idint?
partnerIdnumber | nullнетPartner idint?
userIdnumber | nullнетUser idint?
clientLeadIdnumber | nullнет——
workerLeadIdnumber | nullнет——
ownerTypeOwnerTypeDtoдаOwner typeOwnerTypeDto
relationTypeRelationTypeDtoдаRelation typeRelationTypeDto
clientClientDto | nullнетClientClientDto?
workerWorkerDto | nullнетWorkerWorkerDto?
partnerPartnerDto | nullнетPartnerPartnerDto?
emailContactEmailContactDto | nullнетEmail contactEmailContactDto?

Пример ​

json
{
  "id": 0,
  "emailContactId": 0,
  "clientId": 0,
  "workerId": 0,
  "partnerId": 0,
  "userId": 0,
  "clientLeadId": 0,
  "workerLeadId": 0,
  "ownerType": "<OwnerTypeDto>",
  "relationType": "<RelationTypeDto>",
  "client": "<clientdto>",
  "worker": "<workerdto>",
  "partner": "<partnerdto>",
  "emailContact": "<emailcontactdto>"
}


GetEmailContactByEmailResponseDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/Responses/GetEmailContactByEmailResponseDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
contactEmailContactDtoда—EmailContactDto

Пример ​

json
{
  "contact": "<EmailContactDto>"
}


GetEmailLinksRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/GetEmailLinksRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
paginationPaginationда—Pagination
emailstring | nullнет—string?

Пример ​

json
{
  "pagination": "<Pagination>",
  "email": "user@example.com"
}


GetPhoneLinksRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/GetPhoneLinksRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
paginationPaginationда—Pagination
phoneNumberstring | nullнет—string?

Пример ​

json
{
  "pagination": "<Pagination>",
  "phoneNumber": "+49123456789"
}


LinkedEntityDto ​

Поля ​

ПолеТипОбязательноеОписание
externalTypeExternalTypeDtoда—
idnumberда—
namestringда—
relationTypeRelationTypeDtoда—
categoryRecallCategoryDtoда—
linkedExternalIdnumber | nullнетWorker created from this lead, for WorkerLead. Null for every other type: the client created from a ClientLead is read from the client lead service (@diealltagsfeen/client-lead-api-client).

Пример ​

json
{
  "externalType": "<ExternalTypeDto>",
  "id": 0,
  "name": "string",
  "relationType": "<RelationTypeDto>",
  "category": "<RecallCategoryDto>",
  "linkedExternalId": 0
}


OwnerTypeDto ​

Тип владельца связи контакта — OwnerType в BusinessLogic.

Не путать с ExternalTypeDto: у связи контакта Client = 1, а у перезвона и почты ExternalType.Client = 3. Нумерации разные.

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/OwnerTypeDto.cs (core.businesslogicservice).

Значения ​

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound0—1
Client1—1
Worker2—2
Partner3—3
User4—4
ClientLead5——
WorkerLead6——

Пример ​

json
0


PhoneContactDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/PhoneContactDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
phoneNumberstringда—string
numberTypePhoneNumberTypeDtoдаСтационарный, мобильный или неизвестный — см. PhoneNumberTypeDto.—
areaCodestring | nullнетКод телефонного округа (Ortsnetzkennzahl), например 221. Заполнен только у стационарных.—
areaNamestring | nullнетНазвание телефонного округа (Ortsnetzname), например Köln. Заполнено только у стационарных.—
linkPhoneContactsPhoneLinkContactDto[]да—List<PhoneLinkContactDto>

Пример ​

json
{
  "id": 0,
  "phoneNumber": "+49123456789",
  "numberType": "<PhoneNumberTypeDto>",
  "areaCode": "string",
  "areaName": "string",
  "linkPhoneContacts": []
}


PhoneLinkContactDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/PhoneLinkContactDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberдаLink idint
phoneContactIdnumberдаPhone contact idint
clientIdnumber | nullнетClient idint?
workerIdnumber | nullнетWorker idint?
partnerIdnumber | nullнетPartner idint?
userIdnumber | nullнетUser idint?
clientLeadIdnumber | nullнет——
workerLeadIdnumber | nullнет——
ownerTypeOwnerTypeDtoдаOwner typeOwnerTypeDto
relationTypeRelationTypeDtoдаRelation typeRelationTypeDto
clientClientDto | nullнетClientClientDto?
workerWorkerDto | nullнетWorkerWorkerDto?
partnerPartnerDto | nullнетPartnerPartnerDto?
phoneContactPhoneContactDto | nullнетPhone contactPhoneContactDto?

Пример ​

json
{
  "id": 0,
  "phoneContactId": 0,
  "clientId": 0,
  "workerId": 0,
  "partnerId": 0,
  "userId": 0,
  "clientLeadId": 0,
  "workerLeadId": 0,
  "ownerType": "<OwnerTypeDto>",
  "relationType": "<RelationTypeDto>",
  "client": "<clientdto>",
  "worker": "<workerdto>",
  "partner": "<partnerdto>",
  "phoneContact": "<phonecontactdto>"
}


PhoneNumberTypeDto ​

Тип телефонного номера — PhoneNumberType в BusinessLogic.

Определяется по самому номеру: диапазон 1[567] после кода страны — мобильный, известный код телефонного округа — стационарный, всё остальное неизвестно (не немецкие номера, 0800, 0900, 0180, короткие и мусорные).

Телефонный округ есть только у стационарных: мобильные номера в Германии не привязаны ни к местности, ни к оператору.

Значения ​

ИмяЗначениеОписание
Unknown0—
Landline1—
Mobile2—

Пример ​

json
0


RelationTypeDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/RelationTypeDto.cs (core.businesslogicservice).

Значения ​

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound0—0
Owner1—1
Parent2—2
Child3—3
Friend4—4

Пример ​

json
0


UpdateEmailContactRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/Requests/UpdateEmailContactRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
emailstringда—string

Пример ​

json
{
  "id": 0,
  "email": "user@example.com"
}


UpdateEmailLinkRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/UpdateEmailLinkRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
clientIdnumber | nullнет—int?
workerIdnumber | nullнет—int?
partnerIdnumber | nullнет—int?
userIdnumber | nullнет—int?
ownerTypeOwnerTypeDtoда—OwnerTypeDto
emailContactIdnumberда—int
relationRelationTypeDtoда—RelationTypeDto

Пример ​

json
{
  "id": 0,
  "clientId": 0,
  "workerId": 0,
  "partnerId": 0,
  "userId": 0,
  "ownerType": "<OwnerTypeDto>",
  "emailContactId": 0,
  "relation": "<RelationTypeDto>"
}


UpdatePhoneContactRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/Contacts/Requests/UpdatePhoneContactRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
phoneNumberstringда—string

Пример ​

json
{
  "id": 0,
  "phoneNumber": "+49123456789"
}


UpdatePhoneLinkRequestDto ​

Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/LinkContact/Request/UpdatePhoneLinkRequestDto.cs (core.businesslogicservice).

Поля ​

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
idnumberда—int
clientIdnumber | nullнет—int?
workerIdnumber | nullнет—int?
partnerIdnumber | nullнет—int?
userIdnumber | nullнет—int?
ownerTypeOwnerTypeDtoда—OwnerTypeDto
phoneContactIdnumberда—int
relationRelationTypeDtoда—RelationTypeDto

Пример ​

json
{
  "id": 0,
  "clientId": 0,
  "workerId": 0,
  "partnerId": 0,
  "userId": 0,
  "ownerType": "<OwnerTypeDto>",
  "phoneContactId": 0,
  "relation": "<RelationTypeDto>"
}