Skip to content

Common DTO

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

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

Содержание


ExternalTypeDto

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

Также определён в: features.taskservice, integration.callcenternotification.

Значения

ИмяЗначение (TS)ОписаниеКод (C#)
NotFound00
Client33
Worker44
Partner55
PhoneContact66
EmailContact77
ClientLead10
WorkerLead11

Пример

json
0


GenderParam

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

Значения

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

Пример

json
0


Pagination

Frontend-facing pagination shape used by service methods in this package. Backend wire format is Pagination.CurrentPage / Pagination.RowsPerPage etc. — services map pageCurrentPage internally.

Поля

ПолеТипОбязательноеОписание
pagenumberда1-based page number.
rowsPerPagenumberдаItems per page (sometimes exposed as rowsNumber from q-table).
sortBystringдаServer-side field name to sort by.
descendingbooleanдаtrue for DESC, false for ASC.

Пример

json
{
  "page": 0,
  "rowsPerPage": 0,
  "sortBy": "string",
  "descending": false
}


PaginationFilter

Поля

ПолеТипОбязательноеОписание
availableTFilter[]даThe value universe the counts are computed over. Leave it out to get no counts.
selectedTFilter[] | nullнетThe selection. Absent or empty means every value, so no condition is applied — there is no sentinel for "all". A zero value in the list selects that value like any other. An empty array cannot be expressed in a query string and is sent as "absent", which means the same thing here.

Пример

json
{
  "available": [],
  "selected": []
}


PaginationFilterResult

A single facet: a filter value and the count of rows matching it (filter: 0 is the "all" bucket).

Поля

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

Пример

json
{
  "filter": "<TFilter>",
  "count": 0
}


PaginationRangeFilter

Поля

ПолеТипОбязательноеОписание
fromTFilter | nullнет
toTFilter | nullнет

Пример

json
{
  "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#)
pagenumberдаint
rowsPerPagenumberдаint

Пример

json
{
  "page": 0,
  "rowsPerPage": 0
}


PaginationResult

Paginated response envelope. Mirrors PaginationResult<T> from the backend.

Поля

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

Пример

json
{
  "values": [],
  "totalCount": 0
}