Skip to content

Mail DTO ​

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

Обогащено snapshot-данными бэкенд-DTO (4 из 5 типов сопоставлено, 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 is addressed to.—
externalIdnumberнетIdentifier within externalTypes.—
externalFullNamestringнетPrefix match on the name of the addressee, as stored on the mail.—
senderFullNamestringнетPrefix match on the full name of the user the mail originated from.—

Пример ​

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


MailFileDto ​

Поля ​

ПолеТипОбязательноеОписание
idnumberда—
mailIdnumberда—
fileNamestringда—
fileUrlstringда—
createDateTimestringда—
updateDateTimestring | nullнет—
deleteDateTimestring | nullнет—

Пример ​

json
{
  "id": 0,
  "mailId": 0,
  "fileName": "string",
  "fileUrl": "https://...",
  "createDateTime": "2026-05-05T08:00:00Z",
  "updateDateTime": "2026-05-05T08:00:00Z",
  "deleteDateTime": "2026-05-05T08:00:00Z"
}


MailStatusDto ​

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

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

Значения ​

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound0—0
New1—1
Printing2—2
Sent3—3
Archived4—4

Пример ​

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>"
}