Common DTO
Описание сущностей и типов из src/dto/common/.
Обогащено snapshot-данными бэкенд-DTO (3 из 7 типов сопоставлено, snapshot от 2026-05-05T13:21:51.699Z).
Содержание
- ExternalTypeDto · backend ✓
- GenderParam · backend ✓
- Pagination
- PaginationFilter
- PaginationRangeFilter
- PaginationRequestParam · backend ✓
- PaginationResult
ExternalTypeDto
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/ExternalTypeDto.cs (core.businesslogicservice).
Также определён в:
features.taskservice,integration.callcenternotification.
Значения
| Имя | Значение (TS) | Описание | Код (C#) |
|---|---|---|---|
NotFound | 0 | — | 0 |
Client | 3 | — | 3 |
Worker | 4 | — | 4 |
Partner | 5 | — | 5 |
PhoneContact | 6 | — | 6 |
EmailContact | 7 | — | 7 |
Пример
0GenderParam
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/GenderParams/GenderParam.cs (core.businesslogicservice).
Значения
| Имя | Значение (TS) | Описание | Код (C#) |
|---|---|---|---|
NotFound | 0 | — | 0 |
Male | 1 | — | 1 |
Female | 2 | — | 2 |
Пример
0Pagination
Frontend-facing pagination shape used by service methods in this package. Backend wire format is Pagination.CurrentPage / Pagination.RowsPerPage etc. — services map page → CurrentPage internally.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
page | number | да | 1-based page number. |
rowsPerPage | number | да | Items per page (sometimes exposed as rowsNumber from q-table). |
sortBy | string | да | Server-side field name to sort by. |
descending | boolean | да | true for DESC, false for ASC. |
Пример
{
"page": 0,
"rowsPerPage": 0,
"sortBy": "string",
"descending": false
}PaginationFilter
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
available | TFilter[] | да | — |
selected | TFilter[] | да | — |
Пример
{
"available": [],
"selected": []
}PaginationRangeFilter
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
from | TFilter | null | нет | — |
to | TFilter | null | нет | — |
Пример
{
"from": "<tfilter>",
"to": "<tfilter>"
}PaginationRequestParam
Lightweight pagination request used by a few endpoints (no sort).
Backend-источник: core.businesslogicservice/Core.BusinessLogicService/Nuget.BusinessApiClient/Dto/PaginationParam/PaginationRequestParam.cs (core.businesslogicservice).
Поля
| Поле | Тип (TS) | Обязательное | Описание | Тип (C#) |
|---|---|---|---|---|
page | number | да | — | int |
rowsPerPage | number | да | — | int |
Пример
{
"page": 0,
"rowsPerPage": 0
}PaginationResult
Paginated response envelope. Mirrors PaginationResult<T> from the backend.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
values | T[] | да | — |
totalCount | number | да | — |
Пример
{
"values": [],
"totalCount": 0
}