Email DTO
Описание сущностей и типов из src/dto/email/.
Обогащено snapshot-данными бэкенд-DTO (3 из 10 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
- ComposeEmailAttachmentRefDto
- ComposeEmailRequestDto
- EmailAttachmentDto
- EmailDetailsDto
- EmailDirectionDto · backend ✓
- EmailKindDto
- EmailStatusDto · backend ✓
- GetEmailsRequestDto · backend ✓
- GetMailboxPermissionsResponseDto
- GetSourceMailboxesResponseDto
ComposeEmailAttachmentRefDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
filePath | string | да | — |
name | string | да | — |
Пример
json
{
"filePath": "string",
"name": "string"
}ComposeEmailRequestDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
title | string | да | — |
text | string | да | — |
email | string | да | — |
messageId | string | null | нет | — |
emailContactId | number | null | нет | — |
attachments | ComposeEmailAttachmentRefDto[] | да | — |
Пример
json
{
"title": "string",
"text": "string",
"email": "user@example.com",
"messageId": "uuid",
"emailContactId": 0,
"attachments": []
}EmailAttachmentDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
fileName | string | да | — |
mediaType | string | да | — |
sizeBytes | number | да | — |
contentId | string | null | да | — |
downloadUrl | string | да | — |
Пример
json
{
"id": 0,
"fileName": "string",
"mediaType": "string",
"sizeBytes": 0,
"contentId": "uuid",
"downloadUrl": "https://..."
}EmailDetailsDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
id | number | да | — |
messageId | string | null | да | — |
emailContactId | number | null | да | — |
subject | string | null | да | — |
bodyHtml | string | да | — |
senderEmail | string | да | — |
sourceMailbox | string | null | да | — |
status | EmailStatusDto | да | — |
direction | EmailDirectionDto | да | — |
kind | EmailKindDto | да | — |
createDateTime | string | да | — |
attachments | EmailAttachmentDto[] | да | — |
Пример
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#) |
|---|---|---|---|
NotFound | 0 | — | 0 |
Incoming | 1 | — | 1 |
Outgoing | 2 | — | 2 |
Пример
json
0EmailKindDto
Значения
| Имя | Значение | Описание |
|---|---|---|
Regular | 0 | — |
Fax | 1 | — |
Пример
json
0EmailStatusDto
Backend-источник: infrastructure.notificationservice/Infrastructure.NotificationService/Nuget.NotificationApiClient/Dto/Enums/EmailStatusDto.cs (infrastructure.notificationservice).
Значения
| Имя | Значение (TS) | Описание | Код (C#) |
|---|---|---|---|
NotFound | 0 | — | 0 |
New | 1 | — | 1 |
ActionRequired | 2 | — | 2 |
Processed | 3 | — | 3 |
Spam | 4 | — | 4 |
Archived | 5 | — | 5 |
Пример
json
0GetEmailsRequestDto
Backend-источник: infrastructure.notificationservice/Infrastructure.NotificationService/Nuget.NotificationApiClient/Dto/Requests/GetEmailsRequestDto.cs (infrastructure.notificationservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
pagination | Pagination | да | — | Pagination |
statuses | EmailStatusDto[] | да | — | List<EmailStatusDto> |
statusFilters | EmailStatusDto[] | null | нет | — | List<EmailStatusDto>? |
emailContactId | number | null | нет | — | int? |
emails | string[] | null | нет | — | List<string>? |
sourceMailboxes | string[] | null | нет | — | — |
direction | EmailDirectionDto | null | нет | — | EmailDirectionDto? |
kind | EmailKindDto | null | нет | — | — |
Пример
json
{
"pagination": "<Pagination>",
"statuses": [],
"statusFilters": [],
"emailContactId": 0,
"emails": [],
"sourceMailboxes": [],
"direction": "<emaildirectiondto>",
"kind": "<emailkinddto>"
}GetMailboxPermissionsResponseDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
mailboxPermissions | Record<string, string> | да | — |
Пример
json
{
"mailboxPermissions": "<Record<string, string>>"
}GetSourceMailboxesResponseDto
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
mailboxes | string[] | да | — |
Пример
json
{
"mailboxes": []
}