Skip to content

Email DTO

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

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

Содержание


ComposeEmailAttachmentRefDto

Поля

ПолеТипОбязательноеОписание
filePathstringда
namestringда

Пример

json
{
  "filePath": "string",
  "name": "string"
}


ComposeEmailRequestDto

Поля

ПолеТипОбязательноеОписание
titlestringда
textstringда
emailstringда
messageIdstring | nullнет
emailContactIdnumber | nullнет
attachmentsComposeEmailAttachmentRefDto[]да

Пример

json
{
  "title": "string",
  "text": "string",
  "email": "user@example.com",
  "messageId": "uuid",
  "emailContactId": 0,
  "attachments": []
}


EmailAttachmentDto

Поля

ПолеТипОбязательноеОписание
idnumberда
fileNamestringда
mediaTypestringда
sizeBytesnumberда
contentIdstring | nullда
downloadUrlstringда

Пример

json
{
  "id": 0,
  "fileName": "string",
  "mediaType": "string",
  "sizeBytes": 0,
  "contentId": "uuid",
  "downloadUrl": "https://..."
}


EmailDetailsDto

Поля

ПолеТипОбязательноеОписание
idnumberда
messageIdstring | nullда
emailContactIdnumber | nullда
subjectstring | nullда
bodyHtmlstringда
senderEmailstringда
sourceMailboxstring | nullда
statusEmailStatusDtoда
directionEmailDirectionDtoда
kindEmailKindDtoда
createDateTimestringда
attachmentsEmailAttachmentDto[]да

Пример

json
{
  "id": 0,
  "messageId": "uuid",
  "emailContactId": 0,
  "subject": "string",
  "bodyHtml": "string",
  "senderEmail": "user@example.com",
  "sourceMailbox": "user@example.com",
  "status": "<EmailStatusDto>",
  "direction": "<EmailDirectionDto>",
  "kind": "<EmailKindDto>",
  "createDateTime": "2026-05-05T08:00:00Z",
  "attachments": []
}


EmailDirectionDto

Backend-источник: infrastructure.notificationservice/Infrastructure.NotificationService/Nuget.NotificationApiClient/Dto/Enums/EmailDirectionDto.cs (infrastructure.notificationservice).

Значения

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound00
Incoming11
Outgoing22

Пример

json
0


EmailKindDto

Значения

ИмяЗначениеОписание
Regular0
Fax1

Пример

json
0


EmailStatusDto

Backend-источник: infrastructure.notificationservice/Infrastructure.NotificationService/Nuget.NotificationApiClient/Dto/Enums/EmailStatusDto.cs (infrastructure.notificationservice).

Значения

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound00
New11
ActionRequired22
Processed33
Spam44
Archived55

Пример

json
0


GetEmailsRequestDto

Backend-источник: infrastructure.notificationservice/Infrastructure.NotificationService/Nuget.NotificationApiClient/Dto/Requests/GetEmailsRequestDto.cs (infrastructure.notificationservice).

Поля

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
paginationPaginationдаPagination
statusesEmailStatusDto[]даList<EmailStatusDto>
statusFiltersEmailStatusDto[] | nullнетList<EmailStatusDto>?
emailContactIdnumber | nullнетint?
emailsstring[] | nullнетList<string>?
sourceMailboxesstring[] | nullнет
directionEmailDirectionDto | nullнетEmailDirectionDto?
kindEmailKindDto | nullнет

Пример

json
{
  "pagination": "<Pagination>",
  "statuses": [],
  "statusFilters": [],
  "emailContactId": 0,
  "emails": [],
  "sourceMailboxes": [],
  "direction": "<emaildirectiondto>",
  "kind": "<emailkinddto>"
}


GetMailboxPermissionsResponseDto

Поля

ПолеТипОбязательноеОписание
mailboxPermissionsRecord<string, string>да

Пример

json
{
  "mailboxPermissions": "<Record<string, string>>"
}


GetSourceMailboxesResponseDto

Поля

ПолеТипОбязательноеОписание
mailboxesstring[]да

Пример

json
{
  "mailboxes": []
}