Skip to content

Mail DTO

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

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

Содержание


CreateMailRequestDto

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

Поля

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
fileFile | BlobдаIFormFile
externalTypeExternalTypeDto | nullнетExternalTypeDto?
externalTypeIdnumber | nullнетint?

Пример

json
{
  "file": "<File | Blob>",
  "externalType": "<externaltypedto>",
  "externalTypeId": 0
}


GetMailsRequestDto

Filters for GET Api/Mails — the outgoing physical post, not Emails.

Every field except pagination is optional; an absent field means the condition is not applied.

statusFilter.available is the universe the counts are computed over, statusFilter.selected is the choice; an absent or empty selected means every status. The counts describe the slice left by the other filters, not the whole table.

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

Поля

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
paginationPaginationдаPagination
statusFilterPaginationFilter<MailStatusDto>нетStatus facet. available is the universe the counts are computed over, selected is the choice; an absent or empty selected means every status, so no condition is applied.
createdAtPaginationRangeFilter<string>нетISO 8601 range over the creation timestamp.
updatedAtPaginationRangeFilter<string>нетISO 8601 range over the last-update timestamp. Mails never updated are excluded.
externalTypesExternalTypeDto[]нетEntity kind the mail belongs to.
externalIdnumberнетIdentifier within externalTypes.
senderFullNamestringнетPrefix match on the sender full name.

Пример

json
{
  "pagination": "<Pagination>",
  "statusFilter": "<PaginationFilter<MailStatusDto>>",
  "createdAt": "<PaginationRangeFilter<string>>",
  "updatedAt": "<PaginationRangeFilter<string>>",
  "externalTypes": [],
  "externalId": 0,
  "senderFullName": "string"
}


MailStatusDto

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

Также определён в: infrastructure.notificationservice.

Значения

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound00
New11
Printing22
Sent33
Archived44

Пример

json
0


UpdateMailStatusRequestDto

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

Поля

ПолеТип (TS)ОбязательноеОписаниеТип (C#)
mailIdnumberдаint
statusMailStatusDtoдаMailStatusDto

Пример

json
{
  "mailId": 0,
  "status": "<MailStatusDto>"
}